‎2008 Feb 22 4:12 PM
hi all,
i have 2 multiply the fieds of table vbap [ kwmeng , arktx ] ,
to display the result in another field .
can any one tell me the logic
‎2008 Feb 22 4:15 PM
Hi,
Retrive all the required records in your table itab first using select into table stmt.
Then loop at itab into work area.
Do your manipulations on the work area and modify table from the work area.
Regards,
Siddhesh
‎2008 Feb 22 4:15 PM
Hi,
Retrive all the required records in your table itab first using select into table stmt.
Then loop at itab into work area.
Do your manipulations on the work area and modify table from the work area.
Regards,
Siddhesh
‎2008 Feb 22 4:22 PM
i try that logic but i con't get the value
i got runtime error .
my code
LOOP AT t_final INTO wa_final.
READ TABLE t_vbap INTO wa_vbap WITH KEY vbeln = wa_final-vbeln .
IF sy-subrc = 0.
wa_final-kwmeng = wa_vbap-kwmeng.
wa_final-arktx = wa_vbap-arktx.
wa_final-brown = wa_vbap-kwmeng * wa_vbap-arktx.
MODIFY t_final FROM wa_final .
CLEAR wa_final.
ENDIF.
DELETE ADJACENT DUPLICATES FROM t_final COMPARING vbeln.
ENDLOOP.
‎2008 Feb 22 4:25 PM
ARKTX is a char field...You can't use it to multiply...
Greetings,
Blag.
Edited by: Alvaro Tejada Galindo on Feb 22, 2008 11:26 AM
‎2008 Feb 22 4:28 PM
Well VBAP-ARKTX is a character field. Unless it only has numbers, you will get a dump.
Rob