Marketing Attributes - Unit of Measure
In the creation of marketing attributes, how can we provide "two" input fields with two different units of measure for ONE Marketing Attribute, so that if a user inputs a value for the attribute, in one unit of measure, the value for the second input field, which is a different unit of measure for the same attribute is automatically calculated
Example.
Marketing Attribute: Shoe Size
Shoe Size Value Field (U of M): Inches
Shoe Size Value Field (U of M): Centimeters
If the user maintains a value for the attrbute in the Inches Field, it should automatically convert to Centimeters and Vice Versa.
Thanks!!!
This can be achieved through config.
When creating a marketing attribute, create an attribute called Unit of Measure. Then assign the "check table" for the correct value tables and it will provide you with the options for unit of measure.
Example:
First Attribute: Shoe Size
Second Attribute: Unit of Measure in CM or Inches
FK
Similar Messages
-
Reporting data in alternate unit of measure
hi
I was going through the document " How to report data in alternate unit of meaure" .
There they have talked about modification in program LRRSVF20.
Can anyone tell me what does this include "LRRSVF20" does?
Regards,
MoniikaHi,
Please tell me when i create a program "YBW_AUNIT_ENHANCEMENT" UNDER se38 and type: include...
what code i should write under this program?
i am pasting the program LRRSVF20 AND please tell me what should i write in program ""YBW_AUNIT_ENHANCEMENT"?
***INCLUDE LRRSVF20 .
*& Form varchavl_atr_get
form varchavl_atr_get using i_t_sid type rrsi_t_sid
i_chanm type rsd_iobjnm
i_th_var_atr type rro01_th_var_lrech
i_srdate type sy-datum
i_mostrecent type rsr_mostrecent
changing c_th_varchavl type rrsv_th_varchavl.
call method l_r_reader->sid_read_master
exporting
i_readatr = rsdm_c_readatr-specified
i_t_req_atr = l_t_req_atr
i_date = i_srdate
i_mostrecent = i_mostrecent
importing
e_tx_atr = l_tx_atr
changing
c_t_chavlinfo = l_t_chavlinfo
exceptions
others = 1.
if sy-subrc <> 0.
raise inherited_error.
endif.
*{ INSERT
Enhancement Alternate U.o.M.
INCLUDE ybw_aunit_enhancement.
*} INSERT
PERFORM varchavl_atr_fill USING i_th_var_atr
l_tx_atr
CHANGING c_th_varchavl.
endform. " varchavl_atr_get
***INCLUDE YBW_AUNIT_ENHANCEMENT.
TYPE-POOLS: rrs0.
DATA:
l_vnam LIKE rszglobv-vnam,
l_s_cob_pro TYPE rsd_s_cob_pro,
l_s_rkb1d TYPE rsr_s_rkb1d,
l_periv TYPE rro01_s_rkb1f-periv,
l_t_var_range TYPE rrs0_t_var_range,
l_s_var_range TYPE rrs0_s_var_range,
l_t_range TYPE rsr_t_rangesid,
l_s_range TYPE rsr_s_rangesid,
l_unit LIKE rszglobv-meeht,
l_currency LIKE rszglobv-waers.
FIELD-SYMBOLS:
<l_sx_atr> TYPE rsdm_sx_atr,
<l_s_var> TYPE rro01_s_var_lrech,
<l_s_atr> TYPE rsdm_s_atr,
<l_s_atr_cu> TYPE rsdm_s_atr.
Loop over all characteristic values
LOOP AT l_tx_atr ASSIGNING <l_sx_atr>.
Loop over all variables to be replaced by attributes
LOOP AT i_th_var_atr ASSIGNING <l_s_var>.
Fill additional information into pseudo variables
REFRESH l_t_var_range.
InfoObject (i.e. characteristic)
CLEAR l_s_var_range.
l_s_var_range-sign = 'I'.
l_s_var_range-opt = 'EQ'.
l_s_var_range-vnam = '1CHANM'.
l_s_var_range-iobjnm = i_chanm.
l_s_var_range-low = <l_sx_atr>-chavl.
APPEND l_s_var_range TO l_t_var_range.
Attribute
READ TABLE <l_sx_atr>-t_atr ASSIGNING <l_s_atr>
WITH KEY attrinm = <l_s_var>-attrinm.
IF sy-subrc <> 0.
RAISE x_message.
ENDIF.
CLEAR l_s_var_range.
l_s_var_range-sign = 'I'.
l_s_var_range-opt = 'EQ'.
l_s_var_range-vnam = '1ATTRINM'.
l_s_var_range-iobjnm = <l_s_atr>-attrinm.
l_s_var_range-low = <l_s_atr>-attrivl.
APPEND l_s_var_range TO l_t_var_range.
Unit of measure (only for amounts and quantities)
IF ( <l_s_var>-mwkz = 'M' OR <l_s_var>-mwkz = 'Q' ) AND
( <l_s_var>-fixcudim IS INITIAL ).
CLEAR l_s_var_range.
l_s_var_range-sign = 'I'.
l_s_var_range-opt = 'EQ'.
l_s_var_range-vnam = '1CUNM'.
READ TABLE <l_sx_atr>-t_atr ASSIGNING <l_s_atr_cu>
WITH KEY attrinm = <l_s_var>-cunm.
IF sy-subrc = 0.
l_s_var_range-iobjnm = <l_s_atr_cu>-attrinm.
l_s_var_range-low = <l_s_atr_cu>-attrivl.
APPEND l_s_var_range TO l_t_var_range.
ENDIF.
ENDIF.
Key date of query
CLEAR l_s_var_range.
l_s_var_range-sign = 'I'.
l_s_var_range-opt = 'EQ'.
l_s_var_range-vnam = '1DATE'.
l_s_var_range-iobjnm = '0DATE'.
l_s_var_range-low = i_srdate.
APPEND l_s_var_range TO l_t_var_range.
InfoObject properties
CALL FUNCTION 'RSD_COB_PRO_GET_ALWAYS'
EXPORTING
i_iobjnm = i_chanm
IMPORTING
e_s_cob_pro = l_s_cob_pro
EXCEPTIONS
infocube_not_found = 1
error_reading_infocatalog = 2
iobjnm_not_found = 3
illegal_input = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
l_vnam = <l_s_atr>-attrinm.
Call variable exit to get virtual attribute
CALL FUNCTION 'EXIT_SAPLRRS0_001'
EXPORTING
i_vnam = l_vnam
i_vartyp = rrkg_c_vartyp-formula
i_iobjnm = i_chanm
i_s_cob_pro = l_s_cob_pro
i_s_rkb1d = l_s_rkb1d
i_periv = l_periv
i_t_var_range = l_t_var_range
IMPORTING
e_t_range = l_t_range
e_meeht = l_unit
e_waers = l_currency
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
READ TABLE l_t_range INTO l_s_range INDEX 1.
IF sy-subrc = 0.
Attribute value
<l_s_atr>-attrivl = l_s_range-low.
Attribute unit of measure (only for amounts and quantities)
IF <l_s_var>-mwkz = 'M' AND <l_s_var>-fixcudim IS INITIAL.
<l_s_atr_cu>-attrivl = l_unit.
ELSEIF <l_s_var>-mwkz = 'W' AND <l_s_var>-fixcudim IS INITIAL.
<l_s_atr_cu>-attrivl = l_currency.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP. " variables for attributes
ENDLOOP. " characteristic values
Thanks,
Vijaya. -
BEx Query: Attribute not display Unit of Measure (UOM)
In a BEx I am trying to create a query that displays attributes to 0EMPLOYEE. One of the custom attributes is the employee's rate of pay. We have the hourly rate, nightly rate, etc. This attribute is a numeric attribute with currency assigned as the Unit of Measure. I am trying to create a query displaying the pay rates from the attributes of 0EMPLOYEE but remove the unit of measure in the output. I am aware this can be done on key figures using the NODIM formula. How can I remove on an attribute?
Example: Output is $10.25 UOM. I want it to display as $10.25.
Thanks.Hi,
Create a Formula Variable with Replacement Path for this Attribute.
Use NODIM function for the Formula Variable.
Let me know if it works according to your requirement.
Regards,
Geeta -
Base Unit of Measure as Navigable Attribute
Any idea how to make the Base Unit of Measure 0BASE_UOM a navigable attribute for 0MATERIAL?
Any helpful answer would be appreciated.
Thank you,
Gabriel.Hi Gabriel
BASE_UOM is Generally added to the UNIT Dimension by default.
Where as Navigational attributes have to be added to drill down to further details in the Query.
So why do u need to make BASE_UOM as a Navigational attr.?
It is generally not required. -
How to convert unit of measures in bex on master data attribute values
Hi All,
i need to convert the unit of measure in Masterdata Attribute values... that means ) ' 0grooss_wt'. this is attribute as a keyfigure of ' 0material' .. this ' 0gross_wt' values has to convert in KGs. at Present ' 0gross_wt' values are in KG and Grams...
I can change these values in update rules by writting Routine.. But I need to convert it in KGS at BEX Query Designer Level..
I need calculate like this
quantity sold * Gross Weight.
here Gross Weight is the formula variable which replacing the values of gross weight...
i tried by creating conversion types in RSUOM t-code. but it works on keyfigures of infocube.. not on attribute values of master data...
is there procedure in formula variable it self to convert unit of measure before replacing the values.....
or is there any other solution to this Problem...
Thanks in advance..
regards
ravi.pHi
Have you tried to create a variable for ths kf with exit. I thnk it is possible here
Assign points if useful
Regards
N Ganesh -
Unit of Measure is not defaulting on the SC
Hi Gurus,
I have an issue in SRM 7.01 shopping cart that Unit of measure is blank when the shopping cart is opened... But it defaults the value EA before..
Can someone tell me what is the issue..Hello Sandy,
Try to maintain the attribute CUR as befault in Org structure at root level and check it..
and try to debug the BADI: BBP_DOC_CHECK_BADI for more details..
All the best.
Regards,
Sankarbabu -
Unit of measure is not maintained at level2 DSO
Hi Experts,
Unit of Measure is not maintained in level2 DSO.
Scenario:
We have a Product having values for different market in DSO UOM is Millions and Aggregated Value of that product is loaded in upper level DSO Unit of Measure is not maintained it shows blank.
Solution: We have done selective deletion and uploaded again from the DSO where UOM is maintained correctly, Issue is resolved.
We would like to know the cause of the issue.
Please any let me know how to isolate the issue and if you have time let me call you to investigate further.
Regards,
PremHi Murali,
UOM is maintained in level1 DSO correctly and for certain aggregated values it is not maintained and this very strange if we do manual upload data UOM is correct in Level2 DSO.
I guess issue happening in regular data load or what so ever....
We are trying to correct the data just by deleting and uploading again as this is permanent solution.
If routines are the issue when we upload manually it shouldnt work but still working fine... this strange behaviour....
please suggest and advise me... if required let me call you.
Regards,
Prem -
Marketing attribute not assignable with language PL
Hi *,
I have detected a strange behaviour when maintaining "some/special" marketing attributes for BP in logon language PL.
The affected attributes are configured as follows.
Format No. Chars Dec.Places Meas. unit Sing-val
Numeric Format 3 0 % X
The usage for EN/DE is fine but when trying to maintain a value like '30' using logon language PL the below mentioned error occurs. But obviously I don't use intervals etc. Just a single figure.
Attributes with the following settings do not lead to an issue:
Format No. Chars Dec.Places Meas. unit Sing-val
Numeric Format 10 0 X
DETAILS ON ERROR-MESSAGE
Diagnosis
Possible causes:
Intervals can only be specified if you have set the indicator Intervals
Allowed.
You must specify the interval in the form value 1 - value 2 (there must be a
space both before and after the hyphen). No other character except a hyphen may
be used to separate the values.
A value can contain up to the same number of decimal places as specified in
the Decimal Places field.
The value in the field Number of Chars defines the total number of
characters, including decimal places (for example: If the number of characters =
3, and the number of decimal places = 1, then 20.1 is valid, but 300.1 is not
valid).
You must define the decimal point and the thousand separator according to
your user settings.
Procedure
Use the value help, if available, to select a permitted
value. If there is no value help available, check the data type of the marketing
attribute."
To exclude the possibilty the attribute could be "damaged" I created a new one with same options and got the same language dependend behaviour.
Any ideas?
Kind regards
ThomasAny ideas/impressions?
-
APO key figures - units of measure
I am using APO V5.1.
Via RSA1 I have created a key figure of data type Quantity and unit = 0UNIT.
I have assigned this key figure to my planning area and planning book.
The planning area has unit of measure = CAS, and this is the unit of measure shown for my new key figure in interactive planning.
How can I change the unit of measure for my new key figure to D(ays)?
Thanks for any advice...Datta,
Thanks for this reply.
I have followed your advice...
I have a key figure with data type 'Number'.
In interactive planning, this key figure is appearing with a blank uom.
In the planning book design, on the 'key figure attributes' tab, I cannot however make any changes to the key figure attributes including uom, as they are greyed out.
Any ideas on this?
Thanks... -
Hi All,
We are updating the Unit of meaure using Function Module CRMXIF_PRODUCT_MATERIAL_SAVE. It is creation material successfullly & changing all attributes of products except the Numerator or Denominator of alternative Unit of Measure..
How to change Numerator or Denominatior of existing products...
Thanks in Advance
Regards
SushilI have this report which does the same..code is given below.
REPORT ZCRM_PRODUCT_UOM_ALTERNATIVE .
PARAMETER *
parameter: p_pr_gr type CRMM_PR_SALESG-PROD_PR_GROUP value check.
D A T A *
data: ls_unit type COMM_PR_UNIT.
data: ls_product type comm_product.
data: ls_zmodelinfo type zmodelinfo.
data: lt_product type table of comm_product with header line.
Get all the Product which have UNIT as Category
select * into corresponding fields of ls_product
from comm_product as prd
inner join COMM_PRPRDCATR as cat
on prdproduct_guid = catPRODUCT_GUID
where CATEGORY_ID = 'UNIT'.
****************29.06.2006******************
*For Product Price Group
data: ls_pr_group type CRMM_PR_SALESG.
clear ls_pr_group .
SELECT single *
INTO corresponding fields of ls_pr_group
FROM COMM_PR_FRG_Rod AS M INNER JOIN CRMM_PR_SALESG AS P
ON MFRAGMENT_GUID = PFRG_GUID
WHERE M~PRODUCT_GUID = ls_product-PRODUCT_GUID.
check ls_pr_group-PROD_PR_GROUP = p_pr_gr.
**********End*29.06.2006******************
Get SALEABLE AREA for the Product and put it in table COMM_PR_UNIT
select single ZZ0012 into corresponding fields of ls_zmodelinfo
from comm_pr_frg_rel as frg
inner join zmodelinfo as zmod
on frgFRAGMENT_GUID = zmodFRG_GUID
where PRODUCT_GUID = ls_product-PRODUCT_GUID.
clear ls_unit.
ls_unit-PRODUCT_GUID = ls_product-PRODUCT_GUID.
ls_unit-UNIT = 'FT2'.
ls_unit-NUMERATOR = 1.
ls_unit-DENOMINATOR = ls_zmodelinfo-ZZ0012.
ls_unit-LOGSYS = 'PCRCLNT300'.
modify COMM_PR_UNIT from ls_unit.
insert COMM_PR_UNIT from ls_unit.
append ls_product to lt_product.
clear ls_unit.
clear ls_product.
endselect.
Print all the products that have been changed
loop at lt_product into ls_product.
write:/ ls_product-product_id.
clear ls_product.
endloop.
Julius -
Hi experts,
Although I have decimal places and decimal pl. rounding = 0 in CUNI for a unit of measure, the system allows me to use decimals. Does anyone know how to avoid this?
Thanks, MariaHi,
It is standard system behaviour to be able to input quantity with
decimal places during good movements, even if the corresponding unit of
measure has been defined with zero decimal places.
Please, kindly check the two attached notes 22043 and 77525, where it
is said that there is no rounding performed when you make a goods
movement and the system does not stop the user from entering a quantity
with decimal places.
These notes can be found in service market place -
Adding Alternative Unit of measure as part of attributte of material
Hi gurus,
In our source system each material has alternative unit of measure which contain info on converting the base unit of measure (CAR) to MT and PAL.
I need to add this info as part of material attribute
e.g.
Material "A" 10CART = 1 PAL & 100CART = 1MT
This information captured in MM table "MARM" with material code as the
As part of 0MATERIAL_ATTR , i need to have additional field that capture the info as below
CARTPAL = 0.1 (1/10)
CARTMT = 0.01 (1/100)
Please help to advice on how to enhance the extractor to cater the above requirement.
Your help highly appreciated
Thank youhi,
According to me you can enhance the 0Material_attr to bring the required information from ECC.
But before enhancing anything ask func consultant or business below ques.
1) will these unit entry will get created in MARM for any material at the creation of material or it will get updated later on
2) will this unit value get change for any material during its entire life
If any of above que ans is yes then how wud u manage in transaction data if unit get changed.
For that u need to apply feedback concept in transaction dso.
Regards,
Ashish -
Valuation of characteristics for unit of measure "" causes rounding diff
Dear gurus,
I am facing a problem on Goods Issue and Transfer Posting. My Material is maintained with Batch Specific Unit of Measure.
Base Unit = Kg ,and Batch specific unit of Measure = BAL(Bales).
My unit of Issue = BAL. For every bale at the the time of GR, i m storing the wieght of the Bales in the system. Now at the time of Issue and transfer posting, system is giving the following error message:
"Valuation of characteristic for unit of measure BAL causes rounding diff"
In unit = KG, Decimal places = 7, Decimal places rounding = 7
In Unit = BAL, decimal places = 3, Decimal places rounding = 3.
Kindly help me guys...
ThanksDear Johi,
See SAP NOTE 147489 - Error XU033 in goods movement with active ingredient. If you doesn't need to check rounding errors:
"For this use the following path: Logistics -> General -> Batch Management -> Define System Message Attributes (Transaction OCHS)."
Edit the system message XU03 to no errors.
Regards -
Default Unit of Measure in Shopping Cart
Hello Experts,
I am implementing SRM 7.0 Extended classic Scenario with SAP ECC6.0.
When creating a Shopping Cart for Free Text items, in Employee Self-Service of via the Professional SC, the user systematically has to select the Unit of measure he wants to use (unless he has defined his own defautl value with right click > Set current value as default).
Is there a way in the system to define a default ordering Unit of Measure for the Shopping Cart for every user ?
I searched the organization attributes (PPOMA_BBP), the user parameters (SU01), but I could not find a way.
Thanks in advance,
SofianeUnlike currency, which is usually fairly static for a company/user/system, unit of measure usually varies from one document to another, if not one item to another frequently. Therefore there is no per user default for this field by standard. However, you could enhancement the relevant webdynpro view, e.g. /SAPSRM/WDC_DODC_SC_I_BD, (method WDDOINIT) to default the unit of measure that way on the UI.
-
How to report on Alternate Units of measure
Hi ,
I am trying to implement the unit conversion ..i have few basic questions..
1)Do we need to have the 0MAT_UNIT in the cube/ODS
2)for 0material do i specifically need the base unit of measure as unit for the attribute conversion factor..
How do i go ahead if my conversion factor has a different unit..
3)In my scenario i am trying to do unit conversion on a keyfigure which has unit as billing qty in SKU..Do I need to do anything different in this case in order to convert to a diff unit..
Had changed the code given in the how to do doc..The report gave all the values as zero.
Pl suggest.
Appreciate ur inputs.
Regards,
G.VI am using BW 3.5 .
Loaded/activated both 0material and omat_unit.
0MAT_UNIT is not maintained in the ODS/CUBE.
The keyfigure i am trying to convert to alternate unit of measure is billing qty in SKU which has billing qty in SKU
as unit to that quantity..
The user input variable for alternate unit of measure is defined on the unit billing qty in SKU..
when i debug it is not processing through this loop..
IF i_step = 0 AND i_vnam = 'YUOMCNVF' AND i_iobjnm = '0MATERIAL'.
read material and base uom from variables
LOOP AT i_t_var_range INTO l_s_var.
CASE l_s_var-iobjnm.
WHEN '0MATERIAL'. l_material = l_s_var-low.
WHEN '0BASE_UOM'. l_base_uom = l_s_var-low.
ENDCASE.
ENDLOOP.
Pl advise..
Maybe you are looking for
-
When I try to pay a song from my itunes page a message pops up that says, The Song " " could not be used because the original file could not be found. Would you like to locate it? When I click of locate it cannot be found. This problem just star
-
TestStand 4.0 Watch Expression Panel Patch
There is a patch available for TestStand 4.0. This patch improves the performance of the Watch Expression in the TestStand 4.0 Sequence Editor. For more information regarding this patch, please see the Readme. http://joule.ni.com/nidu/cds/view/p/id
-
hi gurus, can u tell me please While creating PO we are entering purchasing group,this purchasing group controls any thing,can we take a report a purchasing group wise,can we see the purchasing group wise purchase also we are maintaining purchasing g
-
Mapping Problems on a Single PC
I have a WD My Book Live Duo NAS just suddenly stopped mapping drives after I had to reboot my PC (which I rarely have to do). The only thing that will map now is the public share. I had another share at \\devicename\Archive and I have several GB of
-
How can i give points to others
plz tell how can i give points to others