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

Former Member
0 Likes
601

Hi All,

I need to uplaod the data for PO using LSMW, m confused abt the file stucture in order to diffirenciate between header data and item details data, how thy both are linke while desining the file.

Pls help me...........

rgrds

shazia

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
573

Hi Shazia,

In Step :7, while Uploading the legacy file you need to select "Data For Multiple Source Structures " instead of one Source structure.

i think this is the exact solutioon to your Problem..

Reward if useful.

Regards,

Shobha.

4 REPLIES 4
Read only

Former Member
0 Likes
573

Hi khan,

LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.

check that single charecter field, if that is X that means the header record is processed, and do the items.

and, this is another way, try this out also

YOu can do this in "Define Source Structures" step,

the HEADER is defined first,

then the DETAIL below the HEADER.

add the fields to the structures.

Both should have some common key field

Please take care that the name of the common field is the same.

Once you do this it is linked. Then you have a header and item corresponding to that header. then run the LSMW as you would.

Reward points if helpful.

Thanks

Naveen khan

Read only

0 Likes
573

Hi Naveen,

Do you have any idea how to assign same file in step 8 of LSMW,

I need to assign same file to both Header and Item. when i am trying to assign it give the following error

"File 'C:\Documents and

Settings\shazia_khan\Desktop\test' can only be

assigned to one source structure."

thnx & rgrds

shazia

Read only

Former Member
0 Likes
574

Hi Shazia,

In Step :7, while Uploading the legacy file you need to select "Data For Multiple Source Structures " instead of one Source structure.

i think this is the exact solutioon to your Problem..

Reward if useful.

Regards,

Shobha.

Read only

0 Likes
573

thnx shobha

rgrds

shazia