Question:
How to handle table control in LSMW?
Answer:
table control in LSMW?
What? Who? Where? How? Why?
I used LSMW a lot and never saw it...
_________________
Brief History of the Tuly Idiots
Bad advices, wrong answers, bigotism
sapfans GD
Ad by Viiiiiic
Answer:
In transaction Va42,
I have no. of item lines in a table control. I need to select only those lines having the item category as "ZFEE". We need to add some coding in LSMW for this. So, how can we handle this situation.
Answer:
It really sucks not to be on an R/3 system... but VA42 sounds like a sales document change function... sales contracts perhaps?
Anyway, sounds like you're choosing the wrong tool for the type of conversion you are attempting. Create a conversion program (or have it created, my guess is you're functional) which uses a BAPI to update the sales document. In selecting the records to be processed you can select the lines with the appropriate item category.
_________________
So who died and made me tuly idiot ?!?
Answer:
It will be helpful to us if we want help you if you provides us a bit more information... I took a look at VA42 and it's an object modification transaction (as Beo said).
It points me to agree Beowulf, you are using the wrong tool for update items.
Look (as he said) for a BAPI to do your work.
Anyway, you can do it with LSMW but it will require A LOT of ABAP work in your load fields. And I think it doesn't deserve the effort.
Just for practice my english...
Find a way to know the amount of items you have in your tablecontrol (if you can find the table, using a SELECT without order would work... make some tests and order them if needed).
Then you can address your field to TABLECONTROL-FIELD(rownumber) in a batch input session. Find a way to do the same with your LSMW extra coding.
But I will repeat me, as an echo of Beowulf321 "you are using the wrong tool".
_________________
Brief History of the Tuly Idiots
Bad advices, wrong answers, bigotism
sapfans GD
Ad by Viiiiiic