Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

massive load

Former Member
0 Kudos
358

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

1 ACCEPTED SOLUTION
Read only

sreeramkumar_madisetty
Active Contributor
0 Kudos
207

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

3 REPLIES 3
Read only

sreeramkumar_madisetty
Active Contributor
0 Kudos
208

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

Read only

Former Member
0 Kudos
207

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.


Read only

Former Member
0 Kudos
207

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.