BAPI to change Billing document for output type

Hi Gurus,
        I need to know if there is a BAPI to change a Billing document SD to add a new output type.
Thanks in advance.
Mariano.

Hi all,
      To be more specific, my requirement is determinate a new output type in the billing document if other output type already was printed, so as I can't determinate automaticaly the output type by standard I need to create a program to insert an output type in the billing document if other one was printed; for that I need to know if there is a BAPI to change the billing document to insert this new output type.
Thanks,
Mariano.

Similar Messages

  • Table for output type

    Dear All
    Pl help me.
    I have a very peculiar situation.
    For a particular order type, the billing document printout should show the discount for that order type only when the discount is manually entered during sales order creation. A condition type has already been created in the pricing procedure for the order typr for manual entry. But the problem is with the printing of invoice. At present the discount does not appear on the print preview of the billing document and the billing document has its own output type. where should i validate for that output type. In which standard table can i get the relation between a sales document or a billing document and output type.

    Hi,
    Just check in copy controls VTFA, select Source and Target Document Type, click on item (LHS of screen), choose relevant item category and see in "Pricing type" what you have assigned. Whwenver prices are redetermined, manaul conditions entered in previous document will not taken back. So choose "Copy manual pricing...." option in this.
    Hope I've understood your question and duly answered it.
    Reward points, if so
    Regards
    SD

  • Any BAPI/function module to change Billing document

    Is there any BAPI / FM to change the Billing document once it has been created ?
    Your help is appreciated.
    Regards,
    Ankur Bhandari

    Hi,
    Go through the forums,
    BAPI/FM for printing Billing doc.
    Re: BAPI for creating billing document
    VF02 - CHANGE BILLING DOCUMENT
    Regards,
    Azaz Ali.

  • Change "SAPScript" email subject/body for External Send(5) for output type?

    Hello,
    I'm emailing a SAPscript form (converted to PDF) generated via Transmission Medium 5 (External send) for output type (EK00) and need to change email's subject and body of email created by SAP code.  Any suggestions on how to change email's subject and body?
    Thanks,
    Billy

    Also if u want to add a body to the mail.  See the below form (sub routine) which needs to be mentioned in NACE.  Either u can keep this routine in the driver program or u can put in separate report program.  All thing u need to is see the below code and mention the name of the program and form name in nace.  Double click on output type in nace. u will find a tab stripped screen in right.  In the screen u can see the first tab as 'General data'  and at the bottom a block with title 'Replacement of text symbols' can be seen.  There u need to pass this program name and form name.
    Execute ur program and test the result.
    FORM text_symbol_replace TABLES pt_lines  STRUCTURE tline
                              USING ps_thead  STRUCTURE thead
                                    ps_nast   STRUCTURE nast.
      DATA:
        lv_kunnr LIKE vbak-kunnr,          " AN0465 Add AKKUMA1 02/19/07
        lv_new_cursor_column LIKE sy-tabix," Cursor column
        lv_new_cursor_line   LIKE sy-tabix," Cursor row
        lv_changed,                        " Indicator
        lv_matnr     LIKE vbap-matnr,
        lv_vkorg     LIKE vbak-vkorg,
        lv_vtweg     LIKE vbak-vtweg,
        lv_desc(20),
        lv_name      TYPE thead-tdname,    " Name
        lt_lines     LIKE tline OCCURS 0 WITH HEADER LINE,
        lv_currentprogram LIKE sy-repid.   " Program Name
      DATA :
        ps_lines LIKE tline.               " Structure
      CONSTANTS:
        lc_int TYPE nast-nacha VALUE '5',  " External Send
        lc_comma TYPE c VALUE ','.         " Comma Separater
      DATA: BEGIN OF ls_fname,
              dsnam TYPE nast-dsnam,       " Spool Name
              dsuf1 TYPE nast-dsuf1,       " Spool Suffix1
              dsuf2 TYPE nast-dsuf2,       " Spool Suffix 2
            END OF ls_fname.
      FIELD-SYMBOLS: <lfs_nast> TYPE vnast.
      IF ps_nast-kschl EQ gc_zj17.
    Fetching vbak-kunnr.
        SELECT SINGLE kunnr                " Customer
                      vkorg
                      vtweg
                 INTO (lv_kunnr,lv_vkorg,
                       lv_vtweg)
                 FROM vbak
                WHERE vbeln EQ ps_nast-objky.
        IF sy-subrc EQ 0.
          SELECT SINGLE matnr INTO lv_matnr
           FROM vbap
             WHERE vbeln EQ ps_nast-objky.
        ELSE.
          IMPORT xvbak-kunnr TO lv_kunnr FROM MEMORY ID 'YSOLDTO'.
          IMPORT xvbak-vkorg TO lv_vkorg FROM MEMORY ID 'YSALESORG'.
          IMPORT xvbak-vtweg TO lv_vtweg FROM MEMORY ID 'YDISTCH'.
          IMPORT xvbap-matnr TO lv_matnr FROM MEMORY ID 'YMATERIAL'.
        ENDIF.
        IF sy-subrc EQ 0.
          CONCATENATE lv_matnr lv_vkorg lv_vtweg
           INTO lv_name.
          CALL FUNCTION 'READ_TEXT'
               EXPORTING
                    id                      = '0001'
                    language                = ps_nast-spras
                    name                    = lv_name
                    object                  = 'MVKE'
               TABLES
                    lines                   = lt_lines
               EXCEPTIONS
                    id                      = 1
                    language                = 2
                    name                    = 3
                    not_found               = 4
                    object                  = 5
                    reference_check         = 6
                    wrong_access_to_archive = 7
                    OTHERS                  = 8.
          IF sy-subrc = 0.
            CLEAR lv_desc.
            LOOP AT lt_lines.
              CONCATENATE lv_desc lt_lines-tdline
                     INTO lv_desc
                SEPARATED BY space.
            ENDLOOP.                       " LOOP AT lt_desc
            CONDENSE lv_desc.
          ENDIF.
        ENDIF.                            " AN0465 Add AKKUMA1 02/26/07
    Fetch Region.
        SELECT SINGLE name1 ort01               " City
          INTO (gv_name1, gv_ort01)
          FROM kna1
          WHERE kunnr EQ lv_kunnr.
        IF sy-subrc EQ 0.
          CONDENSE gv_ort01.
          CONCATENATE ':OC:'
                      gv_name1
                      gv_ort01
                      lv_desc
                 INTO ps_lines-tdline SEPARATED BY space.
          LOOP AT pt_lines.
            pt_lines-tdline =  ps_lines-tdline.
            MODIFY pt_lines.
            CLEAR pt_lines.
          ENDLOOP.
        ENDIF.                             " IF ps_nast-kschl EQ gc_z..
      ENDIF.                               " AN0465 Add AKKUMA1 02/19/07
    IF NO TEXT IS PROVIDED READ TEXT USING HEADER INFO
      IF pt_lines[] IS INITIAL AND NOT ps_thead IS INITIAL.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id       = ps_thead-tdid
                  language = ps_thead-tdspras
                  name     = ps_thead-tdname
                  object   = ps_thead-tdobject
             TABLES
                  lines    = pt_lines
             EXCEPTIONS
                  OTHERS   = 1.
        IF sy-subrc NE 0.
        ENDIF.                             " IF sy-subrc NE 0.
      ENDIF.                               " IF pt_lines[] IS INITIAL
    REPLACE VARIABLES USING DATA FROM PROGRAM   YVADOR01
      IF NOT pt_lines[] IS INITIAL.
        lv_currentprogram = 'SAPMV45A'.
        CALL FUNCTION 'TEXT_SYMBOL_REPLACE'
             EXPORTING
                  endline = sy-tabix
                  header  = ps_thead
                  program = lv_currentprogram
             IMPORTING
                  changed = lv_changed
             TABLES
                  lines   = pt_lines.
    Subrc Check not required.
        CALL FUNCTION 'FORMAT_TEXTLINES'
             IMPORTING
                  new_cursor_column = lv_new_cursor_column
                  new_cursor_line   = lv_new_cursor_line
             TABLES
                  lines             = pt_lines
             EXCEPTIONS
                  OTHERS            = 2.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.                             " IF sy-subrc NE 0.
      ENDIF.                               " IF NOT pt_lines[] IS INITIAL
    SPLIT ORDER NUMBER AND PUT THEM INTO SPOOL REQUEST NAME & SUFFIX FIELD
    SAP USES THESE FIELDS TO CONSTRUCT FILENAME
    FOR THE PDF ATTACHMENT IN EMAIL
      IF ps_nast-nacha EQ lc_int OR ps_nast-nacha = '2'.
        IF ps_nast-dsnam IS INITIAL AND ps_nast-dsuf1 IS INITIAL.
          ls_fname = ps_lines-tdline.
          ps_nast-dsnam = ls_fname-dsnam.
          ps_nast-dsuf1 = ls_fname-dsuf1.
          ps_nast-dsuf2 = ls_fname-dsuf2.
        ENDIF.                             " IF ps_nast-dsnam IS INITIAL...
      ENDIF.                               " IF ps_nast-nacha EQ lc_int
    ENDFORM.                               " TEXT_SYMBOL_REPLACE
    Venkat.

  • Exit for VF01/VF02 when creating or changing billing document

    Hi,
    Can any one tell me which exit is triggered when we are creating or changing billing document
    (VF01/VF02).I alreay find the exits but not able to find the exact one.
    Thanks in Advance,
    regards,
    kishore.

    Hi
    Check This EXIT  available for VF01/VF02 And find Exact one
    SDVFX007 User exit: Billing plan during transfer to Accounting
    SDVFX008 User exit: Processing of transfer structures SD-FI
    SDVFX009 Billing doc. processing KIDONO (payment reference number)
    SDVFX010 User exit item table for the customer lines
    SDVFX011 Userexit for the komkcv- and kompcv-structures
    V05I0001 User exits for billing index
    V05N0001 User Exits for Printing Billing Docs. using POR Procedure
    V60A0001 Customer functions in the billing document
    V60P0001 Data provision for additional fields for display in lists
    V61A0001 Customer enhancement: Pricing
    Ranga

  • Can i make at vf02/vf03 billing document issue output  from a select list

    i have 2 output types YN30  an YN38 who are automaticly created ok
    but when i want to output it  sap doesnot show a choice for two types  but instead
    it shows onley the default from TVFK
    by example at va02  you get a choice from all types that are created for this order
    anyone can help me

    i dont think you understand my problem
    compare sales order output
    with invoice output
    in customizing the look identique
    but in sap
    va02   enter an order  > menu sales document > issue output to
    then a popup window is displayed with all documet type that are created for this order
        you can select one > print or display
    vf02 enter an invoice  > menu billing document issue output to> print or display
    and then  there is nolist  but onley the default document type
    you can change that or search in all types defined in sap ( not in onley the types created for this invoice )
    i need that the user can choose between the 2 types
    we work in sap 4.6C

  • How to enable "Billing Document- Issue Output To- Issue output to" in VF03

    Plz let me know how to Enable "Billing Document --> Issue Output To --> Issue output to" in the VF03 transaction (2nd screen).
    After entering the billing doc no. n then pressing enter items will be displayed. Then in the menu bar under "Billing Document" there will be "Issue Output To" option will be there.
    Under that again " Issue Output To " & " Screen" options will be there, which by default displayed in disable mode. Is there any option to enable them.

    Hi
    U need to customize a message type for the billing by  trx NACE

  • Maintain archiving parameter(s) for output type RD00(appl.V3)

    Hi Guys,
                 While trying to get the output for billing documents I'm facing a error : Maintain archiving parameter(s) for output type RD00 (appl.V3)
    Diagnosis
    At the time of output determination,the archiving parameters for output type RD00(application V3) were incorrectly maintained in customizing.
    Additional information:
    SAP object:
    Archiving object:
    Procedure
    Maintain the archiving parameters and repeat output determination for the required document.
    Expecting the solution.
    Regards
    Raj.

    Can you check what you have in the Storage System Tab in the fields Storage Mode and Document Type.
    It should be Print Only and SDOINVOICE respectively.
    Thanks

  • One billing document for multiple deliveries which are for different PO

    Hi All,
    I have a scenario where i need to create one billing document for multiple deliveries.
    Payer is same
    Ship-to is same
    PGI date different
    Sales area is one
    PO different
    In standard SAP it will create seperate billing document for different PO
    Please advice if there is a different copy routine which will combine all the POs in one billing document.

    Hi Mr. Bhat,
    Go to VTFL --> Select the combination of your delivery type and billing type --> Double click at Item(Left side) --> Select your item category --> Click at details
    In the feild "Data VBRK/VBRP" --> I think the routine assigned is 601 (Inv.split - PO Num.) --> Now change it to 3 (Single invoice)
    Then try your process, Hope it helps.
    Regards,
    MT

  • VF02 - CHANGE BILLING DOCUMENT

    Hi All,
    I had a requirement, In the Transaction VF02(CHANGE BILLING DOCUMENT) after the SD billing document is created and when the option 'ReleaseToAccounting' is selected an OutBound Idoc should be created for the FI InvoiceHi All,
    My question is how to create a custom idoc for FI invoices via a user exit and these idocs will be routed (via RFC) to a JAVA server/processor. Pls suggest how can i acheive this.
    Is there any user exit for acheiveing this or can we proceed further without user exit also.
    If so how to acheive this.
    Thanks & Regards,
    Anil.

    Hi Anil,
    SAP Java Connector - Example: Simple RFC call
    Scenario:
    We will call the RFC function module ZNAS_HIE1_GET_MEMBER_FARM.that returns members that have owned a farm. Input to the function is a farm number, and output is a table of members that have owned the farm and Owner number (Sequence number of owners).
    Class testJCO is excuted and calls class GetMemberFarm method GetMemberFarmFromSap. Input parameters to GetMemberFarm are Farm and Owner number.
    GetMemberFarmFromSap executes RFC ZNAS_HIE1_GET_MEMBER_FARM, that returns a table of members that have owned the farm from the input parameters.
    GetMemberFarmFromSap loops through the table and finds the member where ZZCHCODE (Owner numer), is equal owner number from the input-parameters. and returns the member.
    Code
    Class testJCO
    public class testJco
         public static void main(String[] args)
              GetMemberFarm testGetMemberFarm = new GetMemberFarm();
              String memberFarm= testGetMemberFarm.GetMemberFarmFromSap("0111020155","02");
              System.out.println("Memberfarm: " + memberFarm);
    Class GetMemberFram
    import com.sap.mw.jco.*;  //The JCO
    public class GetMemberFarm {
      public String GetMemberFarmFromSap(String farm, String OwnerNumber)   
      {  String zzmemb ="";
            String memberFarm = "";
         JCO.Repository mRepository;
         JCO.Client mConnection = null;
         JCO.Function myFunction = null;
         //Create Connection to SAP
           try
                mConnection = JCO.createClient("800",           //SAP client
                                            "HFR",       //User ID
                                            "vimmer3",     //Password
                                            "EN",            //Language
                                            "53.205.22.71", //Host
                                            "03");           //System
             mConnection.connect();
             System.out.println("Connection OK");
           catch (Exception ex)
                System.out.println(ex);
          // Create function and parameters
          try
            //Create repository
            mRepository = new JCO.Repository( "GetMember", mConnection );
            //Get a function template from the repository
            IFunctionTemplate ftemplate = mRepository.getFunctionTemplate("ZNAS_HIE1_GET_MEMBER_FARM");
            //Create function
            myFunction = new JCO.Function(ftemplate);
            System.out.println("Function created");
            //Set import parameter
            JCO.Field zzfarm = myFunction.getImportParameterList().getField("ZZFARM");
            zzfarm.setValue(farm);
            System.out.println("Parameters ok");
         catch (Exception ex)       
              System.out.println(ex);
         // Execute function
         try
              mConnection.execute(myFunction);
            System.out.println("RFC Call OK");          
         catch (Exception ex)      
          {  System.out.println(ex); //Exception from function          
         // Handle return table GT_HIERARCHY
         // Loop over the table and find the record that
         // has ZZCHCODE = OwnerNumber from the
         // method parameters, and return Member for the
         // record
         JCO.Table gt_HIERARCHY = null;
         try
              gt_HIERARCHY=myFunction.getTableParameterList().getTable("GT_HIERARCHY");
              //Loop thhrough table and return the member that has
              // changecode (ZZCHCODE) = 02
              for (int i = 0; i < gt_HIERARCHY.getNumRows(); i++)
              {   gt_HIERARCHY.setRow(i);
                  String zzchcode = gt_HIERARCHY.getString("ZZCHCODE");
                  if (zzchcode.equals(OwnerNumber))                        
                       zzmemb = gt_HIERARCHY.getString("ZZMEMB");                   
         catch (Exception ex)      
          {  System.out.println(ex);           
         // Disconnect from SAP
         try
             mConnection.disconnect();  
             System.out.println("Disconnected from SAP");
          catch (Exception ex)
               System.out.println(ex);
          return zzmemb;
    } //public class GetMemberFarm
    Reward points if helpful.
    Regards,
    Harini

  • Need Bapi to change Billing block

    Hi
    if any one knows the BAPI to change Billing Block of a document , can u send me the BAPI name
    Thanks

    BAPI_BILLINGDOC_CANCEL         Cancel Customer Individual Billing Document                          
    BAPI_BILLINGDOC_CANCEL1        Cancel Customer Individual Billing Document                          
    BAPI_BILLINGDOC_CONFIRM        Customer Individual Billing Document : Confirm Billing Document      
    BAPI_BILLINGDOC_CREATE         Custimer Individual Billing Document : Create Billing Document       
    BAPI_BILLINGDOC_CREATEFROMDATA Create Customer Individual Billing Doc. Using Ext. Doc. from RH      
    BAPI_BILLINGDOC_CREATEMULTIPLE Create Individual Customer Billing Document                          
    BAPI_BILLINGDOC_DISPLAY        Customer Individual Billing Document : Display Billing Document      
    BAPI_BILLINGDOC_EDIT           Customer Individual Billing Document : Change Billing Doc. (with dialo
    BAPI_BILLINGDOC_EXISTENCECHECK Individual Customer Billing Document : Existence Check               
    BAPI_BILLINGDOC_GETDETAIL      Detailed Information on a Billing Document                           
    BAPI_BILLINGDOC_GETLIST        Detailed Information on a Billing Document                           
    BAPI_BILLINGDOC_GET_FIELD_INFO Determine Field Information for a Billing Document                   
    BAPI_BILLINGDOC_IS_CANCELLED   Individual Customer Billing Document: Is Billing Document Canceled?  
    BAPI_BILLINGDOC_SIMULATE       Simulate Customer Individual Billing Document using External Document
    BILLINGDOC_DISPLAY

  • Need Single Billing Document for Materials and Services in Sales Order

    Hello Friends,
    I am selling FERT items and DIEN items in the Sales Order.
    Document flow as follows:
    Finished goods - Order-Delivery-Billing
    Services - Order-Billing
    In this process 2 seperate billing documents are created
    i.  Delivery Related Billing document for Finished goods.
    ii. Order related Billing document for services.
    I want to create a single billing document for both the items (FG & Services) in the sales order.
    Please suggest.
    Thnx.

    Sorry for the delay friends.
    Somebody suggested me to make services 'relevant for delivery' to ensure single billing document.
    What I did were the following steps:
    1. Copy Item Category TAD to ZTAD and make is 'relevant foir delivery'
    2. Assign Item Category ZTAD to Sales Order type and Item Cat Group 'LEIS'
    3. Go to Deliveries Item Categories and through new Entries add ZTAD. Make ZTAD relevant for Picking.
    4. Go to copy control 'Order to Delivery' and insert ZTAD in Item Categories relevant for this combination.
    Now when I create sales order with materials and services, they pass over to the delivery document and in the Services item, storage location/plant is greyed out. Only the picking quantity is required to be filled.
    PROBLEM :
    I am not getting the price of Services item in the billing document.
    Billing document copies all line items (tangible and intangible) from Delivery Document
    It takes the services item details/quantities etc. to VF01 but the price comes '00.00'
    Any suggestions.
    Is this legally viable? Someone told me its not legally correct.
    Thanks.
    Mohammed

  • Creation of Process code for output type

    Hi,
    Could someone help me out in defining processcodes for output types.
    Thanks in advance,
    Yaseen

    Hi Yaseen,
    The Tr.code WE41 and WE42 are also used for maintaining process codes.
    To maintain process codes in WE41 or WE42, Go to these Tr.Codes and Click on the Change button. Then click on "new entries" button to create your new process code.
    FYI, Outbound process codes are stored in SAP Table TEDE1 and inbound process codes are stored in SAP Table TEDE2.
    Hope this helps.
    Rgds,
    Sam Raju
    Message was edited by: Sam Raju

  • Billing document for multiple sales orders

    Hi All,
    I am in to ECC 6.0. How can i get single billing document for multiple sales orders?
    Can anyone tell me those configuration settings?
    Thanks
    Patel J

    Dear Jaganath,
    For Single Invoice, for multiple Sales Order, following details must be same:
    1. Sales Document Type for all Sales Order must be same
    2. Payer
    3. Incoterms
    4.Payment Term
    5. Account Assignment Grp - Customer
    6. Billing Date
    7. Exchange Rate
    8. Foreign Trade Data
    Now, in Copy-Control Settings between Sales Order and Billing (T. Code: VTFA - Order to bill copying control), Select your combination for Sales Order-->Invoice;
    and Double Click: Item (from Left-Hand side, Dialog Structure) and Double Click on to your Item Category.
    Here, in Filed: VBRK/VBRP, maintain Routine: 003 - Single Invoice.
    Important: Also, if Sales Orders have different Divisions,
    T. Code: VOV8 - Sales Document Type Maintenance
    untick the Box: Item Division.
    T. Code: VOR2 - Common Division
    Assign those Divisions to Common Divisions.
    Best Regards,
    Amit

  • PARK & POST BILLING DOCUMENT FOR CUSTOMER.

    Hello Gurus,
    I am asked to set a Park & Post option for Billing Document for Customer i.e. outgoing invoice to customer.
    how can i do this??
    Kindly guide.
    Regards
    Swati Bhatt

    Hello
    Park & Post Billing Document
    This functionality is available in MM/FI.
    You can use Billing Block functionality in Billing Doc type (Tcode VOFA) by activating Posting Block indicator.
    To release them to accounting, either you can individually or you can use VFX3 for collective release of billing doc to accounting.
    Thanks & Regards
    JP

Maybe you are looking for

  • Error message in Opportunity for dates

    Hi, I am facing a problem in finding the reason why an error message is coming. We have an opportunity and there is a validation stating that Start date shoudl not be greater than closing date.    I have checked the opportunity it carries correct val

  • Syncing with iCloud from iTunes and MobileMe

    I'm having trouble syncing my iphone and computer with icloud because I had a differenct itunes account then mobile me.  I wanted to sync my music from my itunes account so I did that but now I'm all tangled up.  When I synced my computer it transfer

  • MATERIALIZED VIEW WITH ROWID OPTION

    Hi All I need to create a materialized view on a table that does not have a PK defined. Reading around, I have to create a MV using the WITH ROWID option and no other fancy options. I cant seem to find a simple snytax example?! Also do I have to crea

  • Skype 7.3 keeps crashing

    Hello, Ever since the last update my Skype keeps crashing and freezing and I can barely log in. Whenever I try to type out or load messages skype will either crash or freeze up and sometimes it crashes my computer along with it. I've tried deleting m

  • I'm trying to get a proper formatting for webpages in Firefox after I used a program to adjust settings

    I used a program called Slim Cleaner to erase some features such as cookies,web browsing for the sake of privacy. However, what the output now is from websites that I go to illustrates a listing of links rather than a pictorial which is what I had be