Sequence query

What is the utilisation of sequence in SAP Business one whioch related to doc series.
Can we get any report basis on sequence as like doc no series
Please provide solution asap.
Regards
M Auditya

Dear Auditya Mittapalli,
I am not sure about your question. Are you asking if there is any report based on the document series?
Thank you for your update.
Marcella Rivi
SAP Business One Forums Team

Similar Messages

  • Shift sequence query in PP work center

    Dear All,
    I am having one problem while maintaining shift sequence in work center. I have maintain all config settings in OP4A shift 1 shift 2 shift 3 but when I create work center and select shift sequence, it is only taking shift 1 and not all 3 shift for all 7 days.
    Can anyone tell me the solution?
    Thanks in advance.
    Regards,
    Max

    Dear Santosh,
    Thanks for the valuable inputs.
    I have created following sequence in OP4A.
    1, Create a Group eg. CB
    2.Create a shift definitions like SHIFT1,SHIFT2,SHIFT2, START/END DATE, START/FINISH TIME OF SHIFTS, NO BREAKS ARE THERE and assign it to group.
    3. Define individual shifts SEQUENCE DAYWISE wrt to groupo.
    4..Assign grouping in capacity header of work center.
    5.Now go to add interval option and create a new version of capcity which contains desired shift sequence from the shift group assigned.
    7. assign proper valid froma and valid to dates.
    8. In capacity header screena ssign the newly created capcity vesrion as active vesrion.
    BUT STILL i WILL ABLE TO MAINTAIN ONLY FIRST SHIFT SEQUENCE FOR ALL 7 DAYS.
    SYSTEM IS NOT SHOWING 2ND AND 3RD SHIFT.
    PLEASE HELP ME OUT.
    THANKS
    MAX

  • Searching Sequence  query in other query

    Hi
    With code below when in table TMP_EQUIP_CRM have QTD =2 It return me 2 rows, when QTD = 3 return me 3 rows ....etc
    SQL> SELECT t2.loc_cntr_id_sn, t2.loc_product_sn,
      2         ROW_NUMBER () OVER (PARTITION BY t2.loc_cntr_id_sn, setid, companyid, effdt, setid_product, loc_product_sn ORDER BY linha)                                                                                seqno_item_sn
      3    FROM (SELECT t1.*, ROWNUM linha
      4            FROM sysadm.tmp_equip_crm t1,
      5                 (SELECT     LEVEL l
      6                        FROM DUAL
      7                  CONNECT BY LEVEL <= 100)
      8           WHERE l <= t1.qtd) t2
      9  /
    LOC_CNTR_ID_SN  LOC_PRODUCT_SN SEQNO_ITEM_SN
    10              KIT01                      1
    10              KIT01                      2
    1000            KIT01                    1
    100000          KIT01                   1
    100009          KIT01                   1
    100009          KIT01                   2
    10001           KIT01                    1Now I must search a Date for each row, example of my query
    SELECT active_dt
      INTO v_active_date
      FROM (SELECT cpc.active_dt, DENSE_RANK () OVER (ORDER BY cpc.active_dt, cpc.ROWID) linha
              FROM smt_360_conta_kenan@arbor smt, cmf_package_component@arbor cpc
             WHERE smt.convenio = p_external_id
               AND cpc.parent_account_no = smt.account_no
               AND cpc.component_id = p_component_id
               AND cpc.inactive_dt IS NULL) t1
    WHERE t1.linha = p_linha;This Query can return me nothing, 1 or more rows,
    Where p_linha must to be equal SEQNO_ITEM_SN from first query , If not found for a number, search with preview number thru 1, if Not found for nothing then must return only NULL
    Example :
    100010 KIT01 1
    100010 KIT01 2
    100010 KIT01 3
    100010 KIT01 4
    100010 KIT01 5
    It must return me 5 dates
    If there is only 3 records with parameters , then the records 4 and 5 will have same date from record 3
    To do It with cursor is easy, but I must to do in unique query (SELECT), is htere some way ?
    thank you in advance

    Please post the execution plans of the query from both databases.
    Do you have proper statistics gathered on these tables?

  • Using "automating batch sequence" query

    Hi,
    I am trying to add text content to an area of the page in a group of pdf files without having to open each file. I am not replacing existing text. After checking,  I could not find a batch sequence to do this in Acrobat v7.1. Could this feature be available in Acrobat v9.?  and/or would I have to use the (acrobat v7.SDK) to create a script and plug in to do this? or if not, in Acrobat v.9, use the SDK to create the script and plugin?  I would appreciate any information.
    thanks,
    je112

    It's not possible to just add running text to a PDF using a batch process or a script. What you can do is insert a field with text and then flatten it.
    This will have a result similar to adding text to the document, but it will not be an integral part of the running text (ie the text you add will not "push" the rest of the text forward).

  • Another sequence query

    I'm trying to burn a series of pictures to a CD from iPhoto via a burn folder. The pictures are in the sequence I require in the iPhoto album but the sequence changes when I drag them to the burn folder.
    Is there an easy way to prefix the titles in iPhoto so that they stay in the same sequence when moved?

    Photos Menu: Batch Change -> Set Title to Text "John's Birthday", for instance, and tick the box to append a number to each Photo. Now your photos are titled 'John's Birthday 001, John's Birthday 002 ... etc'
    Then File -> Export and in the Export dialogue set the Filename to "Use Title"
    Sort on Filename in the FInder and you end up with a folder full of images in the same order as the Album in iPhoto.
    Regards
    TD

  • Packet out of sequence Query

    Hi, In our MPLS network we are planning two add one more WAN link between two nodes of same bw as of existing link, say two WAN link of 200Mbps. As a IGP we are running OSPF and MPLS enabled on the WAN. If the traffic gets load balance on both the parallel link then will the packet out of sequence issue appears ?
    If this is introducing the packet out of sequence issue then is there any way to avoid the same but have to use both the wan link for the traffic flow.
    Need the information
    Regards,
    Nilesh

    Hello Nilesh,
    load balancing is flow based also on an MPLS network.
    Load balancing criteria of MPLS frames is based on internal MPLS label (VPN label) for MPLS L3 VPN service.
    In any case, whatever is the type of MPLS service there will not be out of order issues as load balancing will be flow based and packets belonging to the same flow will be switched over the same path
    Hope to help
    Giuseppe

  • Need to re-sequence query result rownumber

    I have a query that returns hundres of records and a field called [query].currentrow.  This works great as it displays the row number for the entire recordset from 1 to xxx.
    However, my customer would like this number to reset when a specific field changes.  How does one do that?  I am putting some sample code in for claification:
    Amount     Product      Number
    130           A               001
    155           A               002
    104           A               003
    198           B               004  (Customer wants this to be 001)
    133           B               005  (Should be 002)
    176           C               006  (Should be again 001)
    <cfloop query="[queryname]">
    <cfoutput>
    #Amount#  #Product#  #Number#
    </cfoutput>
    </cfloop>
    Thanks in advance for your help!

    Well, it does help if we increment the counter somewhere.
    <cfoutput query="queryname" group="Product">
         <cfset variables.displayCounter = 1>
         <cfoutput>
              #queryname.amount# #queryname.product# #variables.dsiplayCounter#
         </cfoutput>
         <cfset variable.displayCounter = variable.displayCounter + 1>
    </cfoutput>

  • Sequence query at A/R invoice

    Dear All
    At our clinet place they have different branches which has to track doc series branchwise and no should start from 1 for all branches,these can be mapped through using sequence option.
    Now the problem is while generating outstanding report and general ledger report the sequence name and no should appear,so kinldy suggest the best ASAP
    Regards
    M Auditya
    NBS I Ltd

    Dear Auditya,
    I believe you need to create customized reports for this purpose.  There are no out-of-the-box solution for you.  Please stop using ASAP in your posting.  It is not proper on the forum.
    Thanks,
    Gordon

  • SCCM OSD and MDT 2012 - Task Sequence query

    Hi All
    I have single server SCCM 2012 R2 server with MDT 2013 successfully integrated. I'm looking to create a 'Sysprep and Capture' type Task Sequence within SCCM, so that this can be done via PXE rather than SCCM's more manual 'Capture Media' method.  Just
    wondering if anyone has thoughts on this, experience, pointers etc?
    Couple of options that look possible are:
    MDT Toolkit Package - include in SCCM based Task Sequence.  Would it then be fairly easy to mimic ts steps detailed in MDT's existing 'Sysprep and Capture' TS, but within SCCM?
    SCCM TS Steps - I've seen there are a number of TS Steps that look like they may enable OS Capture, but if so, bit confused there isn't more documented \ blogged on this kind of TS, would have thought this was a common requirement for a
    SCCM TS? (TS Steps of interest within SCCM: 'Prepare Windows for Capture' and 'Capture Operating System Image')
    Any assistance much appreciated!
    Kind Regards
    Andrew

    There is a bit of debate about the best way to capture reference images.  Check out this good blog that reviews the options:
    http://www.deploymentresearch.com/Research/tabid/62/EntryId/163/The-battle-begins-Building-the-perfect-reference-image-for-ConfigMgr-2012.aspx
    Having said that, you can certainly create a capture task sequence in SCCM.  If you choose to create a new task sequence,you should see a build and capture option.  Simply create a build and capture task sequence and then remove the build steps. 
    You will be left with:
    I've used this method in certain cases.
    Or as you said, if you are integrated with MDT, you can create an MDT task sequence to do the capture or add MDT steps as needed.
    Hopefully that helps!
    Jeff

  • How to create a sequence for an particular item in my apex form

    Hi friends,
    I created an database application, of a form with a report, and it is working fine...
    But in my form, i have a requirement....The below are the existing fields in my form
    issue no
    created by
    start date
    status
    priority
    due date
    Among these fields in my form i need to create a 'Sequence' for my field "issue no",
    So that whenever i opened the form the 'issue number' must generate automatically like 1 for the first time, 2 for the second time and so on..
    For that i created a sequence
    CREATE SEQUENCE "ORDERS_SEQ"
    MINVALUE 1
    MAXVALUE 999999999999999999999999999
    INCREMENT BY 1
    START WITH 1000
    NOCACHE
    NOCYCLE;
    But for validation where i need to write the sequence query for the particular item 'issue no'....i dont have any idea of where to write the validation query for the sequence..
    please tell where i need to write in step wise manner..please help me friends...
    As the below is my validated sequence query for item 'issue no'
    'select seq.issue_id.nextval into issue_no'
    This is my above validation query whether the query that i mentioned is right..if not let me know the validation query..
    And also i need where to apply this validation query in steps..
    Thanks in advance
    Regards,
    Harry...

    Harry,
    Rik is on the right track. Here is a sample insert trigger: Would need to substitute you sequence ORDERS_SEQ with my sequence las_log_seq, how you define or use timestamps is up to you.
    DROP TRIGGER LASDEV.BINS1_LAS_LOG_TBL;
    CREATE OR REPLACE TRIGGER LASDEV."BINS1_LAS_LOG_TBL"
       BEFORE INSERT
       ON las_log_tbl
       FOR EACH ROW
    BEGIN
       -- Description: Insert log_seq, creation_dt, creation_id,
       --              lst_updt_dt and lst_updt_id.
       -- Maintenance:
       -- Date        Actor          Action
       -- ====        =====          ======
       -- 07-Sep-2010 J. Wells       Create.
       :new.creation_id := nvl( v( 'app_user' ), user );
       :new.creation_dt := SYSDATE;
       :new.lst_updt_dt := :new.creation_dt;
       :new.lst_updt_id := :new.creation_id;
        SELECT las_log_seq.NEXTVAL
          INTO :new.las_log_seq
          FROM DUAL;
    END bins1_las_log_tbl;
    /Heff

  • Sequence issue with Toplink 9048

    We are trying to get sequences to work using Toplink 9.048 but keep getting errors. We reference are sequences in our descriptors like the following:
    descriptor.setSequenceNumberFieldName("ACRS_APPOINTMENT.ID");
    descriptor.setSequenceNumberName("ACRS_APPOINTMENT_SEQ");
    and have gotten this functionality to work in 10.1.3 using this reference in the sessions.xml:
    <sequencing>
         <default-sequence xsi:type="native-sequence">
              <name>Native</name>
              <preallocation-size>1</preallocation-size>
         </default-sequence>
    </sequencing>
    however when we try to get this to work using 9.048 we get the following error:
    2006.01.09 12:03:19.342--ClientSession(15015527)--Thread[HttpRequestHandler-26533782,5,main]--Execute query ValueReadQuery()
    2006.01.09 12:03:19.358--ServerSession(2573832)--Thread[HttpRequestHandler-26533782,5,main]--Connection(374929)--SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = #SEQ_NAME
    2006.01.09 12:03:19.374--ClientSession(15015527)--Thread[HttpRequestHandler-26533782,5,main]--Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.8) (Build 050712)): oracle.toplink.excep
    tions.DatabaseException
    Exception Description: java.sql.SQLException: ORA-00911: invalid character
    Internal Exception: java.sql.SQLException: ORA-00911: invalid character
    Error Code: 911Local Exception Stack:
    Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.8) (Build 050712)): oracle.toplink.exceptions.DatabaseException
    Exception Description: java.sql.SQLException: ORA-00911: invalid character
    Internal Exception: java.sql.SQLException: ORA-00911: invalid character
    Error Code: 911
    at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:227)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:698)
    at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)
    We have tried setting uses-native-sequencing to true in the sessions.xml but still get this error.
    Any help on what the exact syntax we need to enter to get it to try to read the separate sequences we have setup in the descriptors instead of trying to access a SEQUENCE object would be appreciated.
    Thanks,
    Mark

    Mark,
    Have you looked at the examples shipped with 9.0.4.X. The 2-tier Employee example uses a sequence table and works as expected.
    The #SEQ_NAME in the SQL almost looks like the sequence query is be customized instead of using the default generated SQL string.
    Doug

  • HSQL Db Sequences

    We are experiencing a problem using an HSQL db sequence to generate an id for a table.
    kodo.properties has:
    kodo.jdbc.SequenceFactory: nativewhile in the package.jdo we have:
        <class name="ChannelPlan" persistence-capable-superclass="com.ea.albt.domain.model.capacityplanning.FrequencyResource">
          <extension vendor-name="kodo" key="jdbc-sequence-name" value="seq_channel_plans"/>
          <extension vendor-name="kodo" key="jdbc-sequence-factory" value="kodo.jdbc.schema.ClassSequenceFactory(TableName=DUAL,Format=SELECT NEXT VALUE FOR {0} FROM {1})"/>When run it gives this error:
    kodo.util.FatalDataStoreException: Column not found: SEQ_CHANNEL_PLANS.NEXTVAL in statement [select seq_channel_plans.NEXTVAL from DUAL] {select seq_channel_plans.NEXTVAL from DUAL} [code=-28, state=S0022]
    NestedThrowables:
    com.solarmetric.jdbc.ReportingSQLException: Column not found: SEQ_CHANNEL_PLANS.NEXTVAL in statement [select seq_channel_plans.NEXTVAL from DUAL] {select seq_channel_plans.NEXTVAL from DUAL} [code=-28, state=S0022]
    java.sql.SQLException: Column not found: SEQ_CHANNEL_PLANS.NEXTVAL in statement [select seq_channel_plans.NEXTVAL from DUAL]
         at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)The format of the sequence query is wrong for HSQLDB, the supplied format is being ignored.

    Look at
    http://hsqldb.sourceforge.net/web/hsqlDocsFrame.html
    specifically
    http://hsqldb.sourceforge.net/doc/hsqlGuide.html

  • Sequence generation issue

    Hi , I am working in Healthcare industry . we have a claim and payment matching process . Every day 1.5 million payments get matched with 70 million claims and the matched payments are stores in some output table . After matching, an oracle seqence number is generated for each matched record and that is the primary key for the output table.
    Match query will be like this,.
    Select seqeunce1.nextval,a.column1,a.column2,b.coulmn1,b.column2 from claim_table a, payment_table b
    where a.column3=b.column3
    We are facing some seqence problem here. some sequence are missed during the first day and the missed sequnces are getting generated in the second day.
    Sequence Query:
    CREATE SEQUENCE ERA_CLAIM_MATCH_S
    START WITH 1
    MAXVALUE 999999999999999999999999999
    MINVALUE 1
    NOCYCLE
    CACHE 500
    NOORDER;
    Example to demonstrated the problem:
    Day 1(15th July) : sequence generated from 1 to 1000000 (some sequence are missed in between)
    Day2 (16th July) : sequence generated from 2500 to 2000000 (some missed sequence in day 1 are generated here)
    Our database in in RAC system.

    Hemant K Chitale wrote:
    I think that the question is : If the highest value generated on Day 1 was 1000000,  how could a value of 2500 be generated on Day 2 ?
    Shouldn't happen if the Sequence is a NOCYCLE.Hemant, but that is possible if Day 1's processing used the sequence on RAC instance 1 - whereas on Day 2, RAC instance 2 (with unused cached sequences from yesterday) is used.
    E.g.
    // on node 1
    SQL> create sequence testseq start with 1 increment by 1 nomaxvalue nocycle;
    Sequence created.
    SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
       NEXTVAL INSTANCE
             1 dev_1
    // on node 4
    SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
       NEXTVAL INSTANCE
            21 dev_4
    // on node 1, use the sequence a couple of times
    SQL> declare i integer; begin loop i := testseq.nextval(); exit when i > 100000; end loop; end;
      2  /
    PL/SQL procedure successfully completed.
    SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
       NEXTVAL INSTANCE
        100002 dev_1
    SQL>
    // on node 4, check the sequence
    SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
       NEXTVAL INSTANCE
            22 dev_4

  • Customer number generation

    Oracle Gurus,
    Customer creation number generation as Automatic, where we are doing this setup in applications.
    For supplier we give the setup in Financial options but I am not able to trace out for customer automatic number generation.
    If anyone know the setups, please let me know the steps and setups.
    Please advise.
    Edited by: satish.ygl on 09-Sep-2012 19:21

    Hi Satish,
    Set the sequence number
    Pl. go thru following navaigation path :
    Go to Application Developer responsibility >Menu > Application> Database > Sequence
    Query on sequence RA_CUSTOMERS_NUM_S and set Start Value to 20000 .
    Retest it.
    HTH
    Sanjay

  • Mysql++ on Mac

    My code, which works fine in Linux (Ubuntu 10.10) looks like this:
    Connection conn(false);
    conn.connect(db, server, user, pass)
    Transaction trans(conn);
    Query query = conn.query("Update blah blah");
    query.execute(); // inside try,catch,catch block
    query << "Another update";
    query.execute(); //try
    query << "Yet another";
    query.execute; //try
    trans.commit();
    query << "select this, that and the other thing";
    vector<deepskyStruct> resvec; // deepskyStruct is an ssqls structure
    query.storein(resvec);
    vector<deepskyStruct>::iterator it;
    for loop through the vector, creating members of class SessionObject from the data
    end for
    start another transaction
    query << "Update a different table";
    query.execute(); //two more of these
    trans2.commit();
    query << "Select blah, blah blah from a different table";
    vector(doubleStarStruct> resvec2;
    //Up to here, everything is fine, and I have verified that all the updates took place. I also know that the first select, storing in resvec, creating the objects, etc. worked, because when I commented out the stuff for the 2nd table the program completed successfully with the expected output.
    query.storein(resvec2);
    Then:
    402 query.storein(resvec2);
    (gdb) next
    Program received signal EXCBADACCESS, Could not access memory.
    Reason: KERNPROTECTIONFAILURE at address: 0x0000041c
    0x93d12a8d in std::string::clear ()
    The address of resvec2 was 0xbfffefdc, while the address of resvec was 0xbfffefb0 or sth in that neighborhood.
    Any help appreciated.
    Thanks,
    Alan Shank
    Woodland, CA

    I have gathered some more information after debugging the program in XCode.
    vector<deepSkyStruct> resvec; // deepSkyStruct is an ssqls structure
    Here is the calling sequence:
    query.storein(resvec); // this is in mycode
    storein(Container & con); // in the Mysql++ library
    storein(con, str(template_defaults) );
    storein_sequence(con, s); // s is a const SQLTypeAdapter
    UseQueryResult result = use(s);
    while(1) {MYSQL_ROW d = result.fetchrawrow();
    the UseQueryResult object result has a private member result_ with these members:
    counted_
    refs_
    The first time I call query.storein(resvec), after use(s), the result object has these values:
    counted_ = 0x5016f0
    refs = 0x501cd0
    The code works fine.
    When, after another query to a different table, I call query.storein(resvec2), after the use(s), the members counted_ and refs_ are both 0x0. Then, when result.fetchrawrow is called, the program gets the EXCBADACCESS error. The debugger window shows this:
    0x98d17a7c <+0000> push ebp
    0x98d17a7d <+0001> mov ebp,esp
    0x98d17a7f <+0003> sub esp,0x18
    0x98d17a82 <+0006> mov eax,DWORD PTR [ebp+0x8]
    0x98d17a85 <+0009> mov DWORD PTR [esp+0xc],0x0
    0x98d17a8d <+0017> mov edx,DWORD PTR [eax]
    the last line is highlighted and a red arrow points to it.
    I have also posted this question on MYSQL Forums, with no response except a troll.
    Cheers,
    Alan Shank
    Woodland, CA

Maybe you are looking for

  • HP Pavilion Dv6 7078CA Recovery without recovery disc

    Hello!! i have an Hp Pavilion Dv6 - 7078ca, and after just 6 months of use, the Hard Drive just died. because i live in Brazil, and brought the Computer back home, i couldnt use the warrant, since the warrant is for canada only. so i changed by my ow

  • Help!! I cannot access facebook (and others) from ANY Browser on my Macbook Pro

    Hi everyone, I have been reading thru discussions all over the support page and have tried everything in just about every discussion to help fix the problem but have had no luck yet. Here are my Ping results. So with what Ive read so far it doesnt se

  • Hardware issue: airport?

    hi everyone, Just needed some help regarding Airport. My hard disk recently died and basically replaced it. I had to reinstall my OS again, but after setting it up, I realized the computer could not identify the Airport Express wireless card inside!

  • Enable commenting bar in web browser

    Does anyone know how to enable the commenting toolbar while in the web browser?  It is my understanding that the commenting is only allowed while collaboration is taking place but I found this link: http://www.planetpdf.com/codecuts/pdfs/tutorial/Acr

  • Sun Java Communications Sync - VISTA

    Hi, Is there any version on Sun Java Communications Sync for VISTA ? because i installed it on VISTA it gives me an error, it does not start.