




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、hr 上传个人照片到信息类型t-code spro选择 edit document types复制或者新建一个文档类别为jpg 的1 / 8复制或者创建prel 是t-code oaad2 / 83 / 8查看4 / 8如果要在前台右边直接显示照片则要用特定的文档对象(下图 )下面这个程序适合前台和后台操作report zyaowei_007.*parameters:p_unxdirlikerlgrap-filenamedefault/kaoqin/input/00000040.jpg.parameters:p_unxdirlikerlgrap-filenamedefault/usr/sap/
2、hrd/dvebmgs00/data/00000040.jpg.5 / 8da ta : begin of infile_data occurs 0, in_line(80) type c,end of infile_data.da ta : begin of inrec,raw(1024) type x,end of inrec.da ta : begin of itab occurs 0,raw(1024) type x,end of itab.data: ws_filename type string,ws_objid like sapb-sapobjid,ws_filelength t
3、ype i,ws_flength like sapb-length.*start-of-selection.open dataset p_unxdir for input in binary mode.do.* read file one record at a time in binary mode. clear inrec.read dataset p_unxdir into inrec maximum length 1024 actual length ws_filelength.* determine accumulated file length as each record rea
4、d in.ws_flength = ws_flength + ws_filelength.* last record of file will cause sy-subrc to not be 0 and will be* less in length than record size.if ws_flength 0.move inrec to itab.append itab.endif.* end loop at end of file. if sy-subrc ne 0.exit. end of file must have been reached endif.enddo.close
5、dataset ws_filename.* add picture file to content server for specific associate.call function archiv_create_table exporting ar_object = hricolfoto object_id = 000000400002sap_object = prel flength = ws_flengthtables binarchivobject = itab.if sy-subrc = 0.write : / ws_objid+0(8), - picture loaded: ,
6、ws_filename, - length: , ws_flength.6 / 8else. write: / ws_objid+0(8), - unable to load pic: , ws_filename, - length: ,ws_flength.endif.clear infile_data-in_line.下面这个程序只适合前台selection-screenbeginofblockradio1withframe title text-001.parameters:p_file type localfile.selection-screenendofblockradio1.en
7、d-of-selection.da ta: archiv_id like toav0-archiv_id,arc_doc_id like toav0-arc_doc_id,ftype like toadv-doc_type.da ta:return type toadt occurs 0 with header line.call function archiv_create_dialog_metaexporting*archiv_id= ar_object= hricolfoto*del_date= *note= object_id= 000000500002sap_object= prel
8、* file= xueqiangshareddocs3600000040.jpgfile= 192.168.118.159tichenginput00000050.jpg*commit_flag= importingarchiv= archiv_idarchiv_doc_id= arc_doc_iddocumentclass= ftypetablesoutdoctab= return* changing* infiletab = exceptionserror_archiv= 1error_communicationtable= 2error_connectiontable= 3error_kernel= 4error_parameter= 57 / 8error_scanqueue= 6canceled_by_user= 7others= 8.if sy-subrc 0.message failed type i
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 跨越挑战2025年入团考试试题及答案
- 2025贷款公司个人贷款合同样本
- 《2025如何解除工程承包合同》
- 2025租房合同协议书范本打印
- 知识点导引 2024年高级审计师考试试题及答案
- 高级会计案例研究与分析试题及答案
- 消防安全文化的重要性试题及答案
- 2025机电设备安装工程施工承包合同范本
- 扶风四小期中考试卷及答案
- 2025二手车买卖合同协议样板
- 报告应用文写作课件
- Part6 Unit1 Travel教案-【中职专用】高一英语精研课堂(高教版2021·基础模块2)
- 安全防范系统之出入口控制系统课件
- 报价单模板完
- 《冯谖客孟尝君》
- 吊装作业票(样本)
- 04S206 自动喷水与水喷雾灭火设施安装
- InfoQ:2023中国企业数字化人才发展白皮书
- 胸腔积液诊断的中国专家共识(2022版)解读
- 数学竞赛之平面几何课件
- 浙江省台州市2022-2023学年高二下学期期末物理试题
评论
0/150
提交评论