Create Billing document automatically from the outbound delivery

Hi experts,
I'm not sure my client's requirement can be implemented but i'm posting this thread just in case someone have a suitable solution.
My client wloud like that billing documents (VF01) are created automatically when the outbound document (VL01N) is saved. He doesn't wont to perform an additional action, so the the custom transaction solution doesn't satisfy his requirement
Is there any solution to do this? (User Exit or Customizing)
Thanks

Hi,
One idea. You can do it with the userexit USEREXIT_SAVE_DOCUMENT in report MV50AFZ1. Here, you have the number of delivery. I suggest you to call a BAPI with a job created with the sequence of functions JOB_OPEN', 'GET_PRINT_PARAMETERS'
, 'RS_CREATE_VARIANT', 'JOB_SUBMIT'. 'JOB_CLOSE' with a gap of time (eg: 2 or 3 minutes). You can call a function IN UPDATE TASK in this function. (read Note 415716 - User exits in delivery processing), and in the coding of this function you can create the job and call a report with the BAPI (for instance, BAPI_BILLINGDOC_CREATEMULTIPLE). After, you can control the creation of invoices with tcode SM37.
I hope this helps you
Regards
Eduardo
PD: I forgot it. Control in which event you call the BAPI via job. I suggest you when you create the movement 601. You can do it with this coding:
    IF xvbuk-wbstk NE yvbuk-wbstk
    AND xvbuk-wbstk = 'C'.
       "code
    ENDIF.
Edited by: E_Hinojosa on Jan 21, 2011 9:15 AM

