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: 

LSMW Upload of Purchase Requisition MM

former_member317731
Participant
0 Kudos

Hi Experts,

I have a quick requirement to create a LSMW project for creating the PR(Purchase Requisition) in the SAP system from a legacy data by means of uploading.

I want the data of the header and item to be uploaded in one go. I searched the forums and came to know that

we can use batch input but the problem is that it will upload one by one which does not suffice my requirement.

Please suggest me how to achieve this.

Thanks and Best Regards,

Sahil

6 REPLIES 6

JL23
Active Contributor
0 Kudos

Header and item is always loaded in one go. I have never seen an object in SAP migration where you load header and items individually.

SAP says in FAQ note 499627 - FAQ: BAPIs for purchase requisitions

Can I use the BAPI BAPI_REQUISITION_CHANGE to add new items?

Answer:

No.

However, we can create a BAPI that has this function for you.

This takes one to three days depending on the features, and is subject to charge.

...but this is for BAPI_REQUISITION_CHANGE , when you create requistions you usually use BAPI_REQUISITION_CREATE. so give it a tryto see if you can load several item to one PR.

if it does not work with the BAPI, then record the old ME51 transaction (ME51N is not suitable for batch input)

Former Member
0 Kudos

Hi Sahil,

In step1 use select DI Program method 0080.

In step 2 we have to create Structure in that step create two structures(header and Item)

In step 3 create each structure First field as Identifying Field Content(lets say Suppose for header 'H' and Item 'I')

This Identifying field content will be set when we are creating individual field

In step 7 you have to select option radio button option 'Data for Multiple Source Structures"

In file, Place First Field value as what ever mentioned in step3 (header data 'H' ,for Item data 'I' )

(

H <header data>

I <Item Data>

I <Item Data>

I <Item Data>

H <header data>

I <Item Data>

I <Item Data>

)

I hope this information is useful for You

Regards,

Raghava Channooru.

0 Kudos

Hi Both,

Thank you so much for responding to my query.

But Actually the requirement is slightly different. I need to upload the Purchase requisition (Header and Item) along with the Material Characteristics using LSMW.

I have three data files:

1. Purchase Requisition Header

2. Purchase Requisition Item

3. Material Characteristics.

Is it possible to achieve this through LSMW or there is some other work around.

Please suggest .

Thanks and BR,

Sahil

JL23
Active Contributor
0 Kudos

what has the material characteristic to do with the requisition ?

what class type are you using? Are you talking about variants?

0 Kudos

Hi Jurgen,

Thanks for the reply.

In Transaction ME51N, for a material, there are some configuration, where we specify the material characteristics like specification, length,density etc against a PR number.

Since we use the configurable material, in the purchase requisition item users have to specify the material characteristics. The material characteristics depend on the class of material.

Yes, I am talking about the variants and using class type = 300.

Please suggest.

Thanks & BR,

Sahil

former_member317731
Participant
0 Kudos

Hi Experts.

Any update on this....Please suggest

Thanks and BR,

Sahil