Application Development 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: 

msg of type 'S' in BDC program and same msg of type 'A'

Former Member
0 Kudos

We have to upload data for ABZON transaction of assets. When we use LSMW with recording method and try to upload say 3 records. All teh records are updated successfully but the batch input session log says last two records with a message of type 'A' "leave transaction is not possible in batch input"

But when we upload the same data with BDC program with call transaction then teh log shows same message with type 'S'.

what could be the reason for this?

Though data gets uploaded successfully the 'A' message is being displayed in LSMW batch input log.

if anyone has encountered a similar problem pls let us know how to resolve this asap.

Thanks,

Simmi

1 REPLY 1

andreas_mann3
Active Contributor
0 Kudos

hi,

one crucial point I remember by using enjoy tcodes for bdc is the change of field bukrs.

you must create one bdc-map for each company - program sth like this:

LOOP AT itab.

...

AT NEW bukrs.

IF bk ne itab-bukrs. "not for 1st bk

PERFORM open_btci_group USING map '00000000' 'X'.

ADD 1 TO cnt.

PERFORM bdc_dynpro USING 'SAPLSPO4' '0300'.

PERFORM bdc_field USING 'BDC_OKCODE' '=FURT'.

zeile = '01'.

PERFORM bdc_field_loop USING zeile 'SVALD-VALUE' itab-bukrs.

ENDIF.

ENDAT.

...

hope that helps