‎2012 May 15 12:55 PM
Hi experts,
I try to: 'CALL TRANSACTION 'CJ88' USING gt_bdc MODE 'E' UPDATE 'S' MESSAGES INTO l_mes'. But l_mes not returning an error message. In fact error message is shown in popup window in CJ88 but in code I have no information that something went wrong. How can I get this message from this popup window? Thank you in advance.
Best regards
Pawel Smuda
‎2012 May 15 2:54 PM
This is a pretty difficult situation that is hard to overcome. If the messages are shown in a popup rather than being returned in the message table, the only solution I know of is to simulate the logic of the program that creates the popup before calling the transaction and creating your own message.
Rob
‎2012 May 15 1:10 PM
‎2012 May 15 1:11 PM
Hello Smuda,
MODE 'E' means it'll stop the transaction when the error massage occured while calling transaction. I think, message which occured is type may be E(error) and it is displayed like I(Information), then it may happen.
MESSAGE E001(AA) with lv_msgv1 lv_msgv2 lv_msgv3 DISPLAY LIKE 'I'.
Regards,
Surya...SuryaPraveen
‎2012 May 15 1:22 PM
Hi Pawel,
In the table i_mes you will have the MESSAGE TYPE, MESSADE Id and not the Message text. For the text you have to use the FM: MESSAGE_GET_TEXT.
Regards,
Raj..
‎2012 May 15 1:39 PM
Smuda,
If you call the transaction in ERROR mode (E), then transaction is processed only when you corrected value(lead to error values). then there is no error message is raised after complete execution of the transaction. then there is no use adding of MESSAGES INTO l_mes to the call transaction. MESSAGES INTO l_mes is only works in mode N, display all screens. Message internal table is not filled in both E & A MODEs.
Regards,
Surya...SuryaPraveen
‎2012 May 15 2:54 PM
This is a pretty difficult situation that is hard to overcome. If the messages are shown in a popup rather than being returned in the message table, the only solution I know of is to simulate the logic of the program that creates the popup before calling the transaction and creating your own message.
Rob
‎2012 May 15 3:08 PM
Hi Rob,
you are right, and 'CJ88' dosen't work in the background. I will try to use a BAPI instead of CALL TRANSACTION.
Regards
Pawel
‎2012 May 15 3:23 PM
‎2012 May 16 10:37 AM
‎2019 Sep 04 6:27 AM
I am also struck in same scenario. Can you elaborate in detail?