‎2006 Jun 23 6:11 AM
HI.
CAn anyone please tell me the function of teh FM NAST_PROTOCOL_UPDATE?
I mean what exactly does this FM do?
Thanks
‎2006 Jun 23 6:19 AM
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.).
‎2006 Jun 23 6:20 AM
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.
‎2006 Jun 23 6:26 AM
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