2006 Feb 10 6:33 AM
Dear Friends,
I am trying to upload sales order data using transaction VA01 by Batch Input Recording method in LSMW. But I am not able to get line items due to the fact that I am not able to assign two source structures. So i am trying to upload by Abap Coding in LSMW. But still I am not able to get the Item Data. So Kindly help me in this.
With Regards,
H.Krishnan
2006 Feb 10 6:39 AM
U need to have 2 target structures in LSMW.
Map this to file structures and then post.
Thanks & Regards,
Ankur
Message was edited by: Ankur Jain
2006 Feb 10 6:47 AM
Dear Ankur,
But i am able to assign 2 target structures only in direct input method and not by batch input recording method. so kindly tall me if there is any other method since I am not able to assign target structures for Item data and even if it is so I am not able to upload multiple item data.
With REgards,
H.Krishnan
2006 Feb 10 12:13 PM
Hi,
You can try using BAPI. Use Business Object BUS2032 and method CREATEFROMDAT2.
2006 Feb 10 12:38 PM
use the first method (Direct Input)
Object : 0090 (Sales)
Method : 0000
Programname: RVINVB10
In structure relations u can find header and line itemas.
before that define 2 structures.
===================================================
After creattion of one structure..
again click on create button> now it will ask samelevel/lowerlevel..give ur option>then u can add the fields in the next step.
-
pls.reward if it helps u and close this thread
Thanks
Eswar
Message was edited by: Eswar Kanakanti
2006 Feb 10 12:46 PM
Hey man u can assign two structures in lsmw .
go with lsmw recording there u can have two recordings and assign two structures for those recordings .kindly proceed like that.i just completed one like that for IM01 and PA30 transaction .kindly revert for any clarification .
2006 Feb 14 10:13 AM
Hello,
I am trying to upload sales orders (VA01) using BUS2032. Ive create 3 source structures Head, Item and Partner. My questions are:
- What field makess the connection between the 3 structures?
- There is any field in Item level to upload WBS Element? I only find it in Head level.
Tanks
Nuno Abrantes
2006 Feb 14 11:24 AM
Hi,
The best thing that you can do is create 3 structures and maintain a field in each structure which will act either as primary key or a reference key. In this way, u will be able to maintain relation between these structures.
But what you need to consider here is, dont maintain fields (other than the primary and foreign keys) with the same name in the 3 structures( avoid it as far as posible ) and map the 3 structures to the BAPI segments based on whether it is for header or item or for the partner profiles.
Hope this answers, if u r still facing problems, revert with it.