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

vofm

Former Member
0 Likes
515

hi iam doing an vofm routine in which when i have created that routine two forms are appearing!! can u tell me which to use!! i am doing an enhancement in which i have to reduce install price by the value of the measure!!

first i have to check if the given line item is eligible for discount or not based on article type,item category group and article pricing group.

then find if the processing line item has install program heaeder and measure mandatory.

and then check if the given install program has measure item.

select net price of measure item and passed into ZMDT CONDITION TYPE.

Which tables or structures i need to use to do this and can u plss give me some clue abt how to do the coding!!

1 REPLY 1
Read only

Former Member
0 Likes
381

Hi,

Is it possible to hold the value of XKOMV-KBETR temporarily in any other variable and use it later.

RETTKOMV-KBETR value.

structure XKOMV-KBETR.

Sample code..

FORM RV64Axxx.

  • Always default the condition rate to 10.

XKOMV-KBETR = '10.000'.

ENDFORM.

Check this code in the include LV61AA43..The flag wertformel will be set if the routine is configured..

IF xkomv-kofrm NE 0.

wertformel = 'X'.

xkwert = xkomv-kwert.

frm_kondi_wert-nr = xkomv-kofrm.

PERFORM (frm_kondi_wert) IN PROGRAM saplv61a IF FOUND.

xkomv-kwert = xkwert.

ENDIF.

If the flag is set the if condition that you mentioned will fail and it will not overwrite..

if xkomv-kofrm ne 0 and wertformel eq space and komp-kposn ne 0.

rettkomv = xkomv.

xkwert = xkomv-kwert.

frm_kondi_wert-nr = xkomv-kofrm.

perform (frm_kondi_wert) in program saplv61a if found.

xkomv = rettkomv.

endif.

Hope this helps..

Regards