Mismatch in last entry in OJDT table and Nextval in series numbering setup

Dear Support Team,
We are getting FIRST DEFINE THE NUMBERING SERIES IN THE ADMINISTRATION MODULE ERROR ON ADDING ANY DOCUMENT.
We checked for authorisation , group and posting periods. Everything in it's place.
There is a mismatch in the last transid of OJDT table and the Nextval generated in document numbering series setup.
How do we correct this.
Any help would be greatly appreciated.
Thanking you
Pradnya

Hi,
We solved it by locking the erroneous series and by creating a new one. But your suggestion was more right and practical.
Thanks for the valuable suggestion. We will keep this in mind.
Thanking you
Pradnya

Similar Messages

  • Unable to delete last entry in Custom table

    Hi,
    I have one custom table which allows only some specific entries to be maintained in the table.I have used a standard table as a check table for dis.I found no issue while maintaining entries in the table.But when i try to delete the last entry in the table i get the message "No entry exist".Long textNo entries were found when importing data from the database.
    Kindly help.

    Hi,
    If it is not possible through table maintainence then write a small Z program to delete the entries in devlopment system and then if then if you want you can transfer those to other systems.
    delete from ZTABLE where {give your condition for the last record}.
    Regards,
    Sandipan

  • BPM question - Delete all entries in a table and Insert data

    Hello,
    I'm new to PI BPM and have this scenario to implement.
    I'm supposed to delete all entries in a table and then insert data to the same table.
    Is BPM necessary? If it is, what is the best practice to implement my scenario?
    I want to make sure that all entries were successfully deleted before insert data.
    How do I check if all entries in the table were deleted successfully before
    initiating insert.
    Thank you.
    -Won

    Hi Won,
    Yes, this is possible without BPM.
    You have to create 2 separate mappings, each for deleting & inserting the records.
    You will have 2 different Interface mappings as well.
    But in ID, create a single interface determination.
    In that, configure Deletion interface mapping first and in the second row, configure Insertion interface mapping.
    Please make sure that the parameter 'Mainain Order At runtime' is checked in interface determination.
    -Supriya.

  • Select a count using the last entry of a table

    I have a huge project for which I am trying to learn some PL/SQL.
    Context:
    Entry gets put into the Orders table. What I want to do is create a trigger( out of scope for this question) that takes the last entry's product ID number and performs a count of all the PID's that match it. Then I want to compare that number with a number in the ProductTransaction table.
    I.e.
    Orders ProductTransaction
    OID TID
    PID PurchaseCount
    o_TID Price
    etc.....
    Last entry that gets put in contains
    OID PID TID
    4 100 2
    ProductTransaction
    TID PurchaseCount Price
    2 10 100.00
    What I want to do is if the last entry into the Orders table was the OID 4 then I want to count all PID=100 and determine if the PurchaseCount has been reached yet.
    The only thing I can think of is the following, but it doesn't ensure that the last PID is what we are counting:
    declare
    v_countpid number;
    begin
    select
    count(pid) into v_countpid
    from
    orders
    where OID = (select last(oid) from orders);
    dc
    Im thinking something like the above which populates the v_countpid
    and then taking another variable which is a select into which takes the last TID entered and comparing them in an if statement of some sort
    Let me know your thoughts on this....

    They you both for your replies. I was pushing myself to stay up late last night and I guess I didn't included everything.
    Here it goes.
    The concept is to have someone buy a product lets say at 10 dollars and it will take 10 other people for you to finally get your product released to you.
    So when I purhcase PRODUCT A and put the entry into the orders table it will be something like this:
    OID = 1
    PID = 101
    TID = 2
    TIMEOFPURCHASE=<timestamp>
    etc........
    Now once that is entered into the table I am going to have a trigger as an after insert that will count the total PID's in the table that match what I just put into it, as in this case it was PID=101. The count of PID=101 will then be matched against the ProductTransaction PurchaseCount field to determine if that product should be released to the person with the lowest timestamp.
    So....
    ProductTransaction
    TID=2
    PRICE=$10
    PurchaseCount=10
    ORDERS
    OID PID TID TOP
    1 101 2 3 am
    2 101 2 5 am
    3 30 1 12 pm
    4 101 2 4 pm
    Example. The last entry was OID=4 so it will count up the number of PID=101 and then that number is compared against ProductTransaction purchase count. If hasn't exceeded then nothing happens. If the number is matched then OID=1 is moved into the shipping table for processing.
    Let me know if this still doesn't clarify, or if there is a better way to do this....

  • Number of Entries in Dimension Tables and Fact Tables

    Hi all,
    is there an easy way to check
    - the number of entries in the dimension tables
    - the number of entries in the fact table?
    Thanks  a lot
    Alex

    Hi Alex,
    If u want to see the content of Dimension table and Fact table for a infocube then just right click on a particular info cube then select manage . Select coneten tab there , form there u can either select Fact table to see the fact table conten or Infocube content to see the Dimensiontable content.
    Regards..

  • Last entry in BDC table

    hi wht is the fieldvalue of last entry in the bdc table ? is it '/11' or F11.

    Hi Pavan,
    It is based on the T-code also. If the t-code is SP01 then ok-code is /ECBAC. If t-code is FB65 then ok-code is =YES. Mostly it will be /11. It will chage some times but action is the same.
    Hope this helps you. Reply for queries, shall post the updates.
    Regards. 
    Kumar.

  • Sample code to find duplicated entries in internal table and mark them?

    We have one internal table called itab1 which contains the following fields:
    f1 (key field)
    f2 (non-key field)
    f3 (non-key field)
    The business scenario is f1, f2, and f3 are one to one relationship to each other, or in other word, f2 or f3 can't be duplicated with the the same values for different f1 (key field) records. We will move the check result of the duplication into another internal table itab2 which contains f1, f2, f3, f4, and f5 where f1, f2, and f3 are the same ones as in itab1, f4 will get the value "Yes" to mark duplicated for f2 (or "No" to mark non-duplicated), and f5 will get the value "Yes" to mark duplicated for f3 (or "No" to mark non-duplicated).
    We know that through the loop of itab1, the above logic can be done to fill in f4 and f5 value for each row with either "Yes" or "No".
    Just give an example of how itab2 will look like after the coding:
    f1----f2--f3--f4(f2 duplicated?)---f5(f3 duplicated?)
    A----01-X0YesNo--
    B----01-X1YesYes--
    C----02-X1NoYes--
    Could any ABAP expert here show us the sample code to generate itab2 in loop of itab1 to find the duplicated entries of f2 and f3 and then populated the corresponding row values for f4 and f5 with "Yes" or "No"? We will give you reward points!

    TYPES: BEGIN OF ty_1,
    f1,
    f2(2),
    f3(2),
    f4,
    f5,
    END OF ty_1.
    TYPES: BEGIN OF ty_2,
    type(2),
    value(2),
    END OF ty_2.
    DATA: itab1 TYPE STANDARD TABLE OF ty_1 WITH HEADER LINE,
          itab2 TYPE TABLE OF ty_2 WITH HEADER LINE.
    DATA: f2_c TYPE sy-tabix VALUE 0,
         f3_c TYPE sy-tabix VALUE 0,
         curr_f2 LIKE itab1-f2,
         curr_f3 LIKE itab1-f3.
    itab1-f1 = 'A'.
    itab1-f2 = '01'.
    itab1-f3 = 'X0'.
    APPEND itab1.
    itab1-f1 = 'B'.
    itab1-f2 = '01'.
    itab1-f3 = 'X1'.
    APPEND itab1.
    itab1-f1 = 'C'.
    itab1-f2 = '02'.
    itab1-f3 = 'X1'.
    APPEND itab1.
    SORT itab1 BY f1 f2 f3 AS TEXT.
    LOOP AT itab1.
      IF sy-tabix EQ 1.
        curr_f2 = itab1-f2.
        curr_f3 = itab1-f3.
      ENDIF.
      IF itab1-f2 NE curr_f2.
        f2_c = 0.
        curr_f2 = itab1-f2.
      ENDIF.
      IF itab1-f3 NE curr_f3.
        f3_c = 0.
        curr_f3 = itab1-f3.
      ENDIF.
      f2_c = f2_c + 1.
      f3_c = f3_c + 1.
      IF f2_c > 1.
        itab1-f4 = 'X'.
        MODIFY itab1.
        itab2-type = 'f2'.
        itab2-value = itab1-f2.
        APPEND itab2.
      ENDIF.
      IF f3_c > 1.
        itab1-f5 = 'X'.
        MODIFY itab1.
        itab2-type = 'f3'.
        itab2-value = itab1-f3.
        APPEND itab2.
      ENDIF.
    ENDLOOP.
    DELETE ADJACENT DUPLICATES FROM itab2.
    LOOP AT itab2.
      IF itab2-type = 'f2'.
        LOOP AT itab1 WHERE f2 = itab2-value AND f4 NE 'X'.
          itab1-f4 = 'X'.
          MODIFY itab1.
        ENDLOOP.
      ELSE.
        LOOP AT itab1 WHERE f3 = itab2-value AND f5 NE 'X'.
          itab1-f5 = 'X'.
          MODIFY itab1.
        ENDLOOP.
      ENDIF.
    ENDLOOP.
    Edited by: Ramiro Escamilla on Apr 5, 2008 1:45 AM
    changed the code, now should work

  • CO transaction and entries in the table

    Hi,
    I want to delete a record in KP26 and I am getting an error "costs already posted on this cost center/activity type combination.
    After investiging I found that there are entries in tables COKA, CSSL and COSSA. So, how can get rid of these entries in these table and delete the activity type planning record for the cost center in KP26
    Thanks,
    Ravi.

    Once you updated with a plan data, it is hard to delete. You may be better off creating a new activity type.
    Or else look at options of KP90 or KP91. This could delete entire planning data.

  • How to track the changes to a table and update the other table ?

    Hi Guys,
                   I am looking to track deletion of entries on KONV table and sync these missing entries in an other table which has primary key entries of KONV.
    How to do this.. is ALE change pointer is any good for this purpose ?
    Thanks
    AJ

    Hi Sam,
      In order to track the changes in the KONV table, go to table CDHDR and give objectclass and objectid, you will get all the details.
    Regards,
    ramesh.

  • How to find delete entries in custom table

    Hi,
    We have a custom table with table maintenance in Production. Some one deleted all the entries from the table. Can you please let me know how to retreive the old entries from the table and how to check who deleted the entries.
    Thanks
    Rama

    hi rama,
    Please refer to the below given link,
    [http://help.sap.com/saphelp_nw70/helpdata/en/43/0510abcda521abe10000000a1553f6/content.htm]
    I think it will sove ur problem,
    Reward points if usefull,
    Thanks,
    Kalyan.

  • Table and figure numbering in multi-chapter book

    Using InDesign CC 2014 I am editing a book that consists of 23 chapters. Each chapters are added to the book separately. There are 5 levels of titles, level 1-4 is numbered (first level is the chapter title), the 5th is not.The numbering of the titles in chapters works very well, but I have problem with numbering of figures and tables.
    The numbering of tables and figures should look like this: Table 1.1., 1.2., etc, Figure 1.1., 1.2., etc. The first number is always the chapter number, the second is the number of table/figure in order - within the chapter. I want the second number to re-start in each chapter. But if I select "continue from the previous number" (or something like this - I have Hungarian version, tried to translate to English), the numbering does not re-start with each new chapter, however gets the correct ^H number. If I select "start", all tables and figures will be ^H.1.
    My question is: what should I do on one hand to be able to use (and sync) all formats (including tables' and figures' captions with numbers) in the whole book, in the same time making the figures' and tables' numbering having ^H followed by a number re-starts in each chapter? For this, the table and figure number should be which level on the list? What to do with "restart numbering at this level after" option?
    I have searched the www from A to Z and back but could not find the answer. Please, help me! Oh, and please, write the how-to description step-by-step (maybe illustrated?), as I use Hungarian version, which makes applying the suggestions a bit difficult. Thank you, in advance, for your kind help!

    Darn Framemaker and its use of phantom numbering placeholders.
    But seriously thanks - worked line a champ
    Bob Geib
    Design & Test Engineer
    Microwave Filter Components
    Aeroflex Microelectronic Solutions
    350 Kennedy Drive
    Hauppauge, NY 11788
    Direct: 631-404-3669
    Cell: 526-523-1265
    Email: [email protected]

  • Table where I have entry for material document and Accounting doc.(GR/IR)

    Hi all,
    When GR/IR clearing is done manually using MR11 t.code,a material document gets posted.
    Looking at the PO order history against the line item for which the GR/IR clearing is made,this material document appears. When clicked on material document and select the followon document, we get the accounting document.
    My question is:
    If we have to take a table entry download for all these together how do I do it.
    Usually based on the material document number from table EKBE, we are giving the same number in object key in BKPF table and obtaining the same. This is a cumbersome process.
    Do I have a table in SAP where if I enter the PO and the line item. I get the material document posted against it as well as the FI document(accounting document)
    Your inputs are highly appreciated.
    Regards
    Aravind

    Hi,
    I don't think there is a table which will have both MM and FI document numbers. The approach what you have adopted is right. If it is a regular requirement, you can develop an ABAP report for this.
    Thanks
    Murali.

  • Data mismatch between TABLE and Std. Extract str. (AFPO & 2LIS_04_P_MATNR)

    Hi,
    I am getting data mismatch in ECC standard table and ECC standard extract structure. Please help me.
    I am using 2LIS_04_P_P_MATNR data source (standard extract structure).
    <b>I have following data in ECC Table (AFPO - Order Item).</b>
    AUFNR (Order Number) --> 4000460
    PGMNG (Total planned quantity)  --> 0
    PSMNG (ORDER QTY) --> 2000
    <b>Extract Structure is showing following data.</b>
    AUFNR (Order Number) --> 4000460
    PGMNG (Total planned quantity)  --> 2000 (It should be zero)
    PSMNG (ORDER QTY) --> 2000
    I have checked with many other order numbers. <b>The extract structure in RSA3 is showing correct values only if PGMNG is non-zero values. If PGMNG is zero, then it is automatically assigning PSMNG value.</b>
    Is this common? I want to display correct values for PGMNG from AFPO Table. Why this mismatch between table data and extract data. I have done  all required steps refreshing data (deleting setup tables, filling set up tables etc.).
    pls suggest. Poinsts will be assigned to every useful answer.
    Thanks in advance.

    Hi Avneet,
    I have a similar problem where in AFPO shows value 1000 in PSMNG field and 1200 in RSA3 for extractor 2LIS_04_P_MATNR.
    I have found that the standard feature of the extractor extracts the data at the time of release of process order. If the process order is changed after the release then the extractor will not picup the chagne.
    Ex: AFPO value 1000 ---BI Value 1000
    Now released in ECC
    AFPO value 1000 ---BI Value 1000
    In ECC value changed to 1500 after the release. BI will not pickup the change.
    Extractor is pulling the data from MCAFPOV table. You can check the values, there it matches with RSA3 values.
    I was just going thru forums for the solution. After i found the solution. I am just updating it.
    Hope it helps you.
    Thaks
    Srikanth

  • How to link Azure database tables and fields to VS2012 C++ entry form

    We are using Visual Studio 2012 C++ and have successfully connected to the database on Azure, but do no know how to associate the database tables and fields with the C++ application data entry forms.  Can anyone help?  Thanks

    Hello Roxanne,
    You could use Entity framework to map classes to Azure tables. Please refer http://www.codeproject.com/Articles/363040/An-Introduction-to-Entity-Framework-for-Absolute-B to
    learn more. Hope this helps.
    Regards,
    Kumar Bijayanta

  • Transport table and table entries

    Hi,
    I need to create a table and table entries, here I need to transport table and its entries to another system,
    what steps i need to follow for this?
    Please help me

    Entries
    Create entries by Se11-> utilities-> table content -> create entries
    For Transport
    Go to SE10.
    Click on the 'Create' icon.
    Select 'Workbench Request'(assuming your table is not customizing table).
    Enter description and click 'Save'.
    Put cursor on the task (lower number of the two) and in menu, 'Request/task>Change Type>Development/correction'.
    With cursor on the task(lower number), click 'Object List' icon on the toolbar.
    Once in, you need to toggle to 'Change' mode using the pencil icon.
    Then click on 'New Entries'. Now add the R3TR, TABU, <ZTAB> in the first row.
    Again in the menu, select 'Extras>Change object function>Key according to key list'.
    Now go to the menu, 'Goto-->Key list'. In the subsequent screen, click on 'Insert line' icon(with a + sign).
    Click on 'Key fields' button and it will now allow you to enter the values for each key field.
    Regards
    Shashi

Maybe you are looking for