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: 

NAST-STAT field not updating even after print.

asif_ali2
Explorer
0 Kudos

Hi All,

The field NAST-STAT is not changing from 0 to 1 even after printing the delivery form.

please help me with suitable code to update the status field to 1 when printing is done for the delivery note.

3 REPLIES 3

Former Member
0 Kudos

Check your return code in the Perform

or u can use UPDATE statment and update the nast table

Former Member
0 Kudos

or use RV_MESSAGE_UPDATE

former_member191735
Active Contributor
0 Kudos

You should have it already in the print program in protocol_update subroutine. if not, use nast_protocol_update after returning from form function module.

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.