How to identify Sales Document cancelled in ECC (in Table VBAP)

Hi,
I want to identify Sales Document cancelled in ECC to make a comparaison with BI7: someboby can tell me corresponding field in VBAP?
Thanks!

Check this field VBAP - ABGRU (Reason for rejection - press F4 to know the reason why it's rejected) also see the field /BEV1/SRFUND -  Analysis/Reason for Rejection.
PS. Avoid posting twice for the same query
Edited by: Srinivas on Jul 21, 2010 11:10 AM

Similar Messages

  • How to identify missing records in a single-column table?

    How to identify missing records in a single-column table ?
    Column consists of numbers in a ordered manner but the some numbers are deleted from the table in random manner and need to identify those rows.

    Something like:
    WITH t AS (
               SELECT 1 ID FROM DUAL UNION ALL
               SELECT 2 ID FROM DUAL UNION ALL
               SELECT 3 ID FROM DUAL UNION ALL
               SELECT 5 ID FROM DUAL UNION ALL
               SELECT 8 ID FROM DUAL UNION ALL
               SELECT 10 ID FROM DUAL UNION ALL
               SELECT 11 ID FROM DUAL
    -- end of on-the-fly data sample
    SELECT  '[' || (id + 1) || ' - ' || (next_id - 1) || ']' gap
      FROM  (
             SELECT  id,
                     lead(id,1,id + 1) over(order by id) next_id
               FROM  t
      where id != next_id - 1
    GAP
    [4 - 4]
    [6 - 7]
    [9 - 9]
    SQL> SY.
    P.S. I assume sequence lower and upper limits are always present, otherwise query needs a little adjustment.

  • How to send Sales Document Number and Item to BAPI_ACC_DOCUMENT_POST?

    Hello SAPients,
    We are using BAPI_ACC_DOCUMENT_POST to create an accounting document similar to what FB01 does, in FB01 you can type the number and position of a Sales Document even if you are using an Account Receivable account number. But in the BAPI, the  ACCOUNTRECEIVABLE table doesn't have a field to include those numbers. How should I pass the sales order number and item to the BAPI? I have tried several things but every time I receive more complicated error messages.
    Thank you in advance for your kind help.

    Let me know if you have any questions:
    Loop through your records and fill in the appropriate structure based on record type (GL, Vendor or Customer)
    IF NOT pcard_post_rec-zlsapac IS INITIAL.
        gt_gl_item-itemno_acc   = ls_posnr.
        gt_gl_item-gl_account = pcard_post_rec-zlsapac.
        gt_gl_item-comp_code = pcard_post_rec-zlsapco.
        "gt_gl_item-pstng_date = pcard_post_rec-zlgpsdt.
        gt_gl_item-pstng_date = gv_posting_date.
        gt_gl_item-doc_type = doctype.
        gt_gl_item-alloc_nmbr = ls_assignment.
        gt_gl_item-ref_key_3 = pcard_post_rec-zlgvend.
        IF pcard_post_rec-zlsapac < 500000.
          gt_gl_item-item_text    = ''.
        ELSE.
          gt_gl_item-item_text    = pcard_post_rec-zlguser.
        ENDIF.
        gt_gl_item-costcenter = pcard_post_rec-zlsapcc.
        gt_gl_item-orderid = lv_ordnum.
        APPEND gt_gl_item.
      ELSEIF NOT pcard_post_rec-zlsapven IS INITIAL.
        gt_ap_item-itemno_acc = ls_posnr.
        gt_ap_item-vendor_no = pcard_post_rec-zlsapven.
        gt_ap_item-comp_code = pcard_post_rec-zlsapco.
        gt_ap_item-alloc_nmbr = ls_assignment.
        gt_ap_item-ref_key_3 = pcard_post_rec-zlgvend.
        IF pcard_post_rec-zlsapac < 500000.
          gt_ap_item-item_text = ''.
        ELSE.
          gt_ap_item-item_text    = pcard_post_rec-zlguser.
        ENDIF.
        APPEND gt_ap_item.
      ELSEIF NOT pcard_post_rec-zlsapcus IS INITIAL.
        gt_ar_item-itemno_acc = ls_posnr.
        gt_ar_item-customer = pcard_post_rec-zlsapcus.
        gt_ar_item-comp_code = pcard_post_rec-zlsapco.
        gt_ar_item-alloc_nmbr = ls_assignment.
        gt_ar_item-ref_key_3 = pcard_post_rec-zlgvend.
        IF pcard_post_rec-zlsapac < 500000.
          gt_ar_item-item_text = ''.
        ELSE.
          gt_ar_item-item_text    = pcard_post_rec-zlguser.
        ENDIF.
        APPEND gt_ar_item.
      ENDIF.

  • How to unlock Sales Document (Sales Order)?

    Dear All,
    I was in the process to change a Sales Order. I did all the entries in required fields and before I could save the Sales Order, somehow, my SAP-Connection got disconnected.
    I logged again and run the T. Code: VA02 and gave the Sales Order No. and Press: Enter; System responded with Message: Sales Document No., say 123456789, is currently being processed (by User: say, XYZ (thats my id).
    How come, I unlock this document so that me and others can process the document.
    Thanks in Advance...
    Best Regards,
    Amit K. Yadav

    Dear Amit K. Yadav
    Just wait for sometime and run some other transactions in your user id, so that it will automatically disconnect the said transaction.  Alternatively, you can once again logon and disconnect it (_you should be careful_ while doing this as some users may be working in the same client and if you disconnect by choosing the first option, they will land up in problem)
    thanks
    G. Lakshmipathi

  • How  to Extract sales document from r/3 ?

    hi,
          How to extract sales data from SAP R/3 considering all fields of data in different tables?
    Thanks & regards,
    Gopi.

    Hi Gopi,
    It depends what data you need to extract but most of the data would be available in following tables :
    Sales
    VBAK - Header
    VBAP - Item
    VBPA - Sales Document Partner
    Shipment
    VTTK - Shipment Header
    VTTP - Shipment Item
    Delivery
    LIKP - Delivery Header
    LIPS - Delivery item
    Customer
    KNA1 - Customer Master
    KNB1 - Customer Master (Company Code)
    Cheers,
    Vikram
    Pls reward for helpful replies!!

  • How to identify Sale Order costing is required for Items in Sales Order

    Howstandard cos estimate*w to identify Sale Order costing is required for Items in Sales Order?
    On which criteria we can conclude Sale Order Costing is reqd ?
    ? * means what and wat is the purpose and how to chk for the Item in Sales Order, either it is required or not**.

    Hi Dharamveer,
    The best way is to make the order qty is equal to the quantity delivered. This way, when some one looks at this order in future - they think that the order was for X and the delivery was for X qty is completed. They will not know the background of the issue unless they go through change log. Even in change log, they see that the Ord qty was adjusted, but may not understand why?
    The good practice is to make order qty equal to already delivered qty.
    Create a new line for the remaining qty and reject the same with appropriate reason for rejection. This way, any one can understand the background , the reason for rejection easily. Hope it helps !

  • How to find Sales document types(AUART)

    Hello,
    How to find the allowed sales document types(AUART) for a Service notification.
    Regards,
    Umasankar.

    Sales document types(AUART) in servicenotification will be most propabily at header level on first tab page.
    Regards,
    Rajesh Banka

  • How to populate Sales Document fields in tcode FAGLL03

    Hi Experts,
    I have requirement to populate Sale Document and Sale Document item fields in tcode FAGLL03.Please let me know the procedure to populate these fields in given tcode.
    Thank you in advance.
    Regards,
    narasimha.

    Hi
    Go to TCode FAGLL03
    Enter your Sales GL Account and Company code
    Execute
    Select (Ctrl+F8)
    Select Sales document and Sales document item from the hidden fields (Right side)
    Move it o Left side
    Select Copy
    And save it as your layout (Ctrl + F12)
    Srinivas

  • How can I add document signatures to a dynamic table?

    I have a table where I am adding rows dynamically by adding a + or - button to add or remove rows to add to the table.
    Right now I have a name field and an e-sign field. The problem I am having is that the document signature cannot be repeatable/ needs to be unique and so cannot be added to a dynamic table? Is there a work around for this?
    Ultimately what I want is to have a PDF form look like below:
    + -
    First Name | Last Name | Signature
    First Name |  Last Name | Signature
    When the user clicks on + from the form above, then it just adds a new row like:
    + -
    First Name | Last Name | Signature
    First Name |  Last Name | Signature
    First Name |  Last Name | Signature
    Problem is the e-signature is a new instance and it says it cannot be repeatable? I want these to be different signatures but on one form to be added dynamically. Does this make sense? How can I do this?

    I have a table where I am adding rows dynamically by adding a + or - button to add or remove rows to add to the table.
    Right now I have a name field and an e-sign field. The problem I am having is that the document signature cannot be repeatable/ needs to be unique and so cannot be added to a dynamic table? Is there a work around for this?
    Ultimately what I want is to have a PDF form look like below:
    + -
    First Name | Last Name | Signature
    First Name |  Last Name | Signature
    When the user clicks on + from the form above, then it just adds a new row like:
    + -
    First Name | Last Name | Signature
    First Name |  Last Name | Signature
    First Name |  Last Name | Signature
    Problem is the e-signature is a new instance and it says it cannot be repeatable? I want these to be different signatures but on one form to be added dynamically. Does this make sense? How can I do this?

  • How to identify the SQLs which are using the tables and new columns

    Hi
    I m using oracle 10G Database in windows. Developers have added some columns in some of the database tables and were asking to check whether there is some impact on performance or not. I have not done this performance tuning before. Kindly help me how to proceed further.
    How to obtain the sqls which are touching the tables and the new columns? It would be really great if you can help me with this.
    Thanks

    You can try to use DBA_DEPENDENCIES to get PL/SQL objects using tables: http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1041.htm#i1576452.
    However if SQL code is not stored in database in a trigger, a procedure, a function, a package or a view, it is impossible to retrieve all SQL code referencing some table from database dictionary: for this you would have to analyze application source code.

  • How to find sales document and billing document number of a accounting doc

    Hi,
    I have opened a accounting doc. using fb03. Now how to find the corresponding sales doc. and billing doc. no. of this accounting doc. no.

    Dear satyam
    Go to SE16 / BKPF, give the accounting document number reference in "Document number" and execute, so that you will get the respective billing document number.  Make a note of it.
    Now go to again SE16 and give table VBFA and give all the billing document references in "Follow-on doc" and maintain "C" in "Prec.doc.categ." and execute.
    Alternatively, you can try with table joining BKPF and VBFA in SQVI.
    thanks
    G. Lakshmipathi

  • In BI SD how to get Sales Document wise Order Delivery and balance Quantity

    We are on the verge of SAP BI implementation. We are facing a problem as in BI we have to
    show Sales Order wise - Order Quantity then associated all the deliveries and the Quantity delivered
    and finally Billed Quantity
    Format Required is
    Order No         Order Qty      Delivery Qty     Billed Qty
    We are using 0sd_c03 cube here Order , delivery and Billing come as separate Line items
    Now bringing them to one line item is a chellange for us
    can any body help us
    Thanks
    Shivani

    Hi,
    Merging of Order, delivery and billing information is not so easy.
    In ECC we have a new datasource for Open order quntity against delivery available check those datasources once may be useful.
    [Extraction SD Sales: Order Delivery|http://help.sap.com/saphelp_nw04/helpdata/en/21/ca6d07d5b807459ec8957dad97c179/frameset.htm]
    --> This datasouce provides information regarding order qty, delivered qty and status. But no billing related information available.
    --> Pull billing information into a separate datasource and merge using sales doc no (with reference doc no in billing). to get billing related info.
    --> Multiple orders can be billed together, so distribution may not be correct. check ...
    Hope it helps
    Srini

  • How to identify Accounting Document Clearence?

    Hi,
    I created 2 Invoices. Inv1 is Accounting doc cleared and Inv2 Not cleared.
    For both the Invoices BKPF & BSEG ( Accounting Header & Detail) have records. How would i determine if the Inv1 is Cleared and Inv2 is uncleared?
    Basically, i am in need of picking the Invoice Value only if it's Accouting document is cleared.
    Is there a way to pull the data from VBFA table or any other table?
    Thanks for your valuable answers.

    Hi Ashwini
    This is strange. Yo should make out from this field whether document has been released or not. Even if you go to VF03 for billing document display and click on header tab, there you can find out same information like posting document has been posted or not.
    another way is go to table BSEG and enter billing document and find out, if it is released you can find accounting document. I dont know whether it is useful for you.
    send me anyother observation if you have anything, I will try to findout.
    regards
    Srinivas

  • How to identify Sales org, DC and Division for a given Partner/Account.

    I have spent a while now trying to identify the Sales org, Distrubution centre and Division (sales office) for a given partner/Account.
    Is this info held on any particular table or can it be retrieved via an FM?.
    Jason

    Found it, eventually, although quit by mistake.
    FM CRM_BUPA_SELECT_BP_SALES_AREAS
    Regards to all.
    Jason

  • FBRA - how to identify if document is reset ONLY

    Hi Gurus,
    Would there be any indication in the document that the clearing document was only reset but was not reversed?
    I have tried looking into fields in tables BSIK/BSID (Open Items):
    Document Status (BSTAT)
    Indicator: Clearing was reversed (XRAGL)
    Indicator: Document is flagged for reversal (XSTOV)
    But they don't seem to be filled up. XRAGL is already filled even though document was only reset.
    Kindly advise.
    Thanks

    Hi
    Here the identification is items which are in
    Tables - BSIK/BSID are Open Items and the items which are with Indicator: Clearing was reversed (XRAGL) .
    It is very clear - clearing reversed but the item is not reversed, if it is reversed then that'll become cleared item.
    You can seperate the payment transaction and invoice, with the document type reference  / Payment transaction (XZAHL)
    VVR

Maybe you are looking for