Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Home arrow Sample Code arrow IDocs / BDocs arrow Creating an inbound IDoc
Creating an inbound IDoc PDF Print E-mail
User Rating: / 4
PoorBest 
Written by Kevin Wilson   
Tuesday, 13 February 2007

Short ABAP to create an IDoc structure and calling INBOUND_IDOC_PROCESS to process it.

 

* Creating records

clear e1edp20.

idocdata-segnam = 'E1EDP20'.

e1edp20-edatu = ie020-sched_deliv_date.

e1edp20-wmeng = ie020-sched_qty.

idocdata-sdata = e1edp20.

 

idocdata-tabnam = idocdata-segnam.

seg_num = seg_num + 1.

idocdata-segnum = seg_num.

shift idocdata-segnum left deleting leading space.

append idocdata.

clear idocdata.

 

* Once IDoc detail is created

  CALL FUNCTION 'INBOUND_IDOC_PROCESS'

    TABLES

      IDOC_CONTROL       =  iedidc

      IDOC_DATA          =  idocdata.

 

  commit work.


Related Items:

 
< Prev

Google Search

Google Ads