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 for sales order upload

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Hi,

You can try using BAPI. Use Business Object BUS2032 and method CREATEFROMDAT2.

Former Member
0 Kudos

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

Former Member
0 Kudos

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 .

Former Member
0 Kudos

Hello,

I’ am trying to upload sales orders (VA01) using BUS2032. I’ve create 3 source structures – Head, Item and Partner. My questions are:

- What field makes’s 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

Former Member
0 Kudos

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.