How to generate a  number sequence for a column of a Z*table?

Hi ,
How to generate a  number sequence for a column of a Z*table?
plz guide me.
thanks
Albert

1) Use SNRO for defining a number range.
2) Use FM NUMBER_GET_NEXT for getting the next number with object, sub object etc..
See one example below.
      CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          nr_range_nr                   = c_01
          object                        = c_z_prd_code
*           QUANTITY                      = '1'
         subobject                     = p_vkorg
*           TOYEAR                        = '0000'
*           IGNORE_BUFFER                 = ' '
       IMPORTING
         number                        = in_prd_code
*           QUANTITY                      =
*           RETURNCODE                    =
        EXCEPTIONS
              interval_not_found            = 1
              number_range_not_intern       = 2
              object_not_found              = 3
              quantity_is_0                 = 4
              quantity_is_not_1             = 5
              interval_overflow             = 6
              buffer_overflow               = 7
              OTHERS                        = 8
3) You may write these code in main program of the table maintinence
rgds,
TM.

Similar Messages

  • How to generate BP number for the employee (ECC to CRM) ...

    Hi all,
    can any one give solution for ,how to generate BP number for the employee from ECC to CRM other than active status,as i downloaded employee data from ECC to CRM through ALE/IDOC,as only active employment status employees are got BP number generated,remaining also transfered to CRM but BP number is not generated for those employees,these employee records i can able to see in the HRP5580- HRP5587 tables.
    thanks in advance.
    vamshi.
    Message was edited by:
            vamshidher rao

    Hi,
    Or are you looking for this:
    SELECT serial_number, paaf.assignment_number
    FROM pay_assignment_actions paa, per_all_assignments_f paaf
    WHERE action_status = 'C'
    AND paaf.assignment_id = paa.assignment_id
    AND serial_number IS NOT NULL
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date;
    - Viky
    Edited by: Viky on Dec 17, 2010 11:42 AM

  • How to Assigning the number ranges for Purchase Order using EXIT_SAPMM06E_0

    How to Assigning the number ranges for Purchase Order using EXIT_SAPMM06E_001 using Functional Module NUMBER_GET_NEXT explain me ?

    Hi,
    First go thourh the FM import export parameters list.
    Try to create an internal table of type INRI-NRRANGENR for number ranges.
    We can provide the lower and higher values for this table so that what ever PO is created will be with that range.
    Try to create the ncessary ones using this FM.
    In the Exit, EXIT_SAPMM06E_001,
    the Export parameters are-
    EKKO-EBELN- the PO ios created with in that specified range
    Range as INRI-NRRANGENR - Here try to assign the Internal table that was populated in the FM.
    Try to code this in the Include provded and keep Breakpint and check the PO number generated.
    Reply if u need more help on this.
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • How to find next number range for project definition in tcode CJ20N

    Hai Experts,
          Please help me 'How to find next number range for project definition in tcode "CJ20N". I was trying in function module NUMBER_GET_NEXT. Is it right function module? If its right what input i need to give for this tcode and for the field project definition?
    Note: I searched in forum before posting, but couldn't find the solution.
    Thanks
    Regards,
    Prabu S.

    Hi,
    For project defination internal number is assigned by system.
    When you saves's project then system allocate one number to project defination, you can view it,
    SE11 >>> table  PROJ >> Click on contents >>> execute,
    here you will get your project defination & number is assigned to project defination.
    kapil

  • How to create the Access sequence for the Vendor+material+plant combination

    Hi all
    Please let me know How to create the Access sequence for the Vendormaterialplant combination..
    Whats the use? What its effect in purhcase and taxe..
    brief me please

    Hi,
    you are asked to maintain the access sequence for the tax condition for which you are putting 7.5%.
    goto OBQ1 or img..financial accounting new...global settings.... taxes on sales and purchases ......basic settings.....
    find the tax condition type. see in it which access sequence is attached.
    if there is none then use JTAX used for taxes in India.
    or you can create the similar one for your.
    to create the same goto OBQ2.
    new entry or copy JTAX.
    and assign the access sequence to condition type.
    this will resolve your problem if you just need to assign the access sequence.
    regards,
    Adwait Bachuwar

  • How to generate an XML file for an animation of IK armature

    Can someone please tell me how to generate an XML file for an animation of IK armature.
    I have a 5 keyframe/16 frame animation of a human character made up of a series of moveiclip symbols that is animated with an IK armature.  I need the XML information from the animation. 
    When I go to Commands > Export Motion XML I get the error message "There is more than one object on frame 1" and then nothing happens.
    Thank you,
    c

    I hope that's not the case.  I want to write to adobe about it.  I think it's a great feature and it functions really well even though it is not a very developed IK tool.  My biggest issue with it is ouput options and integration with motion tweens.
    I have seen a lot of examples of animators using it online, just no one talked about output.  I just feel it hasn't been developed.  It can generate a sprite sheet but only for a single pose frame of the animation, and not all the key frames or pose tweens.  I find that functionality quite odd, as if adobe just forgot about IK when added in sprite sheets, etc. and the reason it half works is just an accident.

  • How To Generate Debug Log Files for ebs jsp?

    hi   How To Generate Debug Log Files for ebs r12 jsp?
    and where i get the log .please help me thanks!

    Please check following MOS Document
    Oracle Application Server Diagnostic Tools and Log Files in Applications Release 12 (Doc ID 454178.1)

  • Work flow? How to link multi-cam sequences for DVD output?

    Pr cs4 (very new)
    Still taking baby steps each day... please take my hand and help me!
    Final output will be 2 DVD's (each DL) each about 2 hrs. Content are chamber music student groups in two recitals.
    I have assets from two camera angles. I have successfully practiced on one of the groups performance (10 min.) following the steps illustrated in a multi-cam tutorial.  http://www.adobe.com/designcenter/video_workshop/?id=vid0234
    This leaves me with a great multi-cam sequence for that group located in the Project Panel, exactly what I want.
    Now, I want to know what is the best method (workflow?) to ultimately produce a DVD containing about 10 of these type performances (one after the other) with chapter markings for each group, titles etc.?
    I have yet to use Encore and I'm guessing that is where I'll send the finished edit for DVD production, though I don't know at what step I jump there?
    Do I try to create one very long multi cam sequence of all the content, then send to Encore? Or can I create seperate multi-cam sequences (each performance) then link them together, adding transitions and make the DVD? This would be my preference to keep things more manageable, especially with audio synching.
    With my practice multi-cam sequence on the timeline, I tried to drag the same sequence from the Project Panel to the end of the timeline to simulate how this would work, but it does not add to the timeline as a clip would.
    This is probably childs play for you pro's, but we were all baby's at one time...I just happen to still be one!
    Thanks for your patience and advice,
    Kenny

    Yes I did...now toss me a cookie please.
    I am trying to quickly get up to speed in Pr CS4 to get this project completed. In the process, I'm trying to learn and understand the interface and correct terminology so as to make my questions intelligible to a community that posses vastly greater understanding than myself.
    Is there anyone who can help with my main question at hand? Namely, how to go about creating a full length sequence (in the timeline) made via the nesting of synchronized multi-camera clips within a new "multi-cam sequence"?
    As I said, I have completed a small test sequence in this fashion, nesting clips in a new sequence then using multi-cam monitor to record cuts. Now I need to add about 10 more of these together in a completed sequence to then send to DVD production.
    Is this intelligible?
    Thanks, Kenny 
          __0
       _ \<,_
    Date: Wed, 4 Nov 2009 09:11:06 -0700
    From: [email protected]
    To: [email protected]
    Subject: Work flow? How to link multi-cam sequences for DVD output?
    please take my hand and help me!
    Well, at least you had the gumption to admit that up front.
    >

  • Using number datatype for date column

    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?
    Many thanks

    Hi,
    Ora_83 wrote:
    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?Yes, there's a definite disadvantage.
    Oracle provides date arithmetic and a number of functions for manipulating DATEs. None of them work with numbers.
    For example,
    SELECT    TRUNC (order_date, 'MONTH')     AS order_month
    ,       AVG (ship_date - order_date)     AS avg_delay
    FROM       orders
    GROUP BY  TRUNC (order_date, 'MONTH')
    ;order_month involves a DATE function; it's pretty easy to find the month that conatins order_date.
    avg_delay involves date arithmetic. It's extrememly easy to find how much the time passed between order_date and ship_date.
    Depending on how you code dates as numbers, doing either one of the above may be just as easy, but doing the other will be very difficult. You'll waste a lot of effort converting the NUMBERs to real DATEs whenever you need to manipulate them.
    Validation can be very difficult for NUMBERs, also.
    Watch this forum. It's a rare day when there's not some question about how to get around a problem caused by storing dates in a NUMBER (or VARCHAR2) column. Don't add to that. Always use DATE columns for dates.

  • How we generate Surrogate Keys without using identify column

    Hi All,
    How we generate Surrogate Keys without using identify column.
    Regards,
    Manish

    There are various options
    1.IDENTITY columns - simplest to implement
    2. Using NEWID(), NEWSEQUENTIALID() functions (if you want to use GUID values as surrogate keys)
    3. SEQUENCE object (if SQL 2012 and above)
    4. Using custom functions to generate keys yourself
    This is an good article which compares use of GUIDs against integers as surrogate keys
    http://blog.jonathanoliver.com/integers-vs-guids-and-natural-vs-surrogate-keys/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • "I would like to know how to set the default view for the columns. Somewhere I read it could be done in by music icon under Library.  Can't find it.  Thanks

    "I would like to know how to set the default view for the columns that are shown in iTunes. Every time I open it, I have to either go to the options, or right-click to get the pop-up options, and delete "rating" and add "composer." I'd really like to just do it once and be done with it."  Somewhere I read you could do this by clicking on the Music icon under LIBRARY then arramge the columns.  Trouble is, I can't find a Musi Folder or icon in my user library.
    Any help would be appreiated.  OSX 10.9.2  iTunes version 11.1.5  Thanks!!! CW!

    From the iTunes menu bar try View>Show View Options.  Make sure what you want to see is checked and what you don't is unchecked.  You can do this (may need to do this) for any playlists, your main Library, etc.
    Good luck
    srb

  • How do I set individual properties for a column in report layout at runtime

    How do I set individual properties for a column in report layout at runtime? I need to change this based on a user's input. This is for v10g.
    I need to change either the "Read from File" attribute or the "File Format" attribute for one column based on the user's input. IS this possible?
    Thanks in advance!

    Hi,
    define 2 columns and use format triggers to show the one or the other column.
    Regards
    Rainer

  • Generate different Supplier Number Sequence for One Operating unit!

    R12.1.2
    Dear Gurus,
    We run multiple operating units under one Business Group and each of them are independent entities of their own with separate ledgers and currencies based on the territories.
    We generate Supplier numbers automatically for all territories.
    But, now we have a requirement from one of the territories that we need to generate supplier numbers in a different sequence (starting from 40000000000 onwards) just for that territory. We still would like to generate supplier numbers for the other operating units (territories) using the standard sequence.
    Is this possible? If yes, please give details.
    Thanks,
    -Venkat

    Hi Venkat,
    Supplier Numbering configuration is not operating unit specific, hence the same numbering would continue to happen in the environment/application instance ...
    The workaround would be turn off Automatic and switch to Manual numbering and check with the feasibility of having a customization and Personalization for meeting the requirement ....
    Reference:
    How is Supplier Number assigned in R12? [ID 1252934.1]
    Regards,
    Ivruksha

  • How to have diffenrent automatic number sequences for diff OU projects ?

    Client requirement is to have different project numbr sequence for diff OU's in the same BG . How can this be implemented?

    Hi,
    The Project number has to be unique across the OUs. But Iam not sure how you will achieve it. Since having different sequence numbers will cause issues(it will create overlapping project numbers and hence you will not be able to create a project)
    But technically it is doable. The way is given below. But it may cause issues in having project number to be unique across OUs.
    1. Make the Project Number 'Manual' for all OUs.
    2. Create one sequence for each OU.
    3. When creating Project through Forms/OAF, use custom code to populate the project number automatically
    by accessing the correct sequence, depending upon the OU.
    This is just a thought. Let me know if this works.
    Have fun !!
    Sathish
    www.projectsaccounting.com

  • How to generate Header and Trailer for a file

    Hi Guru
    How can we generate header and Trailer for a file
    EX:
    i want to generate header with date and trailer with record count from table.
    Sample file :
    20120120
    fwsfs
    adfwsfd
    adff
    afsadf
    afdwsg
    adgsg
    adgsgg
    asgdsag
    sdgasgdaf
    sdfsagfadf
    10

    Hi ,
    1.Create an interface to load data from oracle to file and set generate header as false option in IKM .
    2.Create variable get_current_date of alphanumeric datatype and implement logic SELECT to_Char(SYSDATE,'yyyymmdd') FROM DUAL under refreshing tab
    3.Create variable get_record_count of numeric datatype and implement logic SELECT '<%=odiRef.getPrevStepLog("INSERT_COUNT")%>' FROM DUAL under refreshing tab
    4.Create a package
    Drag the get_current_date variable ,
    Drag odioutfile and paste the below logic OdiOutFile "-FILE=D:\ODI_TEST\emp.txt" "-CHARSET_ENCODING=ISO8859_1" "-XROW_SEP=0D0A" #GET_current_date in command tab
    Drag the interface
    Drag another variable get_Record_count
    Drag the odioutfile and paste the below logic OdiOutFile "-FILE=D:\ODI_TEST\emp.txt" -APPEND "-CHARSET_ENCODING=ISO8859_1" "-XROW_SEP=0D0A"
    #GET_RECORD_COUNT in command tab
    Link all these in sequence,save and run the package.
    OR Modify the IKM SQL to File Append to achieve same functionality.
    Thanks,
    Anuradha

