Supressing Zeros
Hi All,
In my SAP Script Form,for the material number its showing up the leading zeros on the print.I tried using <AP-MATNR(Z)&,but it didn't worked out.
I want to know how to write a subroutine for this and assign this to a integer and send back to the script by supressing zeros.
For this what declarations do I need and how to do the programing part,Please kindly let me know.
Thanks in Advance.
Regards,
Praveen
Hi,
It didnt worked out.
what I did is
given command lines in the script
/: define &gv_matnr = <ap-matnr&
/: perform zero_padding_matnr in program zscm_get_mat_no
/: using <ap-matnr&
/: changing &gv_matnr&
/:endform.
and in SE38 created a subroutine program .
*& Form ZERO_PADDING_PO
FORM ZERO_PADDING_MATNR TABLES TAB_IN STRUCTURE ITCSY
TAB_OUT STRUCTURE ITCSY.
DATA : GV_MATNR(10).
CLEAR GV_MATNR.
REFRESH TAB_OUT.
PERFORM GET_VALUE TABLES TAB_IN USING 'GV_MATNR' GV_MATNR.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = 'GV_MATNR'
IMPORTING
OUTPUT = GV_MATNR.
CLEAR TAB_OUT.
TAB_OUT-NAME = 'GV_MATNR'.
TAB_OUT-VALUE = GV_MATNR.
APPEND TAB_OUT.
ENDFORM. " GET_VALUE
*& Form GET_VALUE
-->I_TAB_IN
-->I_NAME
-->O_VALUE
FORM GET_VALUE TABLES I_TAB_IN STRUCTURE ITCSY
USING I_NAME
O_VALUE .
CLEAR O_VALUE.
READ TABLE I_TAB_IN WITH KEY NAME = I_NAME.
O_VALUE = I_TAB_IN-VALUE.
ENDFORM. " GET_VALUE
but its not working out, where is the mistake.please help me out.
Thanks so much,
Praveen
Similar Messages
-
How to Supress ZEROS in Bex Report
Hi Experts,
I have requirement to supress zeros in rows of AR Report in Bex Analyzer.IS it possible to Supress zeros in BEx analyzer itslef or i have to suppress in Query designer.
I checked so many forums but i am not sure whether my configuration allows me to do it or not
MY Bex Querydesigner configuration details are:
BI Addon 7.X (based on 7.10)\
Support Package 7,Patch 1
Please let me know the path to solve it.Anything is appreciable
Thanks&Regards,
narasimha.Hi,
Jsut open your query designer and select the query in which you put the changes.
now on top there will be an icon for query properites just select that and on right hand side panel select the tab rows/column
and in that there will be an option supress zeros select active all values =0
and then effect on rows.
Hope it helps you.
Regards,
AL -
Hi,
I want to supress zero data in my input schdule. How to do supress zero data.
Cheers,
Reddy.Hi Reddy,
In fact, it depends of the type of Input Schedule you are using.
If you are using Dynamic Schedule template or a Input Schedule using EVSND() function, then step-by-step explanation from Vijay should halp you to suppress zeros.
If you are using EVDRE Input Schedule, after having built it, please unhide the control panel on the left and in the second block of the control panel (defining Parameters and Expansions), you should find a Suppress line. By filling one or several expansion intersections with Y, then you should be able to suppress zeroes by rows/columns.
There are some other options to suppress zeroes or specific Null values. You can fin this additional information in the BPC Office User Guide, available on the SAP Service Marketplace.
Regards,
Julien -
How to supress Zero in NUMC data type which contains some values as Char.
Hello Friends,
Some custom fields have been added in table BUT000 ,
out of which one field has data type as NUMC..
When i see some of the entries in the that field, it has values like '0000000000000000ENT'.
I want to supress Leading zeros of that.
i tried using
1 ) FM CONVERSION_EXIT_ALPHA_OUTPUT &
CONVERSION_EXIT_ALPHA_INPUT .
2 ) Also tried coding like this:
data:var1 type ZBU_00LV36AT, "this field has data type NUMC of length 40
var2(40) type N.
var1 ='00000000ENTRY'.
VAR2 = VAR1.
SHIFT VAR2 LEFT DELETING LEADING '0'.
Nothing works ...gives output as blank.
Is there any solution for it....
Any valuable asnwer will be rewarded...
Regards,
MayankHi Marcin,
I have tried i think problem it solved with your solution.
Let me try for some more cases if it works fine i will get back to forum.
Regards,
Mayank -
Supressing Zero Rows after drilldown with a free characteristic
Hello,
during drilldown with the usage of a free characterictic, some zero rows are shown. If a key figure has no value for all columns, we would like to supress these rows, which are show up with the drilldown characterictic.
Especially drilldowning to account number level in our reports creates a confusing long list with a hundred of zero lines.
Can someone tell me how to suppress this zero lines?
Thanks,
Nuranunfortunately that didn't work. I think so we need a general condition function, that we can say; when all the columns are zero then suppress this row, but with a standard condition function it seems also not possible to do this.
Message was edited by: Nuran Adal -
How to supress zero values in a union report in obiee11g?
I have a union report using two subject areas in obiee 11g.
I have added the price column from the first sector area and dummy column from the second sector area.
I have added the parity column from the second sector area and dummy column from the first sector area.
Then i added result column to divide them.
I need to calculate the avarage for each column, but because of the dummy columns that return zero, the calculation is wrong. -
Import Package Supress zero Values
Hi there,
I'm currently doing a Import from a txt file to BPC , but when I executed the Import Package, all the accounts that have a zero value are suppressed when the data is imported to the FACT2<appname>.
Is there any way to avoid the import package from doing that ?
Regards,
AlanHi Alan,
As already specified, It will not import the 0 value if the record is a new record completely.
The records with 0 values can be considered in a different way. Whenever, it encounters a record with 0 value, it will first search in the 3 fact tables, if the same record is already present or not. If the same record is already available, lets say with the value of 200. Then, it will post only the delta value, that is -200. If the same record is not present earlier, then it will neglect the record.
Hope you got the point. -
Hi,
I have a variable of CHAR type 12 which is preceded by few Zeros, as per my requirement i have to suppress preceding zeros.
Can someone suggest how to approach this problem.
Eg: V = 0000048521701
output should be : V = 48521701.
Thanks and Regards,
HarshHi harsh,
1. <b>0000048521701 -
> 48521701</b>
2. Just copy paste.
3.
REPORT YAM_TEMP04.
data : v(12) type c.
V = '0000048521701'.
write :/ v.
<b>shift v left deleting leading '0'.</b>
write :/ v.
regards,
amit m. -
Supressing zero records.
Hi All,
We had a report in this in the rows we have around 10 key figure and material and market ,in the columns we have month wise for year 2005 and 2006..
In one of the keyfigures(say 'X') we had values and remaining key figures we have zero values..due to this the report is displaying all the materials ,Due to this the report is looking complex.because it has got huge list of materials.
Now user wants to filter the materials which has only values for X-keyfigure and remaining key figure values zero....
For this we tried using Formula variable where we are checking the all the keyfigures are zero then make X-keyfigure zero and suprress the result row.we are able to filter the materials ..But the problem is we are displaying month wise in the columns,say for a particular month if all key figure are zero then it is making the X-keyfigure also zero according to our formula even though it has got value..
Please suggests us how it can be achieved..
We are using BW 3.0 version
In BW 3.5 we can achieve the above..
Another solution is writing VBA code and filter materials ..It is not fesible solution and it is suggestable due to performance..
Suggestions are appreciated..
bye.I think u are using only result rows suppression.
I was talking about using 'zero rows suppression'.
Here's how u do it..
Open the Query Designer screen for the query.
Click on the 'Query Properties' button that appears in the top toolbar.
Then in new screen go to display tab.
U will see a 'suppress zeroes' box on botton right hand.
Select dropdown for 'Suppression' as 'Active(All values=0) and select dropdown for 'Effect on' as 'rows' as your key figures are in the rows.
Click OK save the query and then run it.
Now check by doing steps given in my earlier post.
cheers,
Vishvesh -
Hi All,
I want to remove the leading zeros in my script form for matnr.
I tried like <AP-MATNR(Z)&, its still showing the zeros.here MATNR is a Char.
Please help me out.
Thanks in Advance,
PraveenHi,
It should come if you write <AP-MATNR(Z)& , Z means NO-ZERO. if you still have the problem, then write a perform USING this material No and changing the NEW MATERIAL no, and in the program inside the FORM AND ENDFORM, write the logic or write the Conversion Exit function moduel to avoid the Zeros, so this value will come to the scrip, then print the new value
Regards
Sudheer -
hi all,
I have a coulmn in my hierchial list display which will have
whose type is CURR , and its values is 0.00 .
my query is i dont want to dispay 0.00 , and it should be space ... how to do it..
things i have done..
i have moved this value to a varaible type 'char' and then moved space to that new variable but it didnt work.
please help.Hi,
loop at itab into wa.
if wa-price = '0.00'.
continue.
endif.
write:/ wa-price.
endloop.
Regards.
Sriram. -
How to suppress row when one column has zero using condition
Hi Experts,
How do I suppress row when one column has zero.
I read it is possible using conditions.
How ?
Thankyou.Check this
1. for Query Properties, go to the Display tab and Supress Zeros is "Active"
2. select the Structure, right-click, select Properties, then click "on" Also Use Zero Suppression for Structure Elements
http://help.sap.com/saphelp_nw04/helpdata/en/a4/dd3841d132d92be10000000a1550b0/frameset.htm
Hope it Helps
Chetan
@CP.. -
How to hide rows without data or all zero?
Hi.experts:
I have define a query that using query designer,and I have defined structure for both row and column,and then I have a free chatacteristic,such as 0MATERIAL,if I navigate by material then in each row,the material looks like read all the master data and displayed in the result area.
How can I hide these row without data.(or to say all with zero).where to using supress zero etc to avoid this?
Your quick response is highly appreciated!!Thanks in advance.
Best Regards
Martin XieHi,
you have the option of suppress zeroes in the properties of the queries where you can give the option whether you want to supress the rows or columns as well which conatains zeroes.
Thanks
Ajeet -
hi,
i have a problem with supressing zero values.
i have a bar chart. there is only one bar on the chart. The bar is split into 2 sections. (ie stacked bar). On the top section, the number 23 is shown which is the result of code i used in a formula:
if = 'Yes' then 1 else 0;
if ='NO' then 1 else 0;
So the single bar is split into 2 sections a yes and no section.
However, on this top section is the number 23. On the bottom section (there is no section displayed) as the count is 0.
Im wondering how can i get rid of this zero?
cheers.
jHello Ramesh,
You have said that you have liked the responses by Lakshman and Siegfried. So they deserve to be rewarded for their effort.
1. Please mark this thread as a question (why did you uncheck the option?)
2. Reward appropriate points to both of them.
3. Mark the thread as answered.
Regards,
Anand Mandalika. -
Hello Experts,
I have an issue in Bex,
For ex i have a value (-12345) but i want it to be displayed as (12345) so I Multiplied it with (-1),This works fine.
Now the issue is if i have the value as (0) and then (-1 * 0)= 0.0, this I want to get zero suppressed but this does not happen and the row displays as (0.0)
Dont know why its happening
Please help.
Thanks in advance.
-KaranHi Karan,
If you want to supress zeros Try this method.go to conditions tab-rt clk and select new-Then in keyfigures select any keyfigure and operator NE 0 and select ok.
Hope it works.
Regards,
AL
Maybe you are looking for
-
Cisco jabber for android crashes on samsung s5 mini when proxy is configured
We are a facing a strange problem with samsung galaxy s5 mini, android 4.4.2 and the latest Cisco Jabber client available on play store. Cisco Jabber crashes on startup every time because in the wifi connection we manually configured a proxy. If w
-
I have an iPad mini that will not respond and is non functional. It continues to intermittently try to automatically restart, access home page without success. It will not accept normal charge. I have tried to manually restart, reset and have been
-
MacBook Pro (2011) Won't Charge Without Restart
Hi guys, I searched the forums for this problem but couldn't find a match. When I plug the power cable into my 2011 17" MacBook Pro it won't take a charge and the light on the cable doesn't come on. However if I restart the computer, the light will c
-
How to create a new photo album in iWeb
I have a phot gallery on my iweb created website. I created new albums before but can never rember how I did it. From memory I tried dragging a number of pictures over to the gallery page and tried to drop them on the page..once with and once without
-
The cursor in a web page isn't shown
Hi, I'm developing a form that has several tab pages. Also I have a button that calls another window (in the same form). When I taste it in the web, if the second window isn't modal it just appears a second and I can do nothing. So I change it to mod