Skip to Content
avatar image
Former Member

Enhancing Price Conditions to PO

Hi Experts,

I am working on a requirement on PO Price Conditions. It is required to update the price condition of PO according to certain customer fields on the PO line items. I have tried several BAdi with no luck.

BBP_DOC_CHECK_BADI - cannot actually change the document

BBP_DOC_CHANGE_BADI - does not offer the price condition information

BPP_DOC_SAVE_BADI - worse, just provide the document GUI

tried to use some other function modules (condadd*), but no luck as well.

those are internal function modules and are coupled with some global variants/checkings

Anyone has experience on this ?

Any advice ? Many Thanks.

Yours,

Chun Fai

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 21, 2010 at 06:11 PM

    BBP_DOC_CHANGE_BADI - does not offer the price condition information

    This BADI would be the only reasonable place for document update. However since price condition is not part of the interface, there is very slim chance that you can make use of this BADI for your requirement.

    What I would suggest you do is that you enhance the source code of FM BBP_PD_PO_UPDATE. In the enhancement implementation, update the internal table lt_upd_pridoc based on your criteria and call FM 'BBP_PROCDOC_UPDATE' again.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Internal tables for price documents are always empty.

      Even when a condition is added using the screen control, the price document is not available as well.

      Values manually updated during debug does not take any effect.

      During document update, FM 'BBP_PD_PO_UPDATE' is called a number of times. When you add the price condition on screen and go back to debugging, pay attention to the calls to this FM and see if I_PRIDOC has any value. My guess is that it would in one of the calls.

  • avatar image
    Former Member
    Sep 08, 2010 at 08:04 PM

    Hi Chun Fai

    Did you find a way to enhanse your price conditions

    I have a smilar requirement and would appreciate your input as to what you did

    cheers

    alex

    Add comment
    10|10000 characters needed characters exceeded