05-16-2007 3:39 PM
Hi,
i have the control and sdata in my internal table and i need to pass these to some fm which can create inbound IDoc for me...whats the way out?
does just passing sdata to my segment will create the IDOC?
Regards
Gunjan
05-16-2007 3:43 PM
Hi,
You can use FM IDOC_INBOUND_WRITE_TO_DB to create an inbound IDoc.
...
CALL FUNCTION 'IDOC_INBOUND_WRITE_TO_DB'
EXPORTING
PI_STATUS_MESSAGE = I_EDIDS
IMPORTING
PE_IDOC_NUMBER = DOCNUM
PE_STATE_OF_PROCESSING = STPROC
PE_INBOUND_PROCESS_DATA = I_TEDE2
TABLES
T_DATA_RECORDS = I_EDIDD
CHANGING
PC_CONTROL_RECORD = I_EDIDC
EXCEPTIONS
IDOC_NOT_SAVED = 1
OTHERS = 2.
...
Regards,
Ferry Lianto
05-16-2007 9:52 PM
Hi,
Check the following link:
http://www.sapbrain.com/TUTORIALS/TECHNICAL/IDOC_tutorial.html
Regards,
Bhaskar
05-17-2007 8:08 AM
Hi Gunjan,
IDOC_INBOUND_WRITE_TO_DB creates an inbound IDoc.
Regards,
Younus
<b>Reward Helpful Answers!!!</b>