Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDOC inbound function module!

Former Member
0 Likes
1,086

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

6 REPLIES 6
Read only

Former Member
0 Likes
886

This is to set the IDoc status to a specific message. MSGID will exist in SE91.

Read only

Former Member
0 Likes
886

"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.
 
Read only

Former Member
0 Likes
886

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.

Read only

0 Likes
886

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'.?

Read only

Former Member
0 Likes
886

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

Read only

Former Member
0 Likes
886

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.