Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

conversion

Former Member
0 Likes
583

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
566

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

4 REPLIES 4
Read only

Former Member
0 Likes
567

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

Read only

0 Likes
566

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.

Read only

0 Likes
566

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

Read only

Former Member
0 Likes
566

Well VBAP-ARKTX is a character field. Unless it only has numbers, you will get a dump.

Rob