Skip to Content
author's profile photo Former Member
Former Member

Employee Photo upload

Hi all,

I want to upload photos for massive employees. I have gone through tcode OAAD. But while recording, it was not capturing non-sap content i.e. file selection.

I have gone through the program in the thread upload-employee-photo-into-sap.

In this program 'SAPLOPTM', there is no such screen '0105' ans also it is not working properly.

I have verified all the threads regading employee photo upload.

Please help me in this.

It's very urgent....

Full points will be rewarded for helpful answers.

Thanks,

Kumar

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 03, 2007 at 12:51 PM

    hi kumar,

    i have done the same :

    Take photograph path details and Emp Id in a flat file.

    As BDC approach using OAAD is not able to workout (picking of text file is via a Operating system screen so we can’t record it in BDC) so we used below approach.

    Using GUI_UPLOAD and ARCHIV_CREATE_DIALOG_META .

    The above approach works FINE for foreground and presentation server upload. ask me if any more halp required.

    please reward points if helpful.

    Regards,

    Rahul

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      REPORT ZHR_BDC_UPLOADPIC NO STANDARD PAGE HEADING LINE-SIZE 255.

      u2022INCLUDE

      INCLUDE BDCRECX1.

      u2022I N T E R N A L T A B L E S

      DATA : BEGIN OF IT_DATA OCCURS 0, RP50G-PERNR(8), " LIKE RP50G-PERNR,

      RLGRAP-FILENAME(128),

      END OF IT_DATA.

      u2022S T A R T - O F - S E L E C T I O N

      START-OF-SELECTION.PERFORM OPEN_GROUP.

      CALL FUNCTION 'UPLOAD'

      EXPORTING

      FILENAME = 'C:\PICTURE.TXT'

      FILETYPE = 'DAT'

      TABLES

      DATA_TAB = IT_DATA

      EXCEPTIONS

      CONVERSION_ERROR = 1

      INVALID_TABLE_WIDTH = 2

      INVALID_TYPE = 3

      NO_BATCH = 4

      UNKNOWN_ERROR = 5

      GUI_REFUSE_FILETRANSFER = 6

      OTHERS = 7.

      IF SY-SUBRC NE 0.

      WRITE : / 'Unable to upload data'.

      STOP.

      ENDIF.

      LOOP AT IT_DATA.

      PERFORM BDC_DYNPRO USING 'OANEWCON' '0100'.

      PERFORM BDC_FIELD USING 'BDC_CURSOR'

      'TOAOM-AR_OBJECT'.

      PERFORM BDC_FIELD USING 'BDC_OKCODE'

      '=NEW'.

      PERFORM BDC_FIELD USING 'TOAOM-SAP_OBJECT'

      'PREL'.

      PERFORM BDC_FIELD USING 'TOAOM-AR_OBJECT'

      'HRICOLFOTO'.

      PERFORM BDC_DYNPRO USING 'SAPLSJ01' '0200'.

      PERFORM BDC_FIELD USING 'BDC_CURSOR'

      'FIELD_VALUES-INPUT(02)'.

      PERFORM BDC_FIELD USING 'BDC_OKCODE'

      '=OK'.

      PERFORM BDC_FIELD USING 'FIELD_VALUES-INPUT(01)'

      IT_DATA-RP50G-PERNR. "'10002'.

      PERFORM BDC_FIELD USING 'FIELD_VALUES-INPUT(02)'

      '0002'.

      PERFORM BDC_DYNPRO USING 'SAPLOPTM' '0105'.

      PERFORM BDC_FIELD USING 'BDC_CURSOR'

      'SAPB-SAPPOOLINF'.

      PERFORM BDC_FIELD USING 'BDC_OKCODE'

      '=OKAY'.

      PERFORM BDC_FIELD USING 'SAPB-SAPPOOLINF'

      IT_DATA-RLGRAP-FILENAME. "JPG'.

      PERFORM BDC_TRANSACTION USING 'OAOH'.

      clear IT_DATA-RLGRAP-FILENAME.

      ENDLOOP.

      PERFORM CLOSE_GROUP.

      i think this will work fine..

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.