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

Processes in Inbound IDoc posting

Former Member
0 Likes
516

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!

3 REPLIES 3
Read only

Former Member
0 Likes
456

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?

Read only

0 Likes
456

Hi TSReddy,

Sorry if I forgot to include that detail... It's FI invoice..

Thank you for the input..

Read only

Former Member
0 Likes
456

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