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

Error with call transaction

Former Member
0 Likes
539

Hi,

I developed the FM for idoc Z over the transaction deliveries VL01. At the first, in the FM read the data segments of the idoc, then it make a "call transaction" over the transaction.

CALL TRANSACTION 'VL01' USING bdcdata

MODE v_mode

UPDATE 'S'

MESSAGES INTO messtab.

the FM takes 2 years of operation ok. During the last week, in the system have appeared Idoc with status wrong, because after running the "call transaction" the table "messtab" is empty and the value of sy-subrc is 0, therefore the idoc status is 51.

Does anyone because it happens with the call transaction?

Thanks in advantage

3 REPLIES 3
Read only

Former Member
0 Likes
503

Hi!

Set the MODE to 'A' to step-by-step, or 'E' to stop-at-error mode processing. With this you will be able to find the error.

Regards

Tamá

Read only

former_member194669
Active Contributor
0 Likes
503

Hi,

Instead of check for sy-subrc = 0 please check


read table messtab with key msgty = 'E'.
if sy-subrc eq 0.
  move '51' to idoc_status-status.
endif.

a®

Read only

0 Likes
503

Hi,

The error only happen in sometimes, in fact, when I made a debbuging over the call transaction the result was ok.

The problem is that the table messtab is empty, without message the errors neither message of confirmation; like if the call transaction not executed the operation.

Regards,

ARF