Line Item numbers out of sequence in C_T_DATA

We are using several different data sources within include ZXRSAU01.
For one of them, we have assigned a custom structure ZOXNRD0112 to C_T_DATA which contains two different fields for Line Item number. One of these fields is based on FAGLFLEXA-DOCLN and the other is based on BSEG-BUZEI.
The values in these two fields should agree on each record contained within C_T_DATA, but occasionally we get a situation where they do not. BUZEI is always correct when compared to the Billing Document, but DOCLN will be out of sequence.
For example:
DOCLN BUZEI
000001 001
000003 002
000002 003
DOCLN & BUZEI both arrive already populated in the C_T_DATA table.
We simply use the values as keys to read FAGLFLEXA and BSEG, the values in DOCLN & BUZEI themselves are not derived.
They are there when entering the user exit ZXRSAU01, and they are still there when processing leaves ZXRSAU01.
I donu2019t have a lot of experience in BI, and am not familiar with how C_T_DATA receives itu2019s data.
Iu2019m trying to look back further in the processing to find where C_T_DATA is populated and draw some conclusions from that. I have asked a couple of our FI people to examine the documents involved to see what could be going on there.
We are on ECC 6.0, and BI version 7.0.
Has anyone out there run into this kind of problem before?

Hello Dan,
Welcome to SDN!
The program ZXRSAU01 is an exit program for transactional DataSource extraction. Whenever the DataSource pulls data from ECC, it usually divides the data into several data packages, and for every package it will comes to that program. The internal table C_T_DATA contains all records of the data package.
We don't use sequence to link data together, but use fields mappings. For example, I want to read FAGLFLEXA-DOCLN, I first need to find a key field say XXXX which exist both in C_T_DATA and FAGLFLEXA. Then use below statement to read FAGLFLEXA:
loop at c_t_table into ls_structurename.
select single DOCLN
    from FAGLFLEXA
    into ls_structurename-docln
  where XXXX = ls_structurename-XXXX.
  modify c_t_table from ls_structurename.
endloop.
With the code we don't need to worry about sequence. And it works for either full loading or delta loading.
Please let us know if you have any questions.
Regards,
Frank

