Hi Guys,
I have created a LSMW which creates Idoc through BAPI structure .
It works fine for creating one po but I need help in setting up the upload files to create multiple PO.
Source Fields
POHEADER PO header Data
IDENTIFIER C(010)
Identifing Field Content: H
LIFNR C(010) Vendor
EKORG C(004) PO ORG
EKGRP C(003) PO GROUP
BUKRS C(004) Company Code
-POITEM PO ITEM DATA
IDENTIFIER C(010)
Identifing Field Content: H
EBELP N(005) Item No.
KNTTP C(001) Account Assignment Category
MATNR C(018) MATERIAL NO
MENGE C(013) QUANTITY
NETPR C(011) PRICE
WERKS C(004) PLANT
DELDATE C(008) DELIEVERY DATE
KOSTL C(010) Cost Center
Structure Relations
E1PORDCR Header Segment <<<< POHEADER PO header Data
E1BPEKKOC Create Transfer Structure: PO Header <<<< POHEADER PO header Data
E1BPEKKOA Transfer Structure: PO Header Additional Data
E1BPADDRESS BAPI Transfer Structure for Addresses
E1BPADDRES1 BAPI Transfer Structure for Addresses 1
E1BPEKPOC Transfer Structure: Create/List - PO Item <<<< POITEM PO ITEM DATA
E1BPEKPOA Transfer Structure: PO Item Additional Data
E1BPEKET Transfer Structure: Display/List PO Schedule <<<< POITEM PO ITEM DATA
E1BPEKKN Transfer Structure: Display/List: PO Account Assignment <<<< POITEM PO ITEM DATA
Mapping
PO HEADER
H 0000117492 8000 903 8002
PO LINE ITEM FILE
H 00010 K 000000000003000273 1 100 A100 20130830 8002102102
H 00020 K 000000000003000033 2 200 A100 20130830 8002102102