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

massive load

Good day experts, I am using this code to massive load to run get the message that the load was done successfully, but to verify the transaction data in coois is not updated.

This is the code.



LOOP AT ti_input INTO st_input.
CLEAR:st_de_data.
MOVE: st_input-aufnr TO st_de_data-aufnr,
st_input-vornr TO st_de_data-vornr,
st_input-budat TO st_de_data-budat,
st_input-zzcant1 TO st_de_data-zzcant1,
st_input-zzmot1 TO st_de_data-zzmot1,
st_input-zzcant2 TO st_de_data-zzcant2,
st_input-zzmot2 TO st_de_data-zzmot2,
st_input-ltxa1 TO st_de_data-ltxa1.


PERFORM bdc_dynpro USING :
'X' 'SAPLCORU_S' '0110',
' ' 'BDC_OKCODE' '=SP',
' ' 'AFRU-AUFNR' st_de_data-aufnr,
' ' 'AFRU-VORNR' st_de_data-vornr,
' ' 'AFRU-ZZCANT1' st_de_data-zzcant1,
' ' 'AFRU-ZZMOT1' st_de_data-zzmot1,
' ' 'AFRU-ZZCANT2' st_de_data-zzcant2,

PERFORM bdc_dynpro USING :
'X' 'SAPLCORU_S' '0600',
' ' 'BDC_OKCODE' '=SP',
' ' 'AFRU-BUDAT' st_de_data-budat.

ENDLOOP.

s_opt-dismode = c_mod. "Hide vista transaccion
s_opt-updmode = c_update.
s_opt-nobinpt = 'X'.

CALL TRANSACTION 'CO11N' USING it_bdc_tab[]
OPTIONS FROM s_opt
MESSAGES INTO it_messtab[].



FORM bdc_dynpro USING dynbegin name value.
CLEAR it_bdc_tab.
IF dynbegin = 'X'.
MOVE: name TO it_bdc_tab-program,
value TO it_bdc_tab-dynpro,
'X' TO it_bdc_tab-dynbegin.
APPEND it_bdc_tab.
ELSE.
MOVE: name TO it_bdc_tab-fnam,
value TO it_bdc_tab-fval.
CONDENSE it_bdc_tab-fval.
APPEND it_bdc_tab.
ENDIF.
CLEAR it_bdc_tab.

ENDFORM. " BDC_DYNPRO.




Please can you help me to review the code and see if the data is recorded.

Regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 06, 2014 at 03:14 PM

    Hi

    Place the break point at below

    CALL TRANSACTION 'CO11N' USING it_bdc_tab[]

    OPTIONS FROM s_opt

    MESSAGES INTO it_messtab[].

    and change the transaction option to foreground so that you will able to see and able to understand what's happening clearly.

    You do this for 2-3 data records and if you feel this is working as expected you can change the option to background.

    Regards,

    Sreeram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2014 at 07:00 PM

    Hi,

    As suggested by Sreeram, do these two things -

    1) Include Mode clause in Call transaction -

    CALL TRANSACTION 'CO11N' USING it_bdc_tab[]

    MODE 'A'
    OPTIONS FROM s_opt
    MESSAGES INTO it_messtab[].

    2) Check the contents of message table in debugger.


    Ask if you need anything furter.


    BR.


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2014 at 11:48 PM

    Experts ask me what is you get the notification after entering the values ​​in the operation order and pressed enter and then throws me the value of the notification, please can guide me on how to perform this calculation.


    Best regards.

    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.