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

Former Member
0 Likes
601

Call transaction returns sy-subrc or not?

Session method returns sy-subrc or not?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
576

Hi

Call Transaction..YES

Session method..NO

Reward points for useful Answers

Regards

Anji

Call transaction returns sy-subrc or not?

Session method returns sy-subrc or not?

4 REPLIES 4
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
576

Hi,

Call transaction will return sy-subrc.

Read only

Former Member
0 Likes
577

Hi

Call Transaction..YES

Session method..NO

Reward points for useful Answers

Regards

Anji

Read only

Former Member
0 Likes
576

hi

good

yes both of them retrun,

CALL TRANSACTION->

On the face of it, you would think that the Call Transaction has succeeded if "Sy-Subrc = 0" after the call. In an ALE environment this is only half the story, because when the import parameter Input_Method takes on the value "A" or "E", the inbound function module must call the transaction using mode = "A" or "E" ("show all screens" or "show the screens starting with the one where the error occurred"). In this case, the user sees the screens and can cancel the transaction using OK-code "/n"’, which also leads to "Sy-Subrc = 0" after the call! Hence the only reliable way to tell whether the Call Transaction succeeded or not is to check the message ID (Sy-Msgid) and number (Sy-Msgno). Beware that some transactions have more than one "success" message.

thanks

mrutyun^

Read only

manubhutani
Active Contributor
0 Likes
576

only call transaction returns