How could I thoroughly close the Leading Zero function of Material No.?
There are only a checkbox in SPRO with the function Leading Zeros of Material No. in
Material Master->Basic Settings->Define Output Format of Material Numbers.
But this function either make the Material ID full of Leading Zeros or delete all the Leading Zeros of it.
Could I make the Material ID as normal string type without those functions?
Because I want to set my Material ID as different between '0001234' or '00001234'.
Could any one help me? Thank you very much.
Hi,
Yes, of course you can, on the screen "Define Output Format of Material Numbers", you can find an indicator "Lexicographical", If this indicator is set, material numbers are stored as follows:
If the material number (numeric or not purely numeric) was assigned externally, it is stored left-justified as entered.
Example
Defined length: 8 characters
Externally assigned number: 123
Stored number: 123
Note
Any leading zeros that may have been entered are stored too. This makes it possible to distinguish between the material numbers 123 and 0123.
If the material number (numeric only) was assigned internally, it is padded with leading zeros to the defined length and stored left-justified.
Example
Defined length: 8 characters
Internally assigned number: 123
Stored number: 00000123
Activate it and make the number is assigned externally, then you can realize your request!
Good luck
Tao
Similar Messages
-
About FF_5(RFEBKA00), how to delete the leading zero by using user ex
The program RFEBKA00 can handle input files that don't carrry the leading zeros on the check number field.
But the Table PAYR stores check number with leading zeros
While inbound, the program will don't work well.
How should i enhance the program?
Thanks a lot
DanielHi,
Please do not open duplicate threads for the same question..
Please close this thread..
Thanks,
Naren -
How can I remove the leading zeros on jpg files?
I'm looking for a way to remove the leading zeros on over 1000 jpg files, without changing the remaining digits in the file name. Is there some automated "batch" script?
i.e going from 003405607.jpg to 3405607.jpgYou could write an AppleScript. but it will be easier to get and use a third-party file renaming utility. I use the freeware NameChanger which works quite well.
https://www.macupdate.com/app/mac/21516/namechanger
Regards. -
How to suppress the leading zeros , -ve sign in scripts
Hi all,
I was asked to suppress the leading zeros in a field while using a script.
also how to suppress the negative sign in the scripts.
Regards,
Saroja.hi Saroja,
<u>Sign</u>
&ITCDP-TDULPOS& -> 100.00-
&ITCDP-TDULPOS(S)& -> 100.00
<u>zero</u>
&DAY& -> 01
&DAY(Z)& -> 1
Hope this helps,
Sajan Joseph. -
Document Templates in MS Word - how to cut the leading zeroes in number
Hello CRM gurus !
We use document templates in MS Word but have the document number printed with the leading zeroes.
example we have now:
0005000681
example we want to have:
5000681
Question - how to do that?
Is that in standard? The document number is the ObjectID tag as far as I know. Do I need to create another tag?
Or may be just call a function? Do I need to change my current Web Service Tool? Is that some extra ABAP to be inserted?
Thank you very much.Hi,
have you tried to use this function call to delete de leading zeros?:
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = value
IMPORTING
output = value.
Best regards
Manfred -
How to get the leading zeros for decimal values?
Hi,
How i wil get the leading zeros for decimal values.For CONVERSION_EXIT_ALPHA_INPUT it is not working.Now iam using overlay condition for getting leading zeros.But iam getting the value like 00013.500.But as per my requirement i want to display this value 0000013.5.
my code is
overlay w_MetLife_detail-rdempsalary with '000000000'
data :rdempsalary type char9
Please help me on this.
Regards,
SujanHi
For more info,
The function of the statement UNPACK is based on the fact, that the BCD display of a decimal place corresponds to the second half-byte of code of a digit in the most character representations. This conversion is commonly called "unpacking".
The statement PACK to pack is obsolete and can be replaced by MOVE.
If destination is specified as untyped field symbol or as untyped formal parameter and is not flat and not character-type during execution of the statement, then an untreatable exception occurs in Unicode programs. In non-Unicode programs, an exception occurs only with deep types, whereas flat types are treated as character-type types.
Example
After the assignments,char1 and char2 contain the values "123.456" and "0000123456".
DATA: pack TYPE p LENGTH 8 DECIMALS 3 VALUE '123.456',
char1 TYPE c LENGTH 10,
char2 TYPE c LENGTH 10.
MOVE pack TO char1.
UNPACK pack TO char2.
Regards -
About FF_5(RFEBKA00), how to delete the leading zero by using user exit
The program RFEBKA00 can handle input files that don't carrry the leading zeros on the check number field.
But the Table PAYR stores check number with leading zeros
While inbound, the program will don't work well.
How should i enhance the program?
Thanks a lot
DanielHi,
Create a new program that will read the fields..
Then put the leading zeroes in the check number field..
And then modify the file..
You can use the FM CONVERSION_EXIT_ALPHA_INPUT to put leading zeroes..
Thanks,
Naren -
How can we put the leading zeros for the extract file.
hello experts..
Iam extracting values from one ztable in this for one filed length will be 2, for this field i need leading zero s at the time of extract... please help me....Hi,
Declare the field as NUMC data type, automatically you will get the leading zeroes.
Regards,
Subramanian -
How to maintain the leading zeros
Hi all,
I need help on this.
I have field KNB1-KUNNR its real value for example is 0000000001,so there is leading zeros,but then everytime the program output the report leading zeros are removed. I need to display the leading zeros as is.
By the way KNB1-KUNNR is declared as knb1-kunnr LIKE knb1-kunnr.
thanks!Hi..
Use this code for adding leading zeros for a particular field.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = p_kunnr
IMPORTING
OUTPUT = p_kunnr.
Use this code for removing leading zeros for a particular field.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = p_kunnr
IMPORTING
OUTPUT = p_kunnr. -
hi,
Could anybody pls tell me how do i truncate the leading zeros in the incoming file structure.
Thanks,
ChinnaHi,
Check this thread, i laready answered it there.
Suppressing leading zeroes during mapping
For you i pasting the solution here.
Write a UDF like this ..
public class test {
public static void main(String[] args) {
System.out.println(args[0].replaceAll("^0*",""));
Also you can use XSLT for this.
Try the XPath function number($string) in your XSLT and see if it does what you want. Since it turns any XPath object into a number, the leading zeros won't appear.
Use it ike this
<xsl:variable name="a">
<xsl:call-template name="removeLeadingZeros">
<xsl:with-param name="phone">
<xsl:value-of select="EVENT/ContactPhone"/>
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:template name="removeLeadingZeros">
<xsl:param name="phone"/>
<xsl:message>
<xsl:value-of select="$phone"/>
</xsl:message>
<xsl:choose>
<xsl:when test="starts-with($phone,'0')">
<xsl:call-template name="removeLeadingZeros">
<xsl:with-param name="phone">
<xsl:value-of
select="substring-after($phone,'0' )"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$phone"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Regards
Aashish Sinha
PS : Reward Point if Helpful -
Remove the leading Zero from the Query output in SAP BW ?
Hi
Experts,
Vendor Number loaded as (0000010076) from R/3 to SAP BW.
How to remove Prefix of Zero for the Vendor Number(0000010076) from Quey outpt.
Regards.
ASITHi,
Please check out this thread.
Remove leading zeros
Also check if there is any conversion routine used for that particular infoobject.
If ALPHA conversion is selected for your infoobject then it will automatically take away the leading zeros at query level.
Regards,
AL
Edited by: AL1112 on Sep 16, 2011 9:15 AM -
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. -
Not to loose the leading zeroes
Hi ,
We are passing a data in table to the application server
I have a variable zipcode in the table
it is described as
final_tab-zip = p0006-pstlz(5).
"zip is decalred as zip(5)
Now I am passing the table as comma delimited file to application server.
The problem is in the process..we are loosing the leading zeroes..
if say zip is 08801..
we see it as 8801...
How can we preserve the leading zeroes when we transfer the data..
Any change need to be done while decalration or transfer..
Thank you.I am moving the field to the string and passing it to the file
code is like this
LOOP AT final_tab.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE pm_tab TO <fs>.
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF sy-index EQ 22.
IF <fs> NE space.
CONCATENATE string <fs> INTO string.
ENDIF.
ELSEIF sy-index EQ 1.
IF <fs> EQ space.
MOVE ',' TO string.
ELSE.
CONCATENATE string <fs> ',' INTO string.
ENDIF.
ELSE.
IF <fs> EQ space.
CONCATENATE string ',' INTO string.
ELSE.
CONCATENATE string <fs> ',' INTO string.
ENDIF.
ENDIF.
ENDDO.
APPEND string TO itab .
CLEAR string.
ENDLOOP.
Edited by: KUMAR BOJEDLA on Sep 5, 2008 11:10 AM -
Need to strip the leading ZERO using ABAP code.
Hi Friends,
I got a situation where i got customer number called 011. I need to write an ABAP in Transformation to strip the leading ZERO , 11 should be posted to the master data attribute. could you help me in the logic pls.
Thanks in advance,hi friends, i got a prob again, as i mentioned if i got 0 as prefix its deleting but if any 3 digit is comming it's converting in to 2 digit, as i mentioned if the prefix is 0(zero) then only i need to delete the zero.
Is there any other solution for this..
thansk in advance. -
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
Maybe you are looking for
-
How to use Top of page system fields like sy-tvar0 to sy-tvar1 thanks in advance Rishi
-
How do I force shutdown my computer. I am hoping by rebooting I will be able to clear this problem
-
Hello Everyone, Following are the seemingly essential details in regards to this discussion : iPhone Model = 4 Purchase Date = 05.Jan.2011 Initial Activation Remark = I used my gmail email account to add contacts initially. But phone always failed to
-
Quicktime not playing even with recent Codecs
Hi, I apologize if this is not the correct forum, I wasn't too sure where to post. I had a Promo video done for my business, it's in .mov format and played fine in Quicktime when I first received it. Recently it stopped working, Quicktime opens to a
-
ADF-Mobile app will not rotate in iOS simulator or device
We have been coding an ADF-Mobile app in JDeveloper and testing on both a Motorola tablet and an iPad. Both our application, as well as the demo "Deployment Successful" (found here: http://docs.oracle.com/cd/E18941_01/tutorials/MobileTutorial/jdtut_1