Need to show leading zeros in the number field when printed from RDF
We have a requirement to show leading zeros in the rdf output.
We cannot use a format mask to achieve the same as the length of the field is not fixed.
for ex if we have 0.68 then the same is printed in RDF as .68
we cannot use a format mask as the length of the field is not fixed.
we need to
Kindly suggest if any solution exists for the same.
the numbers after the decima can be anything..
it can range between 2 to 10 or more...
as told by you if we put the format as to_char(.68,'90.99') it shall give 0.68 but what for numbers like0.678,0.4567,0.765433 it will display only 2 digits after the decimal...
The requirement is to dispaly the number as it is ,only the zeroes before the decimal should stay intact..
we are not able to achieve this in rdf output..
if it is
0.678 then 0.678 shld be dispalyed
0.4567 then 0.4567
0.765433 then 0.765433
one format mask shld wrk for all the above..
we would not be changing the format mask for each number....
Similar Messages
-
No leading zeros in the assignment field on a billing doc header
Can someone tell me how I can get the assigment field in a billing doc not to show any leading zero's so when the assigment field is populated in the accounting doc it will not show the zeros either .
At the moment I have the sales order PO set in copy control to show in the reference field and the assigment field of the billing doc header but need it to show no leading zeros in the accounting doc even if there is some in the SO.
I.E
sales orde PO no Assignment field in billing doc accounting doc
0000012345 0000012345 0000012345
i need it to show NO zeros
12345 12345
any ideascheck this thread
VBRK-XBLNR not copied to BKPF-XBLNR in transaction VF11.
Note: Pls Text Removed
Edited by: Lakshmipathi on Nov 1, 2011 10:42 AM
Please dont ask for points in each of your suggestion and deviate the forum rules -
HP Officejet 4630.....Windows 8, 64-bit
When printing from the web I am not able to change the print size.
1. Click File on Menu bar
2. Click Print open dialog box
3. Click Properties open printing shortcuts
Everything in Printing Shortcuts have a lock on it. Including Factory Default.
Any and all help with this problem will be appreciated.
Thank you in advanceI posted this to the wrong board. Can it be move to the right one?
thank you -
Need to add leading zeros to the field if field length is less than 6
Actually the field length is 16.
But for some manual entries it is comming as 4 chars.
so if field length is less than 6 then it should be replaced by leading zeros.
Moderator message: very basic, please (re)search yourself before asking, @all: please do not reply to basic questions, points removed.
locked by: Thomas Zloch on Sep 9, 2010 11:43 AMHi Ravi,
Do it in 2 steps.
1. check the length of your entry by strlen function and get the length.
2. If the output is less than 6 call the FM CONVERSION_EXIT_ALPHA_INPUT to get leading zero
Regards,
anirban -
Leading Zeros in the Numeric Field
I am working with accounting numbers that may start with zero (0). After this information is inputted and you tab or hit return the leading zero is removed and goes to the first numberic digit. How can I make the leading zero display?
Thanks,Change the display format to show all numbers ('9,999,999.99')and not to supress the leading zero (z,zzz,zzz,zz9.99').
More information about the display format is contained in the 'Scripting Reference' under LiveCycle Designer's 'Help' menu option. -
Removing leading zeros for the quantity field
Hi all,
In my script form there is a quantity field, of 13 and 3 decimals , on the out put its taking that much space un neccesarily,and messing up.
how to make this adjustable in the provided space.
It always 3 digits and 2 decimal points in our case.
Please help me out,
Thanks,
PraveenHi,
For removing leading zeros
&V_VARIABLE(Z)&
Thanks,
Naren -
I have a 2" space at the top of pages that I print from websites. How do I remove the extra space? My margin settings are at .5"
laderamacguy took a look at it and added a black shape over the tab. he suggested i use a different template next time, such as the black template.
-
The problem is when printing from smartform.
[http://blogfiles5.naver.net/20090921_228/jin8417_1253524625285L1ra3_png/print_jin8417.png]
The screen will pop up, such as when printing pictures.
What are ways can not see?
Thanks.Hi,
Check the below code:
data: function_module_name type rs38l_fnam,
ssfctrlop type ssfctrlop,
ssfcompop type ssfcompop.
*print parameters
ssfctrlop-device = printer.
ssfctrlop-no_dialog = x. -----------------> No dialog display
ssfcompop-tddest = locl.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = form
importing
fm_name = l_fmname
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc 0.
endif.
call function l_fmname
exporting
control_parameters = ssfctrlop
output_options = ssfcompop
user_settings = ' '
data_cust = it_data
exceptions
exceptions = 1
formatting_error = 2
internal_error = 3
send_error = 4
user_canceled = 5.
Regards,
Soumya -
I entered new fields in a form that was created last year to update it. However, now when I view the responses, the headings are listed as Column 1, Column 5, etc. rather than the name of the heading. Can you please help?
Hi Mike,
CRSE is an OEM Product and for use with a custom application they have written. Unfortunately we don't their reports or how they are connecting, it would appear they were originally built off a SQL and then set to a Dataset in the app or they could be adding the data source at runtime. Lots of variations and without access to the source code to see what they are doing not much we can help you with.
You need to contact the OEM Partner for help in resolving this and find out what you can and need to do to update your SP and work with their canned reports,
Thank you
Don -
Can I include the FILE NAME when printing from Bridge?
I'm a commercial photographer. I shoot with my camera tethered to a Mac laptop to view images immediately as I shoot. I use Bridge to view these images.
As I shoot, we save the file by product name, and then print proofs immediately. I need to include the File Name on these prints. Is
there a way for me to do this directly from Bridge? If not, can you think of a way using Photoshop? Or anything else? Lightroom?Guessing you are using Bridge CS4 you could use the Adobe Output module for
this. It is reachable through a seperate workspace in the top menu right
side or the left side top menu the icon most right.
You can create different lay outs as a PDF with this but for you it should
be one per page and select the filename (with or without extension). Just
explore the posibilities. For CS4 you could use the updated Output Module.
If on CS3 you could use the contact sheet script for Photoshop that in
Bridge can be reached by the menu Tools / Photoshop / contactsheet. This
contactsheet script is also usable for CS4, it is on the Goodies install
disk for PSCS4
As I shoot, we save the file by product name, and then print proofs
immediately. I need to include the File Name on these prints. Is
there a way for me to do this directly from Bridge? If not, can you think of a
way using Photoshop? Or anything else? Lightroom? -
How do I remove the header/footer when printing from ipad safari?
I'm trying to print invoices from a web app I'm using in safari on my ipad1. When I print there doesn't seem to be anyway not to include the header and footer that prints by default with Safari. I'd rather not have to use a second app just to print and go back and forth to the browser. Any ideas on this?
The printing itself is no issue at all and I'm using an HP6500A plus over an airport extreme in case you need those details.I have been bumping up against this issue in the last few days. I have redone my output as PDF and that works OK - i.e. There are no Safari footer details on the AirPrint printed page.
But now I find that PDF documents frequently print with white space bands across the page (chopping off some of the text). I can even replicate this when pinch zooming on my iPad with a PDF document. So I suspect a bug in the PDF processing functionality within IOS. I am running IOS 4.3 so I had better update to see if the issue goes away. -
Appending leading zeros to material number
Hi,
I want to form a object key for material number. so i need to append leading zeros to material number. but i am getting "TYPE CONFLICT" shot dump in FM 'BAPI_OBJCL_GETDETAIL'.
The following code is giving the dump.
data: wa_object(18) type c.
wa_object = '100301010'. "Material No
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = wa_object
IMPORTING
OUTPUT = wa_object.
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
OBJECTKEY = wa_object
OBJECTTABLE = 'MARA'
CLASSNUM = 'FINISHED_MATERIAL'
CLASSTYPE = '001'
KEYDATE = SY-DATUM
UNVALUATED_CHARS = ' '
LANGUAGE = SY-LANGU
TABLES
ALLOCVALUESNUM = IT_ALLOCVALUESNUM
ALLOCVALUESCHAR = IT_ALLOCVALUESCHAR
ALLOCVALUESCURR = IT_ALLOCVALUESCURR
RETURN = IT_RETURN
but if I hard code to 18 characters, the following code is working fine:
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
OBJECTKEY = '0000000000100301010'
OBJECTTABLE = 'MARA'
CLASSNUM = 'FINISHED_MATERIAL'
CLASSTYPE = '001'
KEYDATE = SY-DATUM
UNVALUATED_CHARS = ' '
LANGUAGE = SY-LANGU
TABLES
ALLOCVALUESNUM = IT_ALLOCVALUESNUM
ALLOCVALUESCHAR = IT_ALLOCVALUESCHAR
ALLOCVALUESCURR = IT_ALLOCVALUESCURR
RETURN = IT_RETURN
Please tell me how to rectify the short dump which uses Conversion_exit_alpha_input.
Thanks .
SankarHi Shankar,
When ever u pass parameters to any function module the type of parameters must match with the ones defined in function module. Here u defined ur object key like this
data: wa_object(18) type c.(18 digits). But the in function module it referenced with BAPI1003_KEY-OBJECT (50 digits). So u have to define the variable with BAPI1003_KEY-OBJECT.
Check this solution. It will work for u.
data: wa_object(18) type c,
wa_object1 TYPE BAPI1003_KEY-OBJECT.
wa_object = '100301010'. "Material No
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = wa_object
IMPORTING
OUTPUT = wa_object.
wa_object1 = wa_object.
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
OBJECTKEY = wa_object1
OBJECTTABLE = 'MARA'
CLASSNUM = 'FINISHED_MATERIAL'
CLASSTYPE = '001'
KEYDATE = SY-DATUM
UNVALUATED_CHARS = ' '
LANGUAGE = SY-LANGU
TABLES
ALLOCVALUESNUM = IT_ALLOCVALUESNUM
ALLOCVALUESCHAR = IT_ALLOCVALUESCHAR
ALLOCVALUESCURR = IT_ALLOCVALUESCURR
RETURN = IT_RETURN
Thanks,
Vinod. -
ALV: ADD leading ZEROs in a CHAR field
Hello Everybody!
I have a problem and I hope you can help me
What I have:
1. ALV (hier)
2. Char field 'DEBIT' type SAKNR.
3. Field catalog TYPE slis_t_fieldcat_alv,
created by FUNCTION MODULE 'REUSE_ALV_FIELDCATALOG_MERGE'.
The problem is: i need to show leading zeros in ALV.
For example: an account '07110000' (in the inner table) is shown as '7110000'.
What I've done:
1. ls_fieldcat-lzero = 'X'.
ls_fieldcat-no_convext = 'X'.
2. CLEAR ls_fieldcat-ref_tabname.
ls_fieldcat-lzero = 'X'.
( ls_fieldcat-ref_fieldname was clear after filling by the function module)
I'm realy waiting for your advice!>
nagaraj kumar nishtala wrote:
> Hi,
>
> try to give refernce table name and reference field name for the field after the fieldcatalog merge FM.
>
> i mean to say modify the fieldcatalog for that particluar field by giving refernce table name and reference field name .
I've tried it, but it doesn't work:
ls_fieldcat-outputlen = 8.
ls_fieldcat-lzero = 'X'.
ls_fieldcat-no_convext = 'X'.
ls_fieldcat-ref_tabname = 'T599I'.
ls_fieldcat-ref_fieldname = 'PARAM'.
ls_fieldcat-datatype = 'NUMC'.
ls_fieldcat-inttype = 'N'.
>
nagaraj kumar nishtala wrote:
> or use conversion_exit_alpha_input to add zero's to it.
>
> Regards,
> Nagaraj
How can I use conversion_exit_alpha_input? I have no idea... -
Need leading Zeros in the excel sheet which is sent from ABAP
Hi ,
I am downloading data from SAP to excel sheet using the WS_DOWNLOAD Function Module. The numeric data in not having leading zeros. if it is 0010 it is displaying 10 in the excel sheet . i need the leading zeros in the excel sheet. without manulally changing it to Text in the excel sheet .
Is there any way to do it .
Thanks,
ChetanHi Chetan,
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = w_file_path
filetype = 'DBF' "declare the File type as DBF then leading zeros will appear
write_field_separator = 'X'
confirm_overwrite = 'X'
TABLES
data_tab = Itab.
Regards,
Prabhudas -
[Tweak needed] - Generate a Complex Password without the number 0 (zero)
Hi there,
I've been reading this forum a lot, and happens to be the first time I need to post something on my own.
I've found this very useful piece
of code from your script repository and I've been able to tweak it for my needs but for one thing: eliminate the number 0 (zero) from the list of possible list of numbers to be used.
I know I could read the string and if 0 (zero) is found, reject the password, but would rather understand/find a way how to make it not an option at all to generate
the password.
Thanks a lot in advance for your answers.
PatrickChange the following line in the script:
iAsc = Int(Rnd*10)+48
To:
iAsc = Int(Rnd*9)+49
The original code generates a random ASCII character value for the numbers 0 to 9 (ASCII 48 to 57). The new code generates a random ASCII character value for the numbers 1 to 9 (ASCII 49 to 57).
As has been mentioned already, by not allowing zeros you are effectively (slightly) weakening your algorithm for generating complex passwords.
Jason Warren
@jaspnwarren
jasonwarren.ca
habaneroconsulting.com/Insights
Maybe you are looking for
-
Not able to run the Java Program from jre for the ARM processor
Hi , I am try to run the jre1.4.2 for the arm core (linux 2.6kernel) which i downloaded from the sun site. I am created the class file from the J2SE1.4 development kit. I created the simple HelloWorld Program and complied with J2Se then i copied that
-
Contact's photos won't display on iPod?
I've got an 80GB video iPod running with the latest version of iTunes. I'm sure photos from my address book used to display...now they've gone...any ideas anyone?
-
Preview PDF white out issue.
I want to white out a couple of lines on a PDF form. White out. No box lines, no shadows. White. As in those lines disappear. What is the deal with the shadows? Is there a way to just have parts of a doc whited out?
-
Hello, I have this problem, I use php for read data from oracle table, all works right, I have any problem whith varchar number type data, but when I must read geometry data like (type MDSYS.SDO_GEOMETRY) I can't display it on the web page. esemple o
-
I have two or three queries in my Report. My report only deals with a single query. My form has fields in various palces.These fields belong of either on the three queries. Do i have to put a repeating frame over each field. If i dont, get a frequenc