Problem in bin sequencing

Hello everyone,
I am facing a problem while creating the TR for the material bin wise.
I am using the function module 
CALL FUNCTION  'L_TO_CREATE_TR'
    EXPORTING
      i_lgnum                        = itab-lgnum
      i_tbnum                        = itab-tbnum
      i_nidru                          =  'X'
      i_update_task               = ' '
      i_commit_work              = ' '
      i_bname                        = sy-uname
      i_teilk                            = 'X'
It is creating the TR correctly. But when a material in different bins is having same TBNUM, then my bin sequence is breaking.
It is doing the TO by the given TBNUM which is resulting in change in the expected order of bins.
I tried customising the FM,  by adding the bin number as the exporting parameter, But it didnt work.
Please suggest me how to solve this issue.

Hi,
The problem is solved, The parameter tbeli = space has to be passed to the function module, to allow the partial picking of TRs.
Thanks,
Aritra.

Similar Messages

  • Problem with creating sequence in procedure

    I am getting the following error when trying to create a sequence inside a procedure:
    ORA-01031: insufficient privileges
    But, I have no problem creating the sequence outside the procedure, by just issuing the create sequence command.
    How can I make this work?
    Thanks.

    I am getting different result for this:
    INSERT INTO DEPNODE.SEQ_MEID (proc_id, me_id, seq_id)
    SELECT 'tstamp' AS proc_id, M.MANAGED_ENTITY_ID AS ME_ID, ROW_NUMBER () OVER (ORDER BY M.MANAGED_ENTITY_ID) AS seq_id
    FROM FDM.MANAGED_ENTITIES M, FDM.PHYSICAL_ADDRESSES P
    WHERE M.MANAGED_ENTITY_ID = P.ME_MANAGED_ENTITY_ID
    AND M.MANAGED_ENTITY_ID < 5;
    If I ran this at the prompt, I get the correct result:
    tstamp     1     1
    tstamp     2     2
    tstamp     3     3
    tstamp     4     4
    But, if its part of the procedure, I get this:
    tstamp     1     1
    tstamp     1     2
    tstamp     1     3
    tstamp     1     4
    ** the middle row is the seq_id
    Thanks.

  • Problem in Sourcing sequence for plant in Sales Order.

    Hi
    I am facing problem in Sourcing sequence for plant in Sales Order.
    If in Sales order i am selecting material then system is picking plant automaticly 8635 which is worng. For customer XYZ/ ship to ID ZXY, system should pick plant in sequence 5400 - 2300 - 5050.
    Could you please confirm what is exactly problem and what seeting i need to check.
    pls confirm

    But it is defind for material master.
    Because 8635 existed in materila master so system determines 8635 plant into your sales order.
    You can set only one plant as automatic else you can enter manually in sales order.
    If you automatic as  5400 then assign in Customer material info record or Customer or material master any where you can maintain.

  • Change color preferences of bins & sequences

    My current bin & sequence color is grey. Is there any way to change them to a more pleasant color? Since I have a lot of bins open for my current project, is it also possible to make each bin a certain color?
    Thanks,
    miss2z

    That's a great visual. But see the grey background? I'm talking about changing that color. Can we?
    By the way, when I right-click, I only see an un-bold Paste option. No Cut, Copy or Label option, not even in un-bold or greyed-out.
    miss2z

  • Problem with DB sequences - Annoying

    Hi All,
    I have a target table and for one of the columns (which is not null), I am using a Db sequence as the mapping (abc_seq.nextval). It is set to Target.
    What happens is that sometimes when the interface runs, it runs without any issues..but sometimes, it simply cannot get a value for the sequence and hence tries to insert a NULL value and throws error.
    The column XXXXX cannot be null
    When I try to run the below in the DB, it works fine.
    select abc_seq.nextval from dual;
    This is very very annoying as when I think everything works fine, then this problem arises..Below are some of the ways that I am able to get rid of this problem so far...
    1. Restart ODI application.
    2. Open the interface again and then select : Execute on Target...
    This issue is happening for almost all the interfaces created.
    But these are not a permanent solution. Anyone can help me ?
    I am using ver - 11.1.1.6
    Edited by: 937825 on Jul 4, 2012 1:37 PM
    Edited by: 937825 on Jul 4, 2012 1:37 PM

    Hi,
    how you implemented mapping for sequence, using native sequence or any another way...
    Thanks,
    H

  • Problem using a sequence in a trigger

    I am creating a table, sequence and trigger as below. When I insert into the table I get the error message
    'ORA-04098: trigger 'SIMS2.BEF_INS_MATERIAL_COST' is invalid and failed re-validation'
    I am using TOAD rather than SQL Plus to do all this. Any idea what is causing the problem?
    create table material_costs
    material_id NUMBER(8) not null,
    material_desc VARCHAR2(50),
    material_rate NUMBER(8,2)
    tablespace sims2data;
    create index material_costs_1
    ON material_costs (material_id)
    tablespace sims2index;
    create sequence material_costs_seq
    increment by 1
    start with 1
    nomaxvalue
    nocycle
    noorder
    cache 100;
    create or replace trigger bef_ins_material_cost
    before insert
    on material_costs
    for each row
    begin
    if inserting then
    select material_costs_seq.nextval into new.material_id
    from dual;
    end if;
    end;

    Some older versions of Oracle do not allow the direct assignment of a sequence to the column, so you could try
    CREATE OR REPLACE TRIGGER bef_ins_material_cost
    BEFORE INSERT ON material_costs
    FOR EACH ROW
    DECLARE
    l_seqval NUMBER;
    BEGIN
       SELECT material_costs_seq.nextval INTO l_seqval
       FROM dual;
       :NEW.material_id := l_seqval;
    END; The TOAD editor does not require the :new syntax because new.material_id is, at least potentially, a valid construct, and can only be resolved at compile time by Oracle. Oracle will certainly complain about new.material_id not being declared.
    HTH
    John

  • Problem with binding  sequences to attributes

    Hello everyone.
    [you may directly jump to the question at the bottom of this post and if you don't understand what the heck I'm asking, feel free to read the whole post ;)]
    I wanted to crate a table node where several attributes are for rows only.
    Because i want it to be a CustomNode, the table should be created dynamically (one should at least be able to define different amounts of rows and columns at the initialization).
    My problem is a combination of "creating dynamically" and binding attributes.
    To create an arbitrary amount of rows i use a "while(i < x) CustomNode{}" loop.
    To store the value of an attribute for a row i use sequences. So during the loop i do the following:
    someValue: bind sequenceValue[i]
    After quite some frustration i finally discovered that all the attributes will be bound to sequenceValue[last value of i].
    I don't find the right words right now, so here's some code to demonstrate the problem:
    package javafxtestbench;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.CustomNode;
    import javafx.scene.Node;
    import javafx.scene.Group;
    import javafx.scene.input.KeyEvent;
    var t1 = [true, true, false];
    Stage {
        title: "Application title"
        width: 250
        height: 500
        scene: Scene {
            content: [
                Text {
                    font : Font {
                        size : 16
                    x: 10
                    y: 30
                    content: "Application content"
                createFubar(),
    function createFubar(): Group{
        var grp : Group = Group{
            content:[         
                //this works
                /*b1{ blob: bind t1[0]}
                b1{ blob: bind t1[1]}
                b1{ blob: bind t1[2]}*/
                //this doesnt
                createSomeBs(),
            onKeyPressed: function( e: KeyEvent ):Void {
                println("=== KeyPressed ===");
                if (t1[2] == true) t1[2] = false
                else t1[2] = true;
                println("new sequence value: {t1}");
        grp.requestFocus();
        return grp;
    function createSomeBs(): Node[]{
        var i = 0;
        var grp : Node[];
        while(i < 3){
            insert b1{
                blob: bind t1[i]
            }into grp;
            i++;
        println("Sequence @ startup: {t1}");
        return grp;
    class b1 extends CustomNode{
        public var blob = true on replace{
                    println("attribute value b1.blob: {blob}");
        override function create():Node{
            Group{
    }As you can see i created a CustomNode (b1) and use two different methods to add it to the scene.
    First method: i add b1 thee times to the scene and set the attribute
    or
    2nd method: i use a loop (its index to bind the corresponding sequence entries to the attributes)
    finally i added a key listener, which changes the value of the last sequence value if an arbitrary key has been hit.
    output for using the "this works" block (1st method) after pressing some keys:
    === KeyPressed ===
    attribute value b1.blob: true
    new sequence value: truetruetrue  //contains {true, true, true}
    === KeyPressed ===
    attribute value b1.blob: false
    new sequence value: truetruefalse  //contains {true, true, false}and here for the "this doesnt" (2nd method) part:
    === KeyPressed ===
    attribute value b1.blob: false
    attribute value b1.blob: false
    attribute value b1.blob: false
    new sequence value: truetruetrueSo even though all elements in the sequence say "true", the attribute values of all CustomNodes will keep saying "false".
    Here it's due to the fact that "i" is in the end greater than the sequence (cause by the increment at the end of the loop).
    In the end all attributes will be bound to the same entry. So messing around with the index, so it doesn't get beyond the sequence size, won't help.
    So to finally bring this post to an end ;P, here's my question:
    How do you create an arbitrary amount of Nodes containing attributes which are bound to a list entries?
    Edited by: Mr._Moe on 08.09.2009 20:17

    HI
      May be  you can fetch the data from the table with  looping the table size  and catching the
    index of the elements .  To be more clear .
      1 . get the size of the table .
    int leadSelection=  wdcontext.node<TableName>.getLeadSelection();
        for (int i=0 ;i<n;i++)
          if(wdcontext.node<tablename>.isMultiselected(leadSelection))
            String name = wdcontext.node<tablename>.getelementatindex(leadSelection).getname();
             similarly fetch the size of the other elements from the table .
        and set to other RFC as
            ZClass  abc = new ZClass();
             abc.setName(name);
    wdcontext.node<NameName>.bind(abc);
    and othere thing is when  you use Abstract class you can insert only one element at a time .
    or may be you may want to set the values direclty to the RFC
           AbstractList  lst = new  ZClass.ZClassList();
           ZClass cls = new ZClass();
            clas.setName(name)
      lst.add(class);
    wdcontext.currentRFcNameElement.modelObject.setName(lst);
    and
    execute the RFC .
    murali

  • Problem with a sequence visibility...

    Greetings, everybody
    I have a problem:
    In a Java application, there's a line that try to get a sequence value, as follows:
    PreparedStatement stmt = conn.prepareStatement("select any_schema.SQ_WHATEVER.nextval as NEXTVAL from dual"); //where conn is a java.sql.Connection instance
    rs = stmt.executeQuery(); //rs is a java.sql.ResultSet
    When it runs, it raises the exception:
    java.sql.SQLException: ORA-00942: table or view does not exist
    ...but the sequence EXISTS!!!
    I've checked the return in SQL Plus, I've checked the permissions to access the sequence...
    ...and I couldn't find the root of this problem!
    Could somebody help me???
    Since now, I thank you!

    Jeff,
    Maybe I'm misunderstanding your question, but the following works for me, using Oracle 9i (9.2.0.4) database on SUN [sparc] Solaris 9, JDK 1.4.2_07 and "ojdbc14.jar" JDBC driver.
    First I create the sequence and synonym (database objects) using SQL*Plus:
    sqlplus avi/avi
    SQL> create sequence AVI;
    Sequence created.
    SQL> create public synonym AVI for AVI;
    Synonym created.And here is the java code:
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    public class SqlQry00 {
      public static void main(String[] args) {
        Connection dbConn = null;
        ResultSet rs = null;
        Statement s = null;
        String url = "jdbc:oracle:thin:scott/tiger@host:1521:orcl";
        String sql = "select AVI.NEXTVAL from DUAL";
        System.out.println("\nSQL:\n" + sql + "\n");
        try {
          Class.forName("oracle.jdbc.driver.OracleDriver");
          dbConn = DriverManager.getConnection(url);
          s = dbConn.createStatement();
          rs = s.executeQuery(sql);
          if (rs.next()) {
            System.out.println(rs.getBigDecimal(1));
        catch (Exception x) {
          x.printStackTrace();
        finally {
          if (rs != null) {
            try {
              rs.close();
            catch (Exception x) {
              System.err.println("Failed to close result set.");
              x.printStackTrace();
          if (s != null) {
            try {
              s.close();
            catch (Exception x) {
              System.err.println("Failed to close statement.");
              x.printStackTrace();
          if (dbConn != null) {
            try {
              dbConn.close();
            catch (Exception x) {
              System.err.println("Failed to close database connection.");
              x.printStackTrace();
    }Notice how (in the java code) I connect to the database as user SCOTT? (In other words, not as user AVI -- who owns the sequence.)
    Good Luck,
    Avi.

  • Problem sending FCP sequence to Compressor

    I'm a beginner at using Compressor. I had the following problems while completing the Motion 2 DVD tutorial that shipped with the Final Cut Studio Suite:
    1. Upon exporting the sequence to Compressor, FCP gave a duplicate file name warning.
    2. Compressor opened, but it would not preview the sequence I exported. Compressor said that FCP was "busy".
    3. Upon submitting the batch, the compression sequence went by very quickly and I recieved a failure message in the batch monitor.
    I ended up sending the the FCP sequence to QuickTime, then I opened up the QT file with Compressor directly. When I followed the directions for compression to DVD quality, the process does seem to have worked.
    Questions: Is this the only way that I will be able to compress my movies as I gain more experience with longer files & will this cause a loss in quality?
    iMac G5   Mac OS X (10.4.6)  

    No, you should most certainly be able to
    export your sequence (or a group of sequences)
    directly from FCP into Compressor.
    Can you share some more details about what
    exactly you did?
    I beleive that I made a mistake in installing the tutorial files from the DVD. I tried Compressor again using different footage and a totally different sequence, and I had no problems at all. Thank you for responding.

  • Problem with a sequence

    Hello all,
    I have a problem with a basic sequence: it starts with 2 and y define "start with 1".
    Basic steps that I perform:
    1.- Create the sequence:
    CREATE SEQUENCE sec_empleado START WITH 1 NOCACHE ORDER; ------ also tried others configurations, (wiithout nocache order)
    2.- create table cliente
    SQL> CREATE TABLE CLIENTE (
    2 codigo_cliente NUMBER NOT NULL PRIMARY KEY ,
    3 nombre VARCHAR2(20) NOT NULL,
    4 apellido1 VARCHAR2(20) NOT NULL,
    5 apellido2 VARCHAR2(20) NULL,
    6 codigo_entidad NUMBER NOT NULL,
    7 dni NUMBER NOT NULL,
    8 letra_dni VARCHAR2(1) NOT NULL,
    9 fecha_nac DATE NOT NULL,
    10 domicilio VARCHAR2(30) NOT NULL,
    11 poblacion VARCHAR2(30) NOT NULL,
    12 codigo_postal NUMBER NULL,
    13 codigo_provincia NUMBER NULL
    14 );
    Table created.
    3.- insert a record:
    INSERT INTO CLIENTE VALUES (sec_cliente.nextval,'Nombre001','Apellido_1_1.........................);
    4.- check the table:
    select * from cliente;
    CODIGO_CLIENTE NOMBRE APELLIDO1 APELLIDO2 CODIGO_ENTIDAD .............................
    2 Nombre001 Apellido_1_1 Apellido_2_1 8765
    I can´t understand why it assigns the value 2 instead 1 to the first row.
    I know it looks really stupid, but i dont understand this behaivour.
    PS: Oracle RAC 11.2 database
    Thanks a lot
    Edited by: user3313344 on 14-Apr-2010 11:22
    Edited by: user3313344 on 14-Apr-2010 11:23

    Hi,
    it is normal behaviour, see also http://www.freelists.org/post/oracle-l/anyone-seen-this-weirdness-with-sequences-in-11gr2,6
    It is described in Metalink document 1050193.1 for 11.2.
    Herald ten Dam
    Superconsult.nl

  • Problem with access sequence display  in pricing Analysis:

    Hi
    We have a situation that seems to occur for a specific customer/material combination where there are missing key combinations in the pricing analysis screen.  In some instances, we will have 10 key combination for a condition type, but only the first 2 and the last 2 will be included, or in some cases, only the last 3 are shown.
    For ex. In the configuration ,Access sequence of the condition type ZXYZ , has  14  key combinations. But in the pricing analysis system shows only last 3 key combinations even though condition record is maintained for the first key combination.
    I want to understand why system is not showing all the key combinations in the pricing analysis and what is solution to resolve this problem?
    Looking forward or your valuable inputs.
    regards,
    Sachin Aher

    Hi
    We have a situation that seems to occur for a specific customer/material combination where there are missing key combinations in the pricing analysis screen.  In some instances, we will have 10 key combination for a condition type, but only the first 2 and the last 2 will be included, or in some cases, only the last 3 are shown.
    For ex. In the configuration ,Access sequence of the condition type ZXYZ , has  14  key combinations. But in the pricing analysis system shows only last 3 key combinations even though condition record is maintained for the first key combination.
    I want to understand why system is not showing all the key combinations in the pricing analysis and what is solution to resolve this problem?
    Looking forward or your valuable inputs.
    regards,
    Sachin Aher

  • Problem with access sequence

    Hi guys,
    We have a typical problem.  When i verify a condition type 'A' through MM path, MM-->purchasing >conditions->define price determination process -->define condition types,the accesss sequence shown for the condition type is 'X'.  But when i go through the condition type through FI path, Financial Accointing --->Global settings -->Tax on sales and purchase -->Basic settings --> check calculation procedure it is showing the access sequence for the same condition type as 'Y'.
    Why is it happening like this?  Is it a standard thing?  When we use this condition type, which access sequence we should use for maintaining the condition record?
    Please suggest me
    chintu

    Hi Chintu,
    1. The condition that you see in MM customisation is purchasing side Pricing Condition.
    2. While the one you see in FI customisation is for Taxation Sale and Purchase.
    Both of the above have different pricing schemas.
    Incidentally you have a condition type with same name defined in both of them. Hence the access sequence which has to be picked will depend on whether the condition is used in Tax Procidure or Purchasing Pricing Procedure.
    So depending on your use of Condition type maintain the respective access sequence.
    Regards,
    Vishal

  • Bin Sequence - Physical Inventory at Warehosue level

    Hi Gurus,
    While printing the physicla inventory document, we wanted to get the print in a sequence as teh bins are set up. Is there any setting for this purpose?
    I found a note 142551 for the same but it i stoo old (1999) shouldn't it be already implemented in ECC 6.0 or we should implement it ?
    Please advice.
    Thnaks,
    Khan

    Hello Khan,
    Check out whether in this printing report you can define your own sequence "RLLI0400", take the help from technical expert.
    Hope this helps.
    Regards
    Arif Mansuri

  • Problem inserting auto-sequence for PK value using trigger - ORA-02287

    I have a query where the sub-query is working. I created a table to receive the results of the query. I created a Sequence:
    CREATE SEQUENCE SEQ_RPT_H2_LOOPS
    MINVALUE 1
    START WITH 1
    INCREMENT BY 1
    NOMAXVALUE;
    Then I created a trigger:
    CREATE OR REPLACE TRIGGER TRG_RPT_H2_LOOPS
    BEFORE INSERT ON RPT_H2_LOOPS
    FOR EACH ROW
    BEGIN
    SELECT SEQ_RPT_H2_LOOPS.NEXTVAL INTO :NEW.RECORD_ID FROM DUAL;
    END;
    And here is the Insert query.
    accept month_year;
    accept prior_month_year;
    insert into rpt_h2_loops (
         RECORD_ID,
         MKT_CODE,
         MKT_NAME,
         ECCKT,
         VENDOR_ID,
         ECCKT_VENDOR_ID,
         OCN,
         FAC_TYP,
         ALOC,
         ZLOC,
         STATE,
         OCN_STATE,
         OCN_STATE_COLO,
         SRVC_TYP,
         CUR_PERIOD,
         PRIOR_PERIOD,
         TIME_STAMP )
    select seq_rpt_h2_loops.nextval
    ,substr(r.sub_acct,4,3)
    ,m.market
    ,rr.ckt
    ,rr.vendor_id
    ,rr.ckt||rr.vendor_id
    ,rr.ocn
    ,rr.srvc_typ
    ,'N/A'
    ,rr.zloc
    ,rr.st_cd
    ,rr.ocn||rr.st_cd
    ,rr.ocn||rr.st_cd||rr.zloc
    ,rr.srvc_typ
    ,'&month_year'
    ,'&prior_month_year'
    ,sysdate
    from rco.rate_route rr
    ,rco.cogs_resource r
    ,rco.cogs_mkt m
    where rr.cvbi_key = r.cvbi_key
    and     m.subacct = r.sub_acct
    and     to_char(rr.period, 'mm/yyyy') = '&month_year'
    and     to_char(r.period, 'mm/yyyy') = '&month_year'
    and     rr.srvc_typ = 'CUNE'
    group by    substr(r.sub_acct,4,3)
    ,m.market
    ,rr.ckt
    ,rr.vendor_id
    ,rr.ckt||rr.vendor_id
    ,rr.ocn
    ,rr.srvc_typ
    ,rr.zloc
    ,rr.st_cd
    ,rr.ocn||rr.st_cd
    ,rr.ocn||rr.st_cd||rr.zloc
    );The problem is that I am getting a ORA-02287: sequence number not allowed here on the NEXTVAL keyword.
    The sequence and trigger compiled without problem. I just can't seem to insert that value into the query. Any help would be appreciated.

    you are defeating the purpose of trigger which is before insert so just rewrite the query and remove the column for which value will be inserted using the created sequence and your code will work.
    Regards,
    Vikas Kumar

  • Problems extracting bin files

    Because of problems with the activation server that was disabled, I've had to download photoshop CS2 and reinstall it on my new laptop.
    I've had my old laptop for almost four years, and had no problems with it, so I guess this activation server problem has occurred since then.
    I followed all of the instructions and downloaded Adobe Photoshop CS2. But they are all BIN files. I haven't a clue how to extract these. I have searched the net, but all of the
    software available has to be paid for. I tried two free trials, one didn't even work on the BIN file, and the other wouldn't even let me try and extract with the "trial". I can't find any FREE
    software that does what I need.
    This really bugs me. I already bought the Photoshop product and it is not my fault that they had a problem with their activation server. I can either buy a
    software to extract it, or buy a Photoshop update. I don't think I should have to do either. This is Adobe, an expensive, well known brand. I didn't expect to have this problem. I already
    BOUGHT it.
    For those who have already had to download a product to fix a problem, how did you deal with this? Were you're files BIN too?
    Please, recommend a software that is FREE and actually does what it says it will. I looked all over and couldn't find anything. I tried IZARC, but my computer says it could harm my computer!
    I've already been through a lot of crap with the other downloads and hope to hear from someone who has actual experience and knows what software is safe.
    I deeply appreciate any advice, as I am at a loss. Thanks.

    This is the downloaded file....And the next is when I tried to extract it but it stopped at 99%. See the many 0 KB files?

Maybe you are looking for