2013 Dec 02 9:54 AM
I want to upload inspection plan in lswm through batch input recording process. But the MIC are not getting upload in the following format.
Please confirm how to direct the system so that it catch multiple line data for one header
R06066 SS01 01.04.2013 X 10 50000103 Va02 random 50000103 va02
20 50000147 Va02 random 50000147 va02
30 50000244 Va02 random 50000244 va02
At present system is recording the data for upload in following format
R06066 SS01 01.04.2013 X 10 50000103 500001475 50000244 VA02 VA02 VA02 Random Random Random 50000103 500001475 50000244 Va02 va02 va02
I want to upload inspection plan in lswm through batch input recording process. But the MIC are not getting upload in the following format.
Please confirm how to direct the system so that it catch multiple line data for one header
R06066 SS01 01.04.2013 X 10 50000103 Va02 random 50000103 va02
20 50000147 Va02 random 50000147 va02
30 50000244 Va02 random 50000244 va02
At present system is recording the data for upload in following format
R06066 SS01 01.04.2013 X 10 50000103 500001475 50000244 VA02 VA02 VA02 Random Random Random 50000103 500001475 50000244 Va02 va02 va02
2013 Dec 02 10:42 AM
Hi,
Do you have dynamic line items for one inspection plan, as per details whcih you have given its like you have different line items,
10, 20 30 etc.
For the dynamic no. of rows insted of LSMW use BDC or try with some BAPI, or if you have fix line items 10,20.30 then you can maintain them in the columns insted of new rows.
Regards,
Zafar
2013 Dec 02 10:54 AM
Yes i have dynamic lines, but i have to do it through LSMW only. Because I dont know BAPI or BDC.
Please help.
2013 Dec 02 11:16 AM
What I understand, you need to put some custom logic (ABAP code) and that should work as a condition whether to execute routine transfer_record or not.
And also there should be some logic to identify whether the record is a header record or item record.For the first loop you can hold header values temporarily in some variables and in the second cycle you can compare the previously stored temp values and the incoming new values in order to decide whether the current item belongs to the same header or different header.
There are different event like below in LSMW which you need to understand how they triggere first before writing the custom logic.
__BEGIN_OF_PROCESSING__
__BEGIN_OF_TRANSACTION__
__BEGIN_OF_RECORD__
__END_OF_RECORD__
Bottom line is you need to populate the target header structures conditionally.
Regards
Ansumesh