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

Regarding LSMW

Former Member
0 Likes
1,214

Hi Experts,

I have a problem with lsmw. I uploading the data from flat file to sap system through lsmw using Batch input Recording.

My problem is, In my flat file, i Have a header like....

Pernr       begda          endda        First name    Last Name     Status
20          200812/11   99991231       Sai               Babu             1

Now, At the time of running, i dont want to pull the Header line into the LSMW and sap screens.

where it is exactly deleting the header line in LSMW.

If it is Session method or CT method, I can delete the header line after transfer the data into the buffer. But, in LSMW, where can i delete the header line of flat file.

Please help me in this regard...

Thanks in advance....

Sai

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
1,006

hi,

In LSMW you can do this in SPECIFY FILES step.

double click on where you are giving the file and there in file structure you

have 2 options.

if you select first radiobutton you can use headers in file or

you can use second one.

Hi Experts,

I have a problem with lsmw. I uploading the data from flat file to sap system through lsmw using Batch input Recording.

My problem is, In my flat file, i Have a header like....

Pernr       begda          endda        First name    Last Name     Status
20          200812/11   99991231       Sai               Babu             1

Now, At the time of running, i dont want to pull the Header line into the LSMW and sap screens.

where it is exactly deleting the header line in LSMW.

If it is Session method or CT method, I can delete the header line after transfer the data into the buffer. But, in LSMW, where can i delete the header line of flat file.

Please help me in this regard...

Thanks in advance....

Sai

6 REPLIES 6
Read only

GauthamV
Active Contributor
0 Likes
1,007

hi,

In LSMW you can do this in SPECIFY FILES step.

double click on where you are giving the file and there in file structure you

have 2 options.

if you select first radiobutton you can use headers in file or

you can use second one.

Read only

Former Member
0 Likes
1,006

Hi,

Try specifying transaction number as 2 in select-options low value and last record in select options high value in the step READ DATA of LSMW.

Say for example there as 20 record in the file , specify 2 to 20 in the transaction number in READ DATA step.

Regards,

Vartika

Read only

Former Member
0 Likes
1,006

Hi,

Is there any identifier to demarcate the header record and item records in your data?

are you using the same structure or different structure for storing both header and item records?

R's

Savitha

Read only

Former Member
0 Likes
1,006

Hi Sai,

In 'Specify Files' step

under 'File Structure' check the check box 'Field Names at Start of File'.

Regards,

Manoj Kumar P

Read only

Former Member
0 Likes
1,006

In LSMW at the time of specifying the file location, there is a check box to indicate if the file contains Headers. Check this.

Read only

Former Member
0 Likes
1,006

Thank you for all