We have encountered program termination (message_type_x short dump) in our customized program that's using BAPI_GOODSMVT_CREATE.
Short dump details:
Short text of error message:
No authorization for maintaining sales documents in P001 01 00
Long text of error message:
According to the settings in your user master record you do not
have the authorization to execute this function.
If you need this authorization, contact the person responsible for
Authorization object: V_VBAK_VKO
Technical information about the message:
Message class....... "V1"
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'
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.
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.
The system try to update a sales order document (related to the goods movement) and user seems
not to be allowed to the sales organization P001.
SU21 - V_VBAK_VKO is "Billing: Authorization for Sales Organizations" and check activity vs Sales organization
In error message - dump
- VKORG Sales organization is P001
- TWEG Distribution channel is 01
- SPART Division is 00
First try to check if the user have proper autorizations or not.
you can do this by recreating te entire scenario. after you encounter short dump, execute the SU51. there you can find if user is missing some roles.
If user is missing then you can request basis to add roles to that user id.
Porpbaly the user might be haing partial autorization to post the material document and he may not have autorizations to update the sales document for the company code you specified.
Edited by: kiran Pasala on Sep 24, 2009 5:08 AM
This message should have been an A-Abend message to rollback update of data, but the commentary suggests that SAP got some problems with it and convert it to a X-dump message, first try to find and apply any available notes in OSS for your version of SAP. (check the program names in the stack in the dump to find notes)
Start with those old notes (sample)
- [Note 385830 - Inconsistencies with goods movements in the background|https://service.sap.com/sap/support/notes/385830]
- [Note 556000 - Short dump due to note 385830|https://service.sap.com/sap/support/notes/556000]