Dear Guru!
I'm new to ABAP, but I have to write a little in ABAP.
I create a LSMW project using BAPI for changing standart price of material.
Input data: material, price, posting date.
The point is: system should found in table MBEW all valuation areas and valuation types fo which the material record is exist and cang price for all these records.
I wrote a code for these fields in Field Mapping menu. But it puts in only one record whereas I need it to execute BAPI for all records.
I wrote the folliwing:
VALUATIONAREA Valuation Area
Code: tables MBEW.
select * from MBEW
where MATNR = ZHEADER-MATNR.
E1MATERIALVALUATION_PRICECH-VALUATIONAREA = MBEW-BWKEY.
endselect.
VALUATIONTYPE Valuation Type
Code: select * from MBEW
where MATNR = ZHEADER-MATNR.
E1MATERIALVALUATION_PRICECH-VALUATIONTYPE = MBEW-BWTAR.
endselect.
May be it's simple, may be not. But I don't know how do do it.
Will be grateful for any hints.
Thanks.
Edited by: assoli on Aug 3, 2011 3:51 PM