‎2008 Jul 03 4:11 AM
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."
‎2008 Jul 03 4:16 AM
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
‎2008 Jul 03 3:28 PM
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.
‎2008 Jul 03 4:06 PM
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