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

Call transaction error(?)

Former Member
0 Likes
2,035

Hi all,

I have used call transaction in batch program as follows:

CALL TRANSACTION 'VA02' USING bdcdata MODE mod
                        MESSAGES INTO messtab           .

My problem is that when this is run in debugging mode, it works, no problem, but when

i have run it directly it does not update some of the orders data.

What could be the problem?

Note: I have tried to use; commit work and also commit work and wait commands after call transaciton but it did not work properly; updated some and did not update other some.

Under debug everything is ok.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,140

Hi ,

One reason can be the entries in the table BDCDATA , may not be sufficient , what might be happening is that during debugging you might be pressing the Enter key or some other key which result in the record to be created , but in the direct execution the step is missing and hence the record is not created .

So what i would suggets is please check the recording again.

Regards

Arun

8 REPLIES 8
Read only

Former Member
0 Likes
1,140

Hi,

try using update 'S' ( synchronous update ).

CALL TRANSACTION 'VA02' USING bdcdata MODE mod

MESSAGES INTO messtab update 'S'.

thanks.

Read only

Former Member
0 Likes
1,141

Hi ,

One reason can be the entries in the table BDCDATA , may not be sufficient , what might be happening is that during debugging you might be pressing the Enter key or some other key which result in the record to be created , but in the direct execution the step is missing and hence the record is not created .

So what i would suggets is please check the recording again.

Regards

Arun

Read only

Former Member
0 Likes
1,140

Add UPDATE 'S' to your CALL TRANSACTION command.

Regards

Sathar

Read only

Former Member
0 Likes
1,140

Hi,

Try this way..

opt-dismode = 'N'. 
opt-defsize = 'X'. 
opt-racommit = 'X'.
opt-updmode ='S'.
CALL TRANSACTION 'VA02' USING bdcdata OPTIONS FROM opt
MESSAGES INTO itab

Read only

Former Member
0 Likes
1,140

Hi,

from you are call transaction syntax update A/S/L is missing

like call transaction 'tcode' using bdcdata mode A/E/N update A/S/L messages into bdcmsgcoll.

Choose the update mode:

A : Asynchronous update

S : Synchronous update

L : Local update

add the update mode check once in debugg mode and mode a/e/n

Regards,

Madhu

Read only

Former Member
0 Likes
1,140

You want to mention update type in this statement.

CALL TRANSACTION 'VA02'

USING bdcdata

MODE mod

update c_s " (Synchronous Update Type)

MESSAGES INTO messtab.

Regards,

Joan

Read only

Former Member
0 Likes
1,140

Hi,

Check the below syntax ,

Call Transaction u2018Transaction Nameu2019 using BDCDATA

MODE u2018Nu2019 or u2018Au2019 or u2018Eu2019

UPDATE u2018Su2019 or u2018Au2019 or u2018Lu2019

MESSAGES into ITAB.

Regards,

Anki Reddy

Read only

Former Member
0 Likes
1,140

Hi Deniz,

Try using below syntax for clling transaction:

CALL TRANSACTION 'VA02' USING bdcdata MODE mod UPDATE upd
                        MESSAGES INTO messtab

Mode should be 'N' [run in background i.e. without screens] and Update should be 'A' i.e. Asynchronous, so if in mid of transaction you exit then nothing will be updated.

I don't think so you need to call commit transaction BAPI after BDC as through BDC you are directly saving the data as per your recording. If still you are facing the same problem then please check your recording and process it in background [Click 'Process' button]. Check if still if gives you same issue i.e. data not saved for few orders. If still same prb persists then there is no fault in your program, just that do the recording again.

Regards,

Saba