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

Similar Messages

  • From which tables i would find the delivery and billing document field..??

    I need to create an ALV report which displays the following details in the output.
    Order No  Item No     Material     Order Qty     Item Category     Plant     Delivery     Billing Document     Sales Org     Dist Channel     Division     Created By     Created On      Changed On
    For(Order No  Item No     Material     Order Qty     Item Category     Plant) i took the fields from vbap and
    for(Sales Org     Dist Channel     Division     Created By     Created On      Changed On)i took the fields from vbak..
    From which tables i would find the delivery and billing document field related to sales document.??
    need help...
    Moderator message : Requirements dumping not allowed, thread locked.
    Edited by: Vinod Kumar on Mar 6, 2012 2:53 PM

    i am new to abap...so i dont have idea about sd table relationship.
    so please reply how to add delivery and billing doc in my coding below..
    *& Report  ZINAA_SD
    REPORT  zinaa_sd.
    TABLES: vbap, vbak, vbfa.
    TYPE-POOLS: slis.
    CONSTANTS: c_x TYPE char1 VALUE 'X'.
    TYPES:
            BEGIN OF st_vbap,
             vbeln TYPE vbap-vbeln,
             posnr TYPE vbap-posnr,
             matnr TYPE vbap-matnr,
             pstyv TYPE vbap-pstyv,
             kwmeng TYPE vbap-kwmeng,
             werks TYPE vbap-werks,
            END OF st_vbap,
            BEGIN OF st_vbak,
              vbeln TYPE vbak-vbeln,
              erdat TYPE vbak-erdat,
              ernam TYPE vbak-ernam,
              vkorg TYPE vbak-vkorg,
              vtweg TYPE vbak-vtweg,
              spart TYPE vbak-spart,
              aedat TYPE vbak-aedat,
            END OF st_vbak, 
           BEGIN OF st_final,
             vbeln TYPE vbap-vbeln,
             posnr TYPE vbap-posnr,
             matnr TYPE vbap-matnr,
             pstyv TYPE vbap-pstyv,
             kwmeng TYPE vbap-kwmeng,
             werks TYPE vbap-werks,
             erdat TYPE vbak-erdat,
             ernam TYPE vbak-ernam,
             vkorg TYPE vbak-vkorg,
             vtweg TYPE vbak-vtweg,
             spart TYPE vbak-spart,
             aedat TYPE vbak-aedat,
           END OF st_final.
    DATA:
          lt_vbap TYPE TABLE OF st_vbap,
          ls_vbap TYPE st_vbap,
          lt_vbak TYPE TABLE OF st_vbak,
          ls_vbak TYPE st_vbak,
          lt_final TYPE TABLE OF st_final,
          ls_final TYPE st_final,
          lt_fieldcat TYPE slis_t_fieldcat_alv,
          ls_fieldcat TYPE slis_fieldcat_alv,
          layout TYPE slis_layout_alv,
          lt_sort TYPE slis_t_sortinfo_alv,
          ls_sort TYPE slis_sortinfo_alv.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_vbeln FOR vbap-vbeln,
                    s_erdat FOR vbap-erdat.
    SELECTION-SCREEN END OF BLOCK b1.
    PERFORM select_data.
    PERFORM loop_final.
    PERFORM sort.
    PERFORM a USING:
          'VBELN' TEXT-002,
          'POSNR' TEXT-003,
          'MATNR' TEXT-004,
          'KWMENG' TEXT-005,
          'PSTYV' TEXT-006,
          'WERKS' TEXT-007,
          'VKORG' TEXT-008,
          'VTWEG' TEXT-009,
          'SPART' TEXT-010,
          'ERNAM' TEXT-011,
          'ERDAT' TEXT-012,
          'AEDAT' TEXT-013.
    PERFORM display.
    *&      Form  SELECT_DATA
          text
    FORM select_data.
      SELECT
       vbeln
       vkorg
       vtweg
       spart
       ernam
       erdat
       aedat
       INTO CORRESPONDING FIELDS OF TABLE lt_vbak
       FROM vbak
       WHERE vbeln IN s_vbeln AND erdat IN s_erdat.
      IF sy-subrc = 0.
        SORT lt_vbak by vbeln.
      ENDIF.
      SELECT
       vbeln
       posnr
       matnr
       kwmeng
       pstyv
       werks
       INTO CORRESPONDING FIELDS OF TABLE lt_vbap
       FROM vbap
       FOR ALL ENTRIES IN lt_vbak
       WHERE vbeln = lt_vbak-vbeln.
      IF sy-subrc = 0.
        SORT lt_vbap by vbeln.
      ENDIF.
    ENDFORM.                    "SELECT_DATA
    *&      Form  LOOP_FINAL
          text
    FORM loop_final.
      LOOP AT lt_vbap INTO ls_vbap.
        ls_final-vbeln = ls_vbap-vbeln.
        ls_final-posnr = ls_vbap-posnr.
        ls_final-matnr = ls_vbap-matnr.
        ls_final-kwmeng = ls_vbap-kwmeng.
        ls_final-pstyv = ls_vbap-pstyv.
        ls_final-werks = ls_vbap-werks.
        READ TABLE lt_vbak INTO ls_vbak WITH KEY vbeln = ls_vbap-vbeln BINARY SEARCH.
        ls_final-vkorg = ls_vbak-vkorg.
        ls_final-vtweg = ls_vbak-vtweg.
        ls_final-spart = ls_vbak-spart.
        ls_final-ernam = ls_vbak-ernam.
        ls_final-erdat = ls_vbak-erdat.
        ls_final-aedat = ls_vbak-aedat.
        APPEND ls_final TO lt_final.
        CLEAR ls_final.
      ENDLOOP.
      ENDFORM.                    "LOOP_FINAL
    *&      Form  SORT
          text
    FORM sort.
      ls_sort-spos = '01' .
      ls_sort-fieldname = 'VBELN'.
      ls_sort-tabname = 'LT_FINAL'.
      ls_sort-up = c_x.
      ls_sort-subtot = c_x.
      APPEND ls_sort TO lt_sort .
    ENDFORM.                    "SORT
    *&      Form  A
          text
         -->FNAME      text
         -->SELTEXT    text
         -->EMPHA      text
    FORM a USING fname TYPE string seltext TYPE string.
      IF fname = 'KWMENG'.
        ls_fieldcat-do_sum =  c_x.
      ENDIF.
      ls_fieldcat-fieldname = fname.
      ls_fieldcat-seltext_m = seltext.
      APPEND ls_fieldcat TO lt_fieldcat.
      CLEAR ls_fieldcat.
    ENDFORM.                    "A
    *&      Form  ALV
          text
    FORM display.
      layout-zebra = c_x.
      layout-colwidth_optimize = c_x.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       i_callback_program                = sy-repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
        is_layout                         = layout
        it_fieldcat                       = lt_fieldcat
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
        it_sort                           = lt_sort
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = C_X
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
        t_outtab                          = lt_final
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "ALV

  • Variant configuration statistics of sales order and billing document

    Is there any transaction that allow me to get statistics from the sales orders and billing document for configurable materials ? (like VA05) better if using the values of the characteristics that make up the positions of order.
    Thera are any information from "Sales Information System" using LIS?
    Thanks.

    Hi,
    With LIS, we'll find different infostructures.
    See this link to configure LIS reports :
    http://help.sap.com/saphelp_47x200/helpdata/en/c1/375723449a11d188fe0000e8322f96/frameset.htm
    Using many infostructures before to see sales analysis.
    Another solution :
    In sales order (by user exit), copy characteristics in new fields in VBAP.
    Then, you can use these fields in VA05 (add user exit) or new ABAP report.
    Regards,
    Lionel

  • How send an  outbound delivery and billing document by FAX

    How send an  outbound delivery and billing document by FAX

    Hi,
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    You have to create an RFC user for the RFC interface, so that you can receive messages in your SAP system. For each external communications system, create an RFC destination and a Node.
    You can add more systems, that is, create new nodes, even during operation. Since new Customizing settings may be necessary, you can branch directly from SAPconnect administration to Customizing (for example, to maintain the rules for recipient number adjustment).
    Outgoing messages are first stored in a queue. You have to schedule send processes so that the messages are sent from the queue to the external communications system. You can distribute incoming messages with inbound distribution using the recipient addresses.
    You can also change the default settings for confirmations of receipt in the Internet. You can specify a default domain to enable messages to be sent externally to users or objects to which no Internet address is assigned.
    The tools for monitoring and error analysis are available for monitoring sending. You can check the operating status of the external communication components in the SAP System and evaluate the send status of the documents. If errors occur, you can configure a trace that logs the processing of messages.
    An overview of the settings that you have to make in the SAP System in order to enable sending can be found in the documentation on External Sending in the SAP System.
    Hope this will help.
    Regards,
    Naveen.

  • Sales order and billing document modify log

    Dear Gurus,
    I would like to know if there are any standard report with Sales order and billing document modifies by a user.
    I know that you can see modifies by going to VA03/VF03 -> Environment -> Changes. But this report is too poor.
    Thanks in advance.
    Best regards.
    Juan

    Tcode  AUT10  is the best one    Here, maintain From-To date and TCode and execute.
    thanks
    G. Lakshmipathi

  • Sales order and billing document fields

    what are the fields for sales order and billing document dates?

    Hi
      Couldnt really get the exact requirement:
    1. If Billing Dates are to be extracted from Sales Documents, we can do that by extracting field <b>FKDAT</b> from table <b>VBKD</b>.
    2. If it is Billing Document creation date, extract from VBRK-ERDAT with below condition.
      select vbrp~vbeln vbrp posnr vbrp~aubel
             vbrp~aupos vbrk~erdat into table itab
             from vbrp as a
             inner join vbrk as b
             on vbrp~vbeln = vbrk~vbeln
             where vbrp~aubel in s_vbeln.  "Sales Documents
       Hope this gives you some idea.
    Kind Regards
    Eswar

  • Regresion test flow of Sales order and billing document to CO-PA

    Hi
    In the regresion test we need to test the  sales order and billing documents values are flown to CO-PA are not.
    May i know the transaction codes to test this scenario
    Best regards
    Thomas

    Hi
    1. Your sales ordre will have a pricing procedure in it.. Pricing procedure has condition typess. for revenues and discounts. Did you assign cond types in KE4I to your value field?
    2. Also, if your pricing procedure has cond type VPRS, this will contain the COGS.... Assign VPRS also to a value field in KE4I
    3. Check If you did the settings in COPA for
    a. Select Valuation Strategy 001 in KE4U
    In DETAILS tab: Assign it to Appl = KE, Check Mat Cstng, and Qty Field = ABSMG
    In Assignment tab: Assigning 001 to Point of valuation 01 and Record Type = F
    b. Creating a costing key in KE40
    Check : Transfer  Std cost estimate
    Period indicator =Current Cost estimate acc to entry in mat master
    c. assigning costing key to material types in KE4J or KEPC and
    d. assigning Cost Comp Structure to Value field in KE4R
    Regards
    Ajay M

  • Table for link between Accounting document and Billing document

    Which is the table for link between Accounting document and Billing document ?
    Thanks & Regards

    Ø Go to SE16N, enter table BSAD
    Ø In the Reference Field (VBELN) enter the Billing Document no. 
    Tips:
    Ø Make sure that only those billing documents will be considered whose accounting documents actually exists
    Ø No Accounting documents will be displayed for Credits, Free of charge orders and those acc. Documents which have been cancelled.

  • Need different price for sales order and billing document.

    Hi,
         I'm having a scenario.I have created a sales order for a material,the order value is $100.I have done up to Delivery.Billing part is only remaining in the flow.Unexpectedly the price of the material increases $20 more.Customer is ok with the new price $120.So how the new price comes in billing document.For this what are all the steps i want to configure?
    Regards
    Raj

    I want to know from you is client entering price manual or condition records maintained, if it is manual.you can go billing in the item pricing condition click on update field and select B i.e carry out new pricing.& enter the current price manually.

  • Difference amount in sales order and billing document (For one line item)

    Hi Experts,
    User created sales order with 3 line items and billing document. but problem is that there is difference in value of sale order and billing only for line item 10. The remaining items values are same in sales order & billing doc.if I check in sales order condition I found that VPRS condition is used and the value is 692.13and the amount is 3245.26in sales order. But if suppose I check the same value in billing doc the value is 0.69 and the amount is 3245.28. Can u suggest me which configuration I have to check for this.
    I also checked change lock but there is no change in sales and billing document & Material
    Regards
    Sunina agarwal

    Morning Sunina
    Now consider this scenario
    Item a - 10
    Item b - 20
    Item c - 30
    and the validity of condition rec for item C is 31st of Jan
    after 31st JAN the record changes or there isn't any.
    In Copy control the pricing type is 'B' i.e., carry out new pricing.
    Now if the document is created in January it will take all the above prices. and this document is then billed in Feb. Now the copycontrol, whilst copying the prices, will predetermine the same.
    Now your task is to check if there was user intervention, check the pricing in order and check what condition types got affected in order and in billing.
    If your scenario is still not amongst the above cases...
    I don't know what to do, if you figure out please let us also know, god know when we would face the same scenario....
    Take care

  • How to create Automatic Delivery and Billing documents immediate

    Hello,
    I want to create Automatic delivery and billing documnets immediate once I create a sales order.
    E.g I need to see in the Status Bar the delivery and billing document was created.
    Thank you in advance
    Your help is highly appreciated
    Alfaid

    Please search in sales forum.  Many times this was discussed there.
    thanks
    G. Lakshmipathi

  • Pricing date in delivery document and billing document

    Hi All,
    Pricing date in billing document can be controlled by copy control between order and billing document. This config is done in the field Pricing source. If i its set as "order", then my pricing date in billing doc will be same as that of order document pricing date. Tell me if i am right???
    Where can i maintain the setting for determining the pricing date in delivery document.???

    Hi Tushar
    Where do you find Pricing date in Delivery and Billing ?
    Pricing date is in Sales order, system takes rate of the pricing conditions valid on this date, from their condition record.
    Are you talking of Pricing in Billing document, whether it will be copied from sales order, or delivery document etc , Right?
    It is controlled from the "Pricing source" field (D- delivery, Blank- order,E - delivery/order etc.) in the copy control table at item level (VTFL).
    Suppose, the value is E, that means Pricing data will be copied from order aswell as delivery(if any).
    The copied will be copied as it is or Tax will be redermined or Freight will be redetermined etc will be decided from the "Pricing type "field.

  • Sales Order and Billing Document Number

    Hi All,
    I have  Billing document Number (LIKP-VBELN).
    Based on Billing document number, how to find out the corresponding Sales Order....????
    Is there any logic to find out this...??????
    Regards
    Pavan

    Hi,
    Go to VF02 and enter your Billing Document Number and "Enter".
    Environment -> Display Document Flow.
    Select standard order ->  Diplay Document.
    It will shows the sales order.
    Thanks,
    Reward If Helpful.

  • Maximum no of Line items for sales order,delivery document and billing docu

    Dear friends,
    How many line items we can enter for the following,
    1) a Sales order
    2) a Delivery document
    3) a Billing Document
    Thanks in advance.
    Regards,
    Shrikant

    Hello,
    the maximum limit of line items are as follows
    order-9999
    for delivery and invocie , it is restricted to 999 accouitng line items. since the tranfer to accounting can handle only 999 items , the restriction on delivery and invocie
    ex if there are excise postings, for a single line , there might be 5/6 lines genetrated for each line in invocie , therfore as per this the line in invocie get restricted
    you have a sap note , which offers suggestions to partially over come this
    hope this helps
    Thanks
    akasha

  • Tables where header text of sale document and bill document is stored

    dear all,
                   i need a table and field in which header text of sale docu is stored .i need to print a text entered by user at the tie of vf01 .
    so plz tell me the table and way how to print that text in print of invoice
    if any function is there for that please also tell me
    waiting for positive response
    regards & thanks

    Take a look at OSS <a href="hhttps://service.sap.com/sap/support/notes/600408">Note 600408 - Smart Forms: header texts and item texts</a>, it may be useful for you
    <i>Symptom
    The system does not print header texts and item texts of the billing document in the Smart Form standard form LB_BIL_INVOICE.
    Other terms
    SMARTFORMS, print, text, completion note, invoice
    Solution
    The following solution describes how to include a 'header note' on header level and an 'item note' on item level in the form.
    If you want to insert other texts into your form, you must adjust the access key (text name, text object, text ID) which you create under point 4 or 11 correspondingly.
    The formatting characteristics of the text are transferred from the billing document to the output. That is, you can change the character format only in the document.
    to correct the form, proceed as follows:
          1. Display form LB_BIL_INVOICE in the change mode of Transaction SMARTFORMS.
          2. Expand the navigation tree on the left side and choose the following path: 'Pages and Windows -> FIRST -> MAIN'.
          3. After text node TITLEINVOICEDETAILS, insert text node HDTEXT with description 'Header text'.
          4. Maintain the general attributes of this node as follows:
              o Text Type: Include Text
              o Text Name:
              o Text Object: VBBK
              o Text ID: 0001
              o Language:
              o No error if no text exists: X
          5. Create the following variable under 'Global Definitions':
          Variable name                    Reference type
          GD_IT_TXT_KEY       TYPE         TDOBNAME
          6. Choose the following path: 'Pages and Windows -> FIRST -> MAIN -> TABLEITEM'. Expand the 'TABLEITEM' table node.
          7. Below the 'TABLEITEM' node (after node IT_REFVG2_COL2_A), insert program line node ITEM_TEXT_KEY with description 'Key for item text'.
          8. Maintain the following parameters for the node:
              o Input parameter: GS_IT_GEN
              o Output parameter: GD_IT_TXT_KEY
          9. Insert the following program lines:
                        clear gd_it_txt_key.
    move gs_it_gen-bil_number to gd_it_txt_key.
    move gs_it_gen-itm_number to gd_it_txt_key+10.
          10. After the new program line node ITEM_TEXT_KEY, insert text node ITEM_TEXT with description 'Item text'.
          11. Maintain the following general attributes of the node:
              o Text Type: Include Text
              o Text Name:
              o Text Object: VBBP
              o Text ID: 0002
              o Language:
              o No error if no text exists: X
          12. Make the following settings under 'Output Options':
              o New Line: X
              o Line Type: IT_DESC
              o New Cell: X,    1 Skip Cells
          13. Activate your form.</i>
    Regards

