BAPI or Function to update Billing Plan in Sales Order Items

Hello all !
     I have to update some fields in the billing plan data in sales order's item (VA02) with a program (receiving it's data form csv files).
     I've searched a BAPI but infortunately there are no "Billing Plan" data structure to update thoses fields.
     The transaction in VA02, the billing plan data is found in FPLT table, linked to VBKD table with key field VBKD-FPLNR.
     I've tried theses Functions with no result :
BILLING_SCHEDULE_MAINTAIN
BAPI_SALESORDER_CHANGE
BAPI_SALESORDER_CHANGEBOS
BAPI_SALESDOCUMENT_CHANGE
For now I'm searching how VA02 is saving the billing plan data, but it's very tricky and maybe not reusable.
     If someone have an idea for updating billing plan data in a abap program ( and not a batch input of VA02 because the line to update can have a variable position ).
Thanks a lot.
Message was edited by: Thomas B.

Thanks Kiran I for your answer.
    This function might be helpful but there is a strange control at the begining of the code.
(I guess VBAK must be filled somewhere..)
  IF I_VBELN NE VBAK-VBELN.
    MESSAGE A044 WITH I_VBELN VBAK-VBELN.
  ENDIF.
But I've found another way to update the billing plan dates: using the function BILLING_SCHEDULE_SAVE (with BILLING_SCHEDULE_READ before). My point is solved.

