Automatic creation of billing document

Hi all,
i want to automate creation of billing document for all the deliveries for which PGI done.
i think we have to define a job which will call VF04.
my question is when we do VF04 manually, we have to give selection criteria like sales org etc and then it displays the list of all the deliveries and then we have to select the deliveries manually and press collective billing/individual billing.
so when the batch job calls the VF04, how will the batch job tells VF04 to select all deliveries and generate the invoices.
regards
sachin

Hi Sonu,
Go to VF04 and provide the inputs in the selection screen. Now save this as a variant.say ZZ_INV_DUELIST
After saving the variant, find the program name of the tcode VF04. This can be found by going to System----Status in the menu. The resultant screen will have the program of the tcode VF04. Lets say it is BILLDUELIST
Now go to SM36. Give some name for hte job name and click Step button
Here you have to give the program name(BILLDUELIST) and the variant name(ZZ_INV_DUELIST). Here you can also configure whether the job should run immediately or in some schedules.
Once this is done, you can create a delivery and then run this program in SM37. Now you can see the log of this program. It will tell you that the invoice is created
Hope this helps

Similar Messages

  • Backgorund job for automatic creation of billing document

    Dear All
    Could you advise me on how to set up a bacground job for automatic creation of billing document?
    Thanks and regards,
    Sylwia

    In standard, you cannot generate automatic billing but you can set date and time so that you can generate invoices at the specified time in bulk.  The TCode to achieve this is VF06.
    thanks
    G. Lakshmipathi

  • Bacground job for automatic creation of billing document

    Dear All
    Could you advise me on how to set up a bacground job for automatic creation of billing document?
    Thanks and regards,
    Sylwia
    Edited by: S. KOWALSKA on Jan 12, 2009 10:12 AM

    Dear Sylwia
    Please dont post the same question in multiple threads.  You are receiving feedback in the other forum.  Check this link
    [Backgorund job for automatic creation of billing document   |Backgorund job for automatic creation of billing document;
    thanks
    G. Lakshmipathi

  • Automatic creation of billing documents

    Hi all,
    i want to automate creation of billing document for all the deliveries for which PGI done.
    i think we have to define a job which will call VF04.
    my question is when we do VF04 manually, we have to give selection criteria like sales org etc and then it displays the list of all the deliveries and then we have to select the deliveries and press collective billing/individual billing.
    so when the batch job calls the VF04, how all the deliveries are selected and the selection criteria taken into account by the batch job,
    regards
    sachin

    hi,
    thanks for the reply.
    my mian question was when the batch job calls the VF04 and the slection criteria is filled using variants, then the list of deliveries is called up by VF04. my question is how will the batch job select all the deliveries for invoice creation beause whn we run the VF04 witout bathc jb ,we need to select the deliveries for billing (either collective or individual)
    reards
    sachin

  • Automatic creation of billing from VF04

    Hi all,
    i want to automate creation of billing document for all the deliveries for which PGI done.
    i think we have to define a job which will call VF04.
    my question is when we do VF04 manually, we have to give selection criteria like sales org etc and then it displays the list of all the deliveries and then we have to select the deliveries manually and press collective billing/individual billing.
    so when the batch job calls the VF04, how will the batch job tells VF04 to select all deliveries and generate the invoices.
    regards
    sachin

    Hi there,
    When you schedule a job, there is something called variants that you maintain for each prog in the job. The variants wiol take care of all the entries that we manually do in VF04. In the variants you will mention the shipping points, sales org, dates etc.
    In SM37,search the relevant job, select the job & click on steps. It will display the progs of the job. Next to the progs you will find the variants. Select the prog in the step & display variants. It will display the variants will all the selection options.
    Regards,
    Sivanand

  • Configure the automatic creation of accounting document while billing

    Hi,
    Could you telme where to find the customization where you configure such that
    triggering of automatic creation of accounting document takes place during billing itself.
    Regards
    anil.

    Hi Anil,
    In VOFA Document type in General contrlo is related to Accounting Document.If it is blank the system Automatically pics RV as accounting Document.
    If posting Block is Ticked then Automatic posting will not happens.
    You need to pass to Accounting in VF02 and release for accounting(Green Flag)
    Regards,
    Reddyy

  • Block cancellation/creation of billing document on CLOSED posting period

    Hi Experts,
    Currently, user is allowed to cancel/create backdated billing document where period already closed, but it does not release to accounting automatically, due to the period has been closed.
    When account user found out that the accounting document is missing for the billing document, they have to re-open the period and manual release it to accounting, in order to generate the accounting document.
    Therefore, we need the billing document to be blocked for cancellation/creation on CLOSED posting period.
      Is there any settings in stardard SAP to block cancellation/creation of billing document on CLOSED posting period?
    would appreciate your inputs.
    Thanks and Regards,
    N.C.Reddy

    Hi ,
    We have blocked cancellation/ creation of billing document through below  user exit. Below is the progran code also.
    ***INCLUDE RV60AFZC.
    FORM USEREXIT_NUMBER_RANGE_INV_DATE USING US_RANGE_INTERN.
    Example: Number range from TVFK like in standard
    US_RANGE_INTERN = TVFK-NUMKI.
    *{   INSERT         KPDK904773                                        1
    *Block creation or cancellation of billing doc in closed period
    DATA : gv_gjahr TYPE bkpf-gjahr,
           gv_monat TYPE bkpf-monat,
           gv_poper TYPE t009b-poper,
           gv_bukrs TYPE t001-bukrs,
           lv_gjahr TYPE t001b-frye1,
           lv_monat TYPE t001b-frpe1,
           gv_oper  TYPE t001b-frpe1.
      CLEAR : gv_gjahr, gv_monat, gv_poper, gv_bukrs.
      gv_bukrs = vbrk-bukrs.
    IF NOT likp-wadat_ist IS INITIAL.
    *- First determine the Period of the Actual GI date.
      CALL FUNCTION 'FI_PERIOD_DETERMINE'
        EXPORTING
          i_budat              = likp-wadat_ist
          i_bukrs              = gv_bukrs
       IMPORTING
         E_GJAHR              = gv_gjahr
         E_MONAT              = gv_monat
         E_POPER              = gv_poper
       EXCEPTIONS
         FISCAL_YEAR          = 1
         PERIOD               = 2
         PERIOD_VERSION       = 3
         POSTING_PERIOD       = 4
         SPECIAL_PERIOD       = 5
         VERSION              = 6
         POSTING_DATE         = 7
         OTHERS               = 8.
          IF sy-subrc <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            CLEAR : lv_gjahr, lv_monat.
            lv_gjahr = gv_gjahr.
            lv_monat = gv_monat.
    *- Once period is determine check whether Period is open or not for 'D' - Customer Account
            CALL FUNCTION 'FI_PERIOD_CHECK'
              EXPORTING
                I_BUKRS                = gv_bukrs
                i_gjahr                = lv_gjahr
                i_koart                = 'D'
                i_monat                = lv_monat
             IMPORTING
               E_OPER                 = gv_oper
             EXCEPTIONS
               ERROR_PERIOD           = 1
               ERROR_PERIOD_ACC       = 2
               INVALID_INPUT          = 3
               OTHERS                 = 4.
              IF sy-subrc <> 0.
               MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ELSE.
    *- Once period is determine check whether Period is open or not for 'S' - All G/L Accounts
                CALL FUNCTION 'FI_PERIOD_CHECK'
                EXPORTING
                  I_BUKRS                = gv_bukrs
                  i_gjahr                = lv_gjahr
                  i_koart                = 'S'
                  i_monat                = lv_monat
               IMPORTING
                 E_OPER                 = gv_oper
               EXCEPTIONS
                 ERROR_PERIOD           = 1
                 ERROR_PERIOD_ACC       = 2
                 INVALID_INPUT          = 3
                 OTHERS                 = 4.
                IF sy-subrc <> 0.
                  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
               ENDIF.
             ENDIF.
         ENDIF.
    ENDIF.
    *- Check Billing Date period is closed or not
    IF kom-fkdat is not initial.
      clear : gv_gjahr, gv_monat, gv_poper.
    *- First determine the Period of the Actual GI date.
      CALL FUNCTION 'FI_PERIOD_DETERMINE'
        EXPORTING
          i_budat              = kom-fkdat
          i_bukrs              = gv_bukrs
       IMPORTING
         E_GJAHR              = gv_gjahr
         E_MONAT              = gv_monat
         E_POPER              = gv_poper
       EXCEPTIONS
         FISCAL_YEAR          = 1
         PERIOD               = 2
         PERIOD_VERSION       = 3
         POSTING_PERIOD       = 4
         SPECIAL_PERIOD       = 5
         VERSION              = 6
         POSTING_DATE         = 7
         OTHERS               = 8.
          IF sy-subrc <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            CLEAR : lv_gjahr, lv_monat.
            lv_gjahr = gv_gjahr.
            lv_monat = gv_monat.
    *- Once period is determine check whether Period is open or not for 'D' - Customer Account
            CALL FUNCTION 'FI_PERIOD_CHECK'
              EXPORTING
                I_BUKRS                = gv_bukrs
                i_gjahr                = lv_gjahr
                i_koart                = 'D'
                i_monat                = lv_monat
             IMPORTING
               E_OPER                 = gv_oper
             EXCEPTIONS
               ERROR_PERIOD           = 1
               ERROR_PERIOD_ACC       = 2
               INVALID_INPUT          = 3
               OTHERS                 = 4.
              IF sy-subrc <> 0.
               MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ELSE.
    *- Once period is determine check whether Period is open or not for 'S' - All G/L Accounts
                CALL FUNCTION 'FI_PERIOD_CHECK'
                EXPORTING
                  I_BUKRS                = gv_bukrs
                  i_gjahr                = lv_gjahr
                  i_koart                = 'S'
                  i_monat                = lv_monat
               IMPORTING
                 E_OPER                 = gv_oper
               EXCEPTIONS
                 ERROR_PERIOD           = 1
                 ERROR_PERIOD_ACC       = 2
                 INVALID_INPUT          = 3
                 OTHERS                 = 4.
                IF sy-subrc <> 0.
                  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
               ELSE.
                IF kom-fkdat4(2) <> likp-wadat_ist4(2).
                ENDIF.
               ENDIF.
             ENDIF.
         ENDIF.
    ENDIF.
    *}   INSERT
    ENDFORM.
          FORM USEREXIT_FILL_VBRK_VBRP                                  *
          This userexit can be used to fill fields in VBRK and VBRP     *
          Be aware, that at this time the work areas KUAGV KURGV        *
          KUWEV and KUREV are not filled.                               *
          This form is called from FORM VBRK_VBRP_FUELLEN.              *
    FORM USEREXIT_FILL_VBRK_VBRP.
    Example: change Tax country
    VBRK-LANDTX = T001-LAND1.
    ENDFORM.
    *eject

  • How identify closed accounting period to restrict creation of billing document in sap

    Hi Experts,
    I have a requirement to identify the  closed  periods in sap based on this we need to restrict the creation of billing document .
    Actually we are working for  Brazil  client, there we have notafiscal   which created along with billing document.we are maintaining  periods monthly basis.
    When the periods are closed  accounting document not created and billing document is created  this is working fine . But over scenario along with billing document notafiscal number is also created which  is causing the problem. This notafiscal should not be created without a accounting  document.
    so my client wants to restrict creation of billing document also when these monthly periods are closed.
    Please suggest me a solution.
    Regards
    Ravi

    Helllo Ravinder,
    To check if a period is closed using the FM FI_PERIOD_CHECK.
    First calculate the period of the FI document date.
    DATA: GJAHR LIKE BKPF-GJAHR,
           MONAT LIKE BKPF-MONAT,
           POPER LIKE T009B-POPER.
    CALL FUNCTION 'FI_PERIOD_DETERMINE'
           EXPORTING
                I_BUDAT        = I_BUDAT
                I_BUKRS        = I_BUKRS
    *          I_PERIV        = ' '
    *          I_GJAHR        = 0000
    *          I_MONAT        = 00
    *          X_XMO16        = ' '
           IMPORTING
                E_GJAHR        = GJAHR
                E_MONAT        = MONAT
    *          e_poper        = poper
           EXCEPTIONS
                FISCAL_YEAR    = 1
                PERIOD         = 2
                PERIOD_VERSION = 3
                POSTING_PERIOD = 4
                SPECIAL_PERIOD = 5
                VERSION        = 6
                POSTING_DATE   = 7
                OTHERS         = 8.
    IF SY-SUBRC = 0.
    MOVE MONAT TO POPER.
            CALL FUNCTION 'FI_PERIOD_CHECK'
                 EXPORTING
                      I_BUKRS          =  I_BUKRS
    *                I_OPVAR          = ' '
                      I_GJAHR          =  I_GJAHR
                      I_KOART          = '+'
    *                i_konto          =
                      I_MONAT          = POPER
                 EXCEPTIONS
                      ERROR_PERIOD     = 1
                      ERROR_PERIOD_ACC = 2
                      OTHERS           = 3.
    ENDIF.
    Tutorial ABAP How to check that posting date belongs to closed period - ABAP Development - SCN Wiki
    I hope you help.

  • Automatic clearing of billing document error

    Hi All,
    When user try to cancel/reverse the billing document following error occurred.
    "no accounting document created". but when user try to release to accounting in VF02. it gives following message.
    "Automatic Clearing of Billing document 900000034 and cancel document 1000000070 not possible."
    Message no.VF208
    Diagnosis
    The system cannot clear billing documents and cancellation documents beacuse, for example individual item updating is deactivated.
    System Response.
    The Billing Document can be created.
    Precedure
    The FI Documents are cleared manually.
    Please help me
    Thanks
    Sap Guru

    Dear Friend,
    IMG - SD - Billing - Define Billing Types.
    Go to your BIlling Document Definition (T-Code - VOFA) & remove the Tick mark (Check) In POsting BLock Check box.
    This check box is located in General Control.
    Hope this helps...
    Reward if useful...
    Thanks,
    Jignesh Mehta
    98700 10230

  • Custom Automatic Release for Billing Documents

    Dear SAP Experts,
    I have a requirement to make an automatic release after billing document has been created under our custom condition. I could not remove POSTING BLOCK option in VOFA since only some conditions could make these billing documents will automatically released.
    Through the following thread (http://forums.sdn.sap.com/thread.jspa?threadID=2018810) says that it is posible to create the billing document and change manually the option to "automatic released" in the header but I still could not find how to do that.
    Could you please advice me, is there any user exit that is possible to put our condition and make auto release of billing document? or at least how to create billing document manually via VF01 and change the option not to block payment?
    Thanks.
    Regards,
    Charlie

    Hi JP,
    As I mention before, only in certain condtion the billing doc will automatically released so it is not always automatically released, that is why I could not turn-off POSTING BLOCK indicator in VOFA.
    I finally found exit (USEREXIT_PRICING_PREPARE_TKOMK) that I could use to change the billing doc indicator for automatically released although it is not satisfied me 100% since this exit has been run twice (before and after save) and one of my auto release is to compare the net value in the header (before save, net value in header is still 0).
    Thanks all.
    Regards, Charlie

  • Excise Invoice creation error -Billing document does not exists

    Dear Experts,
    I have created supplementary sales order, billing with refernece through sales order by VF01.
    Now I want to create Excise Invoice but system gives error Billing Document does not exists
    I have checked billing document in VBRK table & it is showing in table.
    My item categroy is L2N -and set it to C
    I have assigned Billing type under Outgoing excise invoice ->Assign billing type to delivery type still my excise invoice is not generating.
    Pl. guide me.
    Thanks
    Trupti

    Resolved my problem.
    Actually in Billing item categroy if you put SD Doc. Catg. as M you can do excise invoice even if you have not created the
    outbound delivery.
    So cycle will be Supplementary Sales Order->VF01 with ref. to SO->J1IIN -Excise invoice creation.
    Thanks to all.
    Trupti.

  • Error during creation of Billing Document

    Dear All,
    we are getting an error while creatin billing document . The error message is as follows.
    1.0154000188 000010 Order item 0139000078 000010 is missing .
    Here my delivery number is 0154000188 .
    my order no is  0139000078.
    when i go technical data section it gives message no 029.
    i have already seen the copy control it works fine.
    kindly reply soon.
    Regards,
    Ajinkya.

    hi,
    once your order is created and also delivery, there is no problem in the data of the material.
    the only possibility is that you must have skipped the post goods issue step or if PGI is mandatory for delivery creation then there must not be appropriate stock for that item.
    you can check the stock of that particular material in the specific plant by t.code MMBE.
    regards,
    Siddharth.

  • Automatic Email of Billing document output to customer

    Dear All,
    We have following requirement @ our client. You valuable inputs will be very helpfull.
    Currently output (RD00) are taken via printout and later scanned and sent to customer.
    Now client wants following requirement , where in once the billing documents are generated, output  should be sent to customer automatically via EMAIL (mentioned in the customer master : contact person).
    I kindly request you to help me with steps required to configure this scenario in SAP.
    Thank you
    Chaithru.

    Hi
    For the output type RD00, Maintain the medium SIMPLE MAIL
    then maintain condition record for output in VV31
    Speciefy medium as 7 and in communication method mention email id to whom u want to send
    As soon as you save billing document system will send the email to party.
    Kapil

  • Automatic creation of WCD document

    Dear Experts,
    I am facing the below mentioned issue.
    While creating WCM objects in Maintenance Order, We can create it automatically if we choose tab shown in print screen.
    I am getting an option for Work Approval & Application But I am not getting an option of auto creation for WCD document.
    Did I miss any config?
    Thanks.

    Hello
    Please refer the below thread publish by Bhanu .P
    http://scn.sap.com/docs/DOC-46197
    Br
    Rakesh

  • 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

Maybe you are looking for

  • Multiple xsd's for one xml file

    Hi Experts, My scenario is HTTP to IDoc. My client is sending me XML file as input. I have got 4 XSD's from that XML file. I imported them into PI with giving references by using new importing method with refenences. I have got 4 XSD's imported succe

  • LIGHTNING ADAPTER has fused to the USB port that is factory installed in my car.

    LIGHTNING ADAPTER has fused to the USB port that is factory installed in my car.  It will not release from the port and the port is no longer working as a result of my efforts to retrieve the USB cord.  I have been an iPhone owner since the first rel

  • Error while running hz_cust_account_site_v2pub.update_cust_site_use

    Hi All, I am getting below error while trying to update the location on the customer sites. "This record in table hz_cust_site_uses cannot be locked as it has been updated by another user." i am using below script for update "/* Formatted on 2013/01/

  • Can we create a view involving a standard table and a ZTable ?

    Hi, I created a view based on 2 tables : EKKO and a Ztable having EBELN field in common. Now, when i try to create a PO in ME21N , this view should get updated.But,It doesn't happen so. So i want to confirm that is it not possible to create a view on

  • Installing Windows 7 through bootcamp with new iMac

    I was able to get to the partition and the Windows 7 installer.  Once the installation process began, it immediately asked me for drivers.  I browsed the usb drive that bootcamp created but could not find anything to keep the installation process pro