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 batch input recording for table control (Header-Detail Tcode C201)

former_member425121
Participant
0 Likes
1,595

Hi experts

I need to create (load) mass Recipes tcode C201 using LSMW. I investigated and (apparently) there are not any IDOC, BAPI or Standard Batch Input ; so i'm trying with Batch Input Recording.

I created the recording for C201 , but this is a header-detail transaction, that is it uses Table Controls in its screens and i really don't know how to mapping the Recording C201 Fields to file.

In C201 recording i have for the detail data (table control) fields like PLPOD-ARBPL(01), PLPOD-ARBPL(02), and so on.

I guess i need to create 2 files (structures) , one for header data and other for detail data ; but i do not know :

a) For Standard Batch/Direct Input i believe we can assign 2 files (structures) , but it is possible for batch input recording ?

b) If this is possible, how can i assign the second file (detail structure) to C201 recording ?

c) How can i mapping the detail file fields to recording fields (PLPOD-ARBPL(01), PLPOD-ARBPL(02),..) ?

I have been investigating so lot in but i have not found yet the way to do this , if it's possible, or if there is other way to load mass Recipes C201.

Excuse me for the long thread , any help will be appreciated.

Regards

Frank

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
932

Hi

a) For Standard Batch/Direct Input i believe we can assign 2 files (structures) , but it is possible for batch input recording ?

b) If this is possible, how can i assign the second file (detail structure) to C201 recording ?

In [this post|] you can read a good discussion about a problem like yours (header, item):

I believe you can use both solutions: single or double files.

c) How can i mapping the detail file fields to recording fields (PLPOD-ARBPL(01), PLPOD-ARBPL(02),..) ?

Just as Breakpoint said you can check if there's a chance in order to place the record to the top line, else it could be a problem

Max

Hi experts

I need to create (load) mass Recipes tcode C201 using LSMW. I investigated and (apparently) there are not any IDOC, BAPI or Standard Batch Input ; so i'm trying with Batch Input Recording.

I created the recording for C201 , but this is a header-detail transaction, that is it uses Table Controls in its screens and i really don't know how to mapping the Recording C201 Fields to file.

In C201 recording i have for the detail data (table control) fields like PLPOD-ARBPL(01), PLPOD-ARBPL(02), and so on.

I guess i need to create 2 files (structures) , one for header data and other for detail data ; but i do not know :

a) For Standard Batch/Direct Input i believe we can assign 2 files (structures) , but it is possible for batch input recording ?

b) If this is possible, how can i assign the second file (detail structure) to C201 recording ?

c) How can i mapping the detail file fields to recording fields (PLPOD-ARBPL(01), PLPOD-ARBPL(02),..) ?

I have been investigating so lot in but i have not found yet the way to do this , if it's possible, or if there is other way to load mass Recipes C201.

Excuse me for the long thread , any help will be appreciated.

Regards

Frank

3 REPLIES 3
Read only

Former Member
0 Likes
932

What I have done in the past with BDCs is to try to reposition the screen between table control entries by doing a page down or by selecting item number ,etc., if that control exists, after entering the first item. Then I inserted into table with subscript (02) or (03). This allows multiple rows without trying to figure out where you are on screen, etc. Try recording a page down after every entry to your item detail.

Read only

Former Member
0 Likes
933

Hi

a) For Standard Batch/Direct Input i believe we can assign 2 files (structures) , but it is possible for batch input recording ?

b) If this is possible, how can i assign the second file (detail structure) to C201 recording ?

In [this post|] you can read a good discussion about a problem like yours (header, item):

I believe you can use both solutions: single or double files.

c) How can i mapping the detail file fields to recording fields (PLPOD-ARBPL(01), PLPOD-ARBPL(02),..) ?

Just as Breakpoint said you can check if there's a chance in order to place the record to the top line, else it could be a problem

Max

Read only

0 Likes
932

Thanks Breakpoint and Max

Even i could create in LSMW 2 structures (header and detail , i could assign in Mapping fields this structures to Recording Fields, and i could assign this 2 structures in step 7 Specify Files by mark 'Data for Multiple Source Structures (seq. File)' button; at moment to try to assign the the files (setp 😎 or read data (step 9) LSMW sends error 'Using different sequential files is not allowed'.

I do not what i i'm doing wrong, but taking in mind that my C201 data is header-detail in several levels and the recipes material components changes from one material to other ; i think i'm going to try to do this Recipes Load with ABAP program using BDC.

However this was the first doubt in order to try to made this Recipes load with LSMW, because still missing know how to assign the detail file fields to recording table-control fields like field(01, field(02) , etc.

Thanks a lot.

Regards

Frank