Hi All,
I have created a Call Transaction BDC for O/B Delivery (VL01) In my requirement I have to read data from table LIKP/LIPS immediately after successful creation of delivery, but its not selecting any data from LIKP/LIPS (Returning Sy-subrc = 4).
Though commit is not required with Synchronous Mode but i have tried with to.. but not able to fetch data.
I am calling BDC As:
Setting CTU Para-meters
LS_BDC_OPTIONS-DISMODE = 'E'.
LS_BDC_OPTIONS-UPDMODE = 'S'.
LS_BDC_OPTIONS-DEFSIZE = 'X'.
CALL TRANSACTION 'VL01' USING GT_BDCDATA
OPTIONS FROM LS_BDC_OPTIONS
MESSAGES INTO GT_MESSAGE
LOOP AT GT_MESSAGE INTO LS_MSG. "where MSGTYP eq c_error.
IF LS_MSG-MSGTYP = C_SUCCESS AND LS_MSG-MSGID = 'VL' AND LS_MSG-MSGNR = 311.
Delivery Document created Successfully.....*
WAIT UP TO 2 SECONDS.
COMMIT WORK AND WAIT.
Perform to read Delivery DATA *************** Here Not getting any Data from LIKP/LIPS.*
ELSE.
ENDIF.
ENDLOOP.
I can see delivery document VL02N and entries in table, but its not giving me delivery details in same session. I am aware with call transaction 'S' Mode you dont need to commit & wait... But i m trying to get values..
Please assist.
-Rajesh