Convert customer number to Unconverted value(in DB format)

Hello,
I have a question..
How to convert the customer number (KONP-KUNNR) to unconverted value which in 10 characters?
My customer number only has 8 characters, but I need to display it in 10 characters.
Is there any standard function module that I can use?

Hi,
Use this FM CONVERSION_EXIT_ALPHA_INPUT.
data: lv_kunnr type kunnr.
lv_kunnr = konp-kunnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input         = lv_kunnr
IMPORTING
   OUTPUT        = lv_kunnr
With this function module u get ur kunnr with 10 characters that is with leading zeroes.
Thanks,
Anon

Similar Messages

  • Converting a number of  frames into smpte timecode format

    Hi all,
    I've been thinking about this for a while but don't think I've come up with a good solution just yet. So I wanted to see if anybody could show me a swift and efficient way.
    The problem:
    A given number of frames is to be translated into the corresponding smpte timecode. A single frame lasts 1/25th of a second.
    So, for example: the timecode 01:30:12:24 (hh:mm:ss:ff) translates to 24+(12*25)+(30*60*25)+(1*60*60*25) = 135324 frames. As you see it's very simple to break it down into frames. But how would you reverse the procedure?
    I have two ideas, the first was to subtract from the sum of frames until i have broken it down completely. That seems to involve quite a complicated if structure but I guess it's a reasonably fast way. Next I had the idea that I could iterate through the whole lot and on every 25th iteration step up the seconds variable, and when it reached 60 step up the minute variable and so forth. I do have doubts about the efficiency of that particular code though as this will be a very frequent task in my application.
    My guess is the best and only real option is to go with the former idea, but I want to make sure I am not missing a super simple and elegant way of doing this.
    Thanks,
    Johan

    You can slightly simplify the calculation with:
    01:30:12:24 (hh:mm:ss:ff)  = 24+(12*25)+(30*60*25)+(1*60*60*25)
    = 25 * (60 * (60 * 1 + 30) + 12) + 24
                  --minutes--
            ------- seconds -------
       ------------- frames -------------
    Notice how we multiply by 25, then 60, then 60 again Working from inside the brackets to the outside we multiply by 60, then 60 again then 25, adding some "extra" each time.
    This also suggests how you might "reverse" the process. Start with 135324 and begin at the left hand end. If we divide by 25 we get 5412 seconds with 24 frames "left over". 24 is the ff.
    We can then divide the 5412 seconds by the 60 to get 90 minutes with 12 seconds "left over". 12 is the ss.
    Divide 90 by the next 60 to get 1 hour and 30 remainder. 30 is the mm.
    There are no more numbers to divide by so we take the 1 as hh.
    Look up the integer operators: / which does division, and % which tells you how much is left over. Basically the division is what you were getting at when you spoke of "subtract from the sum of frames", but more effecient than repeated subtraction.
    Edited by: pbrockway2 on Aug 2, 2008 9:58 PM

  • How to convert a number to FLOAT with 9 decimal values.

    Hi all,
    I need to convert a number like '10.02' to a floating point number with 9 decimal values like '10.022111221'. I think that the right function is TO_BINARY_FLOAT, but how can I obtain 9 decimal values? If I use the following syntax:
    select TO_BINARY_FLOAT(num) from table
    I obtain a floating point values with a variable number of decimal numbers after the ".", instead I need 9 number after ".".
    Regards,
    Maurizio.

    Hi,
    the number I need to select is the result of a product, for example:
    select (Num_A * Num_B) from Table;
    Num_A has 2 decimal numbers, like 12.01 and Num_B could be: 12.111111111.
    Now, Num_A * Num_B = 653.999999994
    but I issue:
    select TO_BINARY_FLOAT(54.00 * 12.111111111) from Table
    I obtain:
    654, a rounded value, but I need 653.999999994.

  • Convert a number value to a date

    Post Author: Jeremiah
    CA Forum: Formula
    I'm using Crystal Reports XI. I'm coming across a problem trying to convert a
    number value to a date.  I'm using formula below: if not isnull({qryStoreCheckIn.CHECKINDATE})  or {qryStoreCheckIn.CHECKINDATE}="0"the(stringvar MyDate:= ToText({StoreCheckIn.CHECKINDATE},0,"");cdate(2000 + val(left(MyDate,1)),val(mid(MyDate,2,2)),val(right(MyDate,2))))  
    For this line, I'm receiving an error msg of that "A month number must be between 1 and 12
    Here are some of the field's data examples
    70608
    70501
    0
    61231 Would anybody have any ideas on how to solve this?

    Post Author: SKodidine
    CA Forum: Formula
    You are getting the error "A month number must be between 1 and 12" because you are trying to convert 0 to a date.  The third data item in your field data.
    I suggest you default the date to some date when it is zero or eliminate 0 as a date from your formula such as:
    if not isnull({qryStoreCheckIn.CHECKINDATE})
    then(stringvar MyDate:= ToText({StoreCheckIn.CHECKINDATE},0,"")
    else
    If {qryStoreCheckIn.CHECKINDATE} = 0 then (stringvar MyDate:= "00101");  // If date is zero then it is set to 2000/01/01
    After this, you will not have problems with a zero date.

  • Sample values needed for Customer Number And Sales Organisation in BAPI

    Hi Experts,
        I want to execute the Bapi BAPI_SALESORDER_GETLIST with mandatory parameters such as Customer Number & Sales Organisation .
        How would I come to know what values to enter for Customer Number & Sales Organisation inorder to get some Output in the form of table SALES_ORDER.
        Can you ll help me with some sample values which I can enter to get some useful output.
        And what is the logical way to go inorder to test such BAPIs in future.
    Thanks in Advance,
    Pavanmeet Singh

    Hi,
    CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
    EXPORTING
    customer_number = cust
    sales_organization = sorg
    MATERIAL =
    DOCUMENT_DATE =
    DOCUMENT_DATE_TO =
    PURCHASE_ORDER =
    TRANSACTION_GROUP = 0
    PURCHASE_ORDER_NUMBER =
    IMPORTING
    return = it_return
    TABLES
    sales_orders = salesorder_itab.
    Regards
    Sudheer

  • Customs Number Guarantor (insurance Comp has an incorrect value()

    Hello,
    I am configuring default data for Guarantor (Insurance Company). After searching I have found that 'Office of Destination' is the same field as Guarantor. ( Kindly correct me if this is not the same fields).
    I have populated insurance company by default data in the US Import document. When i check messages I am getting following error 'Customs Number Guarantor (insurance Comp has an incorrect value()'
    Message: M4010 - Customs Declaration U.S. ABI(EI)
    Appreciate if any help on this.
    Regards
    Pradeep

    Hi Dave,
    Appreciate your quick reply. thank you.
    Can you please elaborate on the possible solution regarding error message. Im not able to figure out the same. I am attaching the screen shot of partner tab with error message.
    Thanks
    Pradeep

  • Hi want to convert a number in crore, e.g. 10000000 to 1.00 Can anybody help on this?

    Hi All,
    I want to convert a number in crore format.
    My basic problem is, I am using a custome format:
    #,##0.00,,,%;
    Here main task is done by ,,,%.
    Each comma (,) is dividing a number by 1000. Thus three commas are dividing a number by 10^9 digits.
    But I need number in crore (i.e. 10^7), Thus we have used this percent sign (%).
    Here I can get required Value but appended percent (%) to it. I can temporary hide this using wrap text.
    But I need exact solution to convert a number in crore.
    Can anybody help me regarding the same.

    Hi Neha,
    You can use EPMScaleData function, in that give scaling factor as per your requirement.
    For more details you can go through following link
    How to use EPMScaleData in a fully dynamic report
    Regards,
    Shrikant

  • Increment customer number

    Hello friends,
    via VB I want to import customers into BO.
    To set a customer number, I need to know what´s the next free number.
    Does anyone know a simple way to get this information?
    Thanks for your help.
    Best reguards.

    Hello Norbert,
    You might want to run a SQL statement like "SELECT MAX(CardCode) AS MaxCode FROM OCRD" etc.
    In case you only use numbers, you can convert the result directly to a number in VB (VB.NET: CInt(oRecordSet.Fields.Item("MaxCode").Value) and increment it. Otherwise you have to treat the result according to the pattern you want to use...
    Regards,
    Frank

  • I just read the tutorial and did exactly what it was telling me to do, and I still can't get it done. Once I have selected the file, I get a box that pops up that says "Subscribe now to convert unlimited number of files to PDFs. Subscribe Now.  I already

    I just watched the tutorial and did exactly what it was telling me to do, and I still can't get it done. Once I have selected the file, I get a box that pops up that says "Subscribe now to convert unlimited number of files to PDFs. Subscribe Now.  I already have done this! I am a subscriber!  Arrrrhhhgggg!

    Hello Kathie,
    Please let me know what exactly are you trying to do using Adobe online service.
    You might try accessing the same service for some other PDFs and check.
    Have you signed up correctly at "https://cloud.acrobat.com/" using your Adobe ID credentials.
    If the same message pops up, then please visit Contact Customer Care as they could let you know if there is any problem with your account.
    Hope to get your response.
    regards,
    Anubha

  • Custom Report Not fetching values for parameter of report (Valueset not pop

    Hi,
    I am running custom report on Oracle application R12. This report parameters used standard value set for fetching purchase order number. The value set is not populating any values for the custom report. but for the standard report where this valuse set populating proper result.
    It's bit Supprising ...the same valuset populating values for standard reports but not for custom report developed by me.
    Value set query using table valueset and getting values from po_headers (View)
    Thanks

    Hi All,
    Luckily I have been able to rectify the problem !
    I tried retrieving the output using LISTCUBE to show the SID of the InfoObject  also for which I was unable to get the data. After the report successfully gave the output for those I/O, I checked again I could see the data in the I/O maintain master data !
    It worked like magic to me !
    But I could guess that since it is a virtual I/O therefore it is not able to retrieve the data from the table directly and is able to do that only after the SID of this I/O is retrieved.
    (If a characteristic does not have any master data, the values from the SID table are displayed for the "Values in Master Data Table" mode.)
    Closing the thread !
    Regards
    Shalabh

  • Issue in Custome FM of Characteristic Value

    Hi All,
    I have created Custom FM for possible values of  Characteristic.
    Its working fine in all transaction except CU60.
    In Cu60 Transaction if user click on F4 for characteristic value My custom help popup is coming.  when user select any of the value its populating in table maintenance. But Issue the issue is when user is saving those value those value are not saving in table maintenance.
    Please tell me if I need to do any addition stuff.
    I have created FM using below SAP Doc.
    Function Module for Checking Values
    In this field, you can enter the name of a function module for checking characteristic values entered by the user. The function module can be created in any function group.
    The following restrictions apply:
    The function module must use the standardized interface.
    The function module name cannot have more than 27 characters.
    This allows names to be inferred for further function modules: for the possible entries on the value assignment screen, and for copying language-dependent value descriptions:
    Function module for possible entries
    <function module for value check> + suffix "_F4"
    Function module for language-dependent value descriptions
    <function module for value check> + suffix "_DC"
    Interface for Function Module for Checking Values
    Import Parameters:
    CHARACT_NO LIKE CABN-ATINN  Internal characteristic number
    CHARACT LIKE CABN-ATNAM  Characteristic name
    VALUE LIKE CAWN-ATWRT  Value to be checked
    Exceptions:
    NOT_FOUND   Value not found
    Interface for Function Module for Possible Entries
    Import Parameters:
    CHARACT_NO LIKE CABN-ATINN  Internal characteristic number
    CHARACT LIKE CABN-ATNAM  Characteristic name
    DISPLAY   Display values only,
       if DISPLAY = 'X'
    ADDITIONAL_VALUES LIKE CABN-ATSON Additional values allowed
       if ADDITIONAL_VALUES = 'X'
       (if you want the possible
       entries dialog box to contain an
       additional line for entry)
    MULTIPLE_VALUES LIKE RCTMV-ATLIS Multiple values allowed
    LANGUAGE LIKE SY-LANGU  Language indicator
    DISPLAY_WITH_LANGUAGE   Display value with description
    Tables
    VALUES LIKE RCTVALUES  Selected values
       When you call this table, it
       contains existing values.
       Deleted values have status 'D'
       in the table.
       New values have status 'I'
       in the table.
    The function module must also let you display and select values using the possible entries pushbutton. To display possible entries, you can use function modules in function group SHL3, such as HELP_VALUES_GET_WITH_TABLE_EXT. The content is described in the function module documentation.
    Interface for Function Module for Language-Dependent Value Descriptions
    Import parameters
    CHARACT_NO LIKE CABN-ATINN  Internal characteristic number
    CHARACT LIKE CABN-ATNAM  Characteristic name
    VALUE LIKE CAWN-ATWRT  Value to be checked
    LANGUAGE LIKE SY-LANGU  System language
    Exceptions
    NOT_FOUND   Value not found
    If you use this function module after the function module for checking values, the language-dependent description of the value is copied to the value assignment screen.
    Note
    Please note that the program code must be based on the predefined interfaces. If your program is not based on these interfaces, the program may terminate with a short dump.
    Please note also that the function module cannot take into account any restrictions on allowed values that are due to inheritance or object dependencies, because the function can only read data that is already saved to database tables. The function cannot read current user entries.

    I  have Created two FM Function Module for Checking Values  and Function Module for Possible Entries

  • One digit in customer number missing in Export to excel download

    Dear All,
               We have a customized report for customer collection.The output of this report is as per desired. But when we download it to excel last digit in customer master is missing.That means say customer number is 1100051 while we export to excel customer number showing is 110005 , last digit gets missing. This is for all the customers.
              One more point I would like to state here. In that report we have 2 radio buttons. Bank Receipt and Down Payment . This error is coming only for Down payment radio button.
              Can anybody please help me solve this issue.
    Regards
    Abhijit

    hi ABHIJIT DAS ,
    debug and see the internal table values ,whether the customes is comming fully  and also check the fiels length for
    that customer .
    regards,
    chinnaiya P

  • Update the FI document with the PO customer number

    Hi,
    Is it possible to update a header field or item line field of customer of the FI document with the PO customer number or sales document of PO (VBAK-VBELN) at the billing moment. I cannot do by standard substitution because the original field is not saved in the table BSEG or BKPF. 
    Thanks,
    Cecilia

    It can be done via substitution with exit.
    You can configure your exit and then ABAPer can define the code for that exit in the copy of the program RGGBS000 assigned to the substitution in view V_T80D (Transaction SM30)
    In ABAP code you can fetch the values from various tables.
    Regards,
    Gaurav

  • Smsy "Read System Number" customer number unknown for installation

    Hi gurus,
    I 'm configuring SMSY and following the steps outlined in the IMG in the basic settings and trying to configure RFC connections to/from satellite systems. In SMSY, I have 2 systems configured SMA and BIF.
    tcode SMSY-> Systems -> SAP ERP -> SMA , Tab "System Data in SAP Support Portal".
    Click "Read System Number" returns error SAP customer number unknown for installation number 0020179718. <-Why?
    Click "Installation Data" shows data from SMP with correct installation number and correct customer number 706822.
          The S-user listed under "Contact Persons" is not mine, not the correct one. <- Why? How to fix?
          The system number from SMP matches value in System Number field.
    Click "System Data" shows data from SMP also shows correct data.
    Why unable to "Read System Number" when the correct system number is read via "Installation Data" and "System Data"?
    tcode SMSY->Systems->SAP ECC->BIF, Tab "System Data in SAP Support Portal".
    Click "Read System Number" returns error "SAP customer number unknown for installation number 0020472810". <- Why?
    Click "Installation Data" shows data from SMP with correct installation number and correct customer number 706822.
          The S-user listed under "Contact Persons" is correct one.
          The system number from SMP matches value in System Number field.
    Click "System Data" shows data from SMP also shows correct data.
    Why unable to read system number?
    When I login to SMP with same S-user, under System Data Maintenance, the same data is displayed as in "Installation Data" and "System Data" links.

    I don't know what happened. I came into work today and tested the "Read System Number" and it worked. I read thru the 2 notes you mentioned, just read now. The first notes I had already followed before opening this thread. The 2nd notes also talked about turning off BAdI implementation AI_SDK_SP_RFC_RP, of which I did a couple of days ago before opening this thread. I had turned turned off BAdI and simplified the AISUSER table and removed the customer number field, in order to get back to the "single-user number" basic setup in the IMG.
    I had found the problem with the wrong contact info on the SMA system. It was wrong in the SMP system maintenance under installation data.
    Thanks for your help.
    -Don.

  • Essbase 9.3 Calc scripts. Pb with dates. How to convert (string = number) ?

    Hello,
    I've a problem with Essbase(Planning?) Scripts on version 9.3. It looks simple but I do not find any (clean) solution :
    On my Essbase database, I have a member called "Reference_Date" on my axis Indicators. It is a date data type, that is to say, it displays a number corresponding to a YYYYMMDD format. For example : 20091029 for October 29th 2009.
    In calc scripts I often need to compare the month included in that "Reference_Date" with the current Member of my Time Axis (I have 12 Months members based on the format M02 for February for example). The final aim is to calculate a number of complete years since that "Reference_Date".
    But theses two elements are not of the same "type" (one is a number value and the other is a "member" in Time Axis). So I'm forced to convert one of this two elements in order to compare it.
    For example I can extract the month value of the "Reference_Date"' and put an "M" before it to have a Time member equivalent or I can convert the member Name M10 to a number (10))
    in both cases I have the same type problem : I don't know how to convert a string into a number nor how to convert a number into a string.
    (For example @CONCATENATE doesn't work with numbers). and that my only remaining problem.
    I didn't find any Essbase Function which do this (conversion number <=>string).
    Is anyone have an Idea ?
    Thanks for your help
    Best regards

    I don't know any way for you to compare your data against your metadata. Not directly. To me it makes little enough sense to try that I'm not surprised the developers didn't provide for it.
    I've converted member names to strings, manipulated the strings (calc script functions are not good at this), and turned them back into member names, but that's really the only use I've had for string manipulation. I don't think an equivalency operator even exists for string data. And I see no way to begin thinking of a member name, once converted to a string, as a number.
    It makes even less sense to me to try thinking of a data value as a string. Even text values in Sys 11 are stored as numbers. Not encoded characters, but just a number to look up somewhere.
    I think you can do what you want though, with something like this...
    IF (@ISMBR("FY08"))
    vYr = 2008;
    ELSEIF (@ISMBR("FY09"))
    vYr = 2009;
    ENDIF;
    IF (@ISMBR("M01"))
    vMth = 1;
    ELSEIF (@ISMBR("M02"))
    vMth = = 2;
    ENDIF;
    "Years_Since_Reference" = ((vYr * 100) + Mth) - ("Reference_Date" / 12);
    Obviously, the math will need some work, coz that doesn't actually work, but the logic above essentially turns your metadata into numbers, which is what you are after.
    Good luck,
    -- Joe

Maybe you are looking for

  • Pearl wont play videos

    I converted several videos usnig different programs that convert to the proper format for the pearl. I keep getting the message "unable to play content" The 2 programs I have tried are Aimersoft Video Converter (trial) and the freeware  "Blackberry V

  • FROZEN 60 GIG Video iPod

    I have a brand new 60 GIG Video iPod. The iPod froze during the import of new music and video files. The display has the "Do not disconnect" icon and label shown in the display. Attempting to reset the iPod using the instructions from Apple's support

  • Merging data

    hello experts, i would like to merge sales and income statement data into multiprovider.we have sale summary multiprovider and one FICO multiprovider is available.also business want some custom development into this multiprovider as well.please advic

  • After Effects CS6 Render Farm

    Hi All, Another Friday, Another test of new AE waters.... I am busy reading up and trying to figure out how to use the three MAC's in the office to work together as a render farm. I have gone through the documentation and created a very simple scenar

  • Problem importing photos to iPhoto Library from flash drive

    When I try to import photos from flash drive into iPhoto library, they seem to import just fine. BUT if I close iPhoto and then return later, the photos I supposedly imported from the flash drive are not in the Library, and a screen prompt tells me t