8 Replies Latest reply: Sep 24, 2009 8:17 AM by Raymond Giuseppi RSS

Message_type_x short dump (MB_POST_GOODS_MOVEMENT)

aida de rosales
Currently Being Moderated

We have encountered program termination (message_type_x short dump)  in our customized program that's using BAPI_GOODSMVT_CREATE.

 

Short dump details:

 

Error analysis

    Short text of error message:

    No authorization for maintaining sales documents in P001 01 00

 

    Long text of error message:

     Diagnosis

         According to the settings in your user master record you do not

         have the authorization to execute this function.

     Procedure

         If you need this authorization, contact the person responsible for

         assigning authorizations.

         Authorization object: V_VBAK_VKO

 

    Technical information about the message:

    Message class....... "V1"

    Number.............. 515

    Variable 1.......... "P001"

    Variable 2.......... 01

    Variable 3.......... 00

    Variable 4.......... " "

 

 

Source code in which the program terminated:

 

CALL FUNCTION 'MB_CREATE_MATERIAL_DOCUMENT_UT'

        EXCEPTIONS

          error_message = 4.

  • As soon as we have started to put things into UPDATE TASK, we must

  • ensure that errors definitely terminate the transaction.

  • MESSAGE A is not sufficient because it can be catched from

  • external callers which COMMIT WORK afterwards, resulting in

  • incomplete updates. Read note 385830 for the full story.

   IF NOT sy-subrc IS INITIAL.

      MESSAGE ID sy-msgid TYPE x NUMBER sy-msgno WITH            "385830

                 sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  •     MESSAGE A263.

   ENDIF.

 

 

Although the program terminated, the transacted data were posted in the tables.

Is this authorization issue or patch-gui issue?

Need some help in analyzing what caused the short dump.

 

regards,

Aida

Actions