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: 

BDC for XK01

Former Member
0 Kudos

Hi All,

iam creating & updating Vendor master details through BDC Recording by following syntax

DATA :lt_bdcmsgcoll1 TYPE STANDARD TABLE OF bdcmsgcoll.

DATA opt TYPE ctu_params.

opt-dismode = 'N'.

opt-updmode = 'X'.

opt-cattmode ='N'.

opt-defsize = 'X'.

opt-racommit ='X'.

opt-nobinpt = 'X'.

opt-nobiend = 'X'.

CALL TRANSACTION 'XK01' USING bdcdata OPTIONS FROM opt

MESSAGES INTO lt_bdcmsgcoll1 .

i have given opt-dismode = 'N' then vendor are NOT getting created.When i give opt-dismode = 'A' or 'E' then vendors are getting created / updating .

can any one suggest me how to proceed ?

regards

Fareed

4 REPLIES 4

former_member195402
Active Contributor
0 Kudos

Hi Fareed,

in dismode 'E' you should see the 1st screen that causes an error (missing function code or something else).

Regards,

Klaus

Former Member
0 Kudos

Run the program with mode A and check any warning messages are coming and analyse why the messages are coming.

Former Member
0 Kudos

Hi Fareed

>

opt-updmode = 'X'.

The update mode should be either:

A, S, L or blank.

Please see help excerpt below:

The UPDATE addition determines the processing mode for batch input processing. You can specify a character-type object for upd. Its possible content and its effect are displayed in the following table. Without use of one of the additions UPDATE or OPTIONS FROM, the effect is the same as if upd had the content "A".

"A" Asynchronous update. Updates of called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition was not specified.

"S" Synchronous processing. Updates of the called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition had been specified.

"L" Local update. Updates of the called program are executed in such a way as if the SET UPDATE TASK LOCAL statement had been executed in it.

Kind regards,

Robert

Former Member
0 Kudos

Hi Fareed,

opt-dismode 'N' is for Back-ground processing, so if you specify opt-dismode = 'N' you can not Create or Update vendor master.

Instead you you can proceed with opt-dismode = 'A' (Create/Update) or 'E'(Eror Display).

Regards,

Renuka

Edited by: renu1ece on Mar 3, 2011 6:57 AM