cancel
Showing results for 
Search instead for 
Did you mean: 

xkwert = xworkm * vbap-ZSCHL_K.-Not working

Former Member
0 Kudos

Dear gurus,

ZPR0: Condition Value:100..

I enter overhead key in va01 as: 3.

VBAP-ZSCHL_K-- I entered as:3

Now I need a routine for ;

100*3=300

How can I type code?

*xkwert = xworkm * vbap-ZSCHL_K.--This code is not working..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to add zschl_k to the pricing communication table kompaz. Then in MV45afzz in form userexit_pricing_prepare_tkomp. move field vbap-ZSCHL_K to tkomp-ZSCHL_K. In your formula you then need to use komp-zschl_k. Hope this helps.

Former Member
0 Kudos

Dear Mathew,

thanks for response.

I already put field zschl_k in KOMG and KOMPAZ .

Now I think I have to make changes in userexit in order to feed data.

User enters 3 in (vbap-zschl_k) in VA01 but this data does appear in KOMPAZ-ZSCHL_K.

So ıthink I need to update user exit to fill data into KOMPAZ-ZSCHL_K

Am I right?

Kind Regards,

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

See SAP Note 531835 - Using field PSTYV in the condition access, as a sample.

Regards

Eduardo

Former Member
0 Kudos

Yes,

In MV45afzz in form userexit_pricing_prepare_tkomp.

add code

tkomp-ZSCHL_K = vbap-ZSCHL_K.

Then in your formula use konp-zschl_k. This should give you your desired result.

Matt

Former Member
0 Kudos

Dear Gurus,

issue has been solved.

Many thanks for your contributions.

Answers (1)

Answers (1)

Former Member
0 Kudos

I think it should be like:

xkwert = xworkd * VBAP-ZSCHL_K.

Regards,

Raghu.