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: 

creating PO using LSMW

Former Member
0 Kudos

hi,

I am creating a PO using LSMW BAPI method. This Bapi is using internally using FM BAPI_PO_CREATE1.

I am uploading two files with one header and 3 items. PO is creating but with only one item.

I want to insert all the three items into the PO by 10,20,30...

I dont give any item numbers in flat file, automatically it should increment by 10 for each item.

my files looks like

=====================================================

OurRef | material | plant | and more

====================================================

ref1 | 101239 | A20 | .......

ref1 | 101240 | A20 |........

====================================================

Can any one suggest me what changes do i need to do in BAPI.

Thanks

3 REPLIES 3

JL23
Active Contributor
0 Kudos

how does your source structure look like?

is is just one structure, or isit a header structure with a subordinate structur for items (structures are not at the same level)?

How does your data look in the converted file? do you see there just one item or 3 items?

Former Member
0 Kudos

I have two source structures with header and item at sublevel. when I read the data I am getting one header and 3 items.In convert step also same.

JL23
Active Contributor
0 Kudos

Looks like this proofs the fact that you have to enter the item number yourself.