‎2007 Aug 09 2:12 PM
Hi Experts,
I have requirement where if some conditions in smartform print prgram are not met, then the status of corresponding output record must be RED and a error LOG should be maintained. So i used NAST_PROTOCOL_UPDATE FM as below:
SYST-MSGID = 'VN'.
SYST-MSGNO = '096'.
SYST-MSGTY = 'E'.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
msg_arbgb = syst-msgid
msg_nr = syst-msgno
msg_ty = syst-msgty
msg_v1 = syst-msgv1
EXCEPTIONS
message_type_not_valid = 1
no_sy_message = 2
OTHERS = 3.
In this case the Error log is maintained, but the status of output record is displayed as green.
Can somebody give me a solution so as to switch the status of output record also to red?
‎2007 Aug 10 9:32 AM
when u calling this FM in ur Driver Progam , then u have to put sy-subrc eq 4, then only u can get .
regards
Peram
‎2007 Aug 10 9:32 AM
when u calling this FM in ur Driver Progam , then u have to put sy-subrc eq 4, then only u can get .
regards
Peram
‎2007 Aug 10 9:46 AM
You can change the status to red by passing "Ë" to the "MSG_TY" parameter when calling function module "NAST_PROTOCOL_UPDATE".
if not try setting the return code to 4
do not forget to reward if hepful
Message was edited by:
vamsi reddy
Message was edited by:
vamsi reddy