Urgent: Need to know a Program name which generates Numbers automatically

Hi Peers,
We all know that there are 2 kinds of Numbering :
1. Internal Numbering
2. External Numbering
For eg: When we create an Sales Order a  new SO number is generated automatically which is called Internal number generation.
There is an Object which generates this number  I would like to know that  Program. If  any Idea please let me know.
The reason why I need is , Thru a transaction when we  are create entries for an Z table , the number should be generated automatically.
Points will be suitably rewarded.
Thanks a Lot.
Daniel

Hi,
1) Goto Tcode SNRO
2) select ur concerned OBJECT there.
3) Click on Number Ranges Push Button.
4) then click on Display Interval Button over there.
*****************************************************Other code
Create number range object using OYSN.
Then call the following function modules.
FORM get_next_id CHANGING p_discrep.
DATA: last_id LIKE zrecaudit-discrep,
quant LIKE inri-quantity, "dummy
code LIKE inri-returncode. "returncode
CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
EXPORTING
object = 'ZRECAUDIT'
EXCEPTIONS
foreign_lock = 1
object_not_found = 2
system_failure = 3
OTHERS = 4.
IF sy-subrc = 0.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'ZRECAUDIT'
IMPORTING
number = last_id
quantity = quant
returncode = code
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.
CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
EXPORTING
object = 'ZRECAUDIT'
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
ENDIF.
ENDFORM. " get_next_id
Don't forget to reward if useful..
Vasanth