Similar Messages

  • Keep Quote line item numbers in Sales order

    While creating a Sales order from Quote, SAP always creates line items with 100,200,300...and so on.
    If quote has 3 line items say 100,110, & 120 and we create a sales order with reference to this quote in VA01. The sales order line items become 100,200 & 300.
    The requirement is for Sales order to also have same line item numbers i.e. 100,110 & 120.
    To retain quote line item numbers in Sales order the ABAP change will be in VOFM or user exit?

    Hi,
    It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
    Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
    Regards,
    RS

  • Line Items Greyed out in Sales Order

    Hi,
    In sales order we are using KMAT material and selecting the required components as per customer requirement and same are coiped into sales order. High level KMAT material has item category TAC and Lower level line items have item categroy TAE.  TAC ITEM IS NOT GREYED OUT OK.. And if i change quantity of  this it will effect the lower level items ok.
    All the line items( TAE items) are greyed out and i want to edit the quantity of line items with out changing the quantity of TAC item.... Is it possible??? Any answers will be highly appreciated.
    Thanks in advance
    Ramagiri.

    Hi
    Our requirement is to edit the line items of TAE item category with out editing TAC category..Is their any configuration etc etc to do...
    Ramagiri

  • Need to know how to show P6 Report Line Item Numbers

    Team... I cannot find where to turn on the line item numbers in P6 Reports... I can show breaks on a code then activities right below that, but can't show the line item number... only the actID... Hellllllllp!

    Thanks... I can't give a screen dump right now... but I will try to describe in better details what I am trying to do:
    Below is a sample report of a simple activity listing just as it would come from any P6 report:
    ActID Description RDur Start Finish
    ABC123 First Activity Here 9 01Jan10 10Jan10
    DEF456 Second Activity Here 9 10Jan10 19Jan10
    GHI789 Third Activity Here 9 19Jan10 26Jan10
    Below is the desired report which now includes a new, first column which gives a unique line item number for each line:
    Item# ActID Description RDur Start Finish
    1 ABC123 First Activity Here 9 01Jan10 10Jan10
    2 DEF456 Second Activity Here 9 10Jan10 19Jan10
    3 GHI789 Third Activity Here 9 19Jan10 26Jan10
    This new, first column is like the Excel Row Numbers... you don't need to try to explain what line you are addressing by ActID...

  • Reg purchase order line item numbering

    Hi All ,
      Is  there any customization setting or possibility of cahanging the Purchase order line item number when the PO is created from the Purchase requisation , normally if the PO is created directly I am able to change the line item number as desired but if is created from a PR this is not allowed , please let me know any possibility of changing this .
    Thanks and Regards,
    Mallikharjun.

    Hi Mallikharjun,
    You can modify the Line Item numbering at IMG>MM>Purchasing>Purchase Requisition>Define Document Types.
    Here you can change the column ItmInt. which determines the line item number intervals.
    Hope it helps.
    Cheers
    Keshav

  • How to change line item numbers

    HI
    when we are creating sales order, if we enter material number, line item number will be autmaticallly assigned(for eg 10,20,30 ....). if i want to change that number what i have to do(eg: to 1, 4, 5, .....). in standard SAP, the field is grayed out once the no is assigned. so i dont know how to change the no. please help me in this.

    Hello,
    You can give any number manually as the line item when you are creating the sales order.
    While creating the order give the item number also manually, then the system will accept. Once you given the line item number , it will not allow you to change it.
    Then you need to delete the line item and re-insert with the line item number you want.
    Prase

  • Changing order line item move-out date

    Hi All,
    I am pretty new on the CRM end. I have a requirement where- in i need to change the move-out date on the order line item.
    Could someone help me out what needs to be done in order to achieve the desired functionality.
    Thanks,
    Im

    Hi,
    Please check with the help of Abaper for the  USEREXIT_FIELD_MODIFICATION  why it is happening .
    Also try to check with adding 3 -4 line items and see whether it is happening for all the line item.
    Please post your result.
    Hope this will help you .
    Regards,
    Krishna O

  • Standby problem - log numbers out of sequence

    Hi everyone! I am on 10.2.0.3.
    My physical standby stopped applying logs because all of a sudden the logs went out of sequence. See errors below - after seq 7975 & 7976 seq# 7974 showed up again:
    Recovery of Online Redo Log: Thread 1 Group 200 Seq 7974 Reading mem 0
    Mem# 0: /db/data3/FSPRD/stby_redo02.log
    Mem# 1: /db/data4/FSPRD/stby_redo02_02.log
    Thu Dec 18 16:14:58 2008
    RFS[23]: Successfully opened standby log 100: '/db/data1/FSPRD/stby_redo01.log'
    Thu Dec 18 16:15:01 2008
    RFS[25]: Successfully opened standby log 300: '/db/data5/FSPRD/stby_redo03.log'
    Thu Dec 18 16:15:01 2008
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[37]: Successfully opened standby log 400: '/db/data7/FSPRD/stby_redo04.log'
    Thu Dec 18 16:15:02 2008
    RFS[24]: Successfully opened standby log 200: '/db/data3/FSPRD/stby_redo02.log'
    Thu Dec 18 16:15:03 2008
    Media Recovery Waiting for thread 1 sequence 7975 (in transit)
    Thu Dec 18 16:15:03 2008
    Recovery of Online Redo Log: Thread 1 Group 100 Seq 7975 Reading mem 0
    Mem# 0: /db/data1/FSPRD/stby_redo01.log
    Mem# 1: /db/data2/FSPRD/stby_redo01_02.log
    Media Recovery Waiting for thread 1 sequence 7976 (in transit)
    Thu Dec 18 16:15:07 2008
    Recovery of Online Redo Log: Thread 1 Group 200 Seq 7974 Reading mem 0
    Mem# 0: /db/data3/FSPRD/stby_redo02.log
    Mem# 1: /db/data4/FSPRD/stby_redo02_02.log
    MRP0: Background Media Recovery terminated with error 355
    Thu Dec 18 16:15:12 2008
    Errors in file /db/dbdump/FSPRD/bdump/fsprd_mrp0_11351.trc:
    ORA-00355: change numbers out of order
    ORA-00353: log corruption near block 2 change 4994299896 time 12/18/2008 16:14:57
    ORA-00312: online log 200 thread 1: '/db/data4/FSPRD/stby_redo02_02.log'
    ORA-00312: online log 200 thread 1: '/db/data3/FSPRD/stby_redo02.log'
    Managed Standby Recovery not using Real Time Apply
    Thu Dec 18 16:15:12 2008
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[37]: Successfully opened standby log 100: '/db/data1/FSPRD/stby_redo01.log'
    Thu Dec 18 16:15:13 2008
    Recovery interrupted!
    Thu Dec 18 16:15:13 2008
    Errors in file /db/dbdump/FSPRD/bdump/fsprd_mrp0_11351.trc:
    ORA-00355: change numbers out of order
    ORA-00353: log corruption near block 2 change 4994299896 time 12/18/2008 16:14:57
    ORA-00312: online log 200 thread 1: '/db/data4/FSPRD/stby_redo02_02.log'
    ORA-00312: online log 200 thread 1: '/db/data3/FSPRD/stby_redo02.log'
    Thu Dec 18 16:15:13 2008
    MRP0: Background Media Recovery process shutdown (FSPRD)
    Thu Dec 18 16:15:19 2008
    I of course restarted the managed recovery and everything went fine from this point on - but I could not find the root cause of this problem.
    Anybody has any ideas - or experienced this before?
    TIA.

    I'm afraid you're hitting bug 6039415 ORA-355 can occur during real time apply, the good news: there's a patch available.
    HTH
    Enrique

  • BAPI to update PO's and Corresponding line items numbers **URGENT**

    Hi All,
    I have a requirement to create a program which will take list of POs and corresponding line item number and update Final invoice indicator for the same. This should be updated in SRM as well as R/3.
    I think, it can be done by a BAPI. Do anyone have idea, which BAPI will be applicable for the same?? You can also share yours views on this.
    Regards,
    Parvez.

    Hi
    We have done this.. This is easily possible using BAPIs.
    Try using SRM BAPIs
    META_PO_GETLIST
    META_PO_GETDETAIL
    <u>Note - SRM system calls BAPI in R/3 backend using RFC Call</u>
    In R/3 backend
    BAPI_PO_CREATE1
    BAPI_PO_CREATE
    BAPI_PO_CHANGE
    Hope this will definitely help.
    Regards
    - Atul

  • Generate sequence nuumber for line items.

    Hi,
    Am using jdeveloper 11.1.1.6.0
    I have generated a form using master detail. po_header as master and po_line as child in po_line i need to generate the sequence number.
    The problem am facing is
    If i generate using create sequence in my DB. Its working fine.
    consider
    I have po_number 1234 for this po_line while i click the add button the sequence number is added. for eg: form 1 to 10 i have the po_line against po_number.
    If am created another po_number 12345 for this while i click the add button the sequence number starts from 11...., But it need to be started from 1 since its a different po.
    Could anyone help me how to acheive this?
    Regards,
    Prasad K T,

    Hi,
    in addition, have a look how you would model the line items in a database schema. Here you would have purchase orders and line items in separate tables that are linked with a foreign key. To uniquely address line items you would have a unique sequence in the line items table. What you are looking for is a combined key (purchase order AND line item ID) to have line items numbered 1 .. 10 (this however, from a database design aspect makes no sense).
    Frank

  • Sequence of material line items in Project

    Hi all,
            I have transfered the BOM using CN33 in the project, the systems is configured such a way that after BOM upload the system creates PR automatically but, when the PR is created in the system the sequence of the line item material is not same as that of in BOM. How this has to be solved?
    Best Regards,
    Nitesh H Panchal

    Hi,
    I am aslo using BAPI for uploading material component. What it is doing , it is creating the line item number in the sequence I am planning . Like if I planned material A first then it is creating line item number for that irrespective of its activity and WBS number.
    Regards
    Keshav

  • BAPI_SALESORDER_CREATEFROMDAT2 line item assignment

    Is there a way to use BAPI_SALESORDER_CREATEFROMDAT2 without having to predict internally assigned line item numbers by SAP?
    E.g. creating an order with 2 line items, the 1st line item explodes into a sales BOM, so in order to tie sales order text or schedule line data in for a 2nd line item I need to know the line item number of the 2nd item in tables ORDER_TEXT or ORDER_SCHEDULES_IN.
    External systems usually don't know how SAP will explode into items, so I can't believe there is no way to do this with the standard BAPI. Or is everyone out there just using a custom wrapper function that reads the sales BOMs and calculates SAP line item numbers?

    Ravi,
    No you misunderstood. If I want to send sales order text for a 2nd line item, which goes in the ORDER_TEXT table what line item number will I use in that table? If my 1st item explodes into 10 line items in the sales BOM, then SAP will use  something like line item 000120 for the 2nd line item. You will need to pass this SAP generated line item number in the ORDER_TEXT table. How can you avoid having to know that your line item number 2 is really line item 000120 in SAP when you send other data besides what's in the ORDER_ITEMS_IN table?
    Peter

  • 3 way match between PO/GR/IR per line item

    Hi..
    I'm having an issue with 3 way match between PO/GR/IR. I want to this on line item level. As standard, SAP will compare line items based on line item numbers when doing the match (at least for quantity match). However, this is not possible since the vendors don't always use the line items in the PO (send to them) to create the invoice. And sometimes they simply leave out the line item number. However, the material number is always on the PO, GR and IR. Is it possible to do the 3 way match per line item using the material number as the unique identifier?
    Kind regards
    hundvov

    hi
    Three Way Match
    Yes, Three Way Match Means PO -> GR -> IV
    For this, You need to Put Tick mark against GR Based IR in Purchase Order Item Detail Invoice Tab and Vendor Master Purchasing Tab.
    Once This Purchase Order is Saved. You cannot do / System will not allow you IR Until you make Goods Receipt for the Purchase Order.
    The same applies to External Services.
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/sap-3-way-match-configuration-1639406
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/3-way-invoice-match-1381773
    regrds
    kunal

  • Creating new sub line items before a Sales Order is saved (in CRM)

    Hi CRM Experts,
    I am pretty new to CRM system. I have a scenario.
    The actual business scenario behind this is: the customer can only choose a dummy material while placing an order. The customer will not be able to choose what all materials that will make up this order. So he can place an order for a "Pack" with say Qty as 50 units. The business contains some rules based on which the actual materials are mapped to this dummy material.
    User creates a SO in CRM system (using txn CRMD_BUS2000115). Assume a dummy material is added as first line item. The system displays it as line item 10. At this stage I need to create sub line items for this high level line item (item 10) based on what all actual materials can fulfill this. I need to do it programmatically. Is there any BAdI that can be used to do this? Also I need some hints on how to go about this? That is how to do it programmatically. For every sub-item material I need to carry a ATP check and only if the stock is available then add it as a sub line item.
    Basically what I need is to create sub line items programmatically exactly in the same way as it would have been created manually. The system is configured to put the sub line item numbers automatically. That is, if the high level item is 10, then sub line items will be automatically numbered as 11, 12 so on.
    Please feel free to throw me questions if you need more info.
    Thanks a lot in advance.
    Regards,
    Shyam

    Hi,
    I have a similar kind of a requirement.
    I need to add new line items to the order through the program.
    Can you please suggest how did you resolve your issue ?
    Thanks in advance!

  • PO Line Item Number not filled in BSEG Table

    HI,
    While posting to goods receipt through MIGO FI documents are generated.
    For these  FI documents ,  in BSEG table the corresponding  PO line item numbers (EBELP )are not getting filled up,
    How can they be filled. can it be done through any standard configuration?

    Hi,
    Check if you are doing the summarization of FI doc. You can check reading these notes:
    SAP Note 36353 - AC interface: Summarizing FI documents
    SAP Note 77161 - Summarization of FI postings w.ref.to purchase orders
    I hope this helps you
    Regards
    Eduardo

Maybe you are looking for