Similar Messages

  • Transaction to maintina Billing Plan for Sales order item

    Hi All,
    Is there any transaction other than VA01/VA02 to maintian Billing plan for Sales order item.
    Thanks & Regards,
    Rajanidhi Rajasekeran.

    It is possible to maintain Billing Plan in Sales Document Type (VOV8), as well as Item Category level (VOV7). As you want it at Item level, maintain the same in Item Category Configuration at Item level & it will by default be captured in Sales Order at Item level.
    Step 1: Sales Document Type
    IMG > Sales and Distribution > Sales > Sales Documents >
    Sales Document Header:
    1. Sales Document Type:The sales document types represent the different business transactions, such as Inquiry, Quotation, Sales Order, etc. To create new sales order type, always copy as with reference to similar sales order. If possible use standard sales order.
    2. Define Number Ranges For Sales Documents: Maintain number range with discussion with core team.
    3. Assign Sales Area To Sales Document Types:
    A. Combine sales organizations / Combine distribution channels / Combine divisions: Ensure to maintain these, else Sales Order creation will give error.
    B. Assign sales order types permitted for sales areas: Assign only required Sales Order Types to required Sales Area. This will minimize selection of Sales Order Type as per sales area.
    Sales Document Item:
    1. Define Item Categories: If possible use Standard Item Category. Incase if required to create new, copy as from standard & maintain New.
    2. Assign Item Categories: If possible, use standard. Formula for deriving item category: Sales Document Type + Item Category Group + Usage + Higher Level Item Category = Item Category
    Regards,
    Rajesh Banka

  • Bill Plan with Sales Order item rejected

    Milestone Billing Plan created.
    IMG Config Sales Order Item Reason for Rejection = BIC checked (Not Relevant for Billing)
    Add material on the (Billing Plan) Sales Order Item.
    Set the Item Reason For rejection (same reason as set in IMG config for BIC above)
    Create some Billing Plan dates (at the sales order header).
    [F3] back. You get an info message "Value-based differences in the billing plan cannot be allocated"
    Save the Order.. All is fine.
    If I do not set a reason for rejection on the item all is fine.
    Can anyone explain this ?

    Hi Friends
    I have resolved the problem myself. I have used sap note : 97272 and downloaded the utility/ correction program ZZUNREJE and ran it for rejected sales line item.
    The reason for rejection was successfully reversed without touching any of the associated POs.
    Regards

  • How to create Billing Plan in sales order using Function module /BAPI

    hi,
    How to create Billing Plan in sales order using Function module /BAPI
    i hv check few FM such
    BILLING_SCHEDULE_READ
    BILLING_SCHEDULE_GET_NUMBER
    BILLING_SCHEDULE_SAVE
    But unable to create billing plan for a sales order.....any other method to create???

    Hi,
    Use this link.
    Create sales order with billing plan via LSMW and BAPI BUS2032
    BAPI or Function to update Billing Plan in Sales Order Items
    Hope this will help you.
    Regards,
    Vijay

  • Change End date of billing plan/invoice plan in sales order item(fpla-erdat

    Hi Experts,
    Could you please help to me regarding this issue.
    I need to change  End date of billing plan/invoice plan  in sales order item  of  "billing plan" Tab.( FPLA-ERDAT) for all line items. It is not a one sales order,more than 1000 sales orders.
    How can i change those end date of billing plan for all line litems and all sales orders ( i have input file with sales orders, items, dates.)
    Thanks
    jaya

    Hi ramki,
    I tried with using  MASS  T.code ( bus2032 Object type).
    There are no field  related to Billing plan end date?.if case i done wrong ,tell me what are steps while using MASS T.code.
    now what i can do. or explain
    Thanks
    jaya

  • To add Billing Plan at Sales Order Header Level

    Dear All,
    Our requirement is such that for a project, we need to define a billing plan at header level of sales order.
    As of now we are defining billing plan at sales order line item which are having accunt assignment to WBS elements.
    Pl. let me know whether we can add billing plan at SO header level and if it is possible then how to do it. Because right now there is no tab available for "Billing Plan" at SO header level.
    If we can add it then will it be valid for all item levels?
    Need your help.
    Regards
    Ratna Palit

    SPRO - SD - Billing - Billing Plan - the first 5 config nodes (Define Billing Plan types / Define Date descriptions / Assign Date categories / Maintain Date Proposals / Assign Billing Plan types to Sales Doc types) are applicable to you.
    this is pretty tranparent for a reference.
    What else is required?

  • Status is not updated from delivery to sales order item.

    Dear Folks,
    One user created sales order with 10 line items and he created delivery and later he deleted line item 30 in that delivery document and with remaining 9 line item he done the PGI & Billing.Here what is the problem is the deleted line item in sales order status showing as completed and delivered quatity showing as 10.Status is not updated from delivery to sales order item.Please let me know how to resolve this?
    Thanks & Regards,
    murali.

    Dear Murali,
    Please go to VTLA transaction then select your delivery and order types after that go in to the details of the item level settings here you check field called Update document flow under Control data tab.
    I hope it will help you,
    Regards,
    Murali.

  • Mass Removal of Billing Block at Sales Order item level

    Dear Experts,
    Does any one know how to remove billing block at sales order item level at mass level ?
    Is there any standard t code for the same. Kindly let me know the same
    thnx in advanve
    regards,
    Sagar

    Hi Sagar Wagh,
    I want to make a little correction,
    Go to T-code V.23
    Give your criteria like
    Sales organization
    Distribution channel
    Division
    Then in the last of screen there is check box Delete billing block
    check this box and excute
    System will ask you
    Do you really want to delete billing
    blocks for all docs. to be selected?
    Click at yes
    System will show you the list of all documents
    Select all and Click at Delete billing block
    System will delete the billing block in one go from all the documents.
    Regards,
    MT
    Edited by: M T on Feb 23, 2010 6:03 PM

  • Bapi or function to simulate billing plan

    Hi,
    I need to use a function module or a bapi to simulate (but no create) billing plan in the contract items. (VA42)
    I know this function module : BILL_SCHED_GENER_UNTIL_HORIZON.
    But even if i fill the different structures, i don't have any datas in the output tables.
    Do you know another "moreeasy to use" function or bapi to simulate billing plan ?
    I know this one : BILLING_SCHEDULE_GENERATE but it's harder to use it.
    Thanks

    Hi,
    I progressed with the use of this function module.
    I will try to explain how i used it and maybe someone could tell me if 'im wrong somwhere.
    So i select a document in VBAK. I also get the corresponding datas in VBAP, VBPA, VEDA, VBKD, FPLA and FPLT.
    I forced the field endat of FPLA at 2009/12/31 and the billing plan of this document is generated until 2008/12/31.
    So,  what i expect is to generate the missing datas in the internal table FPLT (i first only have datas until 2008/12/31 and would like to generate billing plan until 2009/12/31)
    I get the KOMK and KOMP data with this FM :
          CLEAR : s_komk, s_komp.
          CALL FUNCTION 'SPR_KOMK_KOMP_FILL'
            EXPORTING
              pi_i_spr                       = s_pispr (Get with MF PISPR_FILL)
            IMPORTING
              pe_i_komk                   = s_komk
              pe_i_komp                   = s_komp
            EXCEPTIONS
              org_structure_not_completed  = 1
              OTHERS                               = 2.
    I filled the VEDA_HEADER strcture with FM :
            CALL FUNCTION 'SD_VEDA_SELECT'
              EXPORTING
                i_document_number = veda-vbeln
                i_item_number         = veda-vposn
                i_trtyp                     = 'A'
              IMPORTING
                e_vedavb                 = s_veda_header.
            MOVE s_veda_header TO s_veda_header2.
            CLEAR s_veda_header2-vposn.
    I filled the internal tables fpla and fplt with this FM :
            REFRESH : t_fpla_old, t_fpla_new, t_fplt_old, t_fplt_new.
            CALL FUNCTION 'BILLING_SCHEDULE_READ'
              EXPORTING
                fplnr = s_vbkd-fplnr
              TABLES
                zfpla = t_fpla_old
                zfplt  = t_fplt_old.
    So, here are the values passed to the function module :
            CALL FUNCTION 'BILL_SCHED_GENER_UNTIL_HORIZON'
              EXPORTING
               i_fplnr              = vbkd-fplnr        
               i_waers           = vbak-waerk
               i_komk            = s_komk
               i_komp            = s_komp
               i_kompax         = kompax
               i_fkrel              = 'I'
               i_absagen        = 'D'
               i_kfplan            = ''
               i_veda              = s_veda_header
               i_veda_kopf      = s_veda_header2
             IMPORTING
               e_kompax        = kompax
             TABLES
               fpla_new          = t_fpla_new
               fpla_old            = t_fpla_old
               fplt_new           = t_fplt_new
               fplt_old            = t_fplt_old.
    So, i have the correct generated lines in t_fplt_new, until 2009/12/31, but i dont' have any amount in netpr field, for all lines, even the first ones that had amount in t_fplt_old.
    So if anybody knows if i forgot something or if i'm wrong somewhere, please tell me. Maybe it's not the good way to simulate billing plan.
    Thanks
    Ps : if you need more details or if i'm not clear, tell me.

  • Function Module or BAPI to update Short text  for sales order item(vl02n)

    Hi All,
    I need to update the Short text for sales order item in vl02n transaction from an internal table with Delivery number and other relevant details .
    Does any body know any Function Module or BAPI which can accomplish this purpose .
    Or else writing BDC is the only option I have got ? .
    Please clarify .
    Thanking you in advance .
    With Regards,
    Suriya .

    Hi
    You can try using BAPI_SALESORDER_CHANGE if you want to change sales order
    Regards
    MD

  • Change End date of billing plan/invoice plan in sales order item

    Hi Experts,
    Tell me what are tables to be updated,when i changed end date of billing plan/invoice plan ( "billing plan" Tab in sales order item).?
    Thanks
    jaya

    vbrk and vbrp

  • Rolling Month in Billing Plan in Sales Order

    I Require rolling month billing dates in Sales Orders . Kindly help on the same the followng format is required.
    Contract Start Date : 05.01.2010
    Contract End Date : 31.03.2010
    Settlement From   Settlement to    Billing Date
    05.01.2010            04.02.2010     04.02.2010
    05.02.2010            04.03.2010     04.03.2010
    05.03.2010            31.03.2010     31.03.2010.
    If there are any user exits where i can make these changes or if there are any configurations that i  can change then suggest.
    Thanx in Advance.
    Dilip

    You have to enable the PERIODIC BILLING as the billing plan for your case.
    You can refer to the OSS note 831158 which gives lot of other OSS notes for you to configure the scenario.

  • Can the project status be influenced by billing plan in sales order?

    I am facing the following problem: 
    I linked the WBS Element to a sales order billing plan (in header: account assignment).
    Now, is there a possibility to prevent changing the status of the project to “close technically”, while there are still some invoices of the billing in the sales order not billed?
    I want to make sure that a project can only be closed once all the invoices related to the project were billed.
    Thanks in advance
    Maike

    Hello Maike,
    I have different view here:
    System status is set to FNBL automatically when all the items in the sales orders are billed. So user does not really need to set it.
    TECO is a status which should follow FNBL generally speaking. And it has to be put manually.
    Now, if the requirement is to throw an error when FNBL or TECO is put manually if not all the sales orders items are billed- it can be done by using validation.
    A validation can be activated which will check for any open billing item for that WBS when status is set to TECO. If there is any, it will throw an error while saving WBS with TECO.So it will not allow to set TECO. T code for validation is OPSI.
    Thanks,
    Sourabh

  • Maintaining Billing Plan in Sales Order

    Hello Expert
    Where can i restrict that all billing plan mantain in Sales Order-> item level-> billing plan should not exceed the Sales Order Amount?
    Our process is only create SO, maintain billing plan and create billing document.
    We are not using Delivery, PGI etc.
    Thanks

    I am only maintaining the following field in the line item-> billing plan
    Billing Date,DCategory,Bill Value, Currency
    My question is how to control that the amount maintain in the billing value will not be more than the Selling Amount (SO->Line item->Amount)
    At the moment, the user can bill up to 1M even the sales order amount is only 100K

  • Update Pricing elements for sales order item

    Hello All,
    I want to add few manual pricing elements to a sales order item through code (the pricing elements to be added will be determined dynamically). Is there any BAPI  or user exit to update the same?
    Regards,

    Hi
    You can use the BAPI_SALESORDER_CREATEFROMDAT2 for creating  the sales order.Using this you can populate the pricing conditions for sales order. To pass the Pricing conditions use the str ORDER_CONDITIONS_IN & ORDER_CONDITIONS_INX in BAPI.
    Regards,
    Raghu.

Maybe you are looking for