Application Development 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: 

Inbound function module for custom IDOC

Former Member
0 Kudos

HI,

I have created custom IDOC.I need to create inbound function module for that custom IDOC.Can any one send me sample

function module for custom IDOC.(what are all the import Export,tables parameters and exceptions that I need to create for function module)

Thanks&Regards

Rama.Mekala

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please find the code from the link:

He has mentioned creating a custom idoc and at last mentioned creating inbound FM.

[http://saptechnical.com/Tutorials/ALE/DataDistributeCustomIDOC/page3.htm]

Hope this solves the problem.

Reward points if helpful.

Thanks and Regards.

Former Member
0 Kudos

HI Rama,

I presumed that You are talking about a FM to create inbound IDOC. So for creating inbound IDOC you can use '

    CALL FUNCTION 'IDOC_INBOUND_ASYNCHRONOUS'
    TABLES
      idoc_control_rec_40 = gt_edidc
      idoc_data_rec_40    = gt_edidd.
  IF sy-subrc NE 0.
*    MESSAGE e000 WITH text-003.
*  ELSE.
*    MESSAGE i000 WITH text-004  .
  ENDIF.

just prepare edidc and edidd record in and pass it to the FM..
Hope this will work for you...


Thanks