2007 Jun 08 10:17 AM
Call transaction returns sy-subrc or not?
Session method returns sy-subrc or not?
2007 Jun 08 10:18 AM
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?
2007 Jun 08 10:18 AM
2007 Jun 08 10:18 AM
Hi
Call Transaction..YES
Session method..NO
Reward points for useful Answers
Regards
Anji
2007 Jun 08 10:22 AM
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^
2007 Jun 08 11:26 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |