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
prajwala
In 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.
Similar Messages
-
ABAP Query - How to display non-zero entries
Hi All,
I have created a simple query having the join of 4 tables.
Now I need to display the output for only non-zero entries of a particular field.
How this can be achieved ?
Please let me know-
1) Either , there are ways to restrict the entries during selection itself(I do not want to give this field in selection screen)
2) Or , Delete the entries having zero value before display.
I debugged the standard report for query and found out the internal table where the
result is stored, but it is not allowing to be used in the coding sections of infoset.
Thanks ,
NeethuIn select add condition field1 NE 0 or SPACE.
Edited by: Shaik Hussain on Nov 30, 2010 1:46 PM -
How to display leading zeros in a report
Hi folks,
I am doing a HR report and the users are very much used to seeing a two digit numeric value as the pay scale since their legacy days.
In BW, I have the Pay Scale defined as a character (2) and it shows the values on the report as follows:
Pay Scale
0
1
2
3
11, etc.
But the users would like to see 00, 01, 02, 03, 11, etc.
Under the query properties, display tab, there are four separate options - display zeros, show zeros as, etc. I tried all the options but the pay scale still does not show the leading zeros. I remember seeing a SAP note a while back that talks about this. Does anybody know how to force the leading zeros on the BEx report.
Thanks.
AbdulTry removing the ALPHA Conversion from info object defintion.
-
How to display as blank instead of zero (0) if result is zero
Hello :
How to display as blank instead of zero (0) if result is zero.*
*any properties can do this. BI 7.0.
Regards,
ManthanaHi,
If you are using BI 7.0 ,goto Query designer and click the properties under the 'Query'. Then select 'Value Display' from the properties and there is a drop-down 'Display Zeroes' . You can choose 'Zero as Space' from that drop-down for the query.
Hope it will solve your issue.
Thanks. -
How to display zero in the screen's input field using numc type
Hi,
I want to display the zero value in the input field , when I using the NUMC input field on the screen .
The zero will be changed to blank ,when I click the Enter key.
What I should do for it?
Any help is appreciated.
Regards,
TrevorHi ,
Thanks for your quickly answer!
I use the numc input field in the dialog's screen.
I am not sure how to do the realize the function like 'UNPACK'?
In fact, I can't changed my input field's data type.
When the status of my input field is display, I can display the zero on the screen. But when the input field is input status , there is blank!
Regards
Trevor -
How to display Zero(0) values in cross tab format in Webi???
Hi All,
Is there a way to display the zero(0) or null values in cross tab format in
webi. I can able to display in Regular tabular format in Webi as u got an option
in Properties --> Display --> Show all rows/columns, but it is not working when
i am using Cross Tab format for the same data.
Regards
RamHi Sunil,
Happy to see your solution. My requirement is that if you have a data like
SBU, Cadre, Value
Chemical Buss, Manger, 45
Crop Buss, Workmen, 63
Agri Buss, Executive, 70
Chemical Buss, Executive, 84
Agri Buss, Workmen, -
Crop Buss, -, -
So now we need to get the rows or columns that are having blank values. Say like if Crop Buss is not having any values so it wont be displayed, but actually it has to be displayed.
Regrads
Ram -
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 NHi 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 -
can anyone tell me how to display the selected contents of
the database by using a variable from my form field(like text box
)Hello Guys!
Sorry forever to get back. Going to throw this up here quick
so I dont time out, but if you need further help post back and I
will help with specific questions.
Using the City, State example. This operation is two fold.
(a) the search page, and (b) the results page.
(a) On your search page you would have two fields. City and
State. Make sure your table that holds these fields are containted
within a form tag. (Insert > Form > Form). Also make sure
your textfields have names. You can click on the textfield to
highlight in design view and change the name from 'textfield' and
'textfield1' to 'city' and 'state'..
Highlight the form tag and in the properties panel where it
says "action" insert the URL/file of your results page. This is the
page that is actually going to display the information, then save
your work.
(b) Open up your results page, and in the bindings panel
click the "+" then select query. In the 'simple' window name your
recordset (example: rsStores) select your connection, then select
the table you desire to display results from. From this window you
can also choose a field to use as an order by. Do not use the
filter!
With this done and 'without' saving yet, click on the
"advanced" tab. You should now see and a simple statement in the
window that looks something like:
SELECT *
FROM Stores (The name 'Stores' will actually be replaced with
your table name)
Below the statement you will see 'parameters' with a + and -.
Hit the plus to add a parameter. For name use varState, for Type
use text, for Value use Request("State") and for default value use
zero. Replicate the process for varCity using Request("City") for
the value. (The requests are the same names as the names you used
to name your fields in the search form). Now go up to the original
statement and edit it to look like this:
SELECT *
FROM Stores WHERE yourfieldname = varState AND WHERE
yourfieldname = varCity
Replace 'yourfieldname' with the actual field name holding
the values. Keep EVERYTHING case sensitive. Testing in design view
will not work because there are no values yet passed. So click ok,
save the page and upload them to server. Test by going to the
search page and submitting the search form.
Hope that helps..!! -
How to display unicode in the User's Display Name area
AS the help suggests:
http://help.sap.com/saphelp_nw04/helpdata/en/e4/c016987fbca343801d41096f124ec4/frameset.htm
to display chinese characters,we change the template, as follows:
ume.users.displayname_template=, \u767B \u5F55
but that doesn't work:
still:
A, B \u767B \u5F55
Anybody encounter this problem?
Thanks!Hi ,
Thanks for your quickly answer!
I use the numc input field in the dialog's screen.
I am not sure how to do the realize the function like 'UNPACK'?
In fact, I can't changed my input field's data type.
When the status of my input field is display, I can display the zero on the screen. But when the input field is input status , there is blank!
Regards
Trevor -
Display leading zeros in the ALV
Hello All,
My requirement is to display leading zeros in the ALV. The leading zeros are not getting displayed. Please suggest how do I achieve this. I have tries NO_ZERO = ' ' and lzero = ' '.
Thanks in advance.
Regards,
AnjuHere is the Sample code for your ref
type-pools: slis.
data: begin of t_itab occurs 0,
col1 type matnr,
col2 type char10,
end of t_itab.
data: t_fieldcat type slis_t_fieldcat_alv,
w_fieldcat type slis_fieldcat_alv.
t_itab-col1 = 10.
t_itab-col2 = 'A'.
append t_itab.
clear t_itab.
t_itab-col1 = 11.
t_itab-col2 = 'B'.
append t_itab.
clear t_itab.
loop at t_itab.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = t_itab-col1
IMPORTING
OUTPUT = t_itab-col1 .
modify t_itab index sy-tabix.
endloop.
w_fieldcat-fieldname = 'COL1'.
w_fieldcat-lzero = 'X'.
append w_fieldcat to t_fieldcat.
clear w_fieldcat.
w_fieldcat-fieldname = 'COL2'.
append w_fieldcat to t_fieldcat.
clear w_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-repid
IT_FIELDCAT = t_fieldcat
I_SAVE = 'X'
TABLES
t_outtab = t_itab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Bhavana -
How to remove leading zero from Material Number
Hello Everyone,
I need to figure it out how to remove leading zero from material number. Cureently extractor is sending material number as 100663. But when comes into BI i am getting as "000000000000100663" and similariy in report it is appearing as "000000000000100663". Now my client wants me to exclude preceeding zero for a material in all the reports.
Is there any setting in query desinger to handle this issure or in the backend.
Need your inputs.
Thanks,
Lasya.Hi
you can use the function Module
CONVERSION_EXIT_ALPHA_OUTPUT in the start routine
to test this go to SE37 --- give the CONVERSION_EXIT_ALPHA_OUTPUT -
>display -
> F8
in the input give 000000456
and execute
the out put will be 456
for getting Zeros you can use
CONVERSION_EXIT_ALPHA_INPUT--- to remove leading zeros
Santosh
Edited by: Santhosh Nagaraj on Oct 29, 2009 10:52 PM
Edited by: Santhosh Nagaraj on Oct 29, 2009 10:54 PM -
How to remove leading zero in a inputfield
I have a inputfield UI element which is bind to a NUM type context. When it display a number, it always come with leading zero, like '001'. Can anyone teach me how to remove the leading zero.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/3a/2232666aeb45f4b759848a4caf9c8b/frameset.htm
Use the Display leading zeros formatting option in the context attribute properties.
The other option is to use a data dictionary domain for the field that has a built in field conversion exit. The ALPHA conversion exit is commonly used on NUMC fields like Sales Order number to suppress leading zeros. The WD runtime will automatically use the underlying DDIC Domain Field Conversion Exit. You don't need to do anything except use that DDic to define the context. -
Display Leading Zeros in bex query
Hi,
I am new to BI and need to display leading zeros in bex report.
There is an info-object billing number which is of type CHAR. The values, 00001 - 00010 has been given in the CSV file.
when i generate the same in IP, the leading zeros are mentioned, but the same is not appearing in the bex query.
I have tried ALPHA conversion but this has no affect on the output.
How to achieve the same??
thanks in advance for the answersHi,
To answer your question in detail, there is a conversion routine at infoobject level( Tab- general ), that determines how the values are displayed in the front end. For ex, alpha conversion routine takes away the leading zeros when you display the value in query. ( 0001 displayed as 1 )
Assuming this is custom infoobject, I would suggest you to remove the conversion routine from the infoobject. This will help you in displaying leading zeros in the report.
However, you have to ensure that all the values loaded for this infoobject is properly alpha converted ( packed with leading zeros ) by adding a field routine in the transformation. This will avoid same values getting stored with different internal formats like 01,001 etc.
Hope this explains.
Thanks. -
How to delimit leading zero in vendor number in OO ABAP ALV without using conversion routine
Hi,
How to delimit leading zero in OO ABAP ALV without using conversion routine, because I have many fields like vendor, customer, material number etc..
How to address this leading zero.
I appreciate your quick response.
Regards,
Nalini S.Hi Nalini,
Delimiting leading zeros in fields has to be done via conversion routines, as suggested by Vadamalai you need to pass on the conversion routine name in you field catalog variable.
Now as to which object oriented approach are you using to have your table contents display in ALV as it matters -
Using FACTORY method of CL_SALV_TABLE class, or
Using SET_TABLE_FOR_FIRST_DISPLAY method of CL_GUI_ALV_GRID class.
Using FACTORY method of CL_SALV_TABLE will do your own work, no need to apply any conversion routines or set long/medium/short text for columns as we do in field catalogs!
Cheers,
Varun -
Hi i have a problem with table entries. I have one table with name 'z*' having fields of vbeln ,date, plant.
when i try to display the records it displays all the vbeln records. In that some of them are having vbeln with preceding
zeros like 0009050750 and some are not having zeros like 9081059. When i try to display 0009050750 it executes and display
that record but when i try to display 9081059 it doesnot execute and it displays "no table entries found for specific key".
Plz give any suggesions on that.
Plz solve my issue
Shiva.TABLES : vbrk.
TYPES : BEGIN OF it_t1,
vbeln TYPE vbrk-vbeln,
fkart TYPE vbrk-fkart,
fktyp TYPE vbrk-fktyp,
vbtyp TYPE vbrk-vbtyp,
waerk TYPE vbrk-waerk,
END OF it_t1.
DATA : it_tab TYPE TABLE OF it_t1,
wa_tab TYPE it_t1.
SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln OBLIGATORY.
SELECT vbeln
fkart
fktyp
vbtyp
waerk FROM vbrk INTO CORRESPONDING FIELDS OF TABLE it_tab WHERE vbeln IN s_vbeln.
LOOP at it_tab INTO wa_tab.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_tab-vbeln
IMPORTING
OUTPUT = wa_tab-vbeln
MODIFY it_tab FROM wa_tab INDEX sy-tabix.
CLEAR : wa_tab.
ENDLOOP.
LOOP AT it_tab INTO wa_tab.
WRITE : / wa_tab-vbeln , wa_tab-fkart , wa_tab-fktyp , wa_tab-vbtyp , wa_tab-waerk.
CLEAR : wa_tab.
ENDLOOP.
Maybe you are looking for
-
Why doesn't my text show up in the textbox
Hi, I have this code in here.And whenever the user presses this specific button,my text box should show up 2 or more lines of text,but instead the text box shows only the last line. private void lengthOfLargestArrayDimensionToolStripMenuItem_Click(o
-
Timer to alternately show/hide 2 objects
Hi, I'm trying to learn how to use a Timer and AS3 to set up 2 objects (for example, 2 squares, each with a separate instance name) that would show/hide alternately for 500 ms each for 30 seconds (30000 ms) total. Easy enough to do using a timeline,
-
How to move multiple folders to new location?
I have many folders containing photos. There are located like this: - photos 01 - photos 02 - photos 03 etc... I want to move these folders under differernt folders. For instance, 2008 will contain all folders with photos from 2008. But now LR2 asks
-
HELP urgently needed: My Sandberg FireWire for Laptop will not start on my T60
Let me start with information on my T60: OS information: Microsoft Windows XP OS version: 5.10.2600 Service Pack 2 Processor: x86 Family 6 Model 14 Stepping 8 Memory: 3.135.856 kb BIOS version: 2.09 (79ETC9WW) Machine type-Model: 1951A47 I have ju
-
We are currently upgrading our EP6 portal to NW04s SPS7. About 30% of our users access the portal via citrix metaframe. When a user access the portal normally via LAN, the portal works fine. But when we access the portal from citrix the portal does n