Article number is missing for a sales document in VBAP table compared to BW data.

Hi,
We are loading data from 2LIS_11_VAITM and 2LIS_11_V_SSL to 0SD_O01, when we execute a report based on this DSO we are getting Article number 2224859 (for example) for sales order 573345 (for example) but when we check in VBAP/VA03 for the same sales order/document (573345)  we don't have the Article Number.
It is delta load to the DSO from the two datasources and will executed daily once.
Please suggest me any one on this.

All,
Thanks for your replys.
Here are the more details about this.
We are using 3.X flow in BW. (3.x Data sources)
In BW                                           Mapping                In ECC     
0DOC_NUMBER    Sales document  ----------->  VBELN          Sales Document
0MATERIAL           Material  -----------------------> MATNR           Article Number
In VBAP table, I have entered Sales document 573345 and executed then I got so many Article Numbers and Filtered with Article Number 2224859 then got no data.
As I told earlier in BW for the same Sales Document number we have Article Number.
We have start routine.
PROGRAM UPDATE_ROUTINE.
*$*$ begin of global - insert your declaration only below this line  *-*
*$*$ end of global - insert your declaration only before this line   *-*
* The follow definition is new in the BW3.x
TYPES:
  BEGIN OF DATA_PACKAGE_STRUCTURE.
     INCLUDE STRUCTURE /BIC/CS2LIS_11_VAITM.
TYPES:
     RECNO   LIKE sy-tabix,
  END OF DATA_PACKAGE_STRUCTURE.
DATA:
  DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
       WITH HEADER LINE
       WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
FORM startup
  TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
           MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
           DATA_PACKAGE STRUCTURE DATA_PACKAGE
  USING    RECORD_ALL LIKE SY-TABIX
           SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
  CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
*$*$ begin of routine - insert your code only below this line        *-*
* fill the internal table "MONITOR", to make monitor entries
  LOOP AT DATA_PACKAGE.
    IF DATA_PACKAGE-doc_categ NE 'C' AND
       DATA_PACKAGE-doc_categ NE 'I'.
      DELETE DATA_PACKAGE.
    elseif DATA_PACKAGE-recordmode eq 'R'.
      DATA_PACKAGE-recordmode = 'X'.
      modify DATA_PACKAGE.
    ENDIF.
  ENDLOOP.
* if abort is not equal zero, the update process will be canceled
  ABORT = 0.
