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_PROTOCOL_UPDATE

Former Member
0 Kudos

Hi,

I just want to know what the FM NAST_PROTOCOL_UPDATE does and when should I use it.

Points will be rewarded.

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Hope this will help you.

Pls reward if help.

This Function modules are generally used in the Print programs(or the driver programs) that are attached to a Output type in a transaction.

So, in that Print program, If you have written it,use this FM by passing the values of the messages (Msd id's etc) to this FM. This will update the log for that Output.

But I don't know if you can chage it from outside that driver program.

This is a sample usage of the FM

CALL FUNCTION 'NAST_PROTOCOL_UPDATE'

EXPORTING

MSG_ARBGB = SY-MSGID

MSG_NR = SY-MSGNO

MSG_TY = SY-MSGTY

MSG_V1 = SY-MSGV1

MSG_V2 = SY-MSGV2

MSG_V3 = SY-MSGV3

MSG_V4 = SY-MSGV4

EXCEPTIONS

OTHERS = 1.

One thing you can do, is create a new driver program and output type for the IDoc and pass the forced messages to the FM.

2 REPLIES 2

Former Member
0 Kudos

Hi

Hope this will help you.

Pls reward if help.

This Function modules are generally used in the Print programs(or the driver programs) that are attached to a Output type in a transaction.

So, in that Print program, If you have written it,use this FM by passing the values of the messages (Msd id's etc) to this FM. This will update the log for that Output.

But I don't know if you can chage it from outside that driver program.

This is a sample usage of the FM

CALL FUNCTION 'NAST_PROTOCOL_UPDATE'

EXPORTING

MSG_ARBGB = SY-MSGID

MSG_NR = SY-MSGNO

MSG_TY = SY-MSGTY

MSG_V1 = SY-MSGV1

MSG_V2 = SY-MSGV2

MSG_V3 = SY-MSGV3

MSG_V4 = SY-MSGV4

EXCEPTIONS

OTHERS = 1.

One thing you can do, is create a new driver program and output type for the IDoc and pass the forced messages to the FM.

0 Kudos

Hi,

Thanks.

Additional question. Can't I use the ordinary 'MESSAGE e000 WITH TEXT' statement in a print program? Points will be awarded after this.