2007 Oct 31 11:59 AM
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.
2007 Oct 31 12:06 PM
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
2007 Oct 31 12:23 PM
2007 Oct 31 1:12 PM
How can i handle the errors and what is the data to be passed to the control record
2007 Nov 06 11:55 AM
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