Leading Zeros in SU Number
We are using SU Managment
How do we get rid of leading zeros in SU# number range. System is storing pallet ID # with leading zeros in the LEIN table. This is causing issues while we retrive SU data from the tables, systems ask to enter the SU# number with leading zeros.
My Pallet Tag is printed with out leading zeros SU # 1234567890 and when the user tries to put away using LM02 system does not read the pallet ID. It looking for 00000000001234567890.
Even on desktop LS33 if I try to display a pallet with SU # 1234567890 system looks for SU Num. with leading zeros. Is there a way to get the leading zeros off from SU#
Appriciate your help
Please check in SPRO whether the conversion exit is maintained for Storage Unit Management. Follow the below path to do so.
SPRO -> Storage Unit Management - > Master Data - > Define Number Ranges. In the Pop Up choose "Conversion exit for storage unit number" .
Here you can define the "length of SU Numbers "
Regards,
Kumaran
Similar Messages
-
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. -
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 -
@ adding leading zeros to a number
Hi,
How do I go abt adding leading zeros to a 8- digit number?
eg DATA: number(8) Type N.
number = 16.
How do i go about converting this to '00000016'.
Note that the value in variable number would be read frm a file (Inbound prog).Hi,
Use the function.
data: tknum type vttk-tknum value '99156'.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = tknum
importing
output = tknum
Regards -
How can I format a cell in Numbers to have leading zeros in a number?
I imported a spreadsheet from Excel (Office 2014, Win 7) through iCloud and some numbers were formatted to have leading zeros (012358) in the original Excel file but the leading zero format was lost in Numbers. Is there a way to format cells to have a number displayed with the leading zero in Numbers? The leading zero is part of an identification and is important to the numbers (0027 is not the same as 27 in these records).
thanks,
BobJames has the formating part, but if you already did the import you can use the following formula to replace the zeros that were leading if you know it is a four digit reference number....
=right("000" & A2,4)
copy those values into your text formatted column from James' answer and you got it.
Jason -
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.... -
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 -
The leading zero in serial number..
Hi all,
Does anyone happen to know how to stop SAP from erasing the leading zero when entering a Serial number. I'm using profile 0003 (standard) and when a GR is posted the leading zeros are removed?
Any help would be greatly appreciated.
Best regards
Begüm A.In the Standard SAP system, it is not possible to stop it from truncated the leading zeros.
But if you are using ECC6.0 and using Industrial Solutions, you may use the modification
introduced by note 198285 to achieve this functionality. -
Problem adding leading zero to a number using JavaScript
I am trying to put the elapsed time into a slide using a display such as "7:08" - seven minutes and 8 seconds. Problem is I can't for the life of me get that 0 to display before the 8. Here is my Javascript, which is executed upon entering a slide:
var objCP = document.Captivate;
var ElapsedTimeInSeconds = Math.round(objCP.cpEIGetValue('rdinfoCurrentFrame') / objCP.cpEIGetValue('rdinfoFPS'));
var ElapsedMinutes = Math.floor(ElapsedTimeInSeconds / 60);
var ElapsedSeconds = ElapsedTimeInSeconds - (ElapsedMinutes * 60);
if (ElapsedSeconds < 10) {
ElapsedSeconds = ElapsedSeconds.toString();
ElapsedSeconds = '0' + ElapsedSeconds;
objCP.cpEISetValue('ElapsedMinutes', ElapsedMinutes);
objCP.cpEISetValue('ElapsedSeconds', ElapsedSeconds);
Here is the text in the slide:
Time: $$ElapsedMinutes$$:$$ElapsedSeconds$$ / $$TotalMinutes$$:$$TotalSeconds$$
So for an ElapsedSeconds value of 1-9, I want to pad one zero. This, however, doesn't work. If I substitute another number of letter for zero in the statement "ElapsedSeconds = '0' + ElapsedSeconds;" it works as expected. I'm thinking there is some quirk going on, because it makes no sense to me why I cannot prepend a zero character to a string.
Thanks for any help.Hi,
Use the function.
data: tknum type vttk-tknum value '99156'.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = tknum
importing
output = tknum
Regards -
How to retain the leading zeroes in a number in the excel output.
Hi All,
I have a requirement to display the numbers as text in the excel output. Ex: 001 should be displayed as 001 and not 1, as it happens in excel.
I know displaying 001 as '001' works, but this is not acceptable.
Also, I need to send a huge file (>20MB) through bursting as an Email, but the mail is not received even the bursting program finishes in success. I tried the zipping option as well but in vain. I know this can be done via FTP but I need to send it through email.
Thanks,
RahulMaverick,
See the admin these:
Administration and Developer's Guide
Report Designer's Guide
Here:
http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/xmlpdocs-084437.html
This will give details on how to split the output into multiple files during bursting. If my memory serves me correctly, it is in the admin guide.
Kurz
Edited by: Kurzweil4 on Dec 6, 2010 9:11 AM
Edited by: Kurzweil4 on Dec 6, 2010 9:11 AM -
The leading zeros are removing from Number field
Hi,
How can i keep the leading Zeros in the number field. For eg, when validating the field, 00123 becomes 123, how to prevent it,
Thanks in advanceHi
I tried with LPAD(:numberfield,5,'0') in the validate field, but it is not working, I am getting the error , it is not a procedure....., I working with Forms 10g
Thanks in advance -
Variable substitution: (delete leading zeros from file name)
Hi All,
I am configuring an IDOC to FILE (fcc scenario) with a requirement of using the IDOC number in the output file name.
Using variable substitution, I manged to get the IDOC number from incoming Idoc-control record but it comes in its entitre length with a few leading zeroes like '00000001234'.
So my output file name looks like 'Output_000000001234.txt' . I want it to be like 'Output_1234.txt'.
Is it possible to achieve it ?
Thanks
ShirinHi Shirin,
First supress the leading zeros of IDOC number by using the following code:
Create a user defined funciton zerosuppress and take the cache as value and take one argument input. Then put the code below:
//write your code here
String output = input.replaceFirst("^0+","");
return output;
Then use variable substitution for generating ur IDOC number in the out put file name.
Regards,
Vinod. -
Trouble adding leading zeros to numbers in PowerShell script
I am new to PowerShell scripting (so have mercy on me please!), and I'm trying to write a script that takes simplified, menu-based user input to create a folder on the network named based on a month number and the year. The month must be expressed as a two-digit
number, but I'm trying to make it simple enough that the user only needs to input a one-digit number (for the first nine months of the year) and have the script add the leading zero (for example, if a user inputs the number "2" for February, the
script will output "02").
Here is a portion of my script:
# Get current year
$year = Get-Date -Format yyyy
# Provide menu of months for user to choose from
Write-Host "Choose the name of the month for the folder you want to create."
Write-Host "1. January"
Write-Host "2. February"
Write-Host "3. March"
Write-Host "4. April"
Write-Host "5. May"
Write-Host "6. June"
Write-Host "7. July"
Write-Host "8. August"
Write-Host "9. September"
Write-Host "10. October"
Write-Host "11. November"
Write-Host "12. December"
Write-Host " "
Do {
$mNum = Read-Host "Select the number of the month (1 - 12): "
# Convert the menu item to the month name
switch ($mNum)
1 {$month = "January"}
2 {$month = "February"}
3 {$month = "March"}
4 {$month = "April"}
5 {$month = "May"}
6 {$month = "June"}
7 {$month = "July"}
8 {$month = "August"}
9 {$month = "September"}
10 {$month = "October"}
11 {$month = "November"}
12 {$month = "December"}
default {"Invalid entry. Please select a number from 1 - 12 (without the trailing period)."}
# Validate user input. Current code is cumbersome; try to find more elegant method.
While ($mNum -ne 1 -and $mNum -ne 2 -and $mNum -ne 3 -and $mNum -ne 4 -and $mNum -ne 5 -and `
$mNum -ne 6 -and $mNum -ne 7 -and $mNum -ne 8 -and $mNum -ne 9 -and $mNum -ne 10 -and `
$mNum -ne 11 -and $mNum -ne 12)
# Add leading zeros to month number
$fNum = "{0:D2}" -f $mNum
Write-Host $fNum
When I run it, I don't get the leading zero. However, when I create a very basic script, it seems to work:
$mNum = 3
$fNum = "{0:D2}" -f $mNum
Write-Host $fNum
Can anyone offer any suggestions as to what I might be doing wrong?
Also, if anyone has a suggestion on how to better validate the user input (making sure they enter a number between 1 and 12), I would appreciate that as well..NET formatting is a complicated subject
http://msdn.microsoft.com/en-us/library/26etazsy(v=vs.110).aspx#FormatStrings
I'm not sure how all that documentation applies when you attempt to format a value that is already a string.
In general, formatting is described as "Formatting is the process of converting an instance of a class,
structure, or enumeration value to its string representation". If it is already a string I'm not sure what to expect.
For example,
<# C: #> '3',3,'03',03,'003',003 | % { "{0:D2}" -f $_ }
3
03
03
03
003
03
<# C: #> -
Leading zeros remove from FB05 for assignment field in process open items b
Dear expert
At present i am using the electronic bank statement completed OT83 & OT51configuration, when i am running FF-5 the EBS soft copy has been uploaded and created batch input session.
I executed batch input session and the transactions has been posting through FB05 for outgoing payment clearing with assignment field ( where check number is laying correctly and matching EBS soft copy cheque number and SAP outgoing clearing account line item assignment cheque number ) in case of outgoing clearing is happening correctly.
but where as i have a problem incoming clrg cheque number which is displaying in assignment field and updated when client using FF68(check deposit / collections).
the user is punching all collections from customers using t.code FF68 and cheque number is updated with 6 digit number in the variant. it is like a JV.
after posting batch input session the cheque is number displaying in assignment field. the cheque number is updated with 6 digit number. but in the variant cheque number width 6 digit only but after posting FF68 & SM35 the system automatically taking leading zeros for the remaining length. Cheque number standard length in SAP 13 in table .
total 13 digit length but user punched only 6 digit only, because the cheque number 6 digit numberonly. so the remaining 7 digits it is occupaying 0000000.
while executing FF_5 and SM35 (thr FB05) the assignment field cheque number (0000000586585) and soft copy cheque number 6 digit (586585) is not matching , because of that i am unable to clear the incoming collections or incoming payments clrg.
so how can i remove the leading zeros after cheque number ( actually displaying 0000000586585 , but i want without zeros only cheque number 586585) in assignment field in FB05 using FF-5 & SM35).
is there any enhancement or user exit to remove leading zeros or any other way of work around .
RegardsHi Amareswar,
In your case, request your bank to provide cheque number with leading zeros in electronic bank statement as the leading zeros in the assignment field is SAP system behaviour.
Alternatively, use 'Define Search String for Electronic Bank Statement' (refer http://help.sap.com/erp2005_ehp_05/helpdata/EN/6d/0cdf4b142e11d3963800a0c9426c73/frameset.htm for details) in the IMG, customize it to search for the cheque number provided in the note to payee field > then append leading zeros.
The first method is the solution we are using and it is the most cost effective.
Hope the above helps.
Kind regards,
John Chin -
I want to eliminate leading zeros in a script
Hi Friends,
Pls guide me iwant to eliminate the leading zeros in scipt output pls guide me.
Regards
Jagadeeshwar.B
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 5:24 PMHi,
&SYMBOL(Z)& will Suppress leading zeros in script.
In report, In order to suppress the leading zeros of a number field the keywords used are : NO-ZERO.
<REMOVED BY MODERATOR>
Thanks and Rewards
- Rishika Bawa
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 5:24 PM
Maybe you are looking for
-
Video camera capture/streaming: example implementation
If anyone is interested I have put together a very simple video capture app using LTI-CIVIL (an open source video streaming library for Java) and using JavaFX. This is a more complete/useful example of some code I posted months ago doing something si
-
Problem Joining JDBC theme to XML NSDP file
I've created a basic map of Germany with different layers for regions etc. I've then added a dynamic JDBC theme using the following code var baseQuery= "select geometry, name from world_sample.world_city_metropolis where iso_country_code = 'DEU'"; va
-
How to cancel movie rental download
Hi, here's my problem, hopefully you all can help me out. In the past two months I've rented 3 movies on my iphone4. With each one I get "Download error, tap to retry"....Well it's been two months and I have no desire to watch these films anymore, I
-
My Macbook Air is performing slow from past few days
My Mackbook Air is performing much slower than what it used to be.. What could be the possible reasons and solutions?? It takes so much time to load pages and to open open applications. Previously, I thought it is just the internet, but I have tried
-
Changing language for time on log-in
This is a continuation of a question answered earlier today. In that question, I noted that I had bought an "open box" special from Best Buy. When I started it up, I noticed that the Login screen was in Chinese. Thanks to the group for suggesting a