2008 May 29 10:02 AM
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
2008 May 29 10:06 AM
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.
2013 Feb 25 12:39 PM
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