01-18-2014 10:19 AM
Hi,
I have a output put type which triggers upon PGI with special function. The processing routine of this output type runs under update program hence cannot issue error messages.
I have done the exception handling indide the routine. I also want to update the processing status of the output type. I tried this by passing '2' to nast-vstat but did not work as it gets overwritten.
Thanks in advance
01-18-2014 11:23 AM
01-18-2014 10:36 AM
I think you can try with the blow update function module
RV_MESSAGE_SET_PROCESS_STATE
or
You have to use Protocol Update!
example!
perform protocol_update
call function 'NAST_PROTOCOL_UPDATE'
exporting
msg_arbgb = syst-msgid
msg_nr = syst-msgno
msg_ty = syst-msgty
msg_v1 = syst-msgv1
msg_v2 = syst-msgv2
msg_v3 = syst-msgv3
msg_v4 = syst-msgv4
exceptions
others = 1.
01-18-2014 11:23 AM
01-18-2014 11:57 AM
I have used the same to update the log for the output type processing and have updated the error message but still processing status comes as complete
01-18-2014 12:01 PM
Hi,
After updating message using 'NAST_PROTOCOL_UPDATE'. If there is error , set sy-subrc to 4.
Regards,
DPM
01-18-2014 12:14 PM
01-18-2014 12:24 PM
Hi
Kindly check the code in any standard print program and look at form "ENTRY" . See the logic. It will help to resolve the issue. How they are setting sy-subrc value?
Regards,
Debopriyo
01-18-2014 12:36 PM
thanks. there is a return parameter in which I set the value and it worked.
01-18-2014 12:22 PM
have you tried this FM : check the inside code
RV_MESSAGE_SET_PROCESS_STATE
01-18-2014 12:31 PM
Yes, I passed the current nast entry but it sent back the exception no_update though in the return tale entry was updated.
01-18-2014 12:38 PM
Hi
I have found this in standard program can you try
call function 'RV_MESSAGES_UPDATE'
exporting
msg_kappl = field_app "lwavicon: applikation
msg_no_update_task = 'X'
* MSG_OBJKY = ' '
exceptions
others = 1.
if not sy-subrc is initial.
message e532.
endif.