Similar Messages

  • Need to know the program names to which the table is used

    Hi,
    I am using a table <table1>.
    For Example : MARA table. I need to know in what are all the program's the MARA table is used .
    Please let me know in which tcode can I know the details.
    Thanks,
    Karthik

    hi ,
    use program 
    RS_ABAP_SOURCE_SCAN
    passs 'MARA' IN search field 
    and  program name field  '*'
    will give all  program .
    regards
    Deepak.

  • I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I tightened all HD screws and it didn't help. With the machine running and side of the case off, I physically stopped both the video card fan and the front case fan with my finger for a couple seconds and the noise continued. I also took all hard drives out one by one and rebooted each time. Again, the noise continued until I took out the Mac HD in Bay 1, rebooted, and I had a very quiet, silent machine. The issue is the hard drive in bay 1 that shipped with the computer, it's without a doubt causing the hum/woosh sound. I still need to know if I can safely swap the Mac HD from bay 1 to bay 4 without any issues to the operating system. I would like to try that to see if it dampens the noise but I also want to make sure this swap won't screw up my machine at all.

  • What is the program name which extend the partitions in BW 3.5 ?

    Hi All..
    What is the program name which extend/split the partitions in BW 3.5 ?
    Thanks..
    Saj

    Hope It's not too late,
    You might be talking about the program described in note "697275":
      - SAP_EXTEND_PARTITIONING_INF for INFORMIX databases.
    There's also a possibility described in note "895539":
      - SAP_PART_EXTEND_ETABLE  for ORACLE databases.
    Good Luck!
    Edited by: Martin St-Jean on Dec 3, 2009 5:07 PM
    Edited by: Martin St-Jean on Dec 3, 2009 5:20 PM

  • Need to know the exact name and P/N of a spare part, cannot find it anywhere.

    Hello,
    I would like to know the exact name and P/N of the -Touch Panel Control Assembly- for the HP Pavilion dv3510nr?.  
    or is it -Touch Panel Kit-?
    or is it -Multimedia Touch Control Panel-?
    Recently, mine got physically damaged and none of the touch buttons work, I cannot even turn the WiFi on. So I need to replace it, but I cannot find this spare part anywhere.
    It does not appear on the list of spare parts for this laptop, with any of those names.
    Does anybody know where can I find this spare part?
    Thanks very much.
    Glendy

    In case it was not very clear, the spare part that I am referring to is the panel placed above the keyboard, that has touch sensitive buttons for multimedia functions and for enabling the wireless device.
    Buttons appear In this order:
    MediaSmart button
    Audio on/off button
    Volume control
    Skip backward button
    Play/Pause button
    Skip forward button
    Stop button
    WiFi enable/disable
    Glendy 

  • I need to know the domain names of the update servers so I can exclude them from outgoing content filtering appliances at my site

    We use a Bluecoat device that must be authenticated on a time schedule, before a user can browse off site. This breaks the updater on Firefox if the end user has not yet authenticated.
    I can add the Firefox update servers or domains to an exclusion list so the Bluecoat will not interfere. I need to know those names.
    I did some network sniffing and noticed aus2-mozilla-org.geo.mozilla.com but I assume there are more.

    Maybe it would be easier to setup a local update server.<br />
    See https://developer.mozilla.org/en/Setting_up_an_update_server

  • How to know the Column name which contains some value?

    Suppose if a table contains 30 columns, and I want to know the name of the Column that contains my search text(Value).
    For Eg. I have a Table named Allowances contains 20 columns for referencing 20 types of allowances. The columns are named like Allw_1,Allw_2,...etc..I know the allowance name(Like "Incentive") and I want to know the Column name on which this allowance name presents.
    Pls. help me.

    Change your DB model.
    A Table with columns called allw_1, allw_2, ... begs to be normalized.

  • Need the the underlying table names which the Material Plan Detail Search p

    Our supply planning users would like to obtain the demand and supply plan for a bunch of given parts by running a query against some tables. The data they need via a PS Query output in Excel format is the same data that is provided by the Material Plan Detail page in PeopleSoft Supply Planning (Menu Path: Supply Planning >>>Solve Plan>>>> Material >>>>>>Material Plan Detail). The main underlying table behind this page is PS_PL_MRP_DTL.
    The problem is that this table contains data for only one Part Number (INV_ITEM_ID). The data is populated when Item ID is selected on the Material Plan Detail Search page.
    What are the underlying table names which the Material Plan Detail Search page brings together to present the information for the selected part number on the target page (The Material Plan Detail page)?
    If you could tell us the underlying table names (which the Material Plan Detail Search page brings together) we can write a query to present the data to the users for multiple part numbers at a time and not just one part number at a time.
    Any help would be greatly appreciated.
    We are on FSCM 8.9 Bundle 13
    Thanks in advance.

    The ERD's for FSCM 8.9 are available from following link
    PeopleSoft Enterprise Financial Management 8.9 Entity Relationship Diagrams [ID 979359.1]
    https://support.oracle.com/epmos/faces/DocContentDisplay?id=979359.1
    Hope it contains the info you are looking for.
    Hakan

  • Urgent - Need to know that the changed roles are saved in which request ?

    Hi *,
    I was required to include a query in a specified role. I went to T-code PFCG, gave the role name and went into the changed mode. Then in the authorization data, I assigned the query. After that I saved and clicked on Generate button.
    Now, I want to know these changes are captured in which request ?
    Please guide me the possible ways so that I can assign points for the useful answers.
    Regards,
    Srinivas

    Dear Srinivas D Rao  ,
    Once the changes are done ,it will be captured in IDOC and you go to bd87 transaction and give message type and press execute...
    Check in su53 Authorization check transaction
    Also
    To see Authorization a User has through
    transaction suim.
    --> users by complex selection criteria
    >by authorization values
    > Enter authorization object "F_BKPF_BUK "
    >press enter and enter company code
    execute ... you will find the users
    You need to find roles assigned to the user first then go to table agr_1252 anf give the value $BUKRS along with the role names.
    Also check tables UST12 and AGR_1251.
    Hope it helps
    Regards
    Bala

  • How to find the query name when we know the program name? Urgent!!!!!

    The same as the title, thanks in advance!
    For example, the program for the query is:AQZZZSAPQUERY===ZPAYMENT_MEDIA.

    Hi ,
    I think you have not given the correct name of the program .
    normally it will be AQZZ/SAPQUERY/ABZPAYMENT_MEDIA====
    Take the characters from the end i.e. before '=' sign and search in SQ01 to get the query name.
    for your example, Query name may be ZPAYMETN_MEDIA itself.
    Hope it helps you.
    Kind Regards,
    Ravi Sankar.Z

  • May I know the document name which I need to follow when I setup SSL on Por

    Hi Gurus,
    We have installed 9iAS Portal 90201 and upgraded it to 9023. We are trying to setup SSL for everything in the server. We have both infrastructure and middle tier on the same server. We are not sure where to start the SSL setup. Infrastructure has a HTTP server, SSo server ..etc. and the middle tier has a HTTP and OC4j and Portal, webcache..etc. Is there a standard document or list of documents in sequence which I can follow to setup SSL on our server. I have found couple of them. But not sure which one has to go first and which one has to go next. I am planning to use the trial certificate from Verisign. Please post a reply if you have sojme info about it.
    Thanks
    Raj
    ----------

    We're in the middle of trying to do the same for 904 on Solaris. If anyone has some advice, we'd really love to hear it.

  • I need  to know  all the sessions  which  are closed abruptly

    Hi
    It happens that we abrupty close our sql sessions ( from toad,sqlplus etc).
    Is there some way to know the user , db , time off all these not normal closure ?
    which views do one needs to see?
    regards
    shubh

    Hi Shubh,
    As far as the Oracle database is concerned, a user who abruptly closes her SQL session is just disconnecting.
    See
    http://www.adp-gmbh.ch/ora/sql/trigger/logoff.html
    for a little more information; I'd do the implementation via AUDIT SESSION but a LOGOFF TRIGGER is an option (if you like to do the programming yourself (extra work...))
    Cheers,
    Colin

  • Is knowing of Class Name, which called current method, possible?

    Hallo everyone,
    My method is called from inside some method of some class. Can I know which class called my method.
    In other words I would like to know is that possible to have a name of class from which my current method is called? It's sometrhing like I need an access to the call stack.
    thanks!

    You can do the same thing before 1.4 as well:
          Throwable t;
          PrintStream ps;
          PrintWriter pw;
          String str;
          StringBuffer sb;
          StringWriter st;
          t = new Throwable();
          st = new StringWriter();
          pw = new PrintWriter(st);
          t.printStackTrace(pw);
          sb = st.getBuffer();
          str = sb.toString();You now have the stack as a String in the variable str.
    The problem is that you have to parse the String to separate methods from classes and so on. And different platform may produce slightly different string representations of the stack.
    So, it is easier in Java 1.4

  • I Need To Know All Programs/Plug-ins/Files Bundled With CS2 Design Standard Suite

    I am the Unit Software License Manager for my office at a government installation. I am in charge of accounting for all licensed software (both the physical CDs and the licenses/serial #s/Registration #s) being used on the computers in my office. Currently, I have a master list that shows all software used, including the main programs, plug-ins, add-ons, settings, toolkits, servers, drivers, etc., on all our stations. I need to break the list down to show which of these programs, etc., were bundled to the CS2 Design Standard suite specifically. Does anyone have any knowledge of the complete list that was bundled with CS2 Design Standard? Thanks.

    Mike

  • Program Name which helps to hide the code of abap program

    Hello Experts,
              Could anybody help me in finding the name of the program on running which we can hide the CODE OF Abap program

    Here´s a snippet demonstrating how to hide the ABAP code of a given program
    REPORT z_hide_abap
      NO STANDARD PAGE HEADING.
    DATA: gt_code(72)  TYPE c OCCURS 0,
          gv_code      LIKE LINE OF gt_code,
          gt_code2(72) TYPE c OCCURS 0.
    PARAMETERS: program LIKE sy-repid.
    START-OF-SELECTION.
      READ REPORT program INTO gt_code.
      IF sy-subrc NE 0.
        MESSAGE e398(00) WITH 'Report' program 'not found.'.
    *   ATTENTION:
    *   READ REPORT on a hidden source code return SY-SUBRC=8 !!!
      ENDIF. "IF sy-subrc NE 0
      READ TABLE gt_code INDEX 1 INTO gv_code.
    * append *special* 1st line to hide cource code
      APPEND '*@#@@[SAP]' TO gt_code2.
      LOOP AT gt_code INTO gv_code.
        APPEND gv_code TO gt_code2.
      ENDLOOP.
      INSERT REPORT program FROM gt_code2.
    Reward points if helpful.

Maybe you are looking for