Need the status of billing document!!

Hi experts,
i am an ABAP guy. Can any one tell me how to get the status of the billing document. I need the table name and the field name that shows the status of billing document.
I need to find the status of the billing document and after that i need to retrieve the statistical value for the billed quantity in the billing document.
Thanks in advance. Points will be awarded.

Hi,
If VBRK-RFBSK is having value 'C-Posting document has been created', 'D-Billing document is not relevant for accounting' and 'H    Posted via invoice list' that means invoice is released to accounting. For ay other values Invoice is open i.e. still you can make changes in Invoice.
If VBRK-FKSTO is having value "X" then Invoice is cancelled, also if VBRK-SFAKN is having some value that means invoice is cancelled.

Similar Messages

  • Why  I can't find the overall status in billing document!?

    Hi,
    Why I can't find the overall status in billing document? but I can find this status in table VBUK, some documents set 'B' in this field, some set 'C', all of them are Completed and the corresponding account documents are cleared. for this status is 'B',I can't archive these documents.
    Thanks.

    Dear Lance
    Check the field Document object    i.e Document Status object .
    A     Order
    B     Purchase order
    F     Billing document
    K     Sales activities
    L     Delivery
    T     Shipment
    V     Shipping
    X     Others
    Check if all your entries are F, if not find out which document and try to find out why it is not C.
    Do revert with your feedback
    If it is still a problem , check some SAP notes
    For e.g. Note 142368 - Segment VBUK missing in billing document
    Header status segment VBUK is missing in the billing document.You can check this with the general table display (SE16).
    It is not yet known why this segment is missing.
    correct many documents, you can use report ZZVBUK01.
    Regards
    Jitesh
    Regards
    Jitesh

  • Cost Estimate error is coming at the time of billing document release

    Dear All,
    Hi, I am facing one problem that is whenever i am releasing the billing document system gives the error message.
    Error : No standard cost estimate found for this material 164001001.
    Here problem is some finished products we have a cost run and other finished materials we don't have a cost run. Other finished materials billing document release time we are facing the above error. There is no costing run for other finished materials. Here we have a CO-PA.
    I have mainatined the costing key settings(ke40) in co-pa. In Ke40 t.code i have maintained the below settings.
    1. I have selected transfer standard cost estimate radio button under determine material cost estimate.
    2. Costing variant is 1010( This is our varaint)
    3.Costing version is 01
    4. Period indicator : Current standard cost estimate account to entry in material master.
    I have maintained the above settings in ke40 t.code. Please suggest if any thing is wrong on above settings.
    And also i have maintained costing key to material type assignments in ke4j t.code.
    Here i maintained the three point of valuation (PV), One is real valuation, second is manual planning, third is automatic planning.
    here i have assigned material type (fert) to costing key in costing key1 filed.
    Please suggest if any thing wrong in the above settings. Still i am facing the same error at the time of billing document releasing time. Anybody please help to me. It is a very urgent to me.
    Thanks & Regards,
    Reddy

    Hi,
    This is a common error when COPA is activated and when the Costing Key is assigned according to the Material type in KE4J.
    When you need Cost estimation for few FGs and dont require for other FG, then you list out the materials for which you require SCE and then assign these list of materials to the costing key in KE4H(Costing key for Products) leaving out those which dont require.
    But detail the requirement further to facilitate the solution.
    Thanks & Regards,
    Ravi Kumar

  • 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

  • How we can configure new pricing procedure at the time of billing document

    Hi SD Gurus,
    Can u plz tell me how we can configure new pricing procedure at the time of billing document level.
    Thanks & Regards,
    Sreenivas.P

    Hello,
    Why?
    The sales order confirms the price given to the customer.  If you have re-determined a new price/discount then you may consider in VTFL to use pricing type C.
    Regards
    Waza

  • IDoc Error IDocs showing the status 53 "Application Document Posted".

    Hi All
    IDocs showing the status 53 "Application Document Posted". But values are not updated in SAP.
    Plaese sugggest on this,
    Thanks
    Ajit K Barik

    Ajit, there might have been a dump--check in ST22 or a update termination error, check in SM13.
    Either of these you'll have to take help of your ABAP consultant to analyse.
    Regards,
    Raghu.

  • User Exit on the save of Billing document (VF01)

    Hello All,
    I have a requirement where in during the creation of a billing document of a particular type i need to put in a block to prevent the creation of a accounting document and call a workflow to remove the block in the Invoice.
    My requirement is that I require a user exit which is triggered on the save of the invoice document so that a call to the workflow can be done where in the runtime information of the document would be available in the workflow for further processing .
    Helpful answers would be rewarded.
    Thanks in Advance,
    Sowmya.

    Hi,
    USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)
    The internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.
    USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
    In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMKCV (header fields).
    USEREXIT_ACCOUNT_PREP_KOMPCV (Module pool SAPLV60A)
    In this user exit additional fields for account determination that are not provided in the standard system are copied into communication structure KOMPCV (item fields).
    USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
    Depending on the number range, table TVFKD is used to set the billing date (country-specific requirments in Italy).
    USEREXIT_NUMBER_RANGE is automatically deactivated when this user exit is being applied.
    USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)
    This user exit is only called when the billing document is created. It is used to provide the header and the item of the new billing document with deviating or additional data.
    USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB)
    Printing the item line of a billing document can be supplemented or changed.
    USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
    Printing the header line of a billing document can be supplemented or changed.
       Refer the help
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm
    Regards
    Kiran Sure

  • Foreign trade--Posting status of billing document block

    Hi,
    We have foreign trade set up.  In that we defined incompletion schema at line item level with commodity code as "Field ready for input - Incompletion check active".
    Can anybody tell me that, in the above setup, can there be a billing block or posting block if commodity code is not maintained in the billing document.
    And in which cases Posting status will  be "missing foreign trade data" in billing document.
    Rajesh.

    Hi Rajesh
    If you have maintained commodity code as "Feild ready for input",and if you have maintained commodity code feild as error message then it will block the billing document
    Generally the posting status will be "missing foreign trade data" in the billing document if the foreign trades data is not maintained in material master record,proper configuration is not done
    Kindly check the following link which will help you
    http://help.sap.com/printdocu/core/print46c/en/data/pdf/SDFTPRO/SDFTPRO.pdf
    Regards
    Srinath

  • Status of billing document

    hi any body tell me in which table field we can c the billing docu status?? i want all open billing documents.

    Hi Sudeer,
    Please Check the tables.
    BSAK for cleared accounting billing documents
    BSIK   for open accountingbilling documenst
    BSEG for both cleared and open  accounting billing documents
    please comment on it.
    Regards
    Kumar M.
    Edited by: mukesh kumar on Oct 8, 2008 1:58 PM

  • Posting Status in Billing Document

    Dear All,
    How the reason in the posting status of the Billing Document comes ...I mean to say where we do the customizing with these posting status reasons.
    Kindly suggest .
    Best Regards,
    Ankur

    Hi
    This is Hard Coded by SAP in domain RFBSK, so not a part of standard customising. If you wish you may check the value range of domain RFBSK in Transaction SE11.
    Regards
    AA

  • Posting status for billing document

    Dear Experts
    I read some threads on the above but still has this doubt I have not found the answer.
    VBRK-RFBSK = C but when i click the 'accounting' button to see the accounting information for a billing document , the system says, in essence,  no accounting document exist for this document, or something like that.
    I then checked the document flow and found that there is indeed no accounting document created.
    I also checked that there is no accounting entries created by going to VF11. The status shown there is 'incorrect' .
    Questions :
    0. Does this mean there is data issue with the billing doc that makes posting of accounting entries not possible? How to tell for sure?
    1. What could lead to this situation?
    If there is no accounting doc created  , how can the status be 'C' ?
    2. If there was Ever any accounting document created for this billing doc, but subsequently a cancellation was carried out, can the document flow not reflect the accounting docs?
    3. What should be the correct status if it is not 'C' to represent that the accounting entries were posted?
    Thanks for reading and hope you can clarify for me.
    Best regards
    Pascal

    1. What could lead to this situation?
    I never experienced a similar scenario.  Whenever you save a billing document and status of field RFBSK is set to "C", there should an accounting document for that.
    2. If there was Ever any accounting document created for this billing
             doc, but subsequently a cancellation was carried out, can the
                  document flow not reflect the accounting docs?
    Yes it will reflect and in that case, the billing document status would be "E".
    3. What should be the correct status if it is not 'C' to represent
                 that the accounting entries were posted?
    "C" is the correct status
    Last but not least, is this happening to all your billing documents ?? 
    G. Lakshmipathi

  • Posting Status in billing document header

    Hi all,
    In the billing document header we have 'Posting Status'. For example if we won't require accouting document, it says 'Billing document is not relevant for accounting'. Where do we maintain control for this.
    Thanks
    Sri

    Dear All,
    In-line with Mr. Muthu's explaination, I would like to add:
    It is VBTYP and Account Determination Procedure in Billing Document Type Configuration, which defines the Accounting Document generation.
    Say, in case of Proforma Invoice (F5, or F8), you will find:
    VBTYP as "U" (Blank) and No Acct. Doc. Deter. Procedure assigned.
    Whereas, in case of F1, or F2:
    VBTYP as "M" and Acct. Doc. Deter. Procedure assigned.
    Important: Check Fields: SD Document category and Transaction group, for F5 and F8 (it would be "U" and "8") AND F1 and F2 (it would be "M" and "7")
    Also,
    What Billing Document Type would be considered As Cancellation Billing Document Type, would also get considered by VBTYP.
    An Invoice, with VBTYP 'M', can only be canceled with Billing Type with VBTYP 'N' .
    Note: Check Billing Documents in VOFA.
    Very Best Regards,
    Amit
    I am really Sorry, But I could not Stop myself, to provide my inputs.

  • The cost of billing document is not the same as GI cost

    Dear Expert,
    Condition EK02 in the billing document is not picking up the Cost of Goods sold at the time of goods issue.
    We have a Made-to-Order Sales Order with a production order. The cost condition EK02 on the billing document is picking up the EK02 from the sales order. We would like it to pick up the actual cist of goods sold (cost on the goods issue).
    Any help would be appreciated.
    Many thanks!
    Raymond

    Hi Raymond,
    My proposal: insted the condition type EK02 - Calculated Costs choose the condition type VPRS - costs.
    I guess you want to transfer the costs into CO-PA ... if yes, don't forget to assign the condition type to a value field (KE41).
    Have a nice day

  • Changing the status of appraisal document

    dear experts,
    I am working in ECC 6.0
    I have created an appraisal category and template and want to maintain it for evaluations and released the document
    After saving and completing the document, i want to revoke the status from "released " to "non released". I have also deleted all the appraisals thro " transaction -"appchange "
    i am not able to revoke the status from released to non released . what is the solution for this issue ?
    early reply solicited
    nataraj s

    Hi
    You will not be able to change the templates that have been released. This is a part of the standard functionality.
    To unrelease and make the changes execute the following steps
    1. Go to transaction phap_admin
    2. Delete all the open documents (in process, assigned, etc) corresponding to the appraisal template
    3. Right click the appraisal template in phap_catalog and change the status to not release
    Judith

  • Need your help, SD billing document initialization

    Dear Friends,
    Now I am performing initialization for SD billing document with background job, I have two server, development and QAS system, I perform the same action, the dev system run the init very fast but the QAS is very very slow( the data capacity are same), I check the Job Process, and found the QAS system always run program RMCVNEFV2 and read table VBFA( I guess the correct init shoud read vbrk vbrp.....) but DEV system don't read the table VBFA, just read VBRK and VBRP.is it related with "Setup of Statistical Data"?
    could you give me some suggestion, Thank you very much!

    HI Will,
    There is no way that extractor is going to read other table upon which it isn not based.( VDITM is based only on VBRP,VBRK and VBUK).
    SO in no case it should read data from VBFA which is alraedy extracted to the schedule line extractor.
    I am not sure whether there is any setting inside but defenately there is some user exit which is taking data from VBFA in your case.
    Check in CMOD whether this extractor has been enhanced with some extra field which is not present in the original extractor.
    Do reply if it helps

Maybe you are looking for

  • Smartform production  issue

    Hi, I have to debug a smartform  which is in production system. So, that I con't declare a static break point by 'Break username'. So,Could anyone  explain about  the  possible ways of debugging of a smartform and various advantages of invidividual w

  • Kinect for Windows V2 Device cannot start

    I was able to use my Kinect for Windows V2 sensor yesterday with all of the applications in the SDK browser but the next day after restarting my computer I was no longer able to use the device. Looking at the device manager I get this message under t

  • When making a call NO DIAL TONE

    when making a call NO DIAL TONE, and can't here the other person talking. Only if pressing SPEAKER or when using the iPhone Stereo Headset.(SILENT BOTON IS OFF) please help!!

  • How can I customize the URL of a link in the breadcrumb in BC?

    Hi! I'm trying to figure out how to customize the URL of some of my links in the breadcrumb. Is it possible to do? Thanks!

  • Audigy 2 ZS sound crackles when accessing hard dr

    I hve been having problems recently with my audigy 2 zs. Whenever anything accesses my hard dri've I seem to get an awful crackling over my speakers (i do not know whether this is the problem but thats it seems to be the worst), which are the creativ