Application Development 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: 

how to update output type processing status

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

Check in standard driver it must be using nast _protocol_update

10 REPLIES 10

Former Member
0 Kudos

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.

nabheetscn
Active Contributor
0 Kudos

Check in standard driver it must be using nast _protocol_update

0 Kudos

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

0 Kudos


Hi,

After updating message using 'NAST_PROTOCOL_UPDATE'. If there is error  , set sy-subrc to 4.

Regards,

DPM

0 Kudos

thanks

set sy-subrc = 4 didn't help

0 Kudos

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

0 Kudos

thanks. there is a return parameter in which I set the value and it worked.

Former Member
0 Kudos

have you tried this FM : check the inside code

RV_MESSAGE_SET_PROCESS_STATE

0 Kudos

Yes, I passed the current nast entry but it sent back the exception no_update though in the return tale entry was updated.

0 Kudos

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.