‎2008 Mar 10 12:48 PM
Has anybody worked on IDOC inbound function module !
What is the meaning of the following steps !
IDOC_STATUS-DOCNUM = IDOC_CONTROL-DOCNUM.
IDOC_STATUS-STATUS = '51'.
IDOC_STATUS-MSGTY = 'E'
IDOC_STATUS-MSGID = ' ZE'
IDOC_STATUS-MSGNO = '007'
IDOC_STATUS-MSGV1 = IT_LIKP-vbeln.
APPEND IDOC_STATUS.
What are possible values for MSGTY,MSGID, MSGNO.....
What do they mean !
Edited by: Alvaro Tejada Galindo on Mar 10, 2008 7:18 PM
‎2008 Mar 10 12:56 PM
This is to set the IDoc status to a specific message. MSGID will exist in SE91.
‎2008 Mar 10 1:01 PM
"here nothing complicated ...
"status 51 means 'Application document not posted'
"in WE02 you can see this message
IDoc: 0000000000001254 Status: Application document not posted
IDOC_STATUS-DOCNUM = IDOC_CONTROL-DOCNUM. "IDoc number
IDOC_STATUS-STATUS = '51'. "stauts code
IDOC_STATUS-MSGTY = 'E' "error type
IDOC_STATUS-MSGID = ' ZE' "message class ID
IDOC_STATUS-MSGNO = '007' "message number in ZE
IDOC_STATUS-MSGV1 = IT_LIKP-vbeln. "document number or order number
APPEND IDOC_STATUS.
‎2008 Mar 10 1:09 PM
Hi,
First let me explain to you what does the status mean.Whenever an idoc(inbound or outbound) is posted,its status is updated in its status segment.The status segment shows us the current status of an idoc.Also the control segment contains the direction of the idoc(1 for outbound and 2 for inbound) and the idoc number which is generated.
In your case the status is shown as 51 which means that the inbound idoc is not posted successfully and contains some error.E represents that the message is an error message and the text of the message is got from the message id and message number from Transaction code SE91.
You can get the different status and their meaning if you search the forum e.e 51 is error,53 means posted successfully etc.
Hope it is useful.
Thanks,
Sandeep.
‎2008 Mar 10 1:30 PM
In se91 I am only getting information aboput status !
Where we will get the other information
like MSGTY,MSGID,MSGNO
What does it mean by STATUS-MSGTY = 'I'.?
‎2008 Mar 10 1:39 PM
Hi,
Message Id means the name of the message class, check the tcode SE91. Each message class has 1000 messages from 000 to 999, here we can define the text to each message and display those as per requirement. The next one is Message type(MSGTY), we have different kinds of messages in ABAP like I(Information), S(success), E(Error), A(Abend) and W(Warning). Based on the message type the message displays in different ways like for Information and Warning the messaes are displayed in Popup screen. The error and Success messages are displayed in Status bar and so on...
Rgds,
Bujji
‎2008 Mar 10 1:55 PM
Based upon the condition you have before these statement this Error message will be appear in the Idoc
You can check the message in transaction SE91, message type ZE and message number 007.