Application Development and Automation 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: 
Read only

creating PO using LSMW

Former Member
0 Likes
720

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

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
Read only

JL23
Active Contributor
0 Likes
666

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?

Read only

Former Member
0 Likes
666

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.

Read only

JL23
Active Contributor
0 Likes
666

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