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

xkomv-fxmsg

Former Member
0 Likes
2,826

Hello all,

Can somebody explain me the following 2 statements.

komp-cepok = 'B'.

xkomv-fxmsg = '249'.

Where to configure the message 249?

Thanks,

Lavanya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,325

Hello Lavanya,


For komp-cepok = 'B'.

B	Expected price not correct

The message number will be filled depending of the condition.

This cannot be condigured. This is done via coding.

Regards,

Vasanth

13 REPLIES 13
Read only

Former Member
0 Likes
2,326

Hello Lavanya,


For komp-cepok = 'B'.

B	Expected price not correct

The message number will be filled depending of the condition.

This cannot be condigured. This is done via coding.

Regards,

Vasanth

Read only

0 Likes
2,325

Hello Vasanth,

Thanks for the reply. 249 is a message number. This message number is from which message class. I have seen this statement in the code which already exists in a formula but i am not able to figure out where is this message stored.

Any ideas?

Read only

0 Likes
2,325

Hello,

Just double click on the message number it will takes to the meesage class.

If u r not able to figure it out. Paste the code here

Regards,

Vasanth

Read only

0 Likes
2,325

Here is the code.

* NEW CODE  - Entered on August 10, 2004
  data: maximum(3) type p decimals 2 value 500,
****Commented on December 29, 2004
*data: maximum(3) type p value 5,
       difference(6) type p decimals 2.

* only continue if the pricing line item is greater than 0
check komp-kposn ne 0.
check: xkomv-waers = komk-waerk,
       komp-prsfd = 'X'.


* Clear the expected price status
  komp-cepok = ' '.

* Calculate the difference between the original claim amount (ZCBK)
* and the vendor accepted amount.  The original claim amount was
* entered into subtotal B (komp-wavwr).

****Commented on Decemeber 29, 2004
*difference = ( komp-wavwr - xkomv-kwert ) / 100.

****No need to divide with 100 as the difference can store decimals !!!
  if komk-kalsm eq 'ZIPBBP'.
**{   INSERT         DECK900076                                        2
*     komk-kalsm eq 'ZIPBBZ' or
**}   INSERT
*     komk-kalsm eq 'ZIPBM1' or
*     komk-kalsm eq 'ZIPBM2' or
*     komk-kalsm eq 'ZIPDEP' or
*     komk-kalsm eq 'ZIPBBW'.



* In case of billbacks, if it is not entered take it from Original Claim
   if xkwert eq 0.
    xkwert = komp-wavwr.
    xkomv-kwert = xkwert.
   endif.
* Do not consider auto adjustment amount to determine the difference
   difference = ( komp-netwr - xworkh ) - xkomv-kwert.
  else.
   difference = komp-wavwr - xkomv-kwert.
  endif.

  if difference lt 0.
    difference = difference * -1.
  endif.

* If there is no difference between the vendor accepted amount and the
* original claim amount, then the status will be set to 'X'
* (accepted amount was equal)
  if difference = 0.
    komp-cepok = 'X'.

*{   INSERT         DECK900076                                        3

*  elseif xworkg is initial.
*    komp-cepok = 'B'.
*    xkomv-fxmsg = '249'.



*}   INSERT
* If there is a difference between the vendor accepted amount and the
* original claim amount, but it is within the tolerance, then the status
* will be set to 'A' (within tolerance but not adjusted)
  elseif difference <= maximum.
    komp-cepok = 'A'.

* If there is a difference between the vendor accepted amount and the
* original claim amount, and it is outside of tolerance, then the status
* will be set to 'B' (outside of tolerance, not adjusted)
  else.
    komp-cepok = 'B'.
    xkomv-fxmsg = '249'.
  endif.

Read only

0 Likes
2,325

Hello Lavanaya,

Ok I got it.

In Se38, give the report name and click display.

In the menu follow the path.

GO TO --> Messages. This will take to the message class.

Hope this will helps you.-

Regards,

Vasanth

Read only

0 Likes
2,325

Vasanth,

This is not a report. This is a formula RV64A910. And the messages option is disabled.

Any other ideas?

Read only

0 Likes
2,325

Hello,

What do you mean by Formular.

I cant find this in my system.

Vasanth

Read only

0 Likes
2,325

This is a pricing formula (Alternate calculation type) assigned to a condition in the pricing procedure. The pasted code is from that. You will not find it unless formula 910 is created and generated.

Thanks.

Read only

0 Likes
2,325

Ok, You mean to say that it is a Copy routine from the Tcode VOFM Right !!!

Do one thing .

Put the breakpoint at the point adn check value of the SY-MSGID.

Regards,

Vasanth

Read only

0 Likes
2,325

Message ID is VP. Any table to check the message 249 and this message ID VP? I tried most of the tables but I didnt find anything useful.

Thanks,

Read only

0 Likes
2,325

Hello Lavanya,

I got it.

The message ID is V1 and message number is 246.


V1                     249   Customer expected price differs from net price for item &.

The table to find out the messages is T100.

<REMOVED BY MODERATOR>

Cheers,

Vasanth

Edited by: Alvaro Tejada Galindo on Feb 6, 2008 12:49 PM

Read only

0 Likes
2,325

Thanks Vasanth. It solved my problem. Where can I check that message on the sales document?

Read only

yeswanth1
Newcomer
0 Likes
1,907

Hey where can we see that 249 in sales document.