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

BDC working in DEBUG only !!

Former Member
0 Likes
1,039

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

2 REPLIES 2
Read only

chaouki_akir
Contributor
0 Likes
660

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.

Read only

Former Member
0 Likes
660

Check for a commit work statement. include that after each call transaction and it should be fine.

Regards,

SAPient