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 - Copy condition value

Former Member
0 Likes
727

Hi,

I'm a MM consultant and I need some help to close my pricing procedure. I would like to create a formula in VOFM to add to my pricing.

I have the conditions PB00 PBXX and I need that the value of PBXX be the same of PB00. The PB00 is being determined automatically.

5 0 PB00 Preço bruto X 9

10 0 PBXX Preço bruto X 9

Could anyone send me some abap code to implement that?!

Thanks is advance,

Guilherme Digiampietri

Hi,

I'm a MM consultant and I need some help to close my pricing procedure. I would like to create a formula in VOFM to add to my pricing.

I have the conditions PB00 PBXX and I need that the value of PBXX be the same of PB00. The PB00 is being determined automatically.

5 0 PB00 Preço bruto X 9

10 0 PBXX Preço bruto X 9

Could anyone send me some abap code to implement that?!

Thanks is advance,

Guilherme Digiampietri

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
530

I am guessing it can be done functionally as well.

coming to the code create a routine(9XX) for PBXX and in the routine

read the table xkomv PB00 and move the values to PBXX row.

read table xkomv into wa_komv with key kschl = 'PB00'.
if sy-subrc eq 0.
read table xkomv into wa_temp with key kschl = 'PBXX'.
check sy-subrc eq 0.
wa_temp = wa_komv.
modify xkomv from wa_temp. "might need some more additions.
endif.

Read only

0 Likes
530

Yes, It can be done fucnctionally changing de PBXX condition, but it will affect my other pricing procedures.

Tranks a lot,

GUiza