Skip to Content
author's profile photo Former Member
Former Member

NAST_PROTOCOL_UPDATE - How to use?

Hi,

What data should be sent to Function Module NAST_PROTOCOL_UPDATE?

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.

I want to create a message in nast with the the success or not success status. What do I send?

Thanks,

John

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 18, 2008 at 12:39 AM

    after executing the PRINT you may call this FM.

    either pass the return values directly to this or build your own message to pass to this FM.

    Best example is to look into report RSNAST00.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Raj S

      I am sending data, but its not updating the NAST table

      Example:

      SY-MSGID = 'VN'.
        SY-MSGNO = '73'.
        SY-MSGTY = 'I'.
      
      * NAST error message
        CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
          EXPORTING
        MSG_ARBGB                    = sy-msgid
        MSG_NR                       = sy-msgno
        MSG_TY                       = sy-msgty

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 06:48 PM

    Hi,

    You should do the following..to update the messages ..

    1. Initialize

    CALL FUNCTION 'NAST_PROTOCOL_INITIALIZE'.

    2.

    * Update the messages.
          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
               EXCEPTIONS
                    OTHERS    = 0.

    3.

    * Update the messages to the database.
       CALL FUNCTION 'NAST_PROTOCOL_STORE'
            IMPORTING
                 MSG_CMFPNR         = NAST-CMFPNR
            EXCEPTIONS
                 NO_PROTOCOL_UPDATE = 01.

    4. Update the CMFPNR field with the value got from the function module in Step 3 in the table NAST-CMFPNR. This can be achieved using the function module RV_MESSAGE_UPDATE, which will update the NAST table..

    Thanks

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.