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: 

CALL TRANSACTION error during the initial run

Former Member
0 Kudos

Hi,

I have a custom program that calls the transaction FOIO (Change Contract) inside. Here's my sample code:

...

CALL TRANSACTION 'FOIO'.

IF sy-subrc = 0.

ENDIF.

...

The problem is, after the CALL TRANSACTION, it no longer goes back to the custom program to perform the other lines of code. It stays on the last screen of FOIO. I am not sure why this is happening. Maybe the transaction has to be initialized first because the succeeding runs are ok. Does anyone have an idea on how to do this?

3 REPLIES 3

Former Member
0 Kudos

Hi

there may not be any Processing codes after you call the Transaction . Hence Program Ends Once it calls the transaction

Former Member
0 Kudos

hi

good

check out the recording and see wheather all the screens come properly in your recordding,

debug the bdc and check wheather the end OK CODE is firing properly or not,if not than assign the appropriate OK COD for that.

thanks

mrutyun^

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

One option is to use Submit command with return.

Otherwise,Try runing the BDC to achieve it.

call transaction 'FOIO' using itab mode 'N' update 'S' messages into i_msg.

Here itab is the internal table you are using to pass entries to BDC.

Mode 'N' means it won't display you screen.

i_msg is the error message internal table.

Kindly reward points by clicking the star on the left of reply,if it helps.

Message was edited by:

Jayanthi Jayaraman