Skip to Content
avatar image
Former Member

Pricing Routine issue

Dear Members,

We have special issue in our company. We have created alternative calculation type routine for reading scales and get the right base price.

but we don't want  this routine not to apply when return order is created with reference to invoice.

Because this routine is already done the calculation required in the invoice . When i am creating return order with reference to Invoice above, routine is re triggering again doing the calculation in the pricing overwriting the value copied from the invoice.

could any one suggest  is there any way i will know this return order is creating with reference to invoice and stop executing the routine in the pricing procedure?

I need to stop this routine execution at the time of creation ? before i save the order , so i need to able to write the code in the same routine not to execute  if this order is created with reference to invoice ?

Any suggestion are helpful.

Thanks

VEER

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 31, 2013 at 03:50 AM

    dear Ayyagari,

      I think u can use copy control from billing document to order document.

       In this step, there resver by SAP to define pricing type 'G' can be used in ur scenario.

       'G' mean: copy pricing elements urchanged and redetermine taxes.

      also , u can reference F1 help below item, to ensure which condition type will be redetermine

      G: Copy pricing elements unchanged and redetermine taxes. The system

    • redetermines the following condition types:
    • taxes (condition class D)
    • Rebate (condition class C)
    • Intercompany billing conditions (condition category I)
    • Invoice list conditions (condition category R)
    • Condition types with condition category L
    • Cost conditions (condition category G)
    • Cash discount conditions (condition category E)
    • all other condition types are treated as for pricing type

       wish helpful to u.

       Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 31, 2013 at 04:08 AM

    We have created alternative calculation type routine for reading scales

    Since this routine is not a standard, you can very well add a coding to validate the return document type not to consider.  Take the help of your technical team.

    G. Lakshmipathi


    Add comment
    10|10000 characters needed characters exceeded

    • G Lakshmipathi,

      The requirement is not to exclude some sales document types (returns)!

      The requirement is to exclude returns document types ONLY if the return order is created with reference to a billing document.

      If the same returns document type is used to create a return order without reference the routine should be triggered.

      Added: by reading the original post, I understood the requirement and replied to your post. When I scroll down, the OP has said the exact same thing 😊    

      Message was edited by: TW Typewriter - comment added in blue

  • Oct 31, 2013 at 06:45 AM

    Please Add  a little more logic in your routine like below:

    If VBAK-VBTYP is C-then read the this routine

    and if VBAK-VBTYP is H then don't read.

    This was suggested by Mr Lakshmipathi.

    I just added little more clarification.

    Phanikumar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Veer,

      I can see a lot of helpful answers about your issue.

      Just add one more point, I was facing a similar issue earlier where I had updated all the conditions correctly but still while Copying system was ignoring the requirement Code.

      In Addition to update of KOMP-VGBEL and Return Order Type checking, you ensure that you are updating logic in KOBEV form of Routine in requirement.

      It happens that while copying details from Reference Invoice, if your Pricing type is D then system ignores the Requirement written if it is at KOBED form.

      Hope this will be helpful.

      Regards,

      MJ.

  • avatar image
    Former Member
    Oct 31, 2013 at 03:29 PM

    Hello Veer,

    As Lakshmipathi suggested its not a standard routine, you can do a little more coding with the help of your ABAPr that if Return Doc.Type ( RE) or Return Item category (REN) is available then it should not work.

    Regards

    AG.

    Add comment
    10|10000 characters needed characters exceeded