How to create number ranges with "OK60" transaction or any other.

Hello,
I need to create a new number range to asigne to a document type , using transaction OK60 ( the error says this transaction).
but I only can display with this transaction, and I would like to update.
Is there any other transaction to do this , or is there any way to do this with this transaction OK60?
Thank you very much.
Kind regards
Olga

Hi,
OK60 indeed is used for creating number ranges for FI/CO earmarked funds transactions. You should press on 'Pencil' button and create an interval. If for some reasons, you cannot do this via this transaction, try using SNRO transaction, with IRW_BELEG parameter. If this also fails, then apply to BASIS team to check your authorizations.
Regards,
Eli

Similar Messages

  • How to create Number Range

    Hi All Sap Experts
    Please tell me How to create Number Range
    I tried with the Transaction Code " SNRO "
    But Im getting The following error
    Dialog box title : " Buffering Methods ".
    Message in the Dialog box is :
       -Numbers may be lost!
       -Do not use for Financial accounting Documents!!
    ?. Do you want set this Buffering method?
    And another error is :
    Dialog box title : " Transport number range intervals "
    Message in the Dialog box is :
         The number range intervals are not included in automatic customizing changes.
         Transport all changes made within range interval maintenance must be  
         triggered manually.
         In the initial screen for range interval maintenance function
    <b>      Interval</b>              -->      <b>Transport</b>
         Please note the information that you get when transporting intervals.
    So please tell me the solution for this error.
    Thank you
    Basu
    Another is

    hi,
    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
    <u><i><b>refer the links</b></i></u>
    http://www.sap-img.com/ge003.htm
    http://www.sap-basis-abap.com/sapmm009.htm
    http://www.erpgenie.com/abap/code/abap33.htm
    http://www.kabai.com/abaps/z26.htm
    Rgds
    Anversha

  • How to create a window with its own window border other than the local system window border?

    How to create a window with its own window border other than the local system window border?
    For example, a border: a black line with a width 1 and then a transparent line with a width 5. Further inner, it is the content pane.
    In JavaSE, there seems to have the paintComponent() method for the JFrame to realize the effect.

    Not sure why your code is doing that. I usually use an ObjectProperty<Point2D> to hold the initial coordinates of the mouse press, and set it to null on a mouse release. That seems to avoid the dragging being confused by mouse interaction with other nodes.
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.collections.FXCollections;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Point2D;
    import javafx.geometry.Pos;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    import javafx.stage.Window;
    public class CustomBorderExample extends Application {
      @Override
      public void start(Stage primaryStage) {
      AnchorPane root = new AnchorPane();
      root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
      enableDragging(root);
      StackPane mainContainer = new StackPane();
        AnchorPane.setTopAnchor(mainContainer, 5.0);
        AnchorPane.setLeftAnchor(mainContainer, 5.0);
        AnchorPane.setRightAnchor(mainContainer, 5.0);
        AnchorPane.setBottomAnchor(mainContainer, 5.0);
      mainContainer.setStyle("-fx-background-color: aliceblue;");
      root.getChildren().add(mainContainer);
      primaryStage.initStyle(StageStyle.TRANSPARENT);
      final ChoiceBox<String> choiceBox = new ChoiceBox<>(FXCollections.observableArrayList("Item 1", "Item 2", "Item 3"));
      final Button closeButton = new Button("Close");
      VBox vbox = new VBox(10);
      vbox.setAlignment(Pos.CENTER);
      vbox.getChildren().addAll(choiceBox, closeButton);
      mainContainer.getChildren().add(vbox);
        closeButton.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            Platform.exit();
      primaryStage.setScene(new Scene(root,  300, 200, Color.TRANSPARENT));
      primaryStage.show();
      private void enableDragging(final Node n) {
       final ObjectProperty<Point2D> mouseAnchor = new SimpleObjectProperty<>(null);
       n.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            mouseAnchor.set(new Point2D(event.getX(), event.getY()));
       n.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            mouseAnchor.set(null);
       n.addEventHandler(MouseEvent.MOUSE_DRAGGED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            Point2D anchor = mouseAnchor.get();
            Scene scene = n.getScene();
            Window window = null ;
            if (scene != null) {
              window = scene.getWindow();
            if (anchor != null && window != null) {
              double deltaX = event.getX()-anchor.getX();
              double deltaY = event.getY()-anchor.getY();
              window.setX(window.getX()+deltaX);
              window.setY(window.getY()+deltaY);
      public static void main(String[] args) {
      launch(args);

  • How to create number range for custom object

    Hi all,
    I want to create number range for custom object or custom tables
    Thanks
    Hemalatha

    Hi,
       Thanks, I am able to create a number range for custom object through SNRO tcode.
    Thanks
    Hemalatha

  • How To create number range for custom BO

    Dear All,
    I have created a Custom Business Object and i have created its alternative key.. I want an Internal number range to be used against that alternative key.
    How do i achieve this functionality?
    Regards,
    Dhruvin

    Hi Dhruvin,
    Find the below discussion where I answered to generate number.
    Does anyone have sample code to auto generate Alternate key/ID field data
    in this example number will start from 1, you can enter your own starting number.
    If it help you or  have any doubt, let me know.
    regard
    Sunil

  • How to create a function with dynamic sql or any better way to achieve this?

            Hello,
            I have created below SQL query which works fine however when scalar function created ,it
            throws an error "Only functions and extended stored procedures can be executed from within a
            function.". In below code First cursor reads all client database names and second cursor
            reads client locations.
                      DECLARE @clientLocation nvarchar(100),@locationClientPath nvarchar(Max);
                      DECLARE @ItemID int;
                      SET @locationClientPath = char(0);
                      SET @ItemID = 67480;
       --building dynamic sql to replace database name at runtime
             DECLARE @strSQL nvarchar(Max);
             DECLARE @DatabaseName nvarchar(100);
             DECLARE @localClientPath nvarchar(MAX) ;
                      Declare databaselist_cursor Cursor for select [DBName] from [DataBase].[dbo].
                      [tblOrganization] 
                      OPEN databaselist_cursor
                      FETCH NEXT FROM databaselist_cursor INTO @DatabaseName
                      WHILE @@FETCH_STATUS = 0
                      BEGIN       
       PRINT 'Processing DATABASE: ' + @DatabaseName;
        SET @strSQL = 'DECLARE organizationlist_cursor CURSOR
        FOR SELECT '+ @DatabaseName +'.[dbo].[usGetLocationPathByRID]
                                   ([LocationRID]) 
        FROM '+ @DatabaseName +'.[dbo].[tblItemLocationDetailOrg] where
                                   ItemId = '+ cast(@ItemID as nvarchar(20))  ;
         EXEC sp_executesql @strSQL;
        -- Open the cursor
        OPEN organizationlist_cursor
        SET @localClientPath = '';
        -- go through each Location path and return the 
         FETCH NEXT FROM organizationlist_cursor into @clientLocation
         WHILE @@FETCH_STATUS = 0
          BEGIN
           SELECT @localClientPath =  @clientLocation; 
           SELECT @locationClientPath =
    @locationClientPath + @clientLocation + ','
           FETCH NEXT FROM organizationlist_cursor INTO
    @clientLocation
          END
           PRINT 'current databse client location'+  @localClientPath;
         -- Close the Cursor
         CLOSE organizationlist_cursor;
         DEALLOCATE organizationlist_cursor;
         FETCH NEXT FROM databaselist_cursor INTO @DatabaseName
                    END
                    CLOSE databaselist_cursor;
                    DEALLOCATE databaselist_cursor;
                    -- Trim the last comma from the string
                   SELECT @locationClientPath = SUBSTRING(@locationClientPath,1,LEN(@locationClientPath)-  1);
                     PRINT @locationClientPath;
            I would like to create above query in function so that return value would be used in 
            another query select statement and I am using SQL 2005.
            I would like to know if there is a way to make this work as a function or any better way
            to  achieve this?
            Thanks,

    This very simple: We cannot use dynamic SQL from used-defined functions written in T-SQL. This is because you are not permitted do anything in a UDF that could change the database state (as the UDF may be invoked as part of a query). Since you can
    do anything from dynamic SQL, including updates, it is obvious why dynamic SQL is not permitted as per the microsoft..
    In SQL 2005 and later, we could implement your function as a CLR function. Recall that all data access from the CLR is dynamic SQL. (here you are safe-guarded, so that if you perform an update operation from your function, you will get caught.) A word of warning
    though: data access from scalar UDFs can often give performance problems and its not recommended too..
    Raju Rasagounder Sr MSSQL DBA
          Hi Raju,
           Can you help me writing CLR for my above function? I am newbie to SQL CLR programming.
           Thanks in advance!
           Satya
              

  • HT2534 How to create apple ID without visa card or any other card?

    Answer the question

    Have you created an iCloud account or you already have one!?
    Then you can go to your fav free app in iTunes on your computer, hit the download button. It will ask you for apple ID, enter your iCloud's apple ID, it will ask you for payment information and Address, then you select your payment option as NONE.
    You're good to go!

  • How to create numkr range in pe03

    hello experts
    how to create number range in pe03 when already some others number range is saved whether to delete the others ra nge  or create a new one under others. even after creating under otherwise it is showing as error

    Hi,
    Pls correct it T.code.. Number ranges will create in PA04 T.Code. not in PE03. PE03 for features. In PE03 - NUMKR  feature- will assign the default number range- for trigger automatic no. while hiring ee's.
    See, if already some number ranges saved into one number range, you can split it with other number range like;
    01 - 000001 - 100000
    Like in your system it was saved like above.
    now you want to split the above no. range to below number range. I hope you are expecting following way.
    01- 000001 - 50000
    01- 500001- 100000
    Regards,
    Devi.

  • Number Range with interval C00001 u2013 CZZZZZ

    Hi all,
    I have to create number range with interval C00001 u2013 CZZZZZ.
    Suggest me the steps to do the same.
    Thanks,
    Nidhi Sharma
    Moderator message: please try yourself before asking.
    locked by: Thomas Zloch on Sep 16, 2010 4:59 PM

    check table NRIV and also txn SNRO.

  • How to Create Business Partner with  fix number in t-code :BP

    Dear SIr,
    Normally I will set number range for auto  to create Business Partner. In case , If we would like to crea How to Create Business Partner with  fix number in t-code :BP , howe to do?
    Please kindly advise.
    THnak you and best regards,
    Vimol

    Dear Shobhit,
    How to put the thread as you mentioned.
    Best regards,

  • How to create a table with varied number of columns?

    I am trying to create a balance table. The colunms should include years between the start year and end year the user will input at run time. The rows will be the customers with outstanding balance in those years.
    If the user input years 2000 and 2002, the table should have columns 2000, 2001, 2002. But if the user input 2000 and 2001, the table will only have columns 2000 and 2001.
    Can I do it? How? Thanka a lot.

    Why did you create a new thread for this?
    How to create a table with varied number of columns?

  • How to create ios environment with adobe id?

    Hi , i am trying to create ios environment in windows platform.
    can any one please tell me, how to create IOS environment with adobe id.
    I a created adobe id and inserted code into it. But its running (Since one hour), and no response.
    Any one have idea on it, please let me know.
    Thanks in advance....
    Message was edited by: pathi rskumar

    Hi,
    If you have already set the number range as an external range.
    Then just passing the transaction type to field 'process_type' and external id to field 'object_id' of table ct_orderadm_h. Sales order will created with the assigned external id.
    Hope this help.
    cheers,

  • Question: How to assign number ranges to the Official Excise Document Numbe

    Question: How to assign number ranges to the Official Excise Document Number
    Field name is: EXNUM, table name: J_1IEXCHDR
    SAP CIN
    Dear expert,
    I will briefly explain the scenario:
    I have created return po.
    Process MIGO w.r.t. return PO- Material document generated.
    Process: J1IS - excise invoice other movement create.
    --> Now I want to print the document --> I m trying with T-code J1IP --> entered all the required data --. Used out put type - J1I0
    But I am not getting the list of document for printing and even print is not coming.
    There is no print document getting for a printing.
    When I checked in an above said table (mentioned in question), I found that for transaction type OTHR, there is no number ranges defined for official document no.
    And because of this reason I m not getting any document in the print.
    Can you Pl extend Ur help and Pl suggest me where (path or transaction) the number ranges can be maintained for the official excise document No.
    Thanking you all n advance and expecting your earliest response.
    Regards
    om

    Dear Friend,
    J_1IEXCHDR this table stores the all the excise documents created while excise transactions are done ,
    for that Goto j1i9 or SNRO  in these transaction you maintiane the number ranges  for the
    J_1IPLA2     PLA part II number range object
    J_1IRG1     RG1 Number range object
    J_1IRG1_T     No. Range for RG1 - Excise group / Material
    J_1IRG23A1     RG23A part 1 no. range object
    J_1IRG23A2     RG23A part II number range object
    J_1IRG23C1     RG23C part I number range object
    J_1IRG23C2     RG23C part II number range object
    J_1IRG23D     Folio Numbers for RG 23D
    like these  lot of objects are there  for them u maintiane the no. ranges
    Regards
    Pramod

  • Number range in Lead Transaction

    Hi ,
    In my Sandbox we have created one lead transaction and assigned one number range to that transaction.Now suddenly we figured out that one number of that range is assigned to more than one transactions of the same T type. eg 116 number is assigned to two different lead transactions created at two different times from the same transaction type. Is it usual scenario pls let me know how to debug the problem.
    Thanks,
    Ambrish

    Hi
    Run the archiving program which is by SARA transaction.
    Put the archicing object CRM_LEAD.Its shall pick up all the transactions which are to be archived and put them in a flat file.
    For further information refer to the link:
    http://help.sap.com/saphelp_crm50/helpdata/en/e6/c66f3b6c980c3be10000000a11402f/frameset.htm
    Regards
    Rekha Dadwal

  • To swap internal number range with an External number range

    Hi SAP Guru's,
    We have a a landscape with SAP which is divided in 2 ERP's.
    One being the Central server and other the Local.
    The scenario is that when ever i create a maintenance order in the central server a replication should  happen in the local server and the order number should be same as that of central server.
    And the scenario should be Vice versa i.e whenever the order is created in a local server it should be replicated in the central.
    Both the number ranges used in central and local server are different.
    I am not able to find out how we can achieve the above stated scenario.
    Please advice what should be my POA.
    Regards,
    Ankit

    Hi ,
    1.You  have to find the Difference that Wether the order is created using Integration or Manually from the System.
    2.The Standard SAP  uses Function Module Number_get_next or Badi  to fetch the Number  and the number  is assigned to Order.
    Thats how the internal number ranges  works .
    3.Now your Scenario is to Owerite the Original number given by system  by the function module or BADI  .
    4.Now you find that  Plug in Point and Write an Implicit enhancment Point and  Owerite the Original  value given by System.
    So then only you can Owerite the Original Value.
    Let me know if you are  not clear .
    Regards,
    Kishor

Maybe you are looking for