‎2006 Dec 14 8:26 AM
1. can we use both At line-selection and At user-command at a time in program if yes? pls give one example?
2. when executing call transaction if error occurs that error will be shown at that time or after completion?
‎2006 Dec 14 8:39 AM
Hi,
2.If call transaction is used for mode 'N',then you need to use i_msg(call transaction tcode using itab Mode 'N' update 'S' messages into i_msg.) to handle message.
DATA: W_TEXTOUT LIKE T100-TEXT.
LOOP AT I_MSG.
IF I_MSG-MSGTYP = 'E'.
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
MSGID = I_MSG-MSGID
MSGNR = I_MSG-MSGNR
MSGV1 = I_MSG-MSGV1
MSGV2 = I_MSG-MSGV2
MSGV3 = I_MSG-MSGV3
MSGV4 = I_MSG-MSGV4
IMPORTING
MESSAGE_TEXT_OUTPUT = W_TEXTOUT.
endloop.
‎2006 Dec 14 8:30 AM
1. No supposed to be not used
2. Errors are shown at the end. Messages are collected into BDCMSGCOLL and displayed on ending the transaction
Regards
- Gopi
‎2006 Dec 14 8:35 AM
‎2006 Dec 14 8:36 AM
‎2006 Dec 14 8:37 AM
For session methods SM35 shows the log of errors, from where we can know the error and reprocess the session
Regards
- Gopi
‎2006 Dec 14 8:39 AM
Hi,
2.If call transaction is used for mode 'N',then you need to use i_msg(call transaction tcode using itab Mode 'N' update 'S' messages into i_msg.) to handle message.
DATA: W_TEXTOUT LIKE T100-TEXT.
LOOP AT I_MSG.
IF I_MSG-MSGTYP = 'E'.
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
MSGID = I_MSG-MSGID
MSGNR = I_MSG-MSGNR
MSGV1 = I_MSG-MSGV1
MSGV2 = I_MSG-MSGV2
MSGV3 = I_MSG-MSGV3
MSGV4 = I_MSG-MSGV4
IMPORTING
MESSAGE_TEXT_OUTPUT = W_TEXTOUT.
endloop.
‎2006 Dec 14 11:59 AM
Hi
1. u cant use those two events at a time in ordinary reports.
but u can use in ALV reports.
2. If u want collect errors in call transaction.
Create an internal table(I_MSG) like BDCMSGCOLL and .
call transaction 'XK01' using (internal table name)
update 'A/S'
mode 'A/E/N'
messages into I_MSG.
then after that print I_MSG.(see the fields in BDCMSGCOLL).
regards,
srinivas
‎2006 Dec 14 12:01 PM
Hi
1. u cant use those two events at a time in ordinary reports.
but u can use in ALV reports.
2. If u want collect errors in call transaction.
Create an internal table(I_MSG) like BDCMSGCOLL and .
call transaction 'XK01' using (internal table name)
update 'A/S'
mode 'A/E/N'
messages into I_MSG.
then after that print I_MSG.(see the fields in BDCMSGCOLL).
regards,
srinivas
‎2006 Dec 15 8:33 AM
hi madhav,
we are not supposed to use both at a time.
in case of call transaction we have to query messages with that using i_msg call.It will be shown after u process and stops when error occurs
in case of session method it will produce error logs. u can see that in sm35.
thanks®ards
magesh
Message was edited by:
magesh anandan