Maybe you are looking for

  • Reporting Services Point status message errors.

    My Reporting Services Point seems to work OK -all reports are available and run correctly both through the console and via the website. However, I am seeing the following warning in the SMS_SRS_REPORTING_POINT status messages every hour: "The SQL Rep

  • Custom fields in ESS webdynpro applications

    Hi Experts, Can you please suggest me where I am going wrong in this scenario? I have a standard application Family member application. We enhanced the infotype 0021 with new fields and corresponding fields are added in screen structures and HCMT_BSP

  • Update Mseg Table using MB_MIGO_BADI

    Hi Experts I had a requirement to add an additional tabstrip at the item level of MIGO transaction . I have implmeented the same using MB_MIGO_BADI . I have also added a field quantity on this tab. The problem now is i'm not able to update this field

  • Gps problem with 5.0.1 NEED HELP

    Hello everyone. My Iphone 3gs New bootrom is updated to ios 5.0.1And now my gps has hugh problems. if i start navigon of tom tom he find me for a sec then iam gone and he cant find it. tried reinstalling it, network reinstalled, ios 5.0.1 reinstalled

  • Long time for export panel to appear

    hi hop you can help me! I have 1.5 aperture and the last few times ive used it it has taken over a minute or more for the export panel to appear when exporting a version. I have also downloaded and tried the aperture 2 trial and the same thing is hap