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

Update NAST

Former Member
0 Likes
4,482

Hi, i'm working with tx vl02n, and it uses YDELV_NOTE program to print delivery notes (the smartform is YDEL_NOTE), it works perfect and it updates NAST table, now, when I try to print the same delivery note, with an Y (Y_REPRINT_DNOTE) program calling YDELV_NOTE to print the samrtform, delivery note is printed perfect but it does not update NAST table.

What am I doing wrong?

Hi, i'm working with tx vl02n, and it uses YDELV_NOTE program to print delivery notes (the smartform is YDEL_NOTE), it works perfect and it updates NAST table, now, when I try to print the same delivery note, with an Y (Y_REPRINT_DNOTE) program calling YDELV_NOTE to print the samrtform, delivery note is printed perfect but it does not update NAST table.

What am I doing wrong?

10 REPLIES 10
Read only

Former Member
0 Likes
3,036

Hi,

You need to update the program to update this in the NAST.Just debug & find out where the program is updating the NAST table & make the changes.

Read only

Former Member
0 Likes
3,036

I use call function 'NAST_PROTOCOL_UPDATE', but it does not work. Maybe am I using it wrong?

Read only

0 Likes
3,036

I would expect NAST_PROTOCOL_UPDATE to work, can you post the code / error that you are getting.

Regards,

Ravi

Read only

Former Member
0 Likes
3,036

I se the code:

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.

when the function finished I get SY-SUBRC = 0, so, I have no errors and no NAST update....

Read only

0 Likes
3,036

I guess this is a part of the standard message processing code.

Regards,

Ravi

Read only

0 Likes
3,036

Nast_protocol_update would log the messages that are encountered in the flow of the print program and it will not update the nast table.

If you use the nast_protocol_update fm anywhere, you can find the log of messages as we see them when we press the error log button in the output type screen application toolbar.

Regards,

Ravi

Read only

Former Member
0 Likes
3,036

Hi Silvia,

Please use this FM to update NAST.

<b>RV_MESSAGE_UPDATE_SINGLE</b>

FM NAST_PROTOCOL_UPDATE is used to store processing log.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
3,036

I used the functions, but they don't insert a record on NAST table....I need more help with this problem.

Any ideas?

Thanks!

Read only

0 Likes
3,036

do a direct NAST update..

I dont see any reason why u cant..

Read only

Former Member
0 Likes
3,036

Hi Silvia,

Did you populate the parameter correctly for FM RV_MESSAGE_UPDATE_SINGLE?

This should work.

Regards,

Ferry Lianto