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 using bapi as import method*

Former Member
0 Likes
517

Hi,

I am trying to load data to the sap system using LSMW with BAPI, where the Business Oject : BUS2012 ( purchase order)

and method is createfromdata.

Here i have a single text file which has the required header data and line item data for the purchase order.

My question is: "In the Assign Files step : while i am trying to assign file to the header structure and line item structure it is not allowing me to assign the same text file to both structures , I am getting an error saying that the text file can only be assigned to only one source structure."

3 REPLIES 3
Read only

Former Member
0 Likes
487

Hi Madhu,

WELCOME TO SDN!!!

Please check this link

Using BAPI in LSMW

http://www.saptechnical.com/Tutorials/LSMW/BAPIinLSMW/BL1.htm

Best regards,

raam

Read only

0 Likes
487

Hi raam,

Thank for the response.

Actually, i tried it with using the same example if you see step 21 in this example the author is assigning the same text file to both the header and line item but when i am trying to do that it is giving me the error "saying that the text file can only be assigned to only one source structure".

Note: Here is my sample txt file.

IDENTIFIER VENDOR PURCHORG PURCHGRP

H 100001 0001 001

IDENTIFIER MATERIAL QUANTITY PRICE MATERIALGRP PLANT DELDATE

I A 50 1000 YAS1 20071010

Thank you,

Madhu.

Read only

Former Member
0 Likes
487

Hi,

In specify file step

there will be two radio buttons

1) Data for one source structure

2) Data for multiple source structures

select the second one and continue

Thanks,

Rajinikanth