Table VKDFS

Hi Guys,
               Can someone explain me with what exactly is the use of the table VKDFS.

Hi,
Sales Index table :
VKDFS SD Index:Billing Initiator Billing Due List (VF04 VF24).
Also go through the below link.
http://www.scribd.com/doc/3596038/Sap-Tables.
REgards,
Krishna O

Similar Messages

  • Rebate related issue with database table VKDFS & VBAK

    Hi everybody,
    I am facing the problem with the tables VKDFS and VBAK.
    In my program the report has to display the details of the agrement numbers concerning to the sale or billing doucmnets later on it has to create a credit memo for that particular customer.
    In the coding the program in very beging step, it is fetching all sales documents from VKDFS as per selections like following.
      select        * from  vkdfs into table ivkdfs
             where  fktyp  in r_fktyp
             and    vkorg  in s_vkorg
             and    fkdat  in s_fkdat
             and    kunnr  in s_kunnr
             and    fkart  in s_fkart
             and    vbeln  in s_vbeln
             and    faksk  in s_faksk
             and    vtweg  in s_vtweg
             and    spart  in s_spart
             and    netwr  in s_netwr
             and    waerk  in s_waerk.
    After this whatever the sales orders fetched here, for those all again its fetching from VBAK table as following.
    SVBAK[] = IVKDFS[]
    select * from vbak into table ivbak
      for all entries in svbak
      where vbeln = svbak-vbeln
      and   knuma in s_knuma
      and   auart in s_auart
      and   submi in s_submi
      and  (vbak_wtab).
    So, its filtering from VBAK.
    But the exact issue is that, there is one sales order which is available in VBAK but does not available in VKDFS table.
    So, my program fails to display the report regarding to that agreement number.
    As per my analysis I came to know that there are no entries in VKDFS table against to the sales orders in VBAK concerning agreement numbers.
    VKDFS-SD index: billing initiator table.
    I want to know how come this VKDFS table is updating against to VBAK table. If possible how to make this entry in that table against to the values in VBAK. But it should not effect other tables.
    Please let me know the solution if you people have any .
    Its an urgent and sev 1 tickets
    eagerly waiting for solution or some information.
    Thanks&Regards.
    J.

    Hi everybody,
    I am facing the problem with the tables VKDFS and VBAK.
    In my program the report has to display the details of the agrement numbers concerning to the sale or billing doucmnets later on it has to create a credit memo for that particular customer.
    In the coding the program in very beging step, it is fetching all sales documents from VKDFS as per selections like following.
      select        * from  vkdfs into table ivkdfs
             where  fktyp  in r_fktyp
             and    vkorg  in s_vkorg
             and    fkdat  in s_fkdat
             and    kunnr  in s_kunnr
             and    fkart  in s_fkart
             and    vbeln  in s_vbeln
             and    faksk  in s_faksk
             and    vtweg  in s_vtweg
             and    spart  in s_spart
             and    netwr  in s_netwr
             and    waerk  in s_waerk.
    After this whatever the sales orders fetched here, for those all again its fetching from VBAK table as following.
    SVBAK[] = IVKDFS[]
    select * from vbak into table ivbak
      for all entries in svbak
      where vbeln = svbak-vbeln
      and   knuma in s_knuma
      and   auart in s_auart
      and   submi in s_submi
      and  (vbak_wtab).
    So, its filtering from VBAK.
    But the exact issue is that, there is one sales order which is available in VBAK but does not available in VKDFS table.
    So, my program fails to display the report regarding to that agreement number.
    As per my analysis I came to know that there are no entries in VKDFS table against to the sales orders in VBAK concerning agreement numbers.
    VKDFS-SD index: billing initiator table.
    I want to know how come this VKDFS table is updating against to VBAK table. If possible how to make this entry in that table against to the values in VBAK. But it should not effect other tables.
    Please let me know the solution if you people have any .
    Its an urgent and sev 1 tickets
    eagerly waiting for solution or some information.
    Thanks&Regards.
    J.

  • Billing index table VKDFS

    Hi all,
    we have a rquirement that if we make invoices for two deliveries, the system should make only  one invoice. but the system did not allowed to make one invoice since the ship to party is different in both the  deliveries. so we did coding in structure XVBPAK in include RV60AFZD  to make ship to party equal during runtime and we were able to combine invoices.
    sold to party/payer is same in sales order for the delivereis....
    now things work well in invoice creation through VF01 mode  but deliveries are no combining in background invoice creation mode through VF06 or Vf04.... why ???
    somebody told us to see table VKDFS for background processing .he entries in this table are updated before invoices are created  and after invoices are created, this table does not store any entires for the deliveiry nos.
    when we saw table VKDFS, the ship to party is different, so we thought of making ship to party equal too here using exit V05IEXIT.. we have made ship to party/it's address equal here tooo but still our delivereis are not combining in background invoice creation mode.
    what is the reason that invoices combine in foreground mode and not in background mode.we know dueing background processing system uses program SDBILLDL.
    regards
    sachin

    Dear Sonu,
    we are also facing the same problem. Could you please share the solution for the issue.
    thanks & Regards
    Jagadish

  • Entries in Table VKDFS

    Hi Gurus,
    Can you please explain me how entries are created in table VKDFS ( Billing initiator table ). the problem we are facing is in transaction VF04 ( billing due list ) , for order related billing documents billing type is not coming for some cases.
    thanks in advance.
    Regards,

    HI,
    this particular problem is coming for  a custom item category ZR2U. when i checked the transaction VOV7 for this item category i found the following details. now for some entries in table VKDFS with item category ZR2U  are showing billing type in transaction VF04 however some are not. please help me.
    Item category        ZR2U   HWS RET R&R NO DLV
    Item Type
    Completion Rule
    Special Stock
    Billing Relevance    C
    Billing plan type
    Billing Block
    Pricing              X
    Statistical value
    Revenue Recognition
    Delimit. Start Date
    Incompletion Proced. ZM     NET ITM w/o PR          Screen Seq.Grp  N
    PartnerDetermProced. N      Standard Item
    TextDetermProcedure  Z1     Nokia Sales Item        Status Profile
    Item Cat.Stats.Group 2      Returns, credit memo

  • Billing index-VKDFS table

    Hi,
    we have put a break point in include V05IEXIT  for modyfying the above table VKDFS. but while creating invoices in background mode in VF04, the system is not coming to this include V05IEXIT in debugging mode.
    we have to modify VKDFS-KUNNR
    what to do?
    regards
    sachin

    thanks for the reply. we will do as you have said. but i would like you to look at the follwoing as to the reason we are working on VKDFS table and advice us.......
    we have a rquirement that if we make invoices for two deliveries, the system should make only  one invoice. but the system did not allowed to make one invoice since the ship to party is different in both the  deliveries. so we did coding in structure XVBPAK in include RV60AFZD  to make ship to party equal during runtime and we were able to combine invoices.
    sold to party/payer is same in sales order for the delivereis....
    now things work well in invoice creation through VF01 mode  but deliveries are no combining in background invoice creation mode through VF06 or Vf04.... why ???
    somebody told us to see table VKDFS for background processing .he entries in this table are updated before invoices are created  and after invoices are created, this table does not store any entires for the deliveiry nos.
    when we saw table VKDFS, the ship to party is different, so we thought of making ship to party equal too here using exit V05IEXIT.. we have made ship to party/its address equal here tooo but still our delivereis are not combining in background invoice creation mode.
    what is the reason that invoices combine in foreground mode and not in background mode.we know dueing background processing system uses program SDBILLDL.
    regards
    sachin

  • Need to know ,how SAP is Posting wrong Enrtry at the Table level for Same .

    Hello SAP Experts ,
    Good Morning Gems!!!
    I have a Typical Issue here , SAP Is Posting In wrong tables
    .  Production  is currently processed everything that it should process.  This works as designed.
                PO = 7800507594 (From Plant  5400 to Plant  5409 - only NL, no intercompany)
                Dlvry  = 81243277 (Has PGI but no Invoice, as it is the same company code!!!
    The issue is that for some reason, SAP has put an entry into table VKDFS by mistake.  This table is used by SAP to determine the list in VF04.  This is why VF04 thinks it should create an invoice, but it should not.  so we are getting  error message that the Invoice cannot be created , which is valid, and a good thing.
    Do we have  OSS for 2 things:
                1) A note that mentions why it is determining the wrong CoCode or Sales Area which leads to the entry into this table
                            This is to stop it from adding entries incorrectly.
                2) A note that mentions how to fix the existing entries in this table that should not be there?
    Awarded Full Points for the Correct answer
    Thansk and Regards
    Adarsh Srivastava
    Supply Chain Consultant ,
    CSC INDIA

    Dear Friend,
    I guess you item category in Delivery Document would be NLN.
    Go to VOV7 & under Business Data there is a  check box for Billing Relevance. This box should be blank. I mean if there is any entry in this box (either A or J) then remove it & make it blank.
    Hope this helps...
    Thanks,
    Jignesh Metha

  • Sd billing index table

    Hi,
    q1 ) what are index tables.
    q 2 )specifically I want to know abut the functionality of sd index table VKDFS. What this table does?
    regds

    All SAP database table have one or more indexes. The key index is based on the table key fields, and other indexes are provided as required. The index is used by the system to access data in the table with the quickest time. If you try to read a table without supplying any of the index fields, the database will read the table one row at a time until a matching row is found. If the table has a lot of records it can take a very long time to access the required data. SAP programmer always trys to read table using the key or index fields for the best performance.
    In some cases SAP provides additional tables for specific purpose called index tables. In this case VKDFS is used as billing initiator.  When you want to view the billing due list (transaction VF04, then the system uses this table to list the dcouments due for billing. Although it is possible to analyse the documents due for billing by reading the status of the sales documents, this would take a long time to analyse all sales orders especially as many will either not be due for billing or already billed. This table is filled as you process the sales documents, so that th e system always has an up to date list of the items due for billing in this table. As the table has fields specified such as billing date, sold-to, sales org in the key, the peformance of the billing due list (VF04) is very fast when using any of those key fields.
    Rgds
    Richard

  • Break point in EXIT_SAPLV05I_002

    Hi, I nead your help.
    I've already put a break point in EXIT_SAPLV05I_002, INCLUDE ZXV05U05 but when I crete a delivery the debuging is not started.
    Dou you know in what moment this exit should stop?
    Thanks
    Dora

    Hi Venkat
    Your user exit does get processed during the delivery save.
    Your breakpoints are not stopping in it because all the indexes tables VKDFS, VEPVG etc
    are handled in the update task, so you have to use update debugging.
    The quick wat to get to your user exit to see what is is doing is as follows:
    Create a delivery in VL01n
    Before you hit the save button switch on the debugger
    then press save
    In the debugger oput a breakkpoint on the ABAP statement COMMIT WORK
    The program will stop at this statement which is the end of the application processing.
    In the debugger go to SETTINGS > UPDATE DEBUGGING
    Then press F8 to contunue
    A new screen will appear with the update task.
    In the new screen put a breakpoint in function module RV_DELIVERY_INDEX_SAVE
    ( If this were from a sales order you would do the same but with function RV_SALES_DOCUMENT_INDEX_ADD)
    Your user exit is called below marked :
    RV_DELIVERY_INDEX_SAVE
      Billing type appears in the index if there is at least one R/3
      billing relevant item in the delivery
         if vbuk_wa-fkstk ca 'AB' or
            vbuk_wa-fkivk ca 'AB'.
    perform lk_01.                   "Fakturaauslöser           >>>>>>>
        EXIT_SAPLV05I_002 is called in here.... 
    I hope this helps explain the system behaviour
    Kind regards
    Brian

  • VF06 - Back ground job for Credit Note Generation

    Dear SD GURUS n EXPERTS,
    My user want to create the Credit note generation (Sales Return Invoice) automatically. On SDN I found that it can be achieved by VF06 and scheduling this JOB in background on every night. IS IT CORRECT???
    If yes, Please tell me detailed steps or step by step procedure.
    Thanks in advance.
    DSC

    Hi DSC
    There should be no issue in meeting this need.
    When you create your returns delivery and carry out the post goods receipt in LE
    the system will write an entry into the billing due index table VKDFS with your
    returns billing type that is assigned for the process.
    You only have to schedule a background job to run when required with program SDBILLDL
    in SM36 with a variant where it is only selecting RE documents.
    This will bill all due returns documents as required
    Hope this helps
    Kind regards
    Brian

  • Delivery related billing with VF04 based on sales group.

    Hi Expert
    I want to do delivery related billing in vf04 but sales group filed is grayed in vf04 so sorting is not possible if i not sort then it will bill to all customer that we dont want ,  i want to bill manually for different Customer on the basis  Sales Group, how to handle this situation. we donu2019t have other  choice such as Shipping point is only one. Even sold to party is same for all site. how to handle this situation.
    thanks
    Mona.

    Hi Mona,
    The selection criteria fields for VF04 are hard-coded.
    This cannot be done, the fields in the billing due list index are the
    the fields in the billing due list (VKDFS) -> these are the only ones
    that can be read and available to be added to the billing due list.
    The nature of your request indicates that is is rather a consulting
    issue.
    Nevertheless :
    A solution for this requirement can look like this (example with
    sales office and sales group for RV60SBAT):
    Add with an append the new field(s) on table VKDFS
    (take care about the customer name space ZZ*)
    Fill the fields ZZVKBUR and ZZVKGRP with userexit LV05IF0V
    for Orders
           FORM USEREXIT_VKDFS_SORTKRI_SALES.
            VKDFS-ZZVKBUR = LVBAK-VKBUR.
            VKDFS-ZZVKGRP = LVBAK-VKGRP.
           ENDFORM.
    for Deliveries
           FORM USEREXIT_VKDFS_SORTKRI_DEL.
            VKDFS-ZZVKBUR = LLIKP-VKBUR.
            VKDFS-ZZVKGRP = LLIKP-VKGRP.
          ENDFORM.
    You will need to take a copy of RV60SBAT and add these fields to the
    selection criteria and the select of VKDFS. See note 25026 which is
    for selection via Payer but may provide additional information. Also
    see note 63523.
    You will also need to re-build the billing due index VKDFS with
    program RVV05IVB.
    I hope this information helps so far.
    Thanks,
    Alex

  • Add bill-to party in billing due list

    hi,
    pls advice how to add bill-to party in billing due list
    thanks

    hi,
    I can confirm that there is a limitation to the selection criteria (like
    salesoffice) in these transactions, because (SD Index: Billing Initiator
    (VKDFS)) does not have such field.
    A solution for this requirement can look like this (example with
    sales office and sales group for RV60SBAT):
       add with an append the new field(s) on table VKDFS
        (take care about the customer name space ZZ*)
       fill the fields ZZVKBUR and ZZVKGRP with userexit LV05IF0V
    for Orders
           FORM USEREXIT_VKDFS_SORTKRI_SALES.
            VKDFS-ZZVKBUR = LVBAK-VKBUR.
            VKDFS-ZZVKGRP = LVBAK-VKGRP.
           ENDFORM.
    for Deliveries
           FORM USEREXIT_VKDFS_SORTKRI_DEL.
            VKDFS-ZZVKBUR = LLIKP-VKBUR.
            VKDFS-ZZVKGRP = LLIKP-VKGRP.
           ENDFORM.
       copy the report RV60SBAT in the customer name space and add
        the new fields as selection criteria
    get all customer numbers wich orders to be invoiced
          SELECT * FROM VKDFS WHERE FKTYP IN X_FKTYP
                              AND   VKORG = VKOR1
                              AND   FKDAT BETWEEN FKDAT AND FKDAB
                              AND   KUNNR IN X_KUNNR
                              AND   FKART IN X_FKART
                              AND   LLAND IN X_LLAND
                              AND   VBELN IN X_VBELN
                              AND   SORTKRI IN X_SORTK
          > ins               and   zzvkbur in vkbur
          > ins               and   zzvkgrp in vkgrp  .
    I hope this information can be of some help.
    Regards,
    Murali

  • Quotation is appearing in Billing due list: VF04

    Dear gurus,
    I am facing an issue with VF04. I am using a scrap process: Quotation --> Order --> Invoice. Now when I am using VF04 for Order related billing, Quotations are appearing in billing due list which should not be. Please guide me how can I resolve this issue.
    Awaiting your feedback.
    Regards.

    Hi
    In the standard system the item category AGN is NOT relevant for billing.
    You can check in your client 000 to confirm it it delivered with no billing
    relevance in VOV7.
    If it was set to billing rel 'B' when the quotation was created then that document
    will have a billing relevance (VBAP-FKREL = 'B') in this case changing the
    billing relevance in VOV7 will not correct that document in retrospect. 
    When the VBAP-FKREL is filled then a billing index will be generated for
    the line. You can check this in table VKDFS. When you have an entry in
    table VKDFS the document will automatically appear in VF04.
    You have to
    1) correct the customising TVAP-FKREL = ' '.
    2) Adapt the billing relevance in existing documents to current customizing
        See report ZZFKREL0 from note 127514.
    3) Run RVV05IVB to remove the unwanted VKDFS entries
    Hope thisw helps you further
    All the best
    Brian

  • VF04 issue

    Dear SD Experts
    I need some help reg. deliveries appearng in VF04
    Delivery documents which are appearing has below details
    " in item category -> billing relevance is 'D' ( relevant for PRO FORMA)
    in VBUK table these deliveries has billing status FKSTK as 'BLANK' ( not relevant)
    these deliveris exists in table ' VKDFS'
    Now business requirement is that they donot want to create PRO FORMA invoices for these deliveries and these should be removed from VF04 also
    Please let me know how in SAP we can achieve above
    Thanks
    Tarunveer

    In VBUK, total goods movement status is 'C'. Now actually business creates PROFORMA invoices sometimes when required. Hence I cannot change relevance to BLANK in item category
    Now problem here is that where business not want to create PROFORMA invoices, we donot need to show them in VF04
    I think values coming in VF04 is as per SAP logic
    Now we need to restrict the entries in VF04. Is there a way possible by means of enhacement something in VF04 or else so that where business not create proforma those entries not shown in VF04
    Kindlt support
    Tarunveer
    Have you checked this in your system??
    An item category which is having Billing relevance as D--will not be visible in VF04 or in VKDFS table--please check properly again.Here Goods movement status will not make much difference.
    Please update...
    Phanikumar

  • Problem in updating Billing plan while changing Sales order

    Hi All,
            I am using the BAPI 'BAPI_SALESORDER_CHANGE' to change a Prepaid Sale order.After calling this BAPI ,I am calling the function module <b>'BILLING_SCHEDULE_SAVE'</b> to update the Billing plan of the changed Sale order(Billing plan dates for Billing type ZF1 are changed).
         The updated date values are getting reflected in the screen when I view through the transaction VA02 and the values are also updated in FPLT table but the values are not getting reflected in the table VKDFS.
       Since the values are not getting reflectedin the table VKDFS the billing date is not correct while we view in the transaction VF04.
       Please provide your valuable suggestions for updating the Billing date in VKDFS table.
        Thanks in advance for your help.
    Thanks and regards,
    Siva

    Hi,
    I had the same problem. Here is an example code to resolve it:
    REPORT  ytestfg.
    DATA: i_bsid LIKE bsid OCCURS 0,
          i_bsid2 LIKE bsid OCCURS 0.
    TABLES: bsid.
    DATA: doc     LIKE     vbak-vbeln,
          pos(6) TYPE n.
    DATA e_fpla     LIKE     fpla.
    DATA e_fplt     LIKE     fpltvb OCCURS 0 .
    DATA: zfpla     LIKE     fplavb OCCURS 0,
    zfplt     LIKE     fpltvb OCCURS 0.
    DATA zfplt2     LIKE     fpltvb OCCURS 0 WITH HEADER LINE.
    doc = 'G03060619'.
    pos = '000010'.
    CALL FUNCTION 'SD_SALES_DOCUMENT_READ'
      EXPORTING
        document_number = doc.
    CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'
      EXPORTING
        i_vbeln                = doc
        i_posnr                = pos
      IMPORTING
        e_fpla                 = e_fpla
      TABLES
        e_fplt                 = e_fplt
      EXCEPTIONS
        no_billingplan_allowed = 1
        no_billingplan_found   = 2
        OTHERS                 = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Read the billing plan
    CALL FUNCTION 'BILLING_SCHEDULE_READ'
      EXPORTING
        fplnr          = e_fpla-fplnr
      I_VFKDAT       =
      I_BFKDAT       =
      TABLES
       zfpla          = zfpla
        zfplt          = zfplt
    Upddate the ZFPLT2 table with the new values
    MOVE zfplt[] TO zfplt2[].
    READ TABLE zfplt2 INDEX 1.
    zfplt2-afdat = '20080927'.
    Very important to set field updkz = 'U' ***
    zfplt2-updkz = 'U'. "--> UPDATE!!
    MODIFY zfplt2 INDEX 1.
    CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
      TABLES
        fpla_new = zfpla
        fpla_old = zfpla
        fplt_new = zfplt2 " --> NEW
        fplt_old = zfplt.
    CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Regards,
    Edited by: PHO_BA on Mar 9, 2009 5:28 PM

  • Error in VF04

    Hi,
    When i run VF04 it shows deliveries due to be billed. However when you look into the delivery, it has been deleted. My question is: Why are they showing on the billing due list if they have been deleted and how can you resolve this to come off the report?
    Regards,
    Rahul

    Dear Mr Rahul Dev,
    Deliveries due to billing are available as part of the table VKDFS.
    Could you kindly verify the existence of these entries.
    If so, they can be cleared.
    Regards,
    K Gopidas.

Maybe you are looking for