2006 Aug 09 2:09 PM
Hi..
I want to raise an error message in case of Inbound IDC processing.
I have coded as below:
FORM ZRAISE_IDOC_ERROR_IN2
TABLES XIDOC_STATUS STRUCTURE bdidocstat
USING DOCNUM LIKE EDIDC-DOCNUM
XMSGV1 LIKE BDIDOCSTAT-MSGV1.
XIDOC_STATUS-docnum = DOCNUM.
XIDOC_STATUS-status = '51'.
XIDOC_STATUS-msgid = 'WHSDHL'.
XIDOC_STATUS-msgty = 'E'.
XIDOC_STATUS-msgno = '999'.
XIDOC_STATUS-msgv1 = XMSGV1.
APPEND XIDOC_STATUS.
COMMIT WORK.
My error message is appearing but not in the IDOC Display part of the screen WE02.
What I mean is that I can very well see th error number 51 in the IDOC STATUS but I need to double click to the status to see the error message. After double clicking I need to go to the status details tab of the screen to see my message.
I want my message to be displayed in the first screen itself.
Hi..
I want to raise an error message in case of Inbound IDC processing.
I have coded as below:
FORM ZRAISE_IDOC_ERROR_IN2
TABLES XIDOC_STATUS STRUCTURE bdidocstat
USING DOCNUM LIKE EDIDC-DOCNUM
XMSGV1 LIKE BDIDOCSTAT-MSGV1.
XIDOC_STATUS-docnum = DOCNUM.
XIDOC_STATUS-status = '51'.
XIDOC_STATUS-msgid = 'WHSDHL'.
XIDOC_STATUS-msgty = 'E'.
XIDOC_STATUS-msgno = '999'.
XIDOC_STATUS-msgv1 = XMSGV1.
APPEND XIDOC_STATUS.
COMMIT WORK.
My error message is appearing but not in the IDOC Display part of the screen WE02.
What I mean is that I can very well see th error number 51 in the IDOC STATUS but I need to double click to the status to see the error message. After double clicking I need to go to the status details tab of the screen to see my message.
I want my message to be displayed in the first screen itself.
2006 Aug 09 2:15 PM
hi,
if u juz expand teh status records and tehn further expand teh '51' u can very well c teh message on ur intial scrren only, no need of double clikcing rt??
theja.
2006 Aug 09 2:21 PM
Yes Thejaswi..
but the point is that I can't see it in the first screen itself.Thats the reason I need to double click to the status number to see the complete message.
But with other message it comes on the first screen itself.
Thanks
2006 Aug 09 2:22 PM
Hi Subhash,
under status node you can see the Staus details clearly with status number etc. what is the problem you are facing.
Regards
vijay
2006 Aug 09 2:36 PM
Hi Vijay.
I will explain you in detail..
When I click on my status node I get numbers
51
62
64
50
74
The first 51 number has one more node attached to it which on double clicking will give us the text.
nI the second status of again 51 there is no node attached to it because of which I am unable to see the long text of the error message, which further compels me to double click on it to see the text.
I want it to replicate it in exactly the same manner as the first 51 number comes ie. a node should appear with my err message also.
thnks
2006 Aug 09 2:23 PM
Hi,
pass your own error text to these variables.
idoc_status-msgv1 = 'error'.
idoc_status-msgv2 = 'error occured'.
idoc_status-msgv3 = 'error occured'.
idoc_status-msgv4 = 'error occured'.
then If you select any error IDOC's (51 status) in WE02 , under ALV grid there are two fields with header 'status notification for sel.IDOC'.
here you can see two (error) messages
1.IDoc: 000000000XXX Status: Application document not posted
2.error text (ex: IDOC xxx failed due to xxxx error)
Regards
Appana
2006 Aug 09 2:29 PM
Check you are passing correct message ID WHSDHL and message number 999.
Regards
Sridhar
Message was edited by: Sridhar K
2006 Aug 09 2:37 PM
I believe you should be inserting your error into the EDIDS table.
2006 Aug 09 2:40 PM
Hi Sridhar.
I checked it
My message ID doesnt exist in the system .
Now my question is what message ID to use ?
Thanks
2006 Aug 09 2:43 PM
That's the reason extra node is not displayed, find appropriate message in the message id used by the application or use ID 00, number 398.
Use B1 519 instead of 00 398.
Regards
Sridhar
Message was edited by: Sridhar K
2006 Aug 09 2:52 PM
Hi Sridhar..
Thanks for your ultimate solution:-)
Its working now.
But I am still not clear with the thing that why the node was not appearing when you have not defined a message ID?
Thanks
2006 Aug 09 2:58 PM
The extra node displays the message of the id and number you are passing in the status record, if the id or number doesn't exist, there's no message to show.
When you double click on the status 51 it's showing the message you have assigned to status-msgv1 field.
Regards
Sridhar
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |