cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing Condition For product

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (17)

Answers (17)

Former Member
0 Kudos

Hi,

Could you tell me how did you solve it? I am trying update pricing conditions with bapi COM_PRODUCT_MAINT_CONDITIONS but is not working.

Thanks and regards.

Marisol A.

Former Member
0 Kudos

using 'COM_PRODUCT_MAINT_CONDITIONS' function module for update conditions

Former Member
0 Kudos

it is updating but very slow i dnt what the reason

have any input ?

Former Member
0 Kudos

its done

Former Member
0 Kudos

its done

Former Member
0 Kudos

Hi,

Congrats. What was the problem and resolution? Which API did you use to create pricing condition records?

Thanks

Kamal

Former Member
0 Kudos

Hi Shilpi,

Can you send me the procedure how you were able to do it.

Thanks chan

Former Member
0 Kudos

Hi Shilpi,

i see that you were able to resolve this How did you finally create/update the Product pricing conditions?

Thanks for sharing

Rodney

Former Member
0 Kudos

Hello i woul like to ask you one favor, i have de the same problem i am trying to update the PRICING CONDITION but the code that i am implement doesn´t Works, i saw that you find the resolutions, could help me please

i have already use the COM_PRODUCT_MAINT_CONDITIONS and the Return tables send a message that the applications doesn´t exits

this is test code that i am using.

wa_producto-header-com_product-product_guid = 'DFD7F10A2125F4F18D85005056A94DF2'.

wa_producto-header-com_product-product_type = '01'.

wa_producto-header-com_product-product_id = '100100S20001000004'.

wa_producto-header-com_product-logsys = iv_logsys.

wa_producto-header-update_type = 'U'.

fOR CONDITIONS THAT I NEED TO UPDATE

wa_prueba-cpe_condtype_pr = 'ZCIP'.

wa_prueba-kbetr = 100.

wa_prueba-sales_org = 'ORGVT0000'.

wa_prueba-konwa = 'MXN'.

wa_prueba-/bon/bomat = 'DFD7F10A2125F4F18D85005056A94DF2'.

APPEND wa_prueba TO wa_conditions-cnd_crm_working_set.

wa_producto-conditions = wa_conditions.

This is the final table i a send to teh FM

APPEND: wa_producto TO it_producto.

CALL FUNCTION 'COM_PRODUCT_MAINT_CONDITIONS'

EXPORTING

it_product = it_producto

IMPORTING

et_bapireturn = lt_return

CHANGING

cv_save = lv_save.

if sy-subrc = 0.

CALL FUNCTION 'COM_PRODUCT_SAVE_API'

EXCEPTIONS

internal_error = 1

save_not_allowed = 2

OTHERS = 3.

IF sy-subrc = 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = wa_return2.

ENDIF.

endif.

  • Liberar las funciones de producto.

CALL FUNCTION 'COM_PRODUCT_FREE_API'.

thanks a lot for you help

Former Member
0 Kudos

is there any set type for this

Former Member
0 Kudos

i am uploading conditions separately by using this FM PRC_MAST_CREATE_CONDITION

But this FM is throwing dump when I execute it with correct product Id.

I am passing CRM for application and

PRODUCTCRM to maintenance group.It is throwing dump at product_id.

ANy INPUT

Former Member
0 Kudos

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

Former Member
0 Kudos

i apply this but its also not wrking

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

its urgent i tried all solution but no soln

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

any input

Former Member
0 Kudos

CRM_ORDER_MAINTAIN is for transaction data not for master data

Former Member
0 Kudos

Hi Shilpi,

Try FM <b>CRM_ORDER_MAINTAIN</b>.

Regards,

Amit