Add line item to FB60 at SAVE

Hi All,
           I have a very unique requirement where i have to create accounting document through FB60. Now when we create line items we will click click check box to calculate tax. We have maintained ztable for tax calculation. Lets say i have 100 USD at header and created line item 10 and 20 with amount as 60 and 40. But after tax calculation it becomes 65 and 40. Here i cannot post the document. So when i hit enter it should create n new line item to balance by -10 so that i can save the document.
   Can you please let me know how to proceed if anyone has worked on such scenario ever. I tried lloking for exits and BADIs but they does not seems helping me.

Hi,
have a look at badi AC_DOCUMENT.
Best regards.

Similar Messages

  • EXIT to change / add line items during STO PO creation in T.Code ME21N

    Hi
    Can somebody suggest me a EXIT or a BADI  to change / add line items during STO PO creation in T.Code ME21N.
    The requirement is as below.
    When the user enters a material no ( which has a BOM created in CS01), and presses enter or saves the PO, i need to get the sub components of the BOM and populate them as the next line items.
    This is because the user needs to create the delivery with reference to the PO. In the delivery, the BOM material needs to be populated with all the sub components of the BOM.
    I tried to do it using EXIT_SAPMM06E_013 in which i am able to change / add the line items in the XEKPO and YEKPO internal tables. The entries are available in the internal table when the EXIT is executed.
    But when the PO is posted internally, the item is not changed/added.
    Thanks in advance.
    Guna.

    Hi,
    Try BADI "ME_PROCESS_PO_CUST".
    cheers,

  • To add line items to sales order using User exit.

    Hi ,
    I have to add line items to sales order .
    I have tried adding the code in usr exit move field _VBAP // Check VBAP and in savedocument _prepare . But in all the places I dont see it in VA01 . I can see it in the VA02 and VA03 . But I am not able to save the order as they have made the flooring term as mandatory field, and I am supposed to populate the XVBKD structure for this.
    Pls tell me whts the procedure like say , should I popluate the XVBKD / XVBAP / and should i use the bapi_SALES_ITEM_CHECK to populate the structures at the save_document prepare.

    Hi,
    1. It is not possible to delete records using DTW, only importing new records or updating existing ones are supported. These are the only valid operations via DTW.
    2. It is possible to delete the contents of an edit text field by using the character / or -1. However it is not possible to clear an entire row/line using this notation.
    Thanks & Regards,
    Nagarajan

  • Urjent-how to add line items in tcode-FBL3N

    Hi Experts,
      How to add line items customer, customer name,  vendor and vendor name in FBL3N.
    Thanks in advance.
    mahe
    Moderator message - Please do not use words like "urjent". Please ask a specific question. Please search the forum. This question has been asked and answered before. Post locked
    Edited by: Rob Burbank on Apr 29, 2009 11:27 AM
    Edited by: Rob Burbank on Apr 29, 2009 11:28 AM

    Hi,
    Check the BTE's:
    00001020     POST DOCUMENT:       Prior to final checks             SAMPLE_INTERFACE_00001020
    00001025     POST DOCUMENT:       Final checks completed       SAMPLE_INTERFACE_00001025
    00001030     POST DOCUMENT:       Posting of standard data     SAMPLE_INTERFACE_00001030
    00001050     POST DOCUMENT:       Accounting interface           SAMPLE_INTERFACE_00001050
    Thanks & Regards,
    Harish

  • Populate data into customise field in the line item of FB60

    Hi,
    Does anyone know which BAdI/User Exit/ Implementation that i can use for populating data into the customize field in the line item of FB60?
    Thanks in advance.

    Hi,
    I have found the module to implement. But i met with one problem which is I edit the data for customise field, and modify the table xbseg. I don't know why until the point which it is needed to cast it to the screen, the data that i derived for my customise field is being deleted. Any idea why is it so?

  • RWIN to automatically add line items in FI document

    Hi all!
    I wish to know if is possible to automatically add line items in a FI document via RWIN and how.
    My final goal is the following:
    A user try to create an FI document with FB01 transaction.
    He/She insert the appropriate line items manually.
    He/She press the "Simulation" button
    In simulation screen there are user's line items, PLUS some more that are necessary in some circumstances.
    Is it possible to achieve this scenario?

    Hi Marinos,
    i think it's  possible via table <b>TRWPR</b> and an
    appropriate function module but it's hold for a modification by SAP.
    other possible solutions:
    - user exit ?
    - interface ( e.g. Intranet-appl. / excel)
      and posting via RFBIBL00 / BAPI
    regards Andreas

  • Automatically add line-items to Sales order

    Hello,
    Our client needs us to add line items to sales orders. The requirement is such that, when the users enter a material on a line item, they wish to see few more materials automatically added as new line items -- item category to be maintained as "Free" items. This appears similar to automatically getting BOM-sub-items for materials which have BOMs maintained. The client is not willing to maintain BOMs for materials in question. They instead have asked us to maintain sub-item materials in a Z-table and then fetch those to populate the subsequent line-items on the sales order.
    So far, we have tried to fiddle around with the XVBAK and XVBAP internal tables in sales exit (MV45AFZZ) and also tried to use BAPI within the same exit. Both methods do not work.
    Could you please guide us ? Thank you.
    Regards,

    Hi,
    I think you can try with product proposal(Item Proposal). T.Code:VA51.
    Using this one can create list of items to be proposed at the time sales order processing.
    Item proposal contains list of items with or without default quantities those were frequently ordered by the customer. You can create any no of items in an Item proposal.Like wise you can create any no.of item proposals.
    But,You can assign only one item proposal per customer in sales tab of the CMR.So that when ever you are creating order for that customer you can access those materials which are listed in an Item proposal completely or selectively,with or without default quantities.
    The items which are proposed from an Item proposal are always changeable.
    Item proposal makes sales order processing simple and fast.
    Only the thing here is it will not automatically explode like in case of BOM.You have to manually select those items from an item proposal.
    Regards,
    Revan
    Edited by: REVAN on Dec 23, 2008 10:55 AM

  • Automatically add line-items to sales orders

    Hello,
    Our client needs us to add line items to sales orders. The requirement is such that, when the users enter a material on a line item, they wish to see few more materials automatically added as new line items -- item category to be maintained as "Free" items. This appears similar to automatically getting BOM-sub-items for materials which have BOMs maintained. The client is not willing to maintain BOMs for materials in question. They instead have asked us to maintain sub-item materials in a Z-table and then fetch those to populate the subsequent line-items on the sales order.
    So far, we have tried to fiddle around with the XVBAK and XVBAP internal tables in sales exit (MV45AFZZ) and also tried to use BAPI within the same exit. Both methods do not work.
    Could you please guide us ? Thank you.
    Regards,

    Ist method:
    Maintain one Ztable with the fields of Material and sub materials.
    write BDC to create order,before entering the material  number check if material is existed in Ztable or not.
    If it exist take that material and added as a another line item.
    if not exist create like normal line item.
    2 nd method:
    Ask your MM functional consultant to maintain supression of materials concept.

  • How to add line item to sales order item table?

    Kindly help me the with the below requirement .
    Add line item to sales order(va01) dynamically on click of button. The button is also custom created push button.
    In the above requirement I have added the pushbutton to va01 tcode. But when I click on that button I need to add line item to sales order item table.
    I tried a lot but I am not successful. If possible can u please help on this.
    Regards,
    Rachel

    Hi!
    It's quite easy even in the standard SAP to add a line item for a customer order, I don't think it worth to develop a new button for this.
    However if you wanted to add a line automatically, the you can do the following in the program MV45AFZZ, FORM USEREXIT_SAVE_DOCUMENT.
    You can use similar code, but with some modifications.
    DATA: lv_posnr.
    LOOP AT xvbap.
    MOVE xvbap-posnr TO lv_posnr.   "get the last posnr
    ENDLOOP.
    ADD 10 TO lv_posnr.
    MOVE 'XYZ' TO xvbap-matnr.   "enter your material number here
    MOVE lv_posnr TO xvbap-posnr.
    * fill additinal field data in XVBAP if necessary
    MOVE 'I' TO xvbap-updkz.                  "Insert line
    APPEND xvbap.
    Regards
    Tamá

  • System should not allow to add line items in delivery

    Hi,
    1) system should not allow to add line items in delivery( in reference to sales order or STO)
    2) sales order/STO should not be changed if delivery exists
    how to control the above
    Alec

    Hi Lakxmi,
           I found answer for 1st point from you are old answers.
          can you throw somelight on 2nd point.
    Thanks
    Anil

  • BAPI_PR_CHANGE : Add line items

    I've read some contradicting posts regarding bapi: BAPI_PR_CHANGE. I was under the impression you could add line items to a requisition using this BAPI? Can it be said for certain it can not be done? The documentation is rather lacking.
    Thanks!
    Enrique Leon

    it's very easy to do this with this BAPI.
    If you have experiences with BAPI_PO_CHANGE you have done this within some minutes.
    Here's some sample-coding. Maybe this will help you:
    LOOP AT it_change_pr INTO wa_change_pr.
        ADD 10 TO lv_pr_counter.
        wa_pritem-preq_item      = lv_pr_counter.                "Item Number of Purchase Requisition
        wa_pritem-material       = wa_change_pr-orig_matnr.  "Materialnumber
        wa_pritem-plant          = lv_plant.                 "Plant
        wa_pritem-pur_group      = lv_pur_group.             "Purchasing Group
        wa_pritem-store_loc      = lv_store_loc.             "Storage Location
        wa_pritem-quantity       = wa_change_pr-menge.       "Purchase Requisition Quantity
        wa_pritem-unit           = wa_change_pr-meins.       "Purchase Requisition Unit of Measure
        wa_pritem-del_datcat_ext = lv_del_datcat.            "Date type (day, week, month, interval)
        wa_pritem-deliv_date     = lv_deliv_date.            "Item Delivery Date
        wa_pritem-fixed_vend     = wa_change_pr-lifnr.       "Fixed Vendor
        CLEAR: temp_matnr.
        CONCATENATE '0000000000' wa_change_pr-matnr INTO temp_matnr.
        SELECT SINGLE * FROM mbew
          WHERE matnr = temp_matnr
          AND   bwkey = wa_change_pr-werks.
        IF sy-subrc = 0.
          wa_pritem-preq_price   = mbew-stprs.                "Price in purchase requisition
          wa_pritem-price_unit   = mbew-peinh.                "Price Unit
        ENDIF.
        wa_pritem-purch_org  = lv_purch_org.                "Purchasing Organization
    **    wa_pritem-po_unit    = wa_change_pr-meins.        "Purchase Order Unit of Measure
        wa_pritem-vend_mat   = wa_change_pr-matnr.          "Material number used by vendor
        wa_pritemx-preq_item      = lv_pr_counter.
        wa_pritemx-preq_itemx     = 'X'.
        wa_pritemx-material       = 'X'.
        wa_pritemx-plant          = 'X'.
        wa_pritemx-store_loc      = 'X'.
        wa_pritemx-pur_group      = 'X'.
        wa_pritemx-quantity       = 'X'.
        wa_pritemx-unit           = 'X'.
        wa_pritemx-del_datcat_ext = 'X'.
        wa_pritemx-deliv_date     = 'X'.
        wa_pritemx-fixed_vend     = 'X'.
        wa_pritemx-preq_price     = 'X'.
        wa_pritemx-price_unit     = 'X'.
        wa_pritemx-purch_org      = 'X'.
        wa_pritemx-vend_mat       = 'X'.
        APPEND wa_pritemx TO it_pritemx.
        APPEND wa_pritem TO it_pritem.
      ENDLOOP.
      CALL FUNCTION 'BAPI_PR_CHANGE'
        EXPORTING
          number                      = lv_banfn
    *   PRHEADER                    =
    *   PRHEADERX                   =
    *   TESTRUN                     =
    * IMPORTING
    *   PRHEADEREXP                 =
    TABLES
         return                      = it_change_return
         pritem                      = it_pritem
         pritemx                     = it_pritemx
    *   PRITEMEXP                   =
    *   PRITEMSOURCE                =
    *   PRACCOUNT                   =
    *   PRACCOUNTPROITSEGMENT       =
    *   PRACCOUNTX                  =
    *   PRADDRDELIVERY              =
    *   PRITEMTEXT                  =
    *   PRHEADERTEXT                =
    *   EXTENSIONIN                 =
    *   EXTENSIONOUT                =
    *   PRVERSION                   =
    *   PRVERSIONX                  =
    *   ALLVERSIONS                 =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =

  • Multiple Vendor Line item in FB60

    Hi Friends,
      It may be simple question but I stucked with it.
    I want to split a Vendor Invoice document in FB60(Enjoy Transactions.) by using special Indicator for Retention amount.
    You will be clear from below example :---
            Inventory Rawmaterial   a/c   DR 1,00,000
                   TO Vendor      a/c                       90,000
                   TO Vendor   a/c(Special GL a.c)  10,000
    I need to post above document in FB60 but not F-43.
    Here my question is how to split vendor line items while posting of document in FB60.
    Thanks in advance.
    Kiran Konujula

    Hi Kiran,
    In my previous project we had retention and we have created payment term with installment payment.this will solve your problem.
    Goto OBB8 T.code and create a payment term with installment payment (check this check box) and then goto OBB9 t.code to configure installment.
    enter as follow
    payment term   installment  percentage
    0001                       1          90
    0001                       2          10
    do the testing and let me know if you need some more information.
    Thanks,
    Rau

  • Multiple line item not appearing in vendor line item in FB60

    Hi
    I am posting FB60 accounting entry. I am deducting WHT on the invoice.
    For ex: Expense amount - Rs. 100000, WHT - 10000
    Hence accounting entry is posted:
    Expenses A/c.. Dr 100000
       To TDS Payable 10000
       To Vendor A.c 90000
    Now when i see vendor line item in FBL1N there is only one credit line item for Rs.90000.
    But my requirement is that, vendor line item report should include two line item:
    One for vendor credit i.e. Rs.100000 and one debit for TDS payable for Rs. 10000 and not single line item for Rs.90000
    Please let me know how can i get this. Is there any standard report for the same?

    Hi friend,
    unfoortunately the system doesn't post debit for vendor in this case. You have no report to display line items that wasn't posted.
    would you like have it:
    31 - Vendor ... 10,000.00
    25 - Vendor............1,000.00 *
    40 - expense .......10,000.00
    50 - WHT ..........1,000.00
    The standard automatic WHT post directly the invoice amount to vendor account like this:
    31 - Vendor ... ...9,000.00
    40 - expense ........10,000.00
    50 - WHT ...........1,000.00
    Tell about your business process. What are you doing for ?
    regards

  • How to change the amount of Vendor Line Item in FB60

    Hi all,
    I want to post the invoice in SAP with FB60. The journal is as follow:
    Dr. Expense    1000 USD
    Dr. VAT-Input    100 USD
          Cr. Account Payable     1100 USD
    But the problem, the amount of Account payable is 1000 USD. Because I want to fill the amount in vendor line item (FB60) with the original expense (1000 USD).
    I want to ask, there is any configuration in SAP to change the amount in vendor line item which it could be the same with amount of the original expense.
    If you ever have same problems, plase share with me
    Thanks,
    John

    Hi,
    Thanks for your reply. The result of posting invoice that I want is as follow:
    Dr. Expense    1000 USD
    Dr. Vat - Input    100 USD
    Cr. Account Payable   1100 USD
    When posting invoices in FB60, there is a filed "amount vendor line item" at the top. Usually the field is filled with amount vendor 1100 USD, but I want to fill it with the expense amount (1000 USD). Which can be show the account payable 1100 USD.
    Is there any configuration to change the field "amount vendor line item" ?
    Thanks,

  • How to input FI invoice with many line items using FB60

    Dear All,
    Currently the users are posting document consisting of 500 to 700 line items every period using transaction FB60. The line items that are posted every period are not repetitive in nature. It is consuming lot of time.
    Is there any efficient (simpler) way of posting the document with so many line items? could you please share your thoughts in this regard?
    Thanks & Regards
    Vasu

    Hi Vasu,
    Try to do a recording for a BDC program with Tcode SHDB.
    Then ask your ABAPer to developa program with this BDC recording.
    This will fix the purpose.
    Thanks,
    Srinu.

Maybe you are looking for

  • Standalone adapter engine

    Hi all, Will SAP continue to support the Standalone J2SE adapter engine in future releases of SAP XI? The J2EE adapter engine is quite "heavy" to use.  It requires J2EE application server, Oracle database, quite some memory. Actually, I like the stan

  • Location Services not accurate!

    So I'm using my iPod 4 as I would usually do and I go on to maps to see what hotels are near me so a relative can stay for a few weeks. My iPod old me I was in Ealing, London when I was in Wigan, Lancashire. It would have been ok if it told me I was

  • Export UB10 user database

    I thought both MS and UB databases were combined, but when I brought by user database in my merge database, the UB footprints didn't follow. I've gone through the great pains of rebuilding my UB database and I want to properly export it like MS does.

  • E-recruiting: how to use custom BSPs

    Hi experts, Can anyone tell me how and where do we replace standard BSP applications in EREC. Regards, Bharat

  • Running dbca while connecting through vpn

    I am working form home, when ran dbca or any other xwindow apps , its took forever....I am wondering what could be the case, should i request my network admin to provide more network speed ...any suggestion is appreciated........ I have 10g RAC proje