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_SINGLE

Former Member
0 Likes
1,827

Hi,

Iam using the function module idoc_inbound_single to post the idoc in the same system.How can i fill the control record .Also tell me how to take care of errors.

Hi,

Iam using the function module idoc_inbound_single to post the idoc in the same system.How can i fill the control record .Also tell me how to take care of errors.

4 REPLIES 4
Read only

Former Member
0 Likes
1,055

IDOC Mapping->

http://help.sap.com/saphelp_crm40/helpdata/en/6b/c4ca7dbeaf2743bf7efc61d7e677ef/content.htm

IDOC_INBOUND_SINGLE ->

IDOC_INBOUND_SINGLE (4.x mode) single IDoc per call

http://www.erpgenie.com/sapedi/idoc_abap.htm

<b>Reward points if it helps,</b>

Satish

Read only

Former Member
0 Likes
1,055

any clues

Read only

Former Member
0 Likes
1,055

How can i handle the errors and what is the data to be passed to the control record

Read only

Former Member
0 Likes
1,055

Hello,

*Get the logical system from T000 table based on client no

SELECT logsys

UP TO 1 ROWS

FROM t000

INTO L_LOGSYS

WHERE mandt = sy-mandt .

ENDSELECT.

x_edidc-mandt = sy-mandt. "Client

x_edidc-direct = '2'. "As inbound

x_edidc-idoctyp = 'DESDAV'. "Populate your Idoct type

x_edidc-mestyp = 'MESSAGETYPE'. "Populate Message Type

x_edidc-mescod = 'ES1'. "Message Code

x_edidc-sndprn = L_OGSYS "Logical system

x_edidc-sndprt = 'LS'. "Sender partner

x_edidc-sndpor = 'TRFC'. "Sender Port

x_edidc-rcvprn = L_LOGSYS "Receiver Partnner

x_edidc-rcvprt = 'LS'. "Receiver Port

Here Sender and Receir is same thats why Partner is same.

Thanks,

Pramod