*$*$ end of routine - insert your code only before this line         *-*
ENDFORM.
I think there is no much more lookups. ( I don't have much knowledge in ABAP)
I have checked in another tables also like VBFA VBAG VBAK, VBKD, VBUK and VBUP but in those tables I don't have Article (MATNR) field.
One more Question.
Can any one tell me how the Queued Delta mechanism will work.
As of now I know that, when ever any changes have been done to the tables this will pickup the changes and move into LBWQ after that RSA7.
My Question is, If some one has forcefully deleted one Article number from the table for a Sales Order then this Queued delta will pick that also?
Please let me know If you need any more details

Similar Messages

  • User-Exit for changing Sales Document Number - Urgent

    Hi Experts ,
                     Please suggest me the <b>User Exit for changing Sales Document Number.</b>
    thanks,
    Jayesh<b></b>

    hi jayesh,
    chech this exit-----EXIT_SAPFV45S_002.
    this exit's description says " Change Sales Document Using Configuration".
    Other available exits are
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    Enter these exits name in SMOD transaction and select components. u can find all the user exits available for this exit name.
    Reward me if useful..........
    Harimanjesh AN

  • FMS to Find total number of Quantity for all Sales Orders

    Hi Experts,
    I am trying to get the total number of quantities for the current document. Kindly help me out how to find it out for the current document.
    Currently I am giving the document no. to the query by modifying the query every time before executing it.  but how can i do this without giving the document numbers and executing the query directly.
    Kindly help ...
    Thanks and regards,
    Amit.

    Hi,
    Please follow below steps to get total quantity.
    1. Run below query first in query generator
    SELECT sum(T1.[Quantity]) FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE t0.docnum = $[ORDR.docnum]
    2. After execute, save it under query manager with required name
    3. Open sales order and run saved query
    4. Total quantity will be displayed in query result.
    refer below screen shot:
    Thanks & Regards,
    Nagarajan

  • How can I get the correct Ship To (KNVP-KUNNR2) for a Sales Document?

    I am trying to generate a report that will (among other things) display the Ship To ID and Name for a given Sales Document.  I know the following information:
    VBAK-VBELN - Sales Document
    VBAK-VKORG - Sales Org
    VBAK-VTWEG - Distribution Channel
    VBAK-SPART - Division
    VBAK-KUNNR - Sold To Party
    I know that the table KNVP will return a list of Ship-To Customer numbers (KUNNR2) for a Sold-To Customer (VBAK-KUNNR) if I also filter by VKORG, VTWEG, and SPART (using SE16N).  What I don't know is which one of the returned values is being used in a particular Sales Document.  The customer in question has 29 Ship-To locations.  How do I find out which Partner Counter (KNVP-PARZA) the Sales Document uses? I don't know where that value would come from.  Once I can get the correct Ship-To Customer Number, I should be able to search the table KNA1 by WHERE KUNNR = KNVP-KUNNR2 and return KNA1-NAME1 for the Name of the Ship-To location.

    For a sales document?  Use VBPA with PARVW = 'WE'.  Also, use the ADRDA field to determine whether the address on the document has been manually changed.  In any case, you can use one of the many address management functions or just ADRC directly to get the name, address, etc., using the ADRNR field from VBPA or if the address is from the customer master, KNA1.

  • How to solve this "Prefix number: entry missing for system EC5 client 800"

    Hi,
       I am workflow learner, I am having theoretical knowledge on it.
    Now, I started to practice practically in my IDES server.
    I am getting an error message while I am trying to save my standard task with my object type and method and event (which were already created in SWO1).
      My error message details.....
    Prefix number: entry missing for system EC5 client 800
    Message no. 5W023
    Diagnosis
    Tasks, rules, and workflow definitions require an ID that is unique throughout all systems and clients. In this way, you can ensure that you can transport these objects from one system into another at any time (without restrictions). From a technical point of view, the uniqueness of the ID is ensured by what is known as a "prefix number". You can define a separate prefix number for every system and every client in table T78NR.
    System response
    If a prefix number is not defined in the client in which you are currently working, it is not possible to maintain (maintenance terminates).
    Even I tried to create on entry in the table T78NR, but as that is standard table, I am unable to make an entry.
    Hope we have to configure the workflow, I am not having any Basis consultant with me. Can anyone help to cross this problem.
    Thanks and Regards,
    Surender Batlanki.
    Edited by: Surender Batlanki on Oct 15, 2008 2:20 PM

    HI Surender and  Other SAP Work flow gurus
    Surender, u said, that you got the solution.
    As honestly speaking i am new to SAP Workflow. Can u please please guide me the instruction and document if any. I am practising in Test Server machine. I will be really happy that if u all GEMS helps me to get out of it.
    in Prefix number OOW4, system is asking me to enter, the Prefix number, Interval start, Interval End, and Check Sum.
    I entere the same 980 in prefix number, and i dont know what to enter the Interval start and interval end and check sum.
    Also there is some msg coming when i tried to manage some values, " NO Intervals can be reserved for this prefix number" - MSg No: 5W179.
    Please gurus help me.
    Regard
    Guru

  • Maximum number of items for an FI document ('999') has been exceded

    Hi,
    I have try to move some materials from one storage location to another using  MB1B transaction. And i receive following error:
    Maximum number of items for an FI document ('999') has been exceded.
    Please someone help me.
    Thank you.

    Dear Dan
    As you would be aware one FI document can have line items upto a maximum of 999 and it seems, you are trying to input more than that and hence the error.
    Try to minimise the number of line items and retry.
    thanks
    G. Lakshmipathi

  • Max Number of items for an FI document (999) has been exceded

    Dear Guru's
    I hav production Bom For A ( Truck) , and now when i declare the production it gives me an ERROR :-
    Max Number of items for an FI document (999) has been exceded.
    How i can overcome this error!!
    Please help
    Regards
    Rahul Bhardwaj

    Hi
    You cant post more than 999 line items in FI document and you need to split the document if line items crosses 999.  It looks your production BOM itself contains some errors.  Check it.  Becoz no production BOM contains such a huge materials.  Splitting the BOM into sub BOM may be another option.
    Srinivas

  • Error: Prefix number: entry missing for system REP client 113  Msg no 5W023

    Hi, we're trying to study Workflow based on the manuals we downloaded online.  Upon saving, we encountered the error: Error: Prefix number: entry missing for system REP client 113  Msg no 5W023.
    Here's the diagnosis:
    Diagnosis
    Tasks, rules, and workflow definitions require an ID that is unique throughout all systems and clients. In this way, you can ensure that you can transport these objects from one system into another at any time (without restrictions). From a technical point of view, the uniqueness of the ID is ensured by what is known as a "prefix number". You can define a separate prefix number for every system and every client in table T78NR.
    System Response
    If a prefix number is not defined in the client in which you are currently working, it is not possible to maintain (maintenance terminates).
    Procedure
    Maintain table T78NR in Customizing, and create an entry for the system in question and the current client.
    Hope somebody can help me understand what this is.. thanks so much and appreciate your help..
    Thanks,
    Angela Paula

    Hi Angela,
    Please check if the Prefix number is maintained in SWU3 t-code.
    Go to Maintain Definition Environment -> Maintain Prefix Numbers and check if the prefix number is maintained.
    Hope this helps!
    Regards,
    Saumya

  • Error in e-commerece The text for the sales document TA RU lacking in langu

    Hi GUYS,
    I am having a e commerce scenario.
    I have done all the settings related to it. When I login with a user in EN language, and try creating a sales order ,I am able to create in e commerce.
    I have created another user with login in russian language.When I try to create a order in front end I am getting the error:
    The text for the sales document TA RU lacking in language.
    Please suggest if I have to maintain any setting specific to RU language in R/3.
    Thanks and regards,
    Nilesh

    Hi
    Please maintain the language for that sales document type using the following path...
    IMG(SPRO) - Sales and Distribution - Sales - Sales Documents - Sales Document Header - Convert Language for each Sales document type - execute and maintain the entries using 'New Entries' tab.
    Thanks,
    Ravi

  • Billing block for a sales document

    hi
    how can we assign automatic billing block for a particular sales document.
    Thank you

    Hi srinivas
    go to  VOV8 ,  and assign to that particular sales document type., in the billing tab automatically it will affect in the sales order for that sales documents. but if you  want to go only for a particular sales document you have to either enter manually and save it
    bcoz if you assign to a particular sales doc  type , it will block all sales documents created with that sales doc  type and it will affect the other modules also.
    if the billing block has to be triggered automatically , in your sales order without affecting your sales doc type then you need to use USER EXITS
    reward if useful
    Regards
    Srinath

  • Common Features for all SAles Documents

    Hi gurus,
                I like to share a piece of information regarding the common features for all Sales Documents;
    They are
    !) The incompletion Log
    2) Fast Change Option..
    Any new views can be discussed for the above.
    Regards,
    Sarosh

    Hi refer the link it may help u out
    http://72.14.235.104/search?q=cache:p6G8tXimQ2UJ:homepages.wmich.edu/~s4senapt/bus%2520project%25204.htmSAPSDcommonfeaturesforallSalesDocuments&hl=en&ct=clnk&cd=16
    Message was edited by:
            SHESAGIRI GEDILA

  • A FM for the Sales Document Flow ...?

    Hi Friends;
    I know that the Sales and Distribution Flow is kept in table VBFA .? But is there a ready function module that gives me the shipment note number  and invoice number taking reversals into consideration and giving the actual and final flow of sales order item ?
    for example : input     SALES Document : SD001 item 10
                        output   shipment Notice    : 8000001 item 10
                        output   invoice number      : 9000001 item 10
    Kind regards.
    Erkan VAROL.

    Hi,
    look for example to BAPI_SALESORDER_GETLIST
    CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
    Please check table VBFA. It contains all the information about document flow in SD.
    Check the example program below, it is not a function call, it is a dialog call.
    (Or)
    report zrich_0001.
    data: xvbco6 type vbco6.
    data: xvbak type vbak.
    parameters: p_vbeln type vbak-vbeln.
    clear xvbco6. clear xvbak.
    select single * from vbak into xvbak
    where vbeln = p_vbeln.
    move-corresponding xvbak to xvbco6.
    call dialog 'RV_DOCUMENT_FLOW'
    exporting
    vbco6 from xvbco6
    ivkorg from xvbak-vkorg
    ivtweg from xvbak-vtweg.
    Regards

  • Maximum number of Invoices for a Sales order

    Dear All,
    How many invoices we can make for a Sales order?
    Is there any maximum limit for that?
    How many documents can be shown in Document flow?
    Please let me know.
    Regards,
    Mullairaja

    hi mullairaja
    if in the case for partial deliveries you could process any number of invoices but only till the number of partial deliveries in the customer master data > sales area > shipping > partial deliery per item .....
    if the case of the sales order  is processed and delivery and COMPLETE  picking ...and PGI with respect to that delivery document you could only process one invoice ......
    IF you complete the whole sales cycle ...you can see the whole document flow in va02 by clicking document flow in the left top corner.
    the document flow will be more if their are many partial deliveries.
    <removed_by_moderator>
    Please read the "Rules of Engagement"
    Regards,
    JAGAN N M 
    SAP SD
    Edited by: Juan Reyes on Mar 14, 2011 9:35 AM

  • Two different billing document types for 1 sales document type.

    Hi Gurus,
    I have a requirement , wherein our client is having counter  sale.
    He is using one sales doc type , and while creating a order , he is manually adding payment terms.
    Requirement is , if the payment terms are cash, billing doc type created later on should be one , else during credit sales , billing document type should be different.
    As per my understanding this is not possible.
    Want to know if anyone has some different thought on this.
    Thanks in advance
    Nilesh.

    Dear Nilesh,
    There two options you can look in to
    One option is
    1.You can define different sales document types for cash and credit.
    2. You can define two different billing documents.
    3.Do the copy control settings for each combination
    Cash sales order >Delivery>Cash invoice
    Credit sales order >Delivery>Credit invoice
    Second option is
    1. You can maintain single sales document for both the processes.
    2.Define two different billing types then do the copy control settings for both billing types.
    But in this option user need to select the billing type manually based on the process while creating billing document.
    I hope this will help you,
    Regards,
    Murali.

  • Multiple Partner Functions for a Sales document Item

    Hi,
    Can you please advise on modeling scenario for showing multiple partner functions for a given sales document in BI Report ..
    Because Key figure values should not be distributed for multiple records just becos of multiple partner functions but users want to see them in the reports along with sales doc and key figure
    I am explaining bit more clearly...
    I can achieve above requirement by having below model ..
    SDOC     ITEM  PF1  PF2  PF3  AMOUNT
    1000       10      AB    CD   EF    50000
    PF : Partner Function
    but as I feel it is a complicated task  to add more and more columns fro partner functions as and when new partner functions have been added or requested to show by users at sales doc level...
    So Can you please advise a better solution to meet the same requirement.
    Thanks & Regards,
    BRK
    Please advise me on this scenario
    Thanks & Regards,
    BRK
    Edited by: BRK on Jul 22, 2008 9:19 AM
    Edited by: BRK on Jul 22, 2008 9:29 AM

    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A1_______________$1000
    80000_________10_____________A2_______________$1000
    80000_________10_____________A3_______________$1000
    This will be the normal display in the cube if there is only one Partner Function.
    But what we need is
    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A1_______________$1000
    80000_________10_____________A2_________________' '
    80000_________10_____________A3_________________' '
    The Amount (KF) should be populated only for the first record for a SalesDoc / Item combo.
    You load data from source to the ODS, say delta.
    Suppose that the below record is already available in the ODS.
    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A1_______________$1000
    And you get the following data as DELTA in the Data_Package from the source.
    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A2_______________$1000
    80000_________10_____________A3_______________$1000
    If you populate the Amount again for these 2 records, then the total would sum to $3000, which is wrong.
    So what we do is,
    Write a Select stmt for ALL ENTRIES in Data_Package and fetch the records from the target ODS. Have it in an Internal table, say t_ODS1
    Take the SalesDoc / Item from the Data_Package and chk if it is present in the internal table t_ODS1.
    If it is present, then populate the Amount as ' ' (Blank)
    Else populate the Amount as $1000.
    Say, you are getting 3 new records, which is not present in the ODS1.
    In that case, your internal table t_ODS1 will be blank.
    Now again, we need to populate the Amount only for the first record among the 3 records.
    So, here comes the "Flag".
    Set the Flag as X, when we populate the Amount.
    Everytime chk the Flag <> X.
    Only if it is <> X, populate the Amount.
    Else Leave it Balnk.
    Hope I have explained in detail
    Regards,
    Balaji V

Maybe you are looking for

  • Idoc Not received?

    Hi During data loading , I got one Error that Idoc Not received. What will be the cause of problem and How to resolve it? Regards & Thanks Durai

  • Apple Mail Alert help, please

    I have Rules that direct new mail into various mailboxes, but I can't see where the messages go after they arrive. Is there a way to get the mailbox label to flash, or change color, or for the box to open, etc., that will direct my attention to it? T

  • How do I remove a device from the list?

    I had an old Bluetooth device that I no longer own. Its name still appears in my Bluetooth list. How do I remove it? The Troubleshooting manual says: 8. How do I remove a device from the device list? Using the Bluetooth preferences, select the device

  • CRM System for Macbook Pro

    Hi there I am currently looking for a crm system for my small business. I have looked for one using filemaker software as i can aslo then use it on my ipad. I have currently found two Businessman and Jobprocentral. Is there any other off the shelf sy

  • Help needed (upgrade or transfer) ??

    Hello, I recently got the new Q10 but I haven't yet taken it out of the box. Currently im using my 9930.. My dilemma is that my Q10 is not the latest software version and says on the box it's 10.1.0.2039. I wanted to know if I should update the OS on