Maybe you are looking for

  • How can I set a value in a field before create when a New button is clicked

    Hi, I am using JDeveloper 10.1.3.1.0.3984 and JHeadstart 10.1.3.1 release 10.1.3.1.26 I have one group and there is a detail group under that group. From main group to detail group there are 3 field relating those groups. field1 field2 fieldSEQ (auto

  • How to create a build.xml file ??

    Hi there, I am learning j2ee at the moment. I have been throught the tutorial and got everything working (finally). however, now that I have started writing my own code, I am stuck with writing the build.xml file (as this is not covered in the tutori

  • Regarding PDF attachment in Mail

    Hi , I have requirement like, Generate the XBRL file in to XHTML and convert it to PDF then send to mail as attachement as .pdf file. I have done upto PDF generating but i am sturck up to send a mail as attachement. main thing is i am not stored in l

  • Any way to print from Finder?

    Sorry about my last post...I really messed up! Here I go again. Is there any way to print from the finder? I have a DVD inserted into my drive, and I want to print the contents to have as a reference. I tried to print the contents of the disk from To

  • Checking if resultset still active?

    I want to return a ResultSet which basically handles some query i.e. public ResultSet doSomething(int chr, int startPos, int endPos, int strainsThreshold, float minGeneDensity) throws SQLException {                 String someQuery = "";