on 10-15-2007 11:13 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
using 'COM_PRODUCT_MAINT_CONDITIONS' function module for update conditions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it is updating but very slow i dnt what the reason
have any input ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
its done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
its done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
is there any set type for this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i tried all possible solution ...can any help me out
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i apply this but its also not wrking
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
its urgent i tried all solution but no soln
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any input
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CRM_ORDER_MAINTAIN is for transaction data not for master data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shilpi,
Try FM <b>CRM_ORDER_MAINTAIN</b>.
Regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.