Hi,
i write the logic is;
DATA:wa_item type ce10001.
IF i_erkrs EQ '0001'.
LOOP AT t_item INTO wa_item where pstyv = 'TAS'.
wa_item-vv504 = '0.00' .
MODIFY t_item FROM wa_item.
ENDLOOP.
ELSE.
EXIT.
ENDIF.
for requirement.But iam geetting the error is In loop -
where ---the line type of the table must be statically defined.
How to defne line type statically.
T_item is not refering any type.
my requirement is
1. Check if operating concern (I_ERKRS) is 0001 than go to step 2 else go to step
4.
2. Read CE10001 table and verify value for Item Category (CE10001-PSTYV).
3. If Item Category(CE10001-PSTYV) is TAS Than change Warehouse cost value field(CE10001-VV504) value to 0.00 irrespective of its current value.
else dont change value of warhouse cost value field(CE10001-VV504)
4. exit from function module.
This logic should be implemented for all line items in each billing document. E.g. if 5 line items are generated into COPA for one billing document step 1-4 need to be execute 5 times. Number of line items can be determined from T_ITEM table.
Please suggest.
Thanks & regards,
sudhakar