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

How to using BDC or LSMM for uploading data.

Please help me how to write BDC program for the tranfer information from time machine or data of Excel file (include informations about In/Out record time ) to data SAP system.

I know that using BDC or LSMW for uploading data but

I don't know how to do it and I haven't any documents for that.

please help me steps by steps or if you have the doccuments about it, share it to me.

Thanks for your supports.

Regards,

Huyen Nguyen

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Nov 03, 2008 at 03:39 AM

    https://forums.sdn.sap.com/click.jspa?searchID=18173789&messageID=6400122

    check this thread for LSMW

    u can follow the BAPI also

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 03, 2008 at 03:01 AM

    I sugguest you transfer time records from time machine to sap using BAPI not BDC, for reason of performance. Code snippet as below:

    CALL FUNCTION 'BAPI_CC1_UPLOAD_TIMEEVENT'

    TABLES

    TIMEEVENTS = TIMEEVENTS

    RETURN = RETURN

    EXCEPTIONS

    OTHERS = 01.

    CASE SY-SUBRC.

    WHEN 0. " OK

    CALL FUNCTION 'POPUP_TO_CONFIRM'

    EXPORTING

    TEXT_QUESTION = 'No error occured,posting time events now?'

    DEFAULT_BUTTON = '1'

    DISPLAY_CANCEL_BUTTON = SPACE

    IMPORTING

    ANSWER = POPUP_RET.

    IF POPUP_RET = '1'.

    CALL TRANSACTION 'PT45'.

    ENDIF.

    WHEN OTHERS. " to be implemented

    LOOP AT RETURN .

    WRITE: / RETURN-NUMBER,'---',RETURN-MESSAGE.

    ENDLOOP.

    ENDCASE.

    Add a comment
    10|10000 characters needed characters exceeded

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.