Remove preceding zeros on BW Infoobject
Dear Experts,
My BW infoobjects showing preceding zeros in the BI4.1 WEBI Prompts LOVs, so user don't want the zeros and they need only values and also they compare BEx analyzer with BO since BEx analyzer LOVs shows only values without zeros.
Is there any function or setting either in BO or BEx designer to remove zeros in the BW infoobjects? so that in BO LOVs display only values without zeros.
Currently values is 0000123456 in BO LOVs and user want only 123456 as per BEx analyzer.
Please help
Thanks in advance.
Regards
Karuppiah N
Hi Karuppiah,
short answer: There is no way of removing those zeroes.
long answer: Those zeroes araise from the conversion routine on the InfoObject, the standard conversion routine is called Alpha and does exactly what you describe with numeric keys in order to convert from external to internal key format. The standard 0GL_ACCOUNT characteristic uses the Alpha routine as delivered by SAP. BEx will display the external key format in the LOV, while Web Intelligence will use the internal key format, hence the zeroes at the start of numeric keys.
This question was already raised here:
How to remove leading zeros from WebI Userpromt variable.
Best regards,
Victor
Similar Messages
-
Remove preceding zeroes from an integer number
How can i remove preceding zeroes from and integer number.
Please help...what are you talking about? How can an int not have preceding zeros?
-
Hi Friends,
It is a outbound PO interface. The vendor number is coming from IDOC and it is being padded with zeros in the PO file. It shouldnt have any zeros preceding the vendor number. For instance if the Vendor is "800012", the field is being created with 0000800012 as the vendor number when it should be created in the file as 800012.
Is there any code to remove the preceding zeros before sending it to the target system.
Thanks in Advance,
Meghna.Hi,
Check the links for UDF.
UDF
http://flickr.com/photos/8764045@N06/
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e55f9548dd
Example 1
http://www.flickr.com/photo_zoom.gne?id=544183191&size=o
http://www.flickr.com/photo_zoom.gne?id=544183195&size=o
http://www.flickr.com/photo_zoom.gne?id=544183225&size=o
http://www.flickr.com/photo_zoom.gne?id=544183233&size=o
Example 2
http://www.flickr.com/photo_zoom.gne?id=545133789&size=o
http://www.flickr.com/photo_zoom.gne?id=545133791&size=o
http://www.flickr.com/photo_zoom.gne?id=545133801&size=o
http://www.flickr.com/photo_zoom.gne?id=545133807&size=o
http://www.flickr.com/photo_zoom.gne?id=545133811&size=o
http://www.flickr.com/photo_zoom.gne?id=545138911&size=o
http://www.flickr.com/photo_zoom.gne?id=545138913&size=o
http://www.flickr.com/photo_zoom.gne?id=545138915&size=o
http://www.flickr.com/photo_zoom.gne?id=545138917&size=o
http://www.flickr.com/photo_zoom.gne?id=545138947&size=o
http://www.flickr.com/photo_zoom.gne?id=545138951&size=o
http://www.flickr.com/photo_zoom.gne?id=545005958&size=o
Example 3
http://www.flickr.com/photo_zoom.gne?id=549186611&size=o
http://www.flickr.com/photo_zoom.gne?id=549186651&size=o
http://java.sun.com/j2se/1.5.0/docs/api/
/people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi
/people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio
http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d046c490-0201-0010-84b6-9df523cbca31
Regards,
Phani
Reward points if Helpful -
I want to remove Trailing zeros from a charecter value
Hello ,
i want to remove trailing zeros for a prticular value.Following is my code :
DATA: V_FLOAT TYPE F VALUE '4.8240000000000000E+03',
V_CHAR(25) ,
P10_4(10) TYPE P DECIMALS 4.
CALL FUNCTION 'CEVA_CONVERT_FLOAT_TO_CHAR'
EXPORTING
FLOAT_IMP = V_FLOAT
FORMAT_IMP = P10_4
ROUND_IMP = ' '
IMPORTING
CHAR_EXP = V_CHAR.
SHIFT V_CHAR RIGHT DELETING TRAILING '0'.
WRITE : V_CHAR ."NO-ZERO.
<u><b>Output:</b></u>
if we pass the value '1.3000000000000000E+01' it should be 13.0
ex2: '1.3400000000000000E+01' it should be 13.4
ex3:'4.8240000000000000E+03' it should be 4824
is there any way to get the solution without functional module. If so Please tell me with code.hi
u can do it in number of ways.
Use TCODE SU3
Select default tab and select radio button 123467.89 in decimal notation and save it.
or u can try :
if you want to do this through ABAP program.
1. to delete trailing spaces.
SHIFT <V_VARIABLE> RIGHT DELETING TRAILING '0'.
to delete leading zeroes,
SHIFT <VARIABLE_NAME> LEFT DELETING LEADING '0'.
only for one abap program, u can use set country command
for all programs :
sap menu>system->go to user profil->own data>default --> and choose ur format.
hope this helps u.
Regards,
Prasanth
Reward all hepful replies -
Remove Leading zeros for Material in Transformation
Hi Experts,
I'm using DTP first time. I don't have much exp on DTP & Transformations.
I'm creating infocube with some objects. I want to remove leading zeros for zmaterial.
In 3.x writen update routines as fallows:
data: zmat(18) type c.
zmat = COMM_STRUCTURE-/BIC/ZMAT.
shift zmat left deleting leading '0'.
result value of the routine
RESULT = zmat.
I'm confusing in Transfermation where to write this routines.
I'm writing in Transformation as fallows:
data: zmat(18) type c.
zmat = SOURCE_FIELDS-/BIC/ZMAT.
shift zmat left deleting leading '0'.
RESULT = zmat.
But it's getting remove zero's.
Anybody suggest on this.
SiriDear Sir,
No confusion at all.
Just double click on the Target Infoobjct i,e Material object in Transformation, you will see a wizard popping up.
There you will see a option called "RULE TYPE" and the default value will be "Direct Assignment". In the same check box click on the drop down icon and select "Routine".
The moment you select the routine option, it will open up ABAP workspace where in you can write your routine and get the desired result.
Hope it helps. -
Hi ,
I am working on BW3.5
One of my Info object ( Product ID ) is displaying the value aftre adding some number of zeros
For Ex:
When user enters PROD ID as 43013 ,its coming as 000000000043013 to datasource and and same is extracting to BW.
Can anyone help me how can I remove these zeros in BW. My client wants to see just43013 in report.
I have searched forums and understand that i will have write routine. But I am not clear wt to do
Thank you in advance
SatyaHi Satya Vani
You can check fofr the Alpha Conversion in two places. Check for the Box at Transfer Rules level. Secondly, Check the Edit Info Object screen if there is any conversion defined.
Also do a check in R/3 what conversion routine is used by going to SE11. Give the domain name as the field name and then chk for the conversion routine.
The conversion routine defined should be the same in R/3 and in BW.
Hope this helps.
Harika. -
Report Builder: output to Excel removes leading zeros
I'm trying to use the Report Builder to output a numeric
field to EXCEL , but on numbers that start with zero EXCEL removes
the leading zero's. ex. 00123 becomes 123.
Is there something that I can put in the expression builder
on the field to overcome this.
I've tried concatonating a single quote on the front of the
field but the single quote shows up on the output. I've tried this
on both the SQL and on the expression builder.
I've read on some of the posts where people have tried using
'mso-number-format:"\@'" within a TD tag but I can't seem to get
the syntax right inside the Expression Builder.
Has anybody got any suggestions?Excel will remove leading zeros in a numeric field because it is treating the column as numeric. Putting a ' in front of the number forces Excel to treat the column as text.
-
To remove leading zeroes and take directly from IDOC(Segment field) to file
Hi SapAll.
i have got a simple requirement in a idoc to file Interface.
here in a sender Idoc there will be one segment with one field,the requirement is to remove leading zeroes and take directly the data from this field and map to one of the field in reciever file structure.
i had used the formatnumber (under arithmatic functions)in PI 3.0 but now when iam using it in PI7.1 it was raising some jave exception error.
it would be preferable if any body can give me the solution without user defined functions.
regards.
Varma.from your first post:
i had used the formatnumber (under arithmatic functions)in PI 3.0 but now when iam using it in PI7.1 it was raising some jave exception error.
use the same formatting that you used in 3.0 .... try with just a # in the FormatNum function.
Regards,
Abhishek. -
How to display preceding zero's
hi,
In the standard purchase order script i want to display material number including preceding zero's.
can anyone suggest me the solution?
regards
prajwalaIn the standard purchase order script i want to display material number including preceding zero's.
can anyone suggest me the solution?
Hi,
First you can create one Subroutine in Window to Transfer value from and to Subroutine pool program.
in Subroutine pool program write one routine to Convert the Purchase Order number into you needed requirement. For that You use CONVERT_EXIT_ALPHA_*** Function module or UNPACK command. -
Removing leading zeros in a column
Hi,
I would like to remove leading zeros of a column in a table. My Questions :
1. Is it possible?
2. Where is it better to truncate, in RFC or Web Dynpro?.
3. If Possible, How can I do that.
I appreciate your input.
Thanks,
Sunita.Hi Sunita,
Please specify the datatype of the column that contains leading zeros, because if the data type of the column is integer then the leading zeros are automatically taken care.
If your RFC return you int and you are assigning it to a String then the leading zeros will appear.
For example, see the below simple ABAP Program. Just copy and execute it. You will see the difference.
data: a type mara-matnr,
str type string.
select single matnr from mara into a.
write a.
str = a.
write / str.
Hope it helps you.
Regards,
Maheswaran.B
Message was edited by: Maheswaran B -
XmltoQuery removing leading zero
Hi,
I have a function that takes in a raw xml and covert to query. The problem is any leading zeroes are gone. For example, 000123 will become 123. Is there any way or function in CF that will stop from removing leading zeroes?
Thanks,Oh, sorry. It's not the XML to Query problem but it's the cfquery problem. When I cfdump the data, it shows 000123, but when I use <cfquery> to insert the data into a dabase, it strips the leading zeroes and in the db table it shows only 123. Is there a function or something to prevent this?
<cfoutput query="get_xml_data">
<cfquery name="test" datasource="db">
INSERT INTO table (id, name)
VALUES (#get_xml_data.id#, #get_xml_data.name#)
</cfquery>
</cfoutput> -
Renaming image files - LR doesn't accept preceding zeros
I have finished editing in the develop modules & deleted some additional photos in the shoot during the editing process. I do review & delete most of my unwanted images in advance, so please don't lecture me on this!
Anyway, I went to the library module, selected all, & hit F2 to batch rename all selected images (DNG) in sequence. My problem is this - LR won't accept preceding zeros in the Start Number box. I would like for the first image to have 3 digits - that is: 001. LR eliminates the zeros, resulting in a single digit "1" instead.
Is there a workaround for this?
I can rename the images using another program I have, but I'm afraid that the editing adjustments performed in LR may get jumbled.Thanks, Dharma Sam!
I never bothered to go into the edit > custom settings! DUH!
That enabled me to get the results I wanted. -
Removing Leading Zeroes in Location value
HI Gurus,
I am having some trouble in releasing demand plan to SNP. On the demand planning side, we are using standard characteristic 9ALOCATION for storing location values. When I release demand plan (using Location characteristic - 9ALOCATION) to SNP, I get a message saying 'Location 00000000000000003000 does not exist'. But, I have location '3000' assigned to the active model in APO system.
I believe this issue is arising because, the system is storing leading zeroes in Location value '3000' on Demand Planning side. I know that there is customization setting (SPRO-> APO -> Master data -> Product -> specify output format) to prevent leading zeroes from being added to product number. But I don't see a similar setting for Location and moreover I am using 9ALOCATION and not 9ALOCNO.
So, how can I remove leading zeroes in the values of 9ALOCATION.
Any help/comments are appreciated.
Thanks,
Shiv.I found a solution to this problem. Unlike 9ALOCNO, Characteristic '9ALOCATION' has Alpha conversion routine. So this conversion routine fills up the leading zeros. I removed Alpha conversion routine from the 9ALOCATION in RSA1 and it works fine now.
-
Hi Gurus,
I have a alpha routine in update rule which will add leading zeros in omaterial,but now I want to display 0material in the report without leading zeros. How to do this ?
Thanks
LizaEasiest thing is remove the conversion routine in 0material, if you dont want leading zeros.
Or
In update rules, use truncate statement to remove leading zeros.
Ravi Thothadri -
Remove leading zeros in report
Hi all,
I do a clasical reoporting. Data in the internal table numeric types. But when writing in the report, is appearing as 000056 etc. I want to remove this leading zeros in the report output. Any helps?
Regards,
Mic.Hi Michael,
u can use the function module for removing leading zeros
CONVERSION_EXIT_ALPHA_INPUT (adding zeros)
CONVERSION_EXIT_ALPHA_OUTPUT (removing zeros)
Regards
Nagesh
Maybe you are looking for
-
It was working fine for over a year. We installed a new wifi system - could that have anything to do with it? It connects fine but will not play any sound? Any suggestions
-
Transfer apps from iPhone to iTunes not working
I have tried this on iTunes 8.0.1, 8.0.2 and 2.1, 2.2 firmware without success. For a good while now, I installed apps directly onto to my iPhone and never bothered to sync up regularly. As a result, I have over 20 apps on my phone that are not on iT
-
How create indesign using Java Script
I am new in indesign and want to create indesign application using JavaScript. When i use AppleScript to create Indesign Application i use this statement tell application "Adobe InDesign CS5.5" set myDocument to make document with properties end tell
-
The iMac I'm working on in a regular boot up, when cold, will stay on for one to two minutes, then...shut down. But... if I boot up in Open Firmware it will run forever. I do notice that the fan is runnign full tilt in Open Firmware and not in normal
-
Hi , I am training on OOPS which one of the concept is really trouble-shooting to understand. In the class ...CL_SEND_BCS_EXAMPLE.... There is one Method called ASYNCHRONUS. When i am chekcing the code inside the mehtod it has written as TRY. RAISE E