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

NAST_PROTOCOL_UPDATE??

Former Member
0 Likes
3,551

HI.

CAn anyone please tell me the function of teh FM NAST_PROTOCOL_UPDATE?

I mean what exactly does this FM do?

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
1,778

Normally FM NAST_PROTOCOL_UPDATE updates the Log for Outputs.

If you have used this FM in your Program you can get your Spool No. for PO, Invoice etc. from Table CMFP.

CMFP-MSGV1 is the Spool Number and CMFP can be accessed by using APLID = 'WFMC' and NR = NAST-CMFPNR and MSGTYP = 'W'.

You can also hardcode CMFPARBGB and CMFPMSGNR if you know the Application (For eg. ARGB = 'ME' and MSGNR = '320' for PO, ARGB = 'VN' and MSGNR = '342' for Invoice etc.).

Read only

nishanthbhandar
Contributor
0 Likes
1,778

This FM fills the message table NAST.This FM is used when a form is called to collect user messages or an entry in the associated protocol.

Read only

sridharreddy_kondam
Active Contributor
0 Likes
1,778

Hi Subhash,

This FM is used to log individual processing step within application. Once logged, you can display the processing status via the processing log.

All the business documents are printed using SMART FOrms / scripts using the MESSAGE OUTPUT DETERMINATION Procdure at the configuration level. So, when a document is created / changed, there is a entry made in the NAST table, once the system has process the message the entry will have to be updated in the NAST table with the processing details, which is exactly done by the NAST_PROTOCOL_UPDATE function module

Please check this links for more information and sample code.

http://help.sap.com/saphelp_46c/helpdata/en/c8/19894b43b111d1896f0000e8322d00/content.htm

http://www.logosworld.biz/www5/mySap/PDF/Book_06.pdf

Regards,

Sridahr