‎2008 Aug 13 2:44 AM
Hi guys,
I'm new with IDocs, and I have an object which requires Inbound IDoc posting..
Can you give me the possible steps/processes including the tcodes on how can I solve this object?
Please also include FMs that I might possibly used during my development.
I highly appreciate all your swift responses. Thanks!
‎2008 Aug 13 4:00 AM
Based on the application the Idoc posting differs and FM associated to the relevant IDOC should be used.
for ex: IDOC_INPUT_INVOIC_CREATE for MM Invoice posting and IDOC_INPUT_INVOIC_FI for posting FI Invoice, etc....
It would be possible to answer your qn. if we know the application.
As far as IDOCs are concerned, let us know what info. do u need?
‎2008 Aug 13 4:27 AM
Hi TSReddy,
Sorry if I forgot to include that detail... It's FI invoice..
Thank you for the input..
‎2008 Aug 13 4:30 AM
Hi Mel,
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,
Chandra Sekhar