HR上传个人照片到信息类型.docx

  1. 1、本文档共8页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
HR上传个人照片到信息类型 T-CODE SPRO 选择EDIT DOCUMENT TYPES 复制或者新建一个文档类别为JPG的 复制或者创建 PREL是 T-CODE OAAD 查看 如果要在前台右边直接显示照片 则要用特定的文档对象(下图) 下面这个程序 适合前台和后台操作 REPORT ZYAOWEI_007. *PARAMETERS: P_UNXDIR LIKE RLGRAP-FILENAME DEFAULT /kaoqin/INPUTjpg. PARAMETERS: P_UNXDIR LIKE RLGRAP-FILENAME DEFAULT /usr/sap/HRD/DVEBMGS00/dataJPG. DATA : BEGIN OF INFILE_DATA OCCURS 0, IN_LINE(80) type c, END OF INFILE_DATA. DATA : begin of inrec, raw(1024) type x, end of inrec. DATA : begin of itab occurs 0, raw(1024) type x, end of itab. Data: WS_FILENAME TYPE STRING, WS_OBJID LIKE SAPB-SAPOBJID, WS_FILELENGTH TYPE 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 read 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 dataset WS_FILENAME. * Add picture file to content server for specific associate. CALL FUNCTION ARCHIV_CREATE_TABLE EXPORTING ar_object = HRICOLFOTO object_id = 000000400002 sap_object = PREL flength = WS_FLENGTH TABLES binarchivobject = ITAB. IF SY-SUBRC = 0. WRITE : / WS_OBJID+0(8), -- picture loaded: , WS_FILENAME, -- length: , WS_FLENGTH. else. WRITE : / WS_OBJID+0(8), -- Unable to load pic: , WS_FILENAME, -- length: , WS_FLENGTH. ENDIF. clear INFILE_DATA-IN_LINE. 下面这个程序 只适合前台 SELECTION-SCREEN BEGIN OF BLOCK radio1 WITH FRAME TITLE text-001. PARAMETERS:P_FILE TYPE LOCALFILE. SELECTION-SCREEN END OF BLOCK radio1. END-OF-SELECTION. DATA: archiv_id LIKE toav0-archiv_id, arc_doc_id LIKE toav0-arc_doc_id, ftype LIKE TOADV-DOC_TYPE

文档评论(0)

zxf886 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档