Skip to Content
author's profile photo Former Member
Former Member

How to create a pricing condition record programmatically?

Is there any existing FM or BAPI we could leverage to create pricing condition records?


Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Mar 12, 2013 at 08:43 AM


    try to use this:

    DATA: lv_header TYPE crmt_object_guid,
    lt_guid TYPE crmt_object_guid_tab,
    ls_new_pridoc TYPE crmt_pridoc_com,
    lt_new_pridoc TYPE crmt_pridoc_comt,
    lt_guid_handle TYPE crmt_guid_handle_tab,
    ls_guid_handle TYPE crmt_guid_handle,
    lt_input_fields TYPE crmt_input_field_tab,
    ls_input_fields TYPE crmt_input_field.

    * add cond

    IF NOT is_cond_add IS INITIAL.
    INSERT is_cond_add INTO TABLE ls_new_pridoc-cond_add.

    * change cond

    IF NOT is_cond_change IS INITIAL.
    INSERT is_cond_change INTO TABLE ls_new_pridoc-cond_change.

    * del cond

    IF NOT is_cond_delete IS INITIAL.
    INSERT is_cond_delete INTO TABLE ls_new_pridoc-cond_delete.

    * fill ref

    ls_new_pridoc-ref_guid = iv_ref_guid.
    ls_new_pridoc-ref_kind = iv_ref_kind.

    * change conditions

    is_pridoc = ls_new_pridoc
    error_occurred = 1
    OTHERS = 2.

    * maintain
    ls_input_fields-ref_guid = iv_ref_guid.
    ls_input_fields-ref_kind = iv_ref_kind.
    ls_input_fields-objectname = 'PRIDOC'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ct_input_fields = lt_input_fields
    error_occurred = 1
    document_locked = 2
    no_change_allowed = 3
    no_authority = 4
    OTHERS = 5.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 12, 2013 at 09:16 AM


    Please check the Package CRM_PRICING(Pricing-Relevant Data from CRM Document (Pricing Set))

    In Function Group CRM_PRICING_OW, there is a FM CRM_PRICING_CREATE_OW

    Also there is another Package CRM_PRICING_I.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 25, 2014 at 01:26 PM

    Hello Thierry,

    Did you find the solution for creation pricing condition record programmatically?

    We have the same requirement and looking for a FM that can be used for it.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.