Skip to Content
avatar image
Former Member

Pricing Condition For product

We need to update the pricing condition while creating campaign products, currently we are using the function module COM_PROD_MATERIAL_MAINTAIN_API

And I am passing the pricing details in the parameter it_conditions but it is not working .

i am passing these parameters :

MOVE gv_pr_number TO gs_conditions-pr_number.

CALL FUNCTION 'GUID_CREATE'

IMPORTING

ev_guid_16 = gs_conditions1-varnumh.

gs_conditions1-client = sy-mandt.

gs_conditions1-kopos = '001'.

gs_conditions1-kschl = 'ZIN1'.

gs_conditions1-kbetr = '123'.

gs_conditions1-konwa = 'USD'.

gs_conditions1-kpein = '1'.

gs_conditions1-kmein = 'EA'.

gs_conditions1-krech = 'C'.

gs_conditions1-kvewe = 'PR'.

gs_conditions1-kotabnr = 'ZIN_TAB1'.

gs_conditions1-product = gv_product_guid.

gs_conditions1-kschl_supp = 'ZIN1'.

gs_conditions1-kappl = 'CRM'.

gs_conditions1-CREATED_BY = sy-uname.

gs_conditions1-CREATED_ON = sy-datum.

gs_conditions1-tte_logsys = gv_logsys.

gs_conditions1-/sapcnd/mnt_is_archived = 'X'.

  • gs_conditions1-product_ref_guid = gv_product_guid.

gs_conditions1-timestamp_from = gv_valid_from.

gs_conditions1-timestamp_to = '99991231235959'.

APPEND gs_conditions1 TO gs_conditions-cnd_crm_working_set.

APPEND gs_conditions TO gt_conditions.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

17 Answers

  • avatar image
    Former Member
    Oct 15, 2007 at 11:22 AM

    Hi Shilpi,

    Try FM <b>CRM_ORDER_MAINTAIN</b>.

    Regards,

    Amit

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2007 at 11:42 AM

    CRM_ORDER_MAINTAIN is for transaction data not for master data

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2007 at 03:33 AM

    any input

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2007 at 07:31 AM

    HI

    Shilpi , for your problem you need to do some configuration settings under Marketing Planning & Campaigns>Key figure planning>Define Trade sepnds for expected values& Maintain VAlue Distribution

    then in condition maintinance maina condition first assign and then define conditions, lastly determine agreemient type in Trades Promotions there you have to mention your agreements rules or conditions while creating a campaign product.

    Reward

    Cheers Venkat

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2007 at 10:10 AM

    hi venkat ,

    thankx for your reply but i think you dnt understnd my problem . I am creating product master data ,for that i m using COM_PROD_MATERIAL_MAINTAIN_API bapi .And I am passing the pricing details in the parameter it_conditions but i think i am missing something .

    i want technical input

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2007 at 11:23 AM

    its urgent i tried all solution but no soln 😔

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I think that maybe the problem can be related with the missing condition records in condition tables. Do you have entries in tables like CNCCRMPRCUSXXX or CNCCRMPRSAPXXX? (XXX stands for the condition table in R/3).

      Susana Messias

  • avatar image
    Former Member
    Oct 17, 2007 at 05:04 AM

    hi Susana ,

    thanks for your reply but i am working on stand alone crm system and there table name as CNCCRMPRZIN_TAB1 .function guys make ZIN_TAB1 as condition table .

    i am not getting where i am wrong

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2007 at 07:18 AM

    HI,shilpi agarwal

    you can see the code of COM_PROD_MATERIAL_MAINTAIN_API,there is not code to maintain the conditions .

    i think you can use the FM 'COM_PRODUCT_MAINT_CONDITIONS' after above the FM.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2007 at 09:49 AM

    i apply this but its also not wrking 😔

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 19, 2007 at 09:41 AM

    i tried all possible solution ...can any help me out

    Add comment
    10|10000 characters needed characters exceeded