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

LSMW with bapi BAPI_REQUISITION_CREATE

Former Member
0 Likes
594

Hi

I'm creating an LSMW for create purchase requisition with Bapi (BAPI_REQUISITION_CREATE)

I'm trying to upload 2 items for a PR but the LSMW is creating 2 PR with each item.

How can I tell to the LSMW that I have to item for the same PR?

Remember this bapi doesn't has header.

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
453

Hi,

you need to define hierarchy in your in put file to merge required lines into one BAPI call. You can find some examples how to create order with multiple items (for example [this one|http://www.scribd.com/doc/6646673/Lsmw-With-Bapi]). So you can easily adapt it to your BAPI.

Cheers

1 REPLY 1
Read only

mvoros
Active Contributor
0 Likes
454

Hi,

you need to define hierarchy in your in put file to merge required lines into one BAPI call. You can find some examples how to create order with multiple items (for example [this one|http://www.scribd.com/doc/6646673/Lsmw-With-Bapi]). So you can easily adapt it to your BAPI.

Cheers