I have written a line which includes matnr, description etc.. After writing that , i come to know that due to some conditions specified in the requirement, that matnr need not be displayed in the report. So, i wnat to delete whatever i have written in the current line .. How can i do that ...
I mean ..
matnr1 descr1 242 EA sfs
matnr2 descr2 345 M gjhgj
matnr3 descr3 <Oops ! i dont want this line>
Now, how will i delete the line which contains matnr3 and descr3
I cannot delete the line before writing it. Its difficult for me to explain the situation. Please give a solution for this .
Hope u understood my problem
Thanking you
Shankar
Hello Shankar,
I guess you want to delete the line from the list directly, am I correct?
If yes, then you can have a button on the toolbar in the list. When the user selects a line and clicks that button, the line will get deleted.
Now, what has to be known is, do you want the line to be deleted only from the list, or from the internal table in the program also?
Regards,
Anand Mandalika.
Great solution Anand !
-skip <b>to</b>- (never heard), we all can learn from you !
My solution for such a problem is different:
I'll try to filter data, which is not required before output / appending table.
e.g.
Loop at itab1.
If itab1-qty = 0.
Delete itab1.
else.
Append sth to itab2.
Endif.
Endloop.
regards Andreas
Add a comment