on 07-24-2014 6:40 PM
Hi Gurus,
Does anybody knows any FM which allows me to give price to an object, in CRM.
I thought that was CRMXIF_PRODUCT_INDOBJ_SAVE, but at the end, didn't work.
Thanks in advance.
Regards
If I understood you correctly, this work a little different, you don't assign a condition to a product, you assign a product to a condition.
Prices - Products - SAP Library
so you need to create a condition associate it to the product, you can use the API CRMXIF_COND_REC_SLIM_SAVE for that. To be honest I never created pricing condition for IObjects, but as IObjects technically are products I guess the principles are the same.
Cheers!
Luis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you are correct, "all" the fields in the structure /1CN/WORKING_SET_E_D_SUP which applies to you condition are mapped to the VARIABLE_FIELDS in the same way I described the product.
I believe you will also need to inform the LOGSYS (logical system) and PRODUCT_TYPE. and maybe the PRODUCT_OBJECT_FAMILY.
I would first try without all the new fieds I described here, check if the API returns any error which you can understand...some times the output messages are quite cryptic, if doesn't work I would try to add the logical system and the product type, and if the error persist with the product object family. As I said before I never did it with IObjects so I'm not sure if some mandatroy parameter for this scenario will rise...anyway...keep in mind the input parameters directly depends how the condition/table is defined.
Nope, everything is in my head The FM CRMXIF_COND_REC_SLIM_SAVE has some documentation (SE37 - "Doc Funciton module button" on the application toolbar (first on the right side) ) but I'm not sure if will bee enough, truly in scn there isn't a lot of documentation about this maybe is a good opportunity to write your first blog
Luis, it has worked!!
Thank you very mux.
At the end I inserted the below records into the table variable_fields
code:
ls_var_fie-fieldname = 'PRODUCT_ID'.
ls_var_fie-fieldvalue = product_id.
APPEND ls_var_fie TO ls_datasal-cond_record-variable_fields.
ls_var_fie-fieldname = 'SALES_ORG_SHORT'.
ls_var_fie-fieldvalue = sales_org_short.
APPEND ls_var_fie TO ls_datasal-cond_record-variable_fields.
ls_var_fie-fieldname = 'DIS_CHANNEL'.
ls_var_fie-fieldvalue = dis_channel.
APPEND ls_var_fie TO ls_datasal-cond_record-variable_fields.
CLEAR: ls_var_fie.
ls_var_fie-fieldname = 'MNT_RATE'.
ls_var_fie-fieldvalue = price.
APPEND ls_var_fie TO ls_datasal-cond_record-variable_fields.
ls_var_fie-fieldname = 'COND_CURRENCY'.
ls_var_fie-fieldvalue = currency.
APPEND ls_var_fie TO ls_datasal-cond_record-variable_fields.
ls_var_fie-fieldname = 'DATE_FROM'.
ls_var_fie-fieldvalue = date_from.
APPEND ls_var_fie TO ls_datasal-cond_record-variable_fields.
ls_var_fie-fieldname = 'DATE_TO'.
ls_var_fie-fieldvalue = date_to.
APPEND ls_var_fie TO ls_datasal-cond_record-variable_fields.
CLEAR: ls_var_fie.
ls_var_fie-fieldname = 'MEINS'.
ls_var_fie-fieldvalue = unit.
APPEND ls_var_fie TO ls_datasal-cond_record-variable_fields.
ls_var_fie-fieldname = 'PRODUCT_OBJECT_FAMILY'.
ls_var_fie-fieldvalue = family.
APPEND ls_var_fie TO ls_datasal-cond_record-variable_fields.
Regards
User | Count |
---|---|
6 | |
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.