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

Query

Former Member
0 Likes
504

hi, i want to upload data ,by LSMW

There is item and header

if i want to put both header and item in one single file, how i should arrage the file.

with the help of identifier,pls exp me by example

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
485

Hello Deepak,

Yes u can do this by arranging the input file in the format ....

rec type data.....

1 dfjhdflk dfkjdlkfjd dskjdlk<-----Header line

2 kjdlkdf dfkjkdljs skdjsk<------Detail line

2 <--all related detail lines data for the header

1 <--- new header....

So the first char explains the type of the record

3 REPLIES 3
Read only

Former Member
0 Likes
486

Hello Deepak,

Yes u can do this by arranging the input file in the format ....

rec type data.....

1 dfjhdflk dfkjdlkfjd dskjdlk<-----Header line

2 kjdlkdf dfkjkdljs skdjsk<------Detail line

2 <--all related detail lines data for the header

1 <--- new header....

So the first char explains the type of the record

Read only

abdul_hakim
Active Contributor
0 Likes
485

Hi Deepak,

You need some identifier in the file for distiguishing between header and item data.For eg H for header and P for item.This rules applies to BDC as well.Unless and until you have an identifier you can't upload the data..

Regads,

Abdul

Read only

Former Member
0 Likes
485

Hi Deepak,

You have to specify two different settings for this.

- While creating structures add an extra field as first field in your both header and item structures. For that field give a constant in the 'Identifying Field content' column.

Example -> Header structure - HEADER

Item Structure - ITEM

HEADER - First field HEAD_IDEN (char 9) and identifier HEAD_IDEN

ITEM - First field ITEM_IDEN (char 9) and identifier ITEM_IDEN

Sample data in the file

HEAD_IDEN 11

ITEM_IDEN 11

ITEM_IDEN 11

ITEM_IDEN 11

- While specifying files select ‘Data for multiple Source structures (Seq .File)’ option.

Regards,

Rajesh.