Query- Variable Alternate Unit
Friends,
I searched sdn and googled also.
I am unable to find my solution. Pls help.
My requirement is to find out Prod. Qty in alternate Unit of measure for different materials each have got different alternate unit .
For eg. If a material is having alternate units as CAP, and EA. I need Prod. Qty in Both this alternate Units.
For Fixed alternate unit it works fine, but for variable(more than one) I donno how to do.
Kindly help.
Regards,
Guru
Thanks for ur time Amer,
Is it possible in Query level? I had loaded the alt UOM in Unit of Measure for Char in Business Explorer tab of 0material.
And Sap has created the automatic DSO, with all numerator, denominator etc..
I know the procedure for creating a variable screen for alt UOM. and it allows me only to select one alternate unit. I donno how to do for multiple alt unit.
Can you pls explain a bit more elaborate. I am just 1 month old to BI.
Thanks,
Guru
Similar Messages
-
Variable for Alternate Unit of Measure
Hello Experts
I have implemented the soultion for reporting data in Alternate Unit of measure using the "How to..." guide provided at https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b7b2aa90-0201-0010-a480-a755eeb82b6f
This solution involves creating a variable which prompts the user to enter the required unit of measure.
However I have a situation where I would like to create variable which is not input-ready and has a fixed value assigned to it without prompting the user. Moreover, I cannot modify the already existing input-ready variable as it is used in other Queries.
Does this involves creating a new user exit or modifying the existing user exit. If yes then can you please tell me how this can be done.
Thanks
RishiHi Rishi,
You can follow any one the below procedure for solve your issue.
1. You can change the variable by removing the check box "Ready to input". But you mentioned that you used that variable in other queries also. So, I am not suggesting this.
2. You create a new variable same as the existing variable but with out selecting "Ready to Input" check box. Now when the user run the query, that variable will not be seen to the user. Now, we will see the customer exit, you assign new variable value to existing variable, before that you have to write a condition for checking the query name. If you are running the query which have the new variable then assign the variable value to old variable. This will solve your question.
I hope you understood this procedure. If you have any doubts let me know.
Regards,
Patil. -
Variable issue for Alternate Unit of Measure
Hello Experts
I have implemented the soultion for reporting data in Alternate Unit of measure using the "How to..." guide provided at https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b7b2aa90-0201-0010-a480-a755eeb82b6f
This solution involves creating a variable which prompts the user to enter the required unit of measure.
However I have a situation where I would like to create variable which is not input-ready and has a fixed value assigned to it without prompting the user. Moreover, I cannot modify the already existing input-ready variable as it is used in other Queries.
Does this involves creating a new user exit or modifying the existing user exit. If yes then can you please tell me how this can be done.
Thanks
RishiHi Rishi,
You can follow any one the below procedure for solve your issue.
1. You can change the variable by removing the check box "Ready to input". But you mentioned that you used that variable in other queries also. So, I am not suggesting this.
2. You create a new variable same as the existing variable but with out selecting "Ready to Input" check box. Now when the user run the query, that variable will not be seen to the user. Now, we will see the customer exit, you assign new variable value to existing variable, before that you have to write a condition for checking the query name. If you are running the query which have the new variable then assign the variable value to old variable. This will solve your question.
I hope you understood this procedure. If you have any doubts let me know.
Regards,
Patil. -
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. -
Hi,
In order to implement the Alternate units of measure -
I need to implement user exit and activate enhancement RSR0001. In the description below is listed what to implement of includes. In the function group XRSR - I have added the code to the includes ZXRSRTOP and ZXRSRU01. These are both a part of the group. But the last one ZXRSRF01 is not in the include folder. I tried to create an include by right click on the include folder and choose create - I named it ZXRSRF01 and copied the code into it. But it is still not to be found in the XRSR function group and when I check the program the get_form call raises and error in the code of the include ZXRSRU01. How to get the include in the function group or is there another solution?
From SAP - How to...report data in alternate units of measure.
3.7 User Exit for Variables
Implement user exit for variables and activate enhancement RSR00001.
***INCLUDE ZXRSRTOP.
Enhancement: Alternate U.o.M.
DATA: g_aunit TYPE /bi0/oimat_unit.
***INCLUDE ZXRSRU01.
Enhancement: Alternate U.o.M.
DATA:
l_s_range TYPE rsr_s_rangesid,
l_s_var TYPE rrs0_s_var_range.
l_dummy(72) TYPE c. "delete
DATA:
l_factor TYPE f,
l_factor1 TYPE f,
l_factor2 TYPE f,
l_msgv1 LIKE sy-msgv1, "insert
l_msgv2 LIKE sy-msgv2, "insert
l_msgv3 LIKE sy-msgv3, "insert
l_material LIKE /bi0/pmaterial-material,
l_base_uom LIKE /bi0/pmaterial-base_uom.
Called after user input
IF i_step = 3.
Get variable for alternative unit entered by user
Validate entry and store as global variable
READ TABLE i_t_var_range WITH KEY vnam = 'YTAUNIT' INTO l_s_var.
IF sy-subrc = 0.
TRANSLATE l_s_var-low TO UPPER CASE. "#EC TRANSLANG
CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT'
EXPORTING
input = l_s_var-low
language = sy-langu
IMPORTING
output = g_aunit
EXCEPTIONS
unit_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
Error: Please enter a valid unit of measure
l_msgv1 = 'Unknown unit of measure:'.
l_msgv2 = l_s_var-low. "insert
l_msgv3 = '. Please enter a valid unit of measure.'.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
i_class = 'R9'
i_type = 'E'
i_number = '000'
i_msgv1 = l_msgv1
i_msgv2 = l_msgv2 "change
i_msgv3 = l_msgv3
EXCEPTIONS
dummy = 0
OTHERS = 0.
CALL FUNCTION 'RRMS_MESSAGES_SHOW'.
CALL FUNCTION 'RRMS_MESSAGES_DELETE'.
sy-subrc = 4.
RAISE again. "#EC *
ENDIF.
ENDIF.
ENDIF.
Called from "Get Attribute" Function (Modification)
I_VNAM Attribute (not the name of the formula variable)
I_IOBJNM InfoObject
I_T_VAR_RANGE Contains characteristic value, attribute value,
unit of measure, query key date
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.
get factor for base UoM
PERFORM get_factor USING l_material l_base_uom l_factor1.
get factor for alternate UoM
PERFORM get_factor USING l_material g_aunit l_factor2.
return conversion factor for variable
IF l_factor2 <> '0.0'.
l_factor = l_factor1 / l_factor2.
e_meeht = g_aunit. "insert
ELSE.
When the UoM conversion is not maintained, instead of showing 0, the
base UoM with a factor of 1 is used. Therefore, the user sees MIXED
VALUES in the total line and knows right away that there is something
wrong. That way its easier to track inexistent conversion factors.
l_factor = 0. "delete
l_factor = 1. "insert
e_meeht = l_base_uom. "insert
ENDIF.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = l_factor.
APPEND l_s_range TO e_t_range.
e_meeht = g_aunit. "delete
ENDIF.
***INCLUDE ZXRSRF01.
*& Form get_factor
Get conversion factor from /bi0/pmat_unit
FORM get_factor USING i_material TYPE /bi0/oimaterial
i_mat_unit TYPE /bi0/oimat_unit
e_factor.
TYPES:
BEGIN OF ys_mat_unit,
material TYPE /bi0/oimaterial,
mat_unit TYPE /bi0/oimat_unit,
numerator TYPE /bi0/oinumerator,
denomintr TYPE /bi0/oidenomintr,
END OF ys_mat_unit.
DATA:
l_s_mat_unit TYPE ys_mat_unit.
STATICS:
s_t_mat_unit TYPE SORTED TABLE OF ys_mat_unit
WITH UNIQUE DEFAULT KEY.
CLEAR: l_s_mat_unit, e_factor.
READ TABLE s_t_mat_unit INTO l_s_mat_unit WITH KEY
material = i_material
mat_unit = i_mat_unit.
IF sy-subrc <> 0.
SELECT SINGLE * FROM /bi0/pmat_unit
INTO CORRESPONDING FIELDS OF l_s_mat_unit
WHERE material = i_material
AND mat_unit = i_mat_unit
AND objvers = 'A'.
IF sy-subrc = 0.
INSERT l_s_mat_unit INTO TABLE s_t_mat_unit.
ENDIF.
ENDIF.
IF l_s_mat_unit-denomintr <> 0.
e_factor = l_s_mat_unit-numerator / l_s_mat_unit-denomintr.
ENDIF.
ENDFORM. " get_factor
Hope someone can help.
ThanksHi Karin,
I am also facing the same problem for alternate units of measure...i tried to access the path
websmp201.sap-ag.de/~sapdownload/011000358700000488512003E/Howto_alternate_uom5.pdf
but it is not found...can u please give me this document if u have it with you.?
Thanks,
Vijaya -
Display of Alternate Unit of Measure
Hi there,
We try to display alternate unit of measure <b>in BEx</b> by implementing the following Howto Doc:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how to report data in alternate units of measure
It works fine as long as 0MATERIAL is included <b>in the rows</b> of the report.
In any other case (e.g. 0MATERIAL is a free characteristic or not included in the report at all) this solution won't work and we get the "red x"!
Any suggestions??
Thanx,
Ofer.Hi Ofer,
Virtual Char/KF behave as normal Char/KF in a sense that you create and add them in Infoproviders or Queries just like normal Char/KF. But they do not hold any data/values and their values are determined only at query run time (by writing code in user-exit for virtual kf/char.)
The logic could be something like this (though I'm pretty sure, would need to work on it again ):
Keep in mind that all this would be performed at query run time:
1. For each record, read material master data.
2. Get quantity, UoM for above record.
2. Get UoM from selection screen variable.
3. Convert and store in virtual KF.
You can search this forum for more information on it. Do let us know if need any more info.
Regards,
Vikrant. -
Hi,
I need some help.
i'm trying to implement to alternate units how to paper in my BW system and it doesn't work.
I don't know why.
i did all steps from the document and it is still the same problem in the query, the colomn is empty with 0 value.
It seems that the progam doesn't go in the program i created.
I activated all but in the include YBW_AUNIT_ENHANCEMENT i have a problem :
The field "L_TX_ATR" is unknown, but there is a field with the similar
I activated even with errors.
Any idea. i'm sorry to not give more details but i don't know what to do. i already done the appendix of the document and it is correct, except the breakpoint, there is no stop when i execute in RSRT.
Regards
Cyrilthis is the code of program 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 rrmostrecent
CHANGING c_th_varchavl TYPE rrsv_th_varchavl.
DATA: l_r_reader TYPE REF TO cl_rsdm_read_master_data,
l_t_req_atr TYPE rsdm_t_req_atr,
l_t_chavlinfo TYPE rsdm_t_chavlinfo,
l_tx_atr TYPE rsdm_tx_atr.
PERFORM varchavl_atr_init USING i_th_var_atr
i_chanm
CHANGING l_r_reader
l_t_req_atr.
PERFORM chavlinfo_fill USING i_t_sid
i_th_var_atr
c_th_varchavl
CHANGING l_t_chavlinfo.
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 DV2K900411 1
Ajout de la gestion des unité alternative
INCLUDE ybw_aunit_enhancement.
*} INSERT
PERFORM varchavl_atr_fill USING i_th_var_atr
l_tx_atr
CHANGING c_th_varchavl.
this is the include :
*& 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,
l_msgv1 LIKE sy-msgv1, "insert
l_msgv2 LIKE sy-msgv2, "insert
l_msgv3 LIKE sy-msgv3.
FIELD-SYMBOLS:
TYPE rsdm_s_atr.
Loop over all characteristic values
LOOP AT l_tx_atr ASSIGNING .
Loop over all variables to be replaced by attributes
LOOP AT i_th_var_atr ASSIGNING .
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 = -chavl.
APPEND l_s_var_range TO l_t_var_range.
Attribute
READ TABLE -attrivl.
APPEND l_s_var_range TO l_t_var_range.
Unit of measure (only for amounts and quantities)
IF ( -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 -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
-attrivl = l_s_range-low.
Attribute unit of measure (only for amounts and quantities)
IF -attrivl = l_currency.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP. " variables for attributes
ENDLOOP. " characteristic values -
BEx: How to change a Query Variable that is not visible in Filters List?
Hello Experts,
Good day, I'm currently editing an old query, I am changing the Query Variables with new ones, but I found one variable that I cannot replace.
Please see the screenshot below, in the Query Properties Window [Variable Sequence Tab (right side of picture)] the Variable that I am trying to replace (Unit) is visible. But when I look for the variable in the "Filter Tab" (left side of picture) under Characteristic Restrictions, it doesn't exist in the list.
How can I find this Variable and replace it with a new one?
Other reports are still using this variable so it will impact the other reports if I simply edit the variable. So I need to replace it with a new variable instead.
Thank you for your time.Hi,
SInce you are searching for a variable for Unit, look into below screenshot and navigate to the variables.
First click on drop down and select 'Entry for variable' then you will get lisl (after you click on drop down in 'Target Unit' drop down option.
Normally these type of variable called 'Formula Variable' try editing any of the formula and locate the option as shown below,
Hope it helps! don't forget to update the final solution and mark the correct/helpful answers.
Remember it will help others to find the solution and motivate the members to answer your question.
Thanks,
Umashankar -
Report Data in Alternate Unit of Measure
Hi
We are working on Unit of measure Conversion for this we are following How To .Report Data in Alternate Units of Measure document. We did all the steps as mentioned in the document still this is not working. All results are showing zeros with same units of key figure qty like EA, ROl, Boxes and so on. We want to convert this into Cartons and Pallets. My question is is there any thing we need to do which is not mentioned in this white paper.
For example maintaining Conversion Factor in R/3 side?
Do we need to add Conversion factor Key figure to Transfer Structure and Info cubes?
(Which is not mentioned in the white paper) if so which field we need to map this in Transfer Structure?
We are in Version 3.5
Thanks
NagaNaga,
For your first question.....you can "maintain" different units of measure in 0MAT_UNIT, but at one time you can report on only one alternate unit.
For your second question, I have a feeling that it is the problem with your enhancement to the std SAP code which is mentioned in the How to Paper. After you have done the enhancements did you activate the programs again? If there is somebody with you who is good in ABAP just run this enhancement through him.
Also just make sure you have followed everystep in that how to document, including the query designer part of it.
According to the logic of that paper, if the alternate unit is not available, then it is supposed bring back data in base unit, it is not supposed to error out. Check your ehancement piece again.
Thanks
Yashu Raj -
Conversion of alternate unit of measurement
Hi,
System will not allow to enter conversions of unit of measurements in decimal points. But is there any configuration or method, we can force system to accept conversions of unit of measurements in decimal points only? (For example 2.5kg = 1pc, base unit of measurement is 'PC' and alternate unit of measurement is 'KG')
Regards,
SattujHi,
For the given example of Alternate conversion you can use the following setting :
2.5 Kg = 1 Pc
Put the Values as :
25 Kg = 10 Pc
With this the objective of Decimal is achieved.
Please check the following posts for more info :
[Re: variable order unit]
[Re: Base Unit of Measure]
[Re: Issue in unit of measure]
Hope it helps,
Best regards
Amit Bakshi -
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.. -
Query result Alternate row with different color
hello
can anyone help me on a query result.
i wish to have a :
query result Alternate row with different color .
ex.
first row light grey
second row darker grey.
and repeats itself up to the last record/row.
thanks<tr> <!------------------------------I replaced with
<tr bgcolor="<cfif currentrow mod
2>##D3D3D3<cfelse>##F5F5F5</cfif>">
<td>
#MYARRAY[x][2].CNO#
</td>
<td align="center">
#MYARRAY[x][2].CDCDTt#
</td>
<td>
#MYARRAY[x][2].PADESC#
</td>
<td align="center">
#MYARRAY[x][2].INc#
</td>
<td align="center">
#MYARRAY[x][2].Exp#
</td>
<cfset thirdArray = MYARRAY[x][3]>
<cfif NOT arraylen(thirdArray)>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<cfelse>
<cfloop index="z" from="1" to="3">
<cfif z GT arraylen(thirdArray)>
<td> </td>
<td> </td>
<cfelse>
<td>
#thirdArray[z][2]#
</td>
<td>
#thirdArray[z][3]#
</td>
</cfif>
</cfloop>
<cfif arrayLen(thirdArray) gt 3>
<td nowrap="nowrap">
<cfloop index="z" from="4" to="#arraylen(thirdArray)#">
#thirdArray[z][2]# - #thirdArray[z][3]#<BR />
</cfloop>
</td>
</cfif>
</cfif>
</tr>
I got this error.
Variable CURRENTROW is undefined -
Conversion in Alternate Unit of Measure
Hi All,
I have a report in which i report data in both base and alternate units of measure, the report has three filelds Material , Quantity (BUOM) and Quantity (AUOM). The problem is for a certain material; say Mat_1, the unit in which it is entered can be Carton or EA, i am using Carton to litre conversion, but my query fails when the material has EA as its unit. Is there a way by which i can convert the unit to litres be it in Cartons or EA???
Kindly suggest a solution anyone pls pls help
Thanx in advance
Regards,Hi,
You can define your own Unit Translation using Tcode RSUOM in such a way that it takes a dynamic unit from each source record with fixed target unit as Litres.
Refer http://help.sap.com/erp2005_ehp_04/helpdata/EN/1b/325d4217139041e10000000a1550b0/content.htm for Unit Translation creation.
You would need to ensure that unit translations are available in T006 table.
--Priya -
Display alternate unit of measure as a characteristic
Hello,
I have successfully implemented the 'How to ... Report Data in Alternate Units of Measure' using the business content infocube 0IC_C03, Material Stocks/Movements.
The infocube currently contains only base unit of measure.
In the queries I am displaying key figures in base unit and alternate unit of measure.
My requirement is to subtotal by alternate unit of measure. Is this possible? If I add 0BASE_UOM to the query this has no affect on the alternate unit of measure.
Can I add an alternate unit of measure characteristic to the infocube and populate it during query run time? Where would this configuration take place?
SAP_BW 3.1, content 3.3.
Thanks for any suggestions,
MarkHI,
Go to Inforecord of that material with that vender on that plant.
Change Inforecord(me12)...here in general data...change the order unit.
system will give the conversion factor as u defined in material master.
Hope Help U !
Regards,
Pardeep Malik -
Text lines in the BW query variables screen
Hi gurus.
The bw users ask me to display some text lines in the BW query variables prompt.
The text lines are saved in a custom table.
The only idea that I've got is to use customer exit text variables and fill them in CMOD when I_step = 1.
I don't like this solution (I should have more the 10 text lines and so I have to mantain more than 10 Text variables) but I can't find any other solution.
Any new idea or solution?
Is there in Bex enviroment a functionality (that I don't know) for doing somenthing like this ?
Thanks fo any help.
S.Hi,
to resolve it you should create all the prompts in the BW query. You are using a query with 2 parameters and then a dynamic list of values. the dynamic list of values can only work after you entered the other values.
Ingo
Maybe you are looking for
-
How to use a MAP whithout join table
Hello I am still evaluating KODO ;-) I am using kodo 3.1.2 with an evaluation version linux (kernel 2.6) SUN JDK 1.4.2_04 MYSQL MAX 4.0.18 -Max IDEA 4.0.3 and ANT 1.5.4 (to be exhaustive) I am wondering how to configure the following mapping involvin
-
How do I shrink a QT window?
I'm using QT to play some soundFX for a presentation and would like to "shrink" the window that it comes up in, if possible. Is this possible? Right now I have a bunch of 2-3 second SFXs that, when opened in QT, open as full-sized windows. Is there a
-
Photoshop CS6 Display issues - After Windows 8 upgrade
Just upgraded from Windows 7 to Windows 8 Pro (64bit). Now the background interface in Photoshop CS6 keeps changing when I click the image, the background, the layer and the crop tool. I get transparent, black and various grey. I have uninstalled
-
How do I stop Search Icons from appearing within webpages?
Search Icons are constantly appearing on pictures on websites that I visit, I think it's Yahoo Search that is causing this.
-
Hi I am new to lightroom and I have nearly finished the lightroom 5 30day trial and then I decide to buy it. I brought the Student and Teacher version and adobe sent me the serial number and so on and said I could download it from the order section a