Similar Messages

  • Creating a document automatically from several ai-files?

    Hi,
    Does anyone know whether it's possible to create a document based on the content on folders?
    We regularely create indesign-documents 40-80 pages long, where our designers has to place every single Illustrator-file. Would it be possible to automate that? Perhaps by using a script?
    Lets say we have a folder called SALES. In that folder we have several sub-folders (called 1 ProductA, 2 ProductB, 3 ProductC etc.) containing one or more Illustrator-files. I would like to be able to open InDesign, start a script or an action, select the "SALES"-folder and then end up with a PDF.
    Thanks in advance
    Thomas

    You would have to choose File > Save As > Adobe PDF (.pdf) in Illustrator in order to be able to combine the files in Acrobat Pro. It has no way to open Illustrator (.ai) files, whether they're saved with PDF compatibility or not.
    The PDF compatibility works when you're PLACING a PDF file in a program like InDesign, but not when an application needs to work with the "guts" of the file as Acrobat would do.
    Similarly, when you combine Word files in Acrobat Pro, it has to have access to Microsoft Word during the combination process. It doesn't read the Word file itself.

  • Opening a pdf document automatically from the program

    Hi guys,
    I wonder if it's possible to 'run'/open from a standalone appliation a pdf document. I mean, my program produces a pdf file and it saves it on the local c drive. once this is completed i wonder how can i open it and show it to the enduser. (I want to save the time and hassle of locating it and double clicking the document)
    thanks
    peter

    Let me elaborate a little more on what I am trying to do.
    (1) A website (#1) is opened after entering a UID and PWD.
    (2) Within website #1, a link is clicked which opens a second web app (#2) in a seperate window using window.open().
    (3) Within website #2, a user can click on a link which opens a PDF as _SELF.
    (4) If the user:
         (a) exits out of website #1 by closing the brower
         (b) we would like to automatically close the PDF from website #2 also, as this contains sensitive information and most of the time the users are forgetting to close it

  • Was told a USB device would create a PDF automatically from the data contained within when plugged into my USB port. Doesn't seem to work. How does this work and how can I fix the device I received?

    Acrobat is not on the USB device - only Adobe Reader needed on the PC. How does this work? How can I fix this device if at all?

    You need to ask the people who sold it to you. Doesn't sound like it has anything to do with Reader.
    However, you should be wary of devices that automatically try to open files when plugged in. They can also infect your computers with all kinds of viruses or malware.

  • Create Billing Document from Sales Order (Without Delivery)

    Dear Experts,
    Pls note, presently we are creating Billing Document (VF01) from Outbound Delivery Number after Post Good Issue. All sales Document like Billing Document, Output Type, Invoice Type has been configured for this process and we are doing this without any error. Fyki, we have configured lots of Z Order, Billing & Delivery type to do this processes.
    But for one of this order type we need not do any delivery. We want to create Billing Documents from sales order directly (without doing any Outbound Delivery).
    So, would u pls advise the steps how can we configure and assign Order Type, Billing Type or any other type  to meet above requirement.
    Thanks in advance.
    Best Regards.
    Ripon

    Hi
    There are two most important configuration:-
    1) In VOV8 for your Order Type maintain the Order Related Billing Document
    2) Maintain the Copy control setting in VTFA betwwen your Order Type and billing Type.
    Also note that if your line item is not require to be delivered then for your Item category maintain (in VOV7) not relevant for delivery and not relevant for scedule line.
    Regards
    Amitesh Anand
    Edited by: Amitesh Anand on May 24, 2010 5:09 PM

  • Create Billing Document Error

    Dear Experts,
    When i am creating billing documents VF01 with reference of delivery dcument number its getting error that is: No Billing Documents were generated. When i saw log error it's telling  Delivery type Zxvz cannot be invoiced with billing type Zxy2. Could you please suggest me where i did worng.
    Thanks in Advance!
    Anjali

    Hi
    Goto VTFL t.code and check that the corresponding to Billing type is assigned to the Delivery type or not.
    Thanks,
    Laxman Aadimulam

  • Hi , I am not able to create billing document from the delivery document .

    Hi,
    I am facing one problem i am trying to create billing document from delivery document but it is giving error " Payer" and Sold to party not found ".
    in my Delivery Document field partner tab is showing only ship to party it should show payer and sold to party also .
    Although it is maintained in customer AG.
    can any one help in this ????
    thanks !!!!!!!!!!

    Hi Payal,
    1.u check whether u have maintained[entering actual number] payer and bill to party in sales order[ which is copied from customer master].
    2.and check partner determination procedure for delivery document.
    more important is u wouldnot have maintained partner determination procedure for delivery header.[spro->sales and distribution->basic function->partner determination->partner determination for delivery]
    Regards
    Sharad

  • Billing document cancellation (VF11) the cancelled doc. is not getting automatically cleared against the actual billing doc.

    Hi All,
    In case of billing document cancellation (VF11) the cancelled doc. is not getting automatically cleared against the actual billing doc. no. Each time user has to clear the doc. manually. We have observed this issue after recent patch updation dated 22nd Feb’2014. Till 21st Feb’2014 the cancelled doc. has been cleared automatically against their respective billing documents.
    Please guide.
    Thank you.

    Hi Gopi,
    Please chheck SAP Note No. 1259505. It explains two ways in which SAP releases cancellation documents to FI.
    OSS NOte 1259505 lists the possible causes from SD side &
    OSS Note 309208 lists the possible causes from FI side.
    Regards,
    Kavita

  • Create billing document from IDOC INVOIC01

    Hi Experts,
    I created a function module to extend IDOC_INPUT_INVOIC_MRM. After created successfully the invoice from this inbound idoc, I tried to create a billing document by code below:
    get sale order number from purchase order *****************************
        CALL FUNCTION 'BAPI_PO_GETDETAIL'
          EXPORTING
            PURCHASEORDER                    = lw_tfrseg-ebeln
            ACCOUNT_ASSIGNMENT               = 'X'
         TABLES
            PO_ITEM_ACCOUNT_ASSIGNMENT       = lt_acc_***
    ****get sale order details*******************************************************
         CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
          EXPORTING
            I_BAPI_VIEW                   = lw_order_view
          I_MEMORY_READ                 =
          TABLES
            SALES_DOCUMENTS               = lt_sales_key
            ORDER_HEADERS_OUT             = lt_ord_headers
            ORDER_ITEMS_OUT               = lt_ord_items
            ORDER_SCHEDULES_OUT           = lt_ord_schedules
            ORDER_BUSINESS_OUT            = lt_ord_business
            ORDER_PARTNERS_OUT            = lt_ord_partners
            ORDER_ADDRESS_OUT             = lt_ord_address
          ORDER_STATUSHEADERS_OUT       =
          ORDER_STATUSITEMS_OUT         =
            ORDER_CONDITIONS_OUT          = lt_ord_cond
    ****Fill billing data in*******************************************************
               lt_bill_data-SALESORG = lt_ord_headers-sales_org.
             lt_bill_data-DISTR_CHAN = lt_ord_headers-DISTR_CHAN.
             lt_bill_data-DIVISION   = lt_ord_headers-DIVISION.
             lt_bill_data-DOC_TYPE   = lt_ord_headers-DOC_TYPE.
             lt_bill_data-ORDBILLTYP    = lt_ord_headers-ORDBILLTYP.
             lt_bill_data-BILL_DATE    = lt_ord_business-bill_date.
             lt_bill_data-SOLD_TO    = lt_ord_headers-SOLD_TO.
             lt_bill_data-ITEM_CATEG    = lt_ord_items-ITEM_CATEG.
             lt_bill_data-ACCTASGNMT    = lt_ord_business-ACCNT_ASGN.
             lt_bill_data-PRICE_DATE    = lt_ord_business-PRICE_DATE.
             lt_bill_data-COUNTRY    = 'US'.
             lt_bill_data-PLANT    = lt_ord_items-PLANT.
             lt_bill_data-BILL_TO    = lw_partner_bp-customer.
             lt_bill_data-PAYER    = lw_partner_py-customer.
             lt_bill_data-SHIP_TO    = lw_partner_sh-customer.
            REF_DOC    = lt_sales_orders-DIVISION.
             lt_bill_data-MATERIAL    = lt_ord_items-material.
             lt_bill_data-REQ_QTY    = lt_ord_items-req_qty.
             lt_bill_data-CURRENCY    = lt_ord_items-currency.
             lt_bill_data-SHORT_TEXT    = lt_ord_items-short_text.
             lt_bill_data-TAXCL_1MAT    = lt_ord_items-TAX_CLASS1.
            REF_ITEM    = lt_sales_orders-DIVISION.
            STAT_GROUP    = lt_sales_orders-DIVISION.
             lt_bill_data-NO_MATMAST    = 'X'.
             lt_bill_data-ADDR_NO    = lt_ord_address-ADDRESS.
            lt_bill_data-TITLE    = lt_ord_address-DIVISION.
             lt_bill_data-NAME    = lt_ord_address-NAME  .
             lt_bill_data-NAME_2    = lt_ord_address-NAME_2.
             lt_bill_data-POSTL_CODE    = lt_ord_address-POSTL_CODE.
             lt_bill_data-CONSUMCTRY    = lt_ord_address-COUNTRY.
             lt_bill_data-CITY    = lt_ord_address-CITY.
             lt_bill_data-DISTRICT    = lt_ord_address-DISTRICT.
             lt_bill_data-STREET    = lt_ord_address-STREET.
             lt_bill_data-REGION    = lt_ord_address-REGION.
             lt_bill_data-PROD_HIER    = lt_ord_items-PROD_HIER.
             lt_bill_data-SALES_UNIT    = lt_ord_items-SALES_UNIT.
             lt_bill_data-PROFIT_CTR    = lt_ord_items-PROFIT_CTR.
            TAXJURCODE    = lt_sales_orders-DIVISION.
             lt_bill_data-PURCH_ORD    = lt_ord_headers-PURCH_NO.
             lt_bill_data-DOC_NUMBER    = lt_ord_items-DOC_NUMBER.
             lt_bill_data-ITM_NUMBER    = lt_ord_items-ITM_NUMBER.
            ORIGINDOC    = lt_sales_orders-DIVISION.
            lt_bill_data-ITEM    = lt_sales_orders-DIVISION.
             lt_bill_data-CREATED_BY   = sy-uname.
            MATERIAL_EXTERNAL = lt_sales_orders-DIVISION.
            MATERIAL_GUID = lt_sales_orders-DIVISION.
            MATERIAL_VERSION = lt_sales_orders-DIVISION.
             lt_bill_data-INCOTERMS1  = lt_ord_business-INCOTERMS1.
             lt_bill_data-INCOTERMS2  = lt_ord_business-INCOTERMS2.
             lt_bill_data-EXCHANGE_RATE = lt_ord_business-EXCHG_RATE.
             lt_bill_data-PAYMENT_TERMS  = lt_ord_business-PMNTTRMS.
             lt_bill_data-HG_LV_ITEM   = lt_ord_items-HG_LV_ITEM .
    ******call bapi function to create billing document********************
      CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
       EXPORTING
         CREATORDATAIN         = lw_creator
         TESTRUN               = lc_testrun
         POSTING               = lc_posting
        TABLES
          BILLINGDATAIN         = lt_bill_data
        CONDITIONDATAIN       =
        CCARDDATAIN           =
        TEXTDATAIN            =
          ERRORS                = lt_bill_errs
          RETURN                = lt_bill_retu
          SUCCESS               = lt_bill_succ
    A return message in the table lt_bill_retu:
    "This item is not relevant for billing!"
    Anyone can tell me why? I think this problem be generated from the step "fill billing data" but I don't know where.
    Pls help me!!!
    Thanks,
    Gy

    Hi,
    In the condition data, I want to add new condition type as below:
    <<  Add new condition type
        CLEAR: lt_cond_data.
        lt_cond_data-COND_TYPE = 'ZHD0'.
        lt_cond_data-COND_VALUE = mrm_ship_charge-summe.  " amount of shipping charge
        lt_cond_data-COND_CURR = mrm_ship_charge-waerq. " USD
        append lt_cond_data.
    *>>
    But I created successfully billing document, this condition type is not appear in the billing view by transaction VF03.
    Could you help me to find out the fault?
    Thanks,
    Gy

  • Cannot create billing document from sales document

    Hi,
    i am trying to create billing document from the created sales document.
    But the billing document is not generated. I was getting  the error - ' Document is blocked from billing'.
    SO, i changed the billing block and left it blank, and when  I tried to create the document again, I got another error " Create billing document" not allowed (uSER STATUS   ST01, Object VB006000071200000).
    Please help me out,

    Dear Priyam,
    Attached are the screen shots, go through them.
    I believe you need to change the status in the Sales order status(Object status).
    click on Object status
    Regards
    Shaik

  • Create different billing document types from same sales order type

    Hello,
    Please take a common document flow, just  like this one:
    - Sales Order (type ZE01 )
    - Outbound Delivery
    - Billing Document ( ZA or ZB )
    The billing document is based on the outbound delivery. Here is the requirement that we need to implement:
    - We need to determine different billing document types ( ZA or ZB ) according to a custom determination, based on a Z table. In some cases the billing document will be type ZA, in other cases it will be type ZB. I've been told that I can achieve this  via copy control , but some extra help would be welcome.
    Any clues?
    Regards,
    Joã

    Hi João G Neves ,
    Were you able to achieve this requirement using a  user exit? if so could you let me know the name of the user exit? Basically in our current project a sales order can be billied using 6 different billing document types. The copy controls between the sales  document and billing document is been set up for all the 6different billing doc types and currently the users are manually selecting the billing document type in VF01 .The buisness insists on making this automated.They want the billing document type to be determined based on some custom condtions.
    Any inputs regarding this is highly appreciated.
    Thanks & Regards,
    Srini

  • Changing billing document date while creating billing document from vf01

    Hi gurus,
    I have requirement to change billing doc date while creating billing document from VF01.
    here I have to consider goods issue date eq billing date.
    caluculating billing date = Goods Issue + Goods in Transit duration time.
    I have done everu thing but I cant update the caluculated date, iam using the following enhancement
    Enhancement:SDVFX001
    Function Module:EXIT_SAPLV60B_001
    Include:ZXVVFU01 which are part vf01.
    here iam sending the calculated date to VBRK-FKDAT
    move cal_date to vbrk-fkdat.
    need help how to update the calculated date to VBRK-fkdat i.e billing document date
    Regards
    Bhaskar

    Hi
    No! That exit is not good for your issue
    U can use the user-exit USEREXIT_NUMBER_RANGE_INV_DATE  defined in RV60AFZC
    Max

  • Creating billing document from billing request PO number

    Hello All,
    I am creating Billing document ( Debit Memo) from BiCS Billing Reqeust ( kind of Sales order) , that time the PO of BR is getting updated on BIlling documents's Screen ( at item level---> on PO data tab) butsometimes  it is not getting updated in VBRK table fields is BSTNK_VF .
    Thanks  in advance.
    Edited by: busam nandana on Sep 8, 2010 10:20 AM

    did you try using BAPI,
    BAPI_BILLINGDOC_CREATEMULTIPLE.
    also read Function Module Documentation on this BAPI's usage.

  • Change in document type while creating billing document from sales order

    While creating billing document from Sales order it is creating with document type RV which is standerd one but i want to change Document type.
    How can i change it?
    Regards
    Raj

    Hi
    If you use another existing document type, check that it has a number range suitable to you.  Else create a new 'z' type and assign an entirely new number range, not used in the other doc types.
    It is useful to make the FI document number the same number.  If I understand from the forums, the FI number range must be external.  Search the forum for this.  It is very useful for the Finance people.
    Kind regards
    Dawn
    Edited by: Dawn Verrell on Sep 9, 2010 4:10 PM

  • VF06 - Create billing documents separately for each delivery order

    Hi gurus,
    Just as subject, I want to create billing documents for each delivery order in batch job.
    Can anybody tell me how can this be achieved.
    thank you.

    Hi,
    The steps to create a background job is mentioned below:
    1. Go to transaction SM36.
    2. Then give the Job name & job class.
    3.If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
    4.Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
    Reward me if you find this helpful
    Regds.......
    Sumit
    Edited by: Sumit Rayaguru on Jul 22, 2008 9:01 PM

Maybe you are looking for

  • How do you use a Springboard Module in a Visor?

    I have a Visor Springboard question I hope someone can help me with. I use a medical device module that uses the expansion slot. It plugs into the Visor and comunicates with a medical implant wirelessly. The medical device came with a new Visor. I go

  • Using ipod as a storage device, need some help

    I want to use my ipod nano as a storage device and transfer my "mac" music files onto "windows" computer. Can i do that?

  • SAP NetWeaver 7.0 Trial archive can't be extracted

    Hello everyone, I'd like to try the SAP NetWeaver 7.0 Trial (ABAP, or JAVA) I downloaded them but WinRar gave an error while extracting because my archive was corrupted. So when I wanted to install it, it gave a java error (Error in main). Does anyon

  • More af tables, same viewobject, different whereclause

    Hi. JDeveloper 11.1.1.2, bc4j, jsff Is it possible to have to pages (jsff) based on the same viewobject ie. persons where page1 shows men (where sex=male) and page2 shows women (where sex=female)? How? Best regards Erik

  • Insert With Stored Procs

    Hello All! I want to do an insert into my database using Stored procedures. I already know how to delete and select.. i'm gonna post part of my code in wich i make a select to give u gives an idea of how im doing the statements.. if there's anything