ABAP Dump when&n…

来源:互联网 发布:wireshark过滤端口抓包 编辑:程序博客网 时间:2024/04/26 17:32
原文地址:Dump when VA02 to change sale order">ABAP Dump when VA02 to change sale order作者:sap侠之大者
Today user submits a issue to our support team. There is ABAPDump when save the delete operation to one SO, but other operationof SO can be saved correctly. The keywords as follows:  
"DYNPRO_MSG_IN_HELP" " "
"SAPMV45A" or "MV45AFZZ"
"USEREXIT_SAVE_DOCUMENT_PREPARE"
The program attempted to issue a " " message during "ExitCommand" processing.

we find more than one thousands code in user-exitUSEREXIT_SAVE_DOCUMENT_PREPARE, and there are several statementlike MESSAGE ......TYPE 'E' . So, maybe it caused by these messagetype ERROR. But user says the Message display function works wellfor more than one year, and we are confused, why raise a dump?
after debug the standard program of VA02, we find it will calla AT EXIT-COMMAND PAI module when save the delete operation.and inthis module it will call USEREXIT_SAVE_DOCUMENT_PREPARE and triggera Message type E , this is the point. it is forbidden to display anERROR message in AT EXIT-COMMAND module, otherwise it will raise adump like 'DYNPRO_MSG_IN_HELP The program attempted to issue a " "message during "Exit Command" processing.'
according to this analysis, we try to move the code related touser-exit USEREXIT_CHECK_VBAP, and it works.
as we know, it must not to display message type E inUSEREXIT_SAVE_DOCUMENT , also, we have these remark:
1It is not recommended display message type E inUSEREXIT_SAVE_DOCUMENT_PREPARE, the best location is routines forcheck, like USEREXIT_CHECK_VBAP, USEREXIT_CHECK_VBAK etc..
2we should test scenario as many as possible,exitt/enhancement especially 
0 0
原创粉丝点击