2012 May 28 11:59 AM
Hi Experts,
My requirement is , i had two Fields matnr1 and matne2, using these two values(Fields), i want to read all values between these two values from an internal table.
Thank you
Abhinav N
Moderator message - please try this yourself. It's pretty basic programming.
Locked.
Message was edited by: Rob Burbank
2012 May 28 12:20 PM
Assuming that the two fields mentioned are simple variables (Integer, string,etc) & not part of complex data types(internal table), You can directly read values using them.
You can directly delete entries from internal table with where condition.
Example:
Build a range from those 2 values:
lr_matnr-sign = 'E'. "Exclude
lr_matnr-option = 'EQ'.
lr_matnr-low = matnr1.
lr_matnr-high = matne2.
APPEND lr_matnr.
DELETE itab WHERE MATNR IN lr_matnr.