Skip to Content
0
Jul 04, 2011 at 03:37 PM

CALL TRANSACTION 'VA01' messages into it_bdc_msgcoll?

73 Views

Hello

A piece of code from my_report,

 
  CALL TRANSACTION 'VA01' USING it_bdc_data
                              MODE 'N' 
                               UPDATE 'A'  
                              MESSAGES INTO it_bdc_msgcoll.
  IF NOT it_bdc_msgcoll[] IS INITIAL.
    DESCRIBE TABLE it_bdc_msgcoll LINES w_lin.
    READ TABLE it_bdc_msgcoll INDEX w_lin
                             INTO w_bdc_msgcoll. 

I am thinking, If its sucessfully created an Order, then SAP always will put this 'S' successful message at the last line in the bdc_msgcoll. SAP will keep(move) all the other than 'S' messages in the beginning, as soon as SAP realises successfully order is created then, explicitly it will put/move this 'S' message record in the bdc_msgcoll at the end/as last line

Pls. let me know is my assumption is correct?