Billing Document Table & field

Hi Friends,
I have to Calculate Qty. and Amt. Related to Billing Document .But I also want to Deduct the Qty. and
Amount of Cancelled Invoice as well as Credit Note Cancelled.Is there any table exist in which i have the
Indicator or field type in which i get the total of qty (Less cancelled Invoice Qty.)
    Points will be awarded for Useful answer
Regards
Kamal

Hi,
VBRK-FKSTO is the field which stores the cancelled invoice data,
fetch the invoices vbrk-fksto <> SPACE.
regards,
muralidhar.

Similar Messages

  • Relation between Tax Invoice and Billing Document

    Hi,
    Could you please let me know the following;
    1.  How to find a Billing Document from a Tax Invoice number, i,e the table linkage. I have found out a way by passing the XBLNR (tax invoice) field in BKPF table and getting the BELNR (Accounting Document). Now, we can pass BELNR into BSEG and get the VBELN (Billing Document). Is the above the correct method ?
    2. If the previous method mentioned is correct, then for Service related Invoices where there are no Sales Document or Delivery is created, we are unable to link the Tax Invoice to a Billing Document (the field VBELN in BSEG is empty).
    Could you please help in this regards.
    Thanks & Regards,
    Sandipan

    Have you seen your posted documents through MIGO and MB1C in MB03.Are you able to see any document type difference once you select header.
    Refer below link you will understand the process.
    http://help.sap.com/saphelp_45b/helpdata/en/f8/6cec6eb435d1118b3f0060b03ca329/frameset.htm
    Edited by: Sridhar Jayavarapu on Feb 10, 2010 7:01 PM

  • Print preview of billing document from report

    Hi,
    I have created a ALV report which will be displaying billing document number ( hotspot) and related details. When i click on billing document number field, system should display the print preview of the billing document like how we get print preview using VF03 (VF03 --> Issue Output To ).
    Please let me know how to achieve this..
    Thanks <removed by moderator>
    By,
    Suresh
    Edited by: Thomas Zloch on Oct 19, 2011 11:26 AM

    hi suresh ,
    FORM z_user_command USING r_ucomm LIKE sy-ucomm
                  rs_selfield TYPE slis_selfield.               "#EC NEEDED
      CHECK r_ucomm = '&IC1'.             "User Double Clicked on Some
      CHECK NOT rs_selfield-value IS INITIAL.
      CASE rs_selfield-fieldname.
        WHEN 'VBELN'.
          READ TABLE gt_final INDEX rs_selfield-tabindex.
          IF sy-subrc EQ 0.
            SET PARAMETER ID 'VF' FIELD gt_final-vbeln.
            CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
          ENDIF.                            " IF SY-SUBRC EQ 0
      ENDCASE.                              " ENDCASE
    ENDFORM.                                " FORM Z_USER_COMMAND
    regards
    ranjan

  • How to get Accounting document number from billing document number

    Hi,
    How to get Accounting document number from billing document number i.e. from VBAK- VBELN.
    Cheta Pant

    Hi,
    VBAK is the Sale Order header table, Billing document table is VBRK.
    Sales tables (VBAK,VBAP,VBRP,VBRK) do not store accounting document numbers.
    You do other way around. Just go to SE16 and enter the Billing document number in field Billing document VBELN in BSEG or BSID or BSAD table and execute, you will find the accounting document number.
    If you just want collect this information once then you can use table BSEG, but if you think to develope a report then use table BSID and BSAD.
    Regards,
    Chintan Joshi

  • 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

  • Filling billing setup table with documents from a given date

    Hi
    I would like to fill the setup table in R/3 with SD Billing Documents which have been created from 01/05-2007 until now. Is this possible somehow?
    (SBIW --> Business Warehouse --> Settings for App Specific Datasources --> Logistics --> Managing Extract Structures --> Initialization --> Filling in the Setup Table --> App. specific setup of statistical data --> Perform Setup - SD Billing Documents)
    The only fields I see are:
    - Archiving run
    - Sales organization
    - Company code
    - Sales document
    Kind regards,
    Torben

    Hi Torben,
    I dont think if you dont have option to see the date to select, probably you wont be able to fill your setup table based on date. Otherwise you can pull in the data from R/3 based on this date restriction in your infopackage after filling your setup table without any restriction.
    Regards.

  • Field FKSTA- Billing status of delivery-related billing documents not getting updated

    Hi Experts,
    I have a requirement wherein I need to fetch the FKSTA - Billing status of delivery-related billing documents into the datasource 2lis_11_VASTI. I have checked a lot of threads on this topic but have not found a concrete solution yet.
    I have checked the settings in vov7 and vov8 and everything seems to be in place. I have also checked in table VBUP, when I filter based on field FKSTA = 'C', it shows me the outbound delivery document nos. But when I use the related sales document, it shows me blank values. VBUK as well doesn't show any values for field FKSTK.
    I would like to know how and where I can identify the 'billing status of delivery- related' document.
    I can see in VBUP table that if I enter the sales document no. related to the delivery document, it does not show the correct status.  I believe that the statuses should ideally get updated to the underlying VBUK and VBUP tables. Is there any way to update and align them?
    Is there a workaround, a similar field that i can use for datasource enhancement that will give me the correct values?
    Appreciate any help I can get on this as it is urgent.
    Thanks,
    AM

    Hi,
    You are correct that stauts is updated in table VBUK and VBUP.
    However, a sales order does not determine a billing status for delivery related billing, field
    VBUP-FKSTA is only determined for delivey.
    So, it is correct behavior that VBUP-FKSTA = BLANK when searching VBUP with
    VBUP-VBELN = sales order number.
    Just because of above reason, you will not find billing status field in VA03 -> goto header/item;
    you could only find billing status field for delivery in VL03N -> status overview.
    It seems that you are trying to find out sales orders that have been fully deliveried and fully billed, am I right? As far as I know, there is no directly table/field/tcode that could meet your requirement.
    You could consider following workaround:
    firstly, get a list of deliveries that have been fully billied(search VBUP with VBUP-FKSTA = C or search VBUK with VBUK-FKSTK = C);
    Secondly, using these deliveries to search table VBFA to find out related sales orders.
    Hope this helps.
    Best regards,
    Crystal

  • Maintain output condition table for billing documents

    Hi
    I need to create new output condition table for billing document with the key combination of "Billing type and Export Indicator". In Field catalog: Messages for billing documents I am able to find field Export Indicator but the same field i am not able to find creation of new condition table (V/63).. Kindly let me know is there any settings required to show the same in V/63.
    Thnaks
    Srinivas

    Hi Ram
    The filed already is there in in structure" KOMKBV3" ....
    Thanks
    RAO

  • What is the table for partner functions in Billing document

    Hello Experts,
             As per the business requirement my functional consultant included Fright agent (created as a vendor) in  billing document  partner functions,
    so they want to display the name fright agent on the invoice,
    i have checked all the tables related to Billing document, i was unable to find the fright agent  
    I checked in VBPA table (partner function table) (remaining partner functions are there in vbpa table  but fright agent is not there, Is there any function module is available to pick these information ,Please help me in this.

    Read some documentation like [Partner Functions|http://help.sap.com/saphelp_crm40/helpdata/en/3c/92eceb484a11d5980800a0c9306667/frameset.htm], also be aware of the conversion exit on the field PARVW. (check via SM30 on view V_TPAR_SD)
    Regards,
    Raymond

  • Table to get payment method of a billing document

    Hi Experts,
    Could you please let me know from which table I can get the payment method of a billing document.
    Thanks & Regards,
    Soumya

    Table- Field
    VBRK-ZLSCH
    Regards,
    Rajesh Banka

  • Table name for open delivery document and open billing document.

    Can any body tell me what are the table names where we can get the the open delivery document numbers and open billing document numbers?

    HI
    Table S066 (Open orders)
    S067(Open deliveries and billing)
    Those 2 tables helpful only to know the credit exposure not for open deliveries and open billings document numbers
    Solution: Mr.Prakash Already suggested table and field names
    Regards,
    Prasanna

  • Originating doc field in Billing document

    hi,
    Please help me understand the how the originating doc. (VBELV) field appears in billing documents.
    Do we make any settings for it or it is dependent on the code.
    For reference field we make settings in copy control but am not able to locate how this field is controlled.
    Regards.

    Hi,
    The ORIGINATING DOCUMENT willl appear only for the  MASTER CONTRACTS.
    Please go to the INCLUDE  RV60AFZC  which shows that if the VBTYP in the Document flow is 0 then only the VBELV field will populate.
    This is the include shows for VBELV
    select vbeln from vbfa into table lt_vbeln
                        where vbelv = vbrp-vgbel and vbtyp_n ='O'.
            select vbeln fbuda from vbrp into  table lt_cmr
                               FOR ALL ENTRIES IN lt_vbeln
                                    where vbeln = lt_vbeln-vbeln.
    regards,
    santosh

  • Table for billing documents not posted  to acounting

    Hi ,
    Could you let me know the table  name wherein we can find biling documents not posted to accounting and has vbx3 error?
    Thanks,
    Praveen

    HI, friend
    Actually, you can use tool ST05 to do a simple SQL Trace.
    You can check table VBRK, field RFBSK (Status for transfer to accounting)
    Value Range is as below:
                   Error in Accounting Interface
    A     Billing document blocked for forwarding to FI
    B     Posting document not created (account determ.error)
    C     Posting document has been created
    D     Billing document is not relevant for accounting
    E     Billing Document Canceled
    F     Posting document not created (pricing error)
    G     Posting document not created (export data missing)
    H     Posted via invoice list
    I     Posted via invoice list (account determination error)
    K     Accounting document not created (no authorization)
    L     Billing doc. blocked for transfer to manager (only IS-OIL)
    M     Analyst Approval refused (only IS-OIL)
    N     No posting document due to fund management (only IS-PS)
    Wink

  • Function Module to Edit Billing Document Header (table VBRK)

    Hi all,
    Can someone tell me if there is a function module that can edit the billing document header please?  I do not need to created the billing document, it already exists.  I just need to edit specific fields.
    Many thanks.

    The requirement is to update these 2 fields in the table VBRK:
    BSTNK_VF (customer po number)
    ZUONR (assignment number)
    The client uses these 2 fields for non-standard purposes.
    Actually I was already trying to use the FM RV_INVOICE_DOCUMENT_UPDATE, but I am unable to make it work, for some reason. 
    For that function, I only passed VBRK as table, nothing else.  Specifically, I retrieved the header from VBRK, modify the 2 fields, then pass it to the VBRK table parameter of the function.

  • Add customer fields on item level billing document VF01

    Hi gurus,
    Does anybody know a user exit (or another way) to add 3 customer fields on a subscreen during creation of a billing document (transaction VF01) ? I'm afraid I need to do a modification for this but maybe there is a better solution.
    Thanks for your reaction.
    Serge

    Hi
    These are the userexits
    SDVFX007            User exit: Billing plan during transfer to Accounting
    SDVFX008            User exit: Processing of transfer structures SD-FI
    SDVFX009            Billing doc. processing KIDONO (payment reference number)
    SDVFX010            User exit item table for the customer lines
    SDVFX011            Userexit for the komkcv- and kompcv-structures
    V05I0001            User exits for billing index
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    may be you can look into this SDVFX010
    Please reward if useful.

Maybe you are looking for

  • Report with multiple tabs

    Hi, I have a report with multiple tabs in selection screen. Say material number is mandatory in the first tab. But we don't need material number in the second tab. But if I want to go to the 2nd tab, i get the error message 'Please enter the material

  • Row level ppr in advanced table

    Hi, my requirement is as follows... for example One dept lov is there, and two more fields are there, one is LOV and another one is Message text input. if I select 10 in DEPT lov need t show lov field and hide text field if i select 20 need tod show

  • Beginner PKCS#11

    I must make a program that communicates with a HSM using pkcs # 11, to create the security keys and certificates. I finished the documentation on the pkcs # 11, now I must go to the programming phase. my problem I can not find my approach, I lack the

  • Applet doesn't stop

    Hi ! I haven't write an Applet since... old times. Anyway, the following applet doesn't stop. PLEASE help me ! Thank you, Alin import javax.swing.*; import java.awt.Graphics; public class countDown extends JApplet {      private static final long ser

  • Connecting to database -- New Bie Pl help

    Hi all, I have posted this question y'day & somebody asked me to post in this forum. So I thought I would. My question is : How to I connect to database. I know some thing to get connected to database. If I am not wrong, I will be needing a driver, d