Skip to Content
avatar image
Former Member

Setting a price condition through a BAPI


I have the following problem - I am trying to set a condition on an item in a quotation using the BAPI_CUSTOMERQUOTATION_CHANGE. The error that I get back is "Requirements are not fulfilled for condition PN00".

When I try to set the condition manually through VA22, I can set it without any problems. Through the transaction V/08 I can also see that the requirement has been set to "2" (Item with pricing).

Does anyone have any idea what the problem could be? What really stumps me is that using the GUI, I can set this condition without problems. It is only through the BAPI that I run into this error.

I have also used the same code in another example to set conditions without problems. The only thing different in this case is that the Item where I am setting the condition is a lower level item - the item number 10 is the high level item for this position. Is it possible that this plays a role in this case?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 01, 2008 at 02:27 PM

    Hi Sameer,

    Don't forget that to change a value with a BAPI you must modify to table :

    QUOTATION_HEADER_IN = contains the value

    QUOTATION_HEADER_INX = contains a boolean : which values are modified.

    Best regards,


    PS : reward points if helpfull

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Mathieu,

      the parameter for the Item number was being sent wrong - my application was trying to set conditions on a item which did not accept any and so ran into problems.

      I set the item number correct and now it works 😊

      Thanks for looking into it anyways!