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

NAST_PROTOCOL_UDPDATE

Former Member
0 Likes
960

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
686

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

2 REPLIES 2
Read only

Former Member
0 Likes
687

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

Read only

Former Member
0 Likes
686

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