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: 

BDC for LT0E stop processing after catch an error

Former Member
0 Kudos
237

I try to execute BDC but it's stopped when there is an error in the middle of the process. Usually it doesn't stop the process, but I think because the error is change the display into another screen. How to solve this problem? Thanks.

This is the code:

TCODE : LT0E
MODE  : N
=====================================================================
PROGRAM  DYNP D FNAM                 FVAL
=====================================================================
SAPML03T 0201 X
         0000 BDC_CURSOR             RL03T-REFNR_2ST
         0000 BDC_OKCODE             /00
         0000 LTAK-LGNUM             XXX
         0000 RL03T-REFNR_2ST        XXX
         0000 RL03T-KZGSM            X
         0000 RL03T-DUNKL            H
SAPML03T 0202 X
         0000 BDC_OKCODE            =TERZ
         0000 BDC_SUBSCR            SAPML03T 2020D0202_S
         0000 BDC_CURSOR            L2SKTOTAL-OFMNA(01)

//--> Error starts here and the code below is not executed then <--\\

SAPML03T 0102 X
         0000 LTAP-VLTYP            XXX
SAPML03T 0202 X
         0000 BDC_OKCODE            =BU
         0000 BDC_SUBSCR            SAPML03T 2020D0202_S
         0000 BDC_CURSOR            L2SKTOTAL-OFMNA(01)

6 REPLIES 6

sivaprasad_paruchuri
Active Participant
0 Kudos
142

write calltransaction after the loop for filling bdcdata..

or u can use session method ..

regards,

siva..

0 Kudos
142

This one: RFC_CALL_TRANSACTION_USING ?

nabheetscn
SAP Champion
SAP Champion
0 Kudos
142

What error does it give you?

Nabheet

0 Kudos
142

It's: " System cannot find source storage bin"

Former Member
0 Kudos
142

Hello Jimmy,

I hope you are using CALL TRANSACTION method

Please mention, what type of error you are getting?

Regards,

Aneesh Menon


0 Kudos
142

This one: RFC_CALL_TRANSACTION_USING ?


It's: " System cannot find source storage bin", after I get that error message, then the BDC stop processing the rest code and change the display to another screen (something like LT01)...