Merge CHAR values in BEx
Hello Experts,
I am trying to achieve the following, please can someone throw me some ideas. ofcourse points will be assigned to the useful answers.
I have a Char called "Acc.*** cat" which has 3 to 5 values such as "WBS element", "Order", "Cost centre" etc. The values for each WBS, Order and Cost centre are availble in corresponding CHARs as below.
Acc. As cat WBS_element Order Cost Centre
WBS ESXXXXX1 # #
ESXXXXX2
ESXXXXX3
Ord # KSXXX1 #
KSXXX2
KSXXX3
cost # # CCXXXXX1
CCXXXXX2
CCXXXXX3
My requirement is that the output should as below with one CHAR intead of 3 Char. Basically these merging values in a new char as below
Acc. As cat Merge_char
WBS ESXXXXX1
ESXXXXX2
ESXXXXX3
Ord KSXXX1
KSXXX2
KSXXX3
Cost CCXXXXX1
CCXXXXX2
CCXXXXX3
etc etc
I hope i made my requirement clear. Please can someone help on how to achive this requirement?
Thanks,
Mahita
Hello Oscar,
Thanks for your reply. But sorry I am still a kid in BI. Can you give me step by step instructions, as i have no idea about Virtual Char? Is there any code involved for this? I would really appriciate a detailed reply or some help documents to achieve this problem
Dash > we are not using workbooks. Our BI reports are avaible thru EP6.0
Thanks,
Mahita
Similar Messages
-
How to use OFFSET for CHAR type value in Bex query
infoobject A value = 1102007
Type = CHAR
I want to have an offset for this infoobject created in query say 1 to 12 months
in month of 10/2007 value = 1102007
remember above 1 is always CONSTANT
then
in month of 11/2007 value = 1112007
in month of 12/2007 value = 1122007
how to do this since the infoobject is of TYPE- CHAR ,its gives we cannot do the OFFFSET in the query ,for doing OFFSET the infoobject must be of type numeric or NUMC.
is it possible achieve this in to update rules?? since i cannot change the type of this infoobject now in the middle of production support
please help
thanksHi,
You will have to add a characteristic to your cube.
The format should be NUMC
In the update-routine you will have to convert the char value to numc
Success
udo -
While Creation Of SaleOrder Char Values are not getting saved.(V C)
Hi SAP gurus,
One of my client can able to create a saleorder but when we go and see in VA03 Display mode,we found Charactrestic values getting miised out.What could be the probale reasons.
Note: I Have stimulate the required combination as per my client requirement in CU50,here i can able to indentify the Green Sign,but While Creation Of SaleOrder Char Values are not getting saved.
Awaiting for your valuable reply.
Cheers,
Kumar.SKumar ,
If you assign values in classification view or configuration profile they will become default for the product, and it willnot be changed in sales order.
another thing if the item category is incorrect you will not get the configuration pop up at all .
problem what i understand from your thred is at the time of sales ordeer creation there is some inconsistances in the configuration , may be some condition is not fullfilling.
If in CU50 the result shown are error free, same configuration should owrk properly in sales configuration process, please again try to create it in sales order with same value assignment also check all the messages.
see the result of configuration before saving the sales order , i hoep it will work for you.
I am assuming all the things from SD are properly configured ie item catageory, varient pricing etc.
Check and revert back.
Regards
Ritesh -
Default value of BeX customer Exit variable not Displayed in WeBI??
Hello Experts,
We are stuck with a problem where WeBI report is created on top of BeX query and we are not able to see the default value of Bex Customer exit variable in WeBI run. Here is the complete scenario:
1. One restricted KF is created in BeX, restricted with Customer exit variable on net Due date. And this variable is mandatory, ready for input, and Default value in calculated is user exit as current Week's Monday.
2. So, by default KF data should be restricted to Monday of current week, if user does not change this value.
3. Now, WeBI report is created on top of this Bex query, and all is working fine, i.e. we are getting variable as Prompt in WeBI, but Default value is not shown while Running the Webi Report.
So, need your inputs on the same, if default values from BeX in WeBI is supported or not? If yes, why this is happening, and how to resolve it?
Please notice, the restrcition is in KF only, it is not a separate restrcition on Net Due date in Filter area or in Defualt area of BeX
and we are on SAP BW 7.1 and BOXI 3.1 SP4.
Regards,
Vipul
Edited by: VIPUL GOYAL on Nov 23, 2011 9:44 PMHi,
See 1285993 - Support of Customer Exit Variables from BEx query into WebIntelligence via OLAP universe
WebI will prompt when executed, but the default values calculated by the user exit - do not appear.
Note: If the BEx variable has property 'ready for input' set / enabled, then its WebI prompt shows ok, but no default value appears.
Cause
This behaviour expected 'by design' (in the context of the product's current limitations) as explained in the online guide below:
Please refer to Chapter 7, page 44, document link here: http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_sap_olap_universes_en.pdf
Characteristic variable > processing type > Customer Exit is "Supported, without user entry"
--> This should be understood as meaning "User will not be shown a prompt"
regards,
H -
Getting char values from a string problem
Hi,
Here's an example of what I'm trying to do:
boolean loopSwitch = true;
while (loopSwitch)
String orderDecider = JOptionPane.showInputDialog (null, "Would you like your numbers to be ordered in ascending or descending order(A/D)", "Order decision", JOptionPane.QUESTION_MESSAGE);
if (orderDecider == A)
loopSwitch = false;
}I basically want the user to input either a/A/d/D and to get the char values from the string so I can use them in an if statement.
Basically, I wanna parse the string into a char.
Is this possible?
Thanks.
Edited by: xcd on Oct 16, 2009 8:38 AMWhy not just use the String.equals() method to compare a String to a String?
But if you must, you can use the String.charAt() method to return a char at a particular location in the String.
Note: char literals need to be surrounded by single quotes ('A') and String literals need to be surrounded by double quotes ("A"). -
How to Add a New Filter Value in BEx WAD to Display All Result
Hi experts,
I want to add a new filter value in BEx WAD to display all data records. The scenario is as follows:
The status field can have two values: Active ("A) and Inactive ("I").
But the requirement is to have a third value to display all the data records (Active + Inactive). E.g. the value can be "G". The purpose is to increase the understandability for report users.
Does anyone have an idea?
Regards,
JoonHi Vineet,
thanks for your reply. The problem is that there are only 2 values available for this Characteristic: "A" or "I".
The requirement is to have a third value "G" (instead of the default "All Value") due to historical reason, because all future report users have been working with R/3 reports for quite some time and they are accustomed to using "G" for displaying all values.
Is there any possibility to realize this?
Thanks,
Joon -
Hi,
How can I convert HEX value to CHAR value.
The Code in <b>non Unicode</b> system is:
DATA: t_text LIKE tline OCCURS 0 WITH HEADER LINE.
constants: c_hex_20a5(2) TYPE x VALUE '20A5'.
t_text-tdline = 'seller of the item so listed. A legend of the Seller Code(s) is as'.
TRANSLATE t_text-tdline USING c_hex_20a5.
The same code give error in <b>Uni-Code</b> system:
<b>error is "c_hex_20a5 must be an character type object (C, N, D, T or String type)."</b>
If anyone know, what is the solution, please let me know.
Thanks!
Puneet.Hi,
Try declaring the Hex chars using the ABAP char utilities. This is just a sample piece of code on how to declare and use:
CLASS cl_abap_char_utilities DEFINITION LOAD.
DATA: ws_lf TYPE c VALUE cl_abap_char_utilities=>cr_lf.
data: c_newline TYPE x VALUE '0D'. [ it is zero D, for carriage return ]
ws_lf = c_newline.
CONCATENATE it_tab-maktx
ws_lf
ws_template
INTO it_notificatn-template.
Hope this helps...
Regards
Subramanian -
How to write the char value as is in the CSV file
Hi Everyone,
I am creating csv files which contains inventory details for all the products. I am able to create the csv file with utl file concepts. My problem starts after the csv file is being created.
some of the product numbers(Though I am saying Product number, it is varchar2 data type in the table) is like this 3E-12, 3E-54 and so on. I have totally 23 product numbers like this.
When the user opens the csv file it is changing to numbers like this 3.00E-12, 3.00E-54. I want to keep the product number as it is like char value. I tried many quoting and concat methods.
But none of them works for me.
I am using oracle 9i.
Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
Please help me to solve this problem.
Thanks in advance,
Vimal...Hi Friends,
Thanks for the immediate response. Here is my code.
CREATE OR REPLACE PROCEDURE DATA_TO_CSV_FILE
IS
l_file_ptr UTL_FILE.file_type;
l_hdr_text VARCHAR2 (4000);
l_dynamic_sql_str VARCHAR2 (4000);
TYPE l_dynamic_sql IS REF CURSOR;
l_dynamic_cursor l_dynamic_sql;
l_org_id_select VARCHAR2 (200);
l_master_org_id NUMBER;
l_category VARCHAR2 (40);
l_itemno VARCHAR2 (40);
l_description VARCHAR2 (240);
l_brand VARCHAR2 (240);
l_organization_id NUMBER;
l_oh NUMBER;
l_status apps.mtl_system_items.inventory_item_status_code%TYPE;
BEGIN
l_file_ptr := UTL_FILE.fopen ('CSV_DIR', 'inventory.csv', 'w');
l_dynamic_sql_str :=
'SELECT mc.segment2 CATEGORY, itm.segment1 itemno '
|| 'itm.description description, LOG.brand brand,'
|| 'NVL (m.oh, 0) oh'
|| '(select msi.inventory_item_status_code from apps.mtl_system_items msi'
|| ' where msi.inventory_item_id = itm.inventory_item_id'
|| ' and msi.organization_id = '
|| l_master_org_id
|| ' ) status '
|| ' FROM xxx_custom_table m,'
|| ' apps.mtl_item_categories ic,'
|| ' apps.mtl_categories_b mc,'
|| ' apps.mtl_system_items itm,'
|| ' xxx_custom_table1 LOG,'
|| ' xxx_custom_table2 cap'
|| ' WHERE m.item_id(+) = itm.inventory_item_id'
|| ' AND m.org_id(+) = itm.organization_id'
|| ' AND itm.segment1 = cap.itemno(+)'
|| ' AND itm.inventory_item_id = ic.inventory_item_id'
|| ' AND itm.organization_id = ic.organization_id'
|| ' AND ic.category_id = mc.category_id'
|| ' AND mc.segment2 IS NOT NULL'
|| ' AND itm.inventory_item_id = LOG.inventory_item_id'
|| l_org_id_select
|| ' GROUP BY mc.segment2,'
|| ' itm.segment1,itm.inventory_item_id,itm.description,'
|| ' LOG.brand,LOG';
OPEN l_dynamic_cursor FOR l_dynamic_sql_str;
LOOP
FETCH l_dynamic_cursor
INTO
l_category, l_itemno, l_description, l_brand, l_status,l_oh;
EXIT WHEN l_dynamic_cursor%NOTFOUND;
UTL_FILE.put_line (
l_file_ptr,
l_CATEGORY
|| ','
|| l_itemno
|| ','
|| l_description
|| ','
|| l_status
|| ','
|| l_brand
|| ','
|| l_oh
END LOOP;
UTL_FILE.fclose (l_file_ptr);
END;
Hey damorgan,
Can you please give me little more detail about your workaround method. I think I did the ODBC Connection Once for MS ACCESS database. I
hope you are taking about the same method.
Thanks
Vimal.... -
How to changing char. values and create new lines in C_TH_DATA
Hi experts,
we need to distribute the cost of some sender costcenters to the corresponding receiver costcenters.
We have already created a DSO and maintained this with the sender and receiver costcenter. We use this lookup table later in the execute method of our created planning function type to take the sender costcenter and distribute this to the corresponding receiver costcenters.
I've already implemented an IP planning function based on planning function type for this process.
At the end when I debug the method I see that this works fine. I give you an example:
I have in my lookup table the following record:
sender costcenter receiver costcenter distribution percent
4711 4712 75
4711 4713 25
Based on those records in the lookup table I've to distribute the cost of sender costcenter to the receiver costcenters.
Just imagine I would get this record from c_th_data:
sender costcenter costelement value
4711 3000111 100
I have to have the following result after running the exit planning function:
costcenter costelement value
4711 3000111 100 -> without changing
4711 8000111 -100
4712 8000111 75
4713 8000111 25
When I debug the exit function I see in the execute method that c_th_data will be filled correctly. I see exactly the records that I want to see.
But once the function is finished I don't see this result. I also checked the conversation
Changing Char Value in IP C_TH_DATA
but I can't understand what happens after my coding yet.
Can anyone help me or give me an advice what could be the problem here?
Thank you all in advance for your support.
Kind regards,
AliHi Ali,
The planning function generates the records in delta mode. I am explaining the concept taking your example only:
Records in cube before running PF:
sender costcenter receiver costcenter distribution percent
4711 4712 75
4711 4713 25
sender costcenter costelement value
4711 3000111 100
4712 3000111 100
4713 3000111 100
The records that you need to generate from code(Previous ones need to be changed):
sender costcenter costelement value
4711 3000111 000
4712 3000111 175
4713 3000111 125
**Please note that you dont need to generate any corrections(delta records), you only need to generate the final values in the records and the PF will generate the delta's on its own. Also in this case you should see 3 Records Read, 0 Deleted, 3 Changed.
Please let me know if you need any more clarification,
Thanks,
Puneet -
Crosstab with char values doesn't work
I am using Template Builder for Word 5.6.2 to create a crosstab report. I need to create a crosstab table that has char values in the cells not numbers as is expected by the wizard. Because the sum command expectes a number it displays the NaN not a number error in the cell if I try to display a char value. I tried changing the sum to max in the cell:
<?max ($G1[(./CRITERIA_ID=current()/CRITERIA_ID)]/THRESHOLD)?>
but this gives an error.
Is is possible to display a char value?I ran into a similar problem before and worked around it by moving the query to a pipelined function in the database as described at WITH clause unexpectedly causes ORA-00942 in Reports Builder
Hope this helps. -
"Merge with values" not merging values
Hello,
I have quite a problem with LDAP provisionning and LDAP groups management:
- "user1" and "user2" already exist in the LDAP directory and are members of "group1"
- I create user1 in IDM and give him the LDAP ressource => he gets linked correctly to his account
- I create user2 in IDM
- I have a role in IDM with the LDAP ressource associated and a "set attribute value" configured with "group2" and "merge with values"
- when I give this role to user1, user1 gets group1 and group2 in the LDAP directory. Great.
- when I give this role to user2, user2 gets linked correctly to his account and only has group2! group1 has disappeared and no merge whatsoever was performed!
Of course, my real situation involves thousands of existing users, and I plan to manage user ressources only via Roles and not via Ressource. I then have thousands of user2 who are going to lose their groups!
I also tried with "Authoritative merge with values", same result.
Any idea what should be changed?
ThanksHi,
If the users already have access to 'group1' then create a role with "Merge with value, clear existing" for the attribute.
If required then create another role for 'group2' also with "Merge with value, clear existing" for the attribute. A user who is assign both roles will be granted access to 'group1' and'group2'
"Merge with value, clear existing" will ensure the user only has access to the groups as per the role assignments. If the user is independently assigned 'group3' then IDM will remove 'group3' next time the user is refreshed within IDM.
If you only use "Merge with value" then old groups will not be removed even if they are not required. -
Function modules for converting Char value to hexadecimal value
Hi All,
Function modules for converting Char value to hexadecimal value.
Thanks in advanceHi,
use this function module:
<b>RSS_UNIQUE_CONVERT_TO_HEX</b>
regards
Debjani
Rewards point for helpful answer -
Sort F4 values in BEX variable screen
Hi ,
Does anyone know how to sort F4 value help in BEX variable selection screen. This query has come up time and again in SDn and there seems to be no proper reply to this. If anyone has worked on this do let me know.
Thanks,
VaishnaviHi Nara,
Kindly have a look at below thread,
Sort the values in Bex query variable screen
Hope this helps.
Regards,
Mani -
How to eliminate # for empty date value in BEx Analyser
Hi Gurus,
Can any one please let me know how to eliminate # for empty date value in BEx Analyser.
Thanks in advance
peterHi
add the following macro to your workbook (template workbook):
Sub SAPBexonrefresh(qstring As String, resultArea As Range)
For Each c In resultArea
If LCase(c.Value) = "not assigned" Then c.Value = ""
Next
End Sub -
Function Module to extract char values for a matl variant
Experts,
Looking for a Function Module with which I can extract the Char value for a specific characteristic on my material variant. So, the class type is 300 & I would like to pass this material (variant) as an input in order to retrieve the value for the specific characteristic (which will be unique to this variant)
Any one, an idea?
thanksOk, I found what I needed. For everyone's benefit, herez what I found:
1. every application/object in the SAP side which uses the configuration has a unique Internal Object #. For material variants, Sales Documents, Prodn Ord headers & components, so on so forth.
2. In the system the fields CUOBF, CUOBJ carry these Internal Obj #'s. For the sake of getting the material variant char & values I found the func module VC_I_GET_CONFIGURATION, where the input could be the Int Obj # from the MARA or the one from VBAP, based on the need.
Thanks
Maybe you are looking for
-
Redo log question..
my databse is in archivelog mode. i have 2 redolog files. one of my redolog file got corrupted .so wat ll happen.. & how to recover the redologfile
-
What are the best single person shooter games 64bit?
I bought an older version of Doom 3 to play, but found out that it would not work. Does anyone know which 64bit games will work on the mac mini with the new Lion OS? TY
-
On screen display message generator for ThinkPad has stopped working
Hello, This is a fresh install of Vista-32 on a lenovo x300. Upon boot (or launching TPOSDSVC.exe) I receive the error message in the subject line. There is an entry in the Application log, here is the jist of it: Faulting application TPOSDSVC.exe, v
-
Stop links panel resizing when link info is shown
In Illustrator CC - Aside from all the other minor (yet annoying) bugs I've experienced with the new CC and the newest iOS, Yosemite, I've recently had some issues with my workspaces. I had my workspace just how I wanted it; now I know I should have
-
How to convert special characters like #, &, etc occuring in the input string
Hi, I am using method 'Get' to submit a form . When ever there is any special character like '#' in my input For example "033#Test", nothing gets posted beyond 033. Can any one please let me know how do I overc