cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Condition amount in Sales Order

Former Member
0 Kudos

Hi,

I am trying to change the condition amount manually in VA01/ VA02 in the conditions tab at line item level.

1. I have maintained the Price limits. (45 to 55) in the condition record. Price of the material is 50.

2. The check-boxes Amount / Percent and Value are checked.

3. Manual Entries is set to C.

I want to the user to be able to change the price manually b/w 45 to 55 as mentioned above. The system throws an error if an amount less or more is entered. The problem is that when an amount within the limit (45 to 55) is entered the system returns the the value 50/- and does not keep the entered value.

I have been trying to find the solution to this on the forum/ net but nothing seems to work. Can you please tell me what is that i am missing!!

Thanks

SAP.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

hi, what happened to this issue? if your issue is solved-pls share the solution and rootcause so it becomes helpful to others.

Former Member
0 Kudos

If you believe that everything has been cross verified like no condition record exists, condition type IMG settings are perfect and still things aren't in your favor then better to go for debugging. Do it with the help of your abaper trigger point would be while entering condition and check as if what logic is forcing the value to get changed. For sure there's some exit behind this behavior. Feel free to ask in case you need any help against this point. Looking forward to your findings against the same. Thanks.

Former Member
0 Kudos

Hi SAP Light,

Based on my initial assumption, it seem that the value that you have maintained in SD condition (XK15) i.e. 50 is getting picked up in the sales order line item. In order to prioritize the manual entry, please check that condition control has also been set to C for the line item.

Hopefully it helps.

Thanks,

DNA

Former Member
0 Kudos

Hi Deepak,

As i have mentioned in the query itself that its maintained as C.

Thanks

SAP.

Former Member
0 Kudos

Hi,

Ok try the following:

1) Remove the limits and enter an amount.

2) Change the limits and enter an amount.

3) If it is going to be manually input always--remove the access and try it or remove the condition records and try it

Please share the behavior in all the above(4) cases?

Regards

Raghu

Lakshmipathi
Active Contributor
0 Kudos

What is the error message you are getting?

G. Lakshmipathi

Former Member
0 Kudos

Hi Lakshmipathi,

Thanks for taking out time.

It gives me error only when i enter values out of the limits maintained. It gives me error saying its below or above the limits set.

But if i enter a value with in limits (other than 50) it just goes back to 50 and gives no error or warning.

I am attaching a screen shot.

SAP.

Former Member
0 Kudos

any routine attached to the access, if not to the CType?

Check for user exit development in MV45AFZZ, FORM: ORM USEREXIT_PRICING_PREPARE_TKOMP or ORM USEREXIT_PRICING_PREPARE_TKOMK

Former Member
0 Kudos

Thanks Raghu,

Will do and let you now.

SAP.

Former Member
0 Kudos

HI Raghu,

Attached the user exit details. But i am not sure if it has any role to play in the issue.

And no routine attache to the AS too.

Thnks

SAP

FORM USEREXIT_PRICING_PREPARE_TKOMP.

*  TKOMP-zzfield = xxxx-zzfield2.

*{   INSERT         ID3K933021                                        1

* SL Ocean Carrier Demo Setup

data: lv_adrnr like vbpa-adrnr.

data: wa_xvbap like vbap.

if vbak-auart = 'ZZOR' or

    vbak-auart = 'ZZQT' or

    vbak-auart = 'ZZSC'.

   tkomp-kvgr2 = vbak-kvgr2.

   loop at xvbpa

     where parvw = 'ZV'.

     tkomp-zzporcit  = xvbpa-lifnr.

     tkomp-zzporland = xvbpa-land1.

   endloop.

   loop at xvbpa

     where parvw = 'ZW'.

     tkomp-zzpodcit  = xvbpa-lifnr.

     tkomp-zzpodland = xvbpa-land1.

   endloop.

* 29.12.2005 Achim Rink, D029766

* move city of partners YV (Load port) and YW (Discharge Port) into comm

* structure

loop at xvbpa

    where parvw = 'YV'.

    tkomp-zzloadport = xvbpa-lifnr.

  endloop.

loop at xvbpa

    where parvw = 'YW'.

    tkomp-zzdischport = xvbpa-lifnr.

  endloop.

* end of inser

* 29.12.2005 Achim Rink, D029766

endif.

* Material Freight Group for THC and CYD

if not vbap-uepos is initial and

    not vbap-stlkn is initial and

    vbap-pstyv eq 'ZSLC'.

    read table xvbap with key posnr = vbap-uepos

               into wa_xvbap.

    tkomp-mfrgr = wa_xvbap-mfrgr.

endif.

* Reference document for pricing agreements in Contract Process

if not vbak-vgbel is initial

    and vbap-pstyv eq 'ZLSC'.

    tkomp-vgbel = vbak-vgbel.

endif.

*}   INSERT

ENDFORM.

Former Member
0 Kudos

Hi,

Is there a routine attached to your condition type?

Regards

Raghu.

Former Member
0 Kudos

No Raghu,

Only reqmnt 2.

Thanks

SAP Light.

Former Member
0 Kudos

Hi,

See the below screen shot and try to compare it.

Let me know if it helps.

Thanks.

Former Member
0 Kudos

HI DJ,

Thanks for the time you took out,

I am attaching an image. Their is certainly a difference in what you have sent and what i am getting.

After Changing the values. I tried 46 and pressed enter. It goes back to 50. Gives No error. Changes as shown.

DJ, as per your screen shot, the condition control and and cond origin should change to C, they don’t but the description of condition control is changing, refer to PNG1..

I saved the above and re-opened the order. The values; condition Control and condition origin are back to original-- A, refer to PNG2.

If you find it confusing, please let me know. I ll to redo the whole thing,

Thanks everyone for the reverts.

SAP.