‎2008 Nov 11 7:55 PM
Hi Guys
I am stuck doing this for the last 4 hrs...please help!
I am calling a bdc in the following way
ls_params-nobiend = 'X'.
ls_params-dismode = lbimode. "N
CALL TRANSACTION 'IE02' USING bdcdata OPTIONS FROM ls_params.The problem is that this is working absolutely fine in debug mode regardless of the lbimode (A,E or N).
But when I run it normally the BDC does not seem to work as the required updates in equipment master do not happen.
Has any one faced a simillar problem before??
Edited by: Sameer Ahmed on Nov 11, 2008 9:08 PM
‎2008 Nov 11 8:32 PM
Hello,
- can you show the code after CALL TRANSACTION ?
- Do you test, after CALL TRANSACTION, the field sy-subrc ?
- With instruction CALL TRANSACTION, you can save all transaction messages by using "MESSAGES INTO". Are you doing this ?
Your code should look like
CALL TRANSACTION..USING...MESSAGES INTO IT_MESSAGE... .
IF NOT sy-subrc IS INITIAL.
*Display messages to understand what was wrong
LOOP AT IT_MESSAGE INTO IS_MESSAGE.
ENDLOOP.
ENDIF.Cordialement,
Chaouki.
‎2008 Nov 12 6:25 AM
Check for a commit work statement. include that after each call transaction and it should be fine.
Regards,
SAPient