How to create new line item in credit memo request in rebate settlement

HI friends,
             I need aimmediate help on following.
Requirenment is for given agreement all invoices for that needs to be retrieved. In those invoices we need to check the tax code or tax city for all invoices. If all are same then do nothing.
           But if any of these 2 fields are different in all retrieved invoices, then we need to sum up the qty for all invoices having same tax code/city & like wise ned to create a credit memo request which will have one line item for each tax code/city.
Example:
Agreement 9999 with the relevant sales volume:
Invoice 1: Material A, tax key X, quantity 1 kg
Invoice 2: Material B, tax key X, quantity 2 kg
Invioce 3: Material C, tax key Z, quantity 4 kg
The credit memo request for agreement 9999 should look as such:
Thanks & regards,
Abhijeet.
Item line 1: SETTLEMENT MATERIAL, tax key X, 3 kg
Item line 2: SETTLEMENT MATERIAL, tax key Z, 4 kg
Please help me . I am not getting the user exit / badi for this development.
Please let me know if any one of you know from where to do this?

Hi Vinod,
The relationship with main item is stored with CRMD_ORDERADM_I- Parent.
You need to pass the guid of main item to orderadm_i-parent. This will keep the relationship with main item.
Thanks
Ajay

Similar Messages

  • Reconfigure sales BOM deletes line item and creates new line item

    We are having issue with Sales BOM. Once sales BOM is reconfigure, line item is automatically deleted and creates new line item. These changes are not captured by reporting tool. Is it standard SAP behavior? if its not standard behavior, how to fix this issue?

    Hi,
    If i am not wrong, i assume you are using site instead of plant.   If it is plant , then "yes", we can have a order with same material being line item 10 and 20 with different plants.  Reg delivery, if the plants are configured to a same shipping point then you will have one delievery.  if the plants are configured for a different shipping point , then delivery will be split up.
    Reward if it helps,
    Thanks & regards,
    CLN

  • How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K

    HI Experts,
    how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
    Requirement:
    Already the contract having two line items using ME31K.
    Custom program has to add new line items in existing contract.
    Thanks,
    Sendil

    I got the solution:
    We can do like this:
    1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
    2. After getting results, append new line item. Then use your BAPI.
    Check this posting program.. where this bapi is used, use the same coding technique.
    IDOC_INPUT_PURCONTRACT_CHANGE

  • Regd creation of New Sales Order Type - Credit Memo Request

    Hello Gurus,
    I have created a New Sales Order Type as per the given requirements. This is a Credit Memo Request. I have done all that are needed from SD perspective.
    Can you please let me know what needs to be done from FI-CO perspective when a New Sales Order Type is created and this is a Credit Memo Request. If some one can let me know the customizations that needs to be done it will be very helpful for me.
    Thanks,
    SNK.

    Hi,
    As per my understanding, there is nothing to be required from FI-CO perspective, in case when you defined a document type in SD.
    During the sales order processing the SD-FI interface happenes for following activities
    1) Credit check (In case you use Credt management)
    2) Tax determination
    For more knowledge
    go through the link given below.
    http://www.sap-img.com/sap-sd/link-between-sap-sd-mm-and-fi.htm
    Hope it helps,
    Regards,
    MT

  • Create new line item while saving a new order

    I have a requirement to create a new line item with different item category while creating an order.
    i.e
    if the item category is ICT1, then create a new line item like item 1 but with item category ICT2.
    Also in the conditions tab, we need to update the condition type with  different values for both existing and new item.
    All this has to be in VA01 i.e on save.
    I tried to append lines of structure XVBAP at SAVE_DOCUMENT _PREPARE by changing the item no and item caegory. This works fine. But, how can I get other table details like XKOMV(which stores pricing condition details) for the new item?
    Please can you suggest any other exit/subroutine for this?
    or any other alternative solutions

    Hi,
    Try to use this EXIT:
    'EXIT_SAPMM06E_013'     Update Customer's Own Data in Purchasing Document
    The Badi and exit contains same parameter.
    Thanks,
    AMS

  • HOW TO ADD A NEW ITEM ON CREDIT MEMO REQUEST DETAILS PAGE?

    Dear friends,
    Please help me to do this by personalization or extension. This is very important for sustaining in my job. Please post your thoughts as soon as possible.
    Thanks so much for your help and support.
    Here is the scenario:
    In credit memo request page, I need to add a new item.
    In the 'About this page', I checked for the view objects CMRequestVO and CMRequestLinesVO but the item is not available in the view objects.
    There is an item called Requestor Comments shown on this page. The item to be added is the Approver Notes. These 2 columns are populated through the workflow.
    How to find about the Requestor Comments item? If we know this then the Approver Notes item can be easily added to this page, I think.
    Also I enabled the FND_PERSONALIZATION_REGION_LINK profile option so that
    I can create a new item using personalization. But I could not see the create item icon in the create item field.
    Can adding the Approver Notes be achieved by personalization?
    EAGERLY WAITING FOR YOUR HELP.
    CK.

    Hi VK,
    You need to look at both VO's and see where to add the credit memo field.
    To extend the VO object...you have to use Jdeveloper.
    Check the below this site for the details steps:
    http://apps2fusion.com/apps/oa-framework/14-fwk/119-oa-framework-faq-extending-view-objects
    After extending the, you need to copy your objects under webserver and the bounce the apache.
    Then you need to do personalization..
    Here are the steps for personalization:
    Click Personalize page and click "Expand All" under Personalization Structure..
    Go to the corresponding Advance Table and Click on Create Item. This will create a Column Field
    1) Enter Unique ID-- ex; CreditMemoEx
    2) Rendered -- True
    3) Click Apply
    In the advance table search the newly created "CreditMemoEx"
    Click on the Create Item field again.
    1) Select Item Style " Message Styled Text"
    2) Data Type -- Varchar2
    3) Enter the Prompt = "Credit Memo"
    4) Scope -- Enter the full path of VO object...ex: /xx.../oracle/apps/...
    5) View Attribute -- Enter Exact name the attribute defined in the VO object.
    6) Enter other attributes required for Business.
    7) When Finished Click Apply.

  • How to add new line item to PO using BAPI_PO_CREATE1

    Hi,
    I have a purchase order with 2 line items, now i want to add new line item to the same PO using BAPI_PO_CREATE1.
    Here new line item should be created with reference PR line item.But this PR line item is Dynamic it get generated once the Sales order line item get changed.
    Please let me know how can i pass the PR doc no, PR line item no as reference to create the new PO line item.
    Thanks
    Bhuvana

    Hi,
    I think you need to use BAPI: BAPI_PO_GETDETAIL, then BAPI:BAPI_PO_CHANGE.
    BAPI_PO_CREATE1 equals ME21N, but adding new line item needs to be done in ME22N.
    Cheers,

  • Substitution to create new line item

    Hi,
    I am looking for a way of creating an additional line item when posting an FI document (incoming payment) based on one of the documents actual line items.
    (well, actually the customer is looking for this...) ;o)
    Something like:
    IF line item account number EQ 1234 THEN
       Check how many invoices are paid by this transaction
       Check something in SD via the invoice number for all line items
       Based on findings, create a new line item.
    END IF.
    Can I do this via a substitution and user exit?
    Did anyone ever do something like this?
    Thanks in advance!
    Dirk

    Hi,
    Good evening and greetings,
    I dont think it is possible through substitution...Please go through the following
    FBICRC002POPULATE_LINEITEMS
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • How to add new line item based on main item using crm_order_maintain

    Hi All,
    can you please provide a way to create a new line item based on main line item and save in crm transaction( in house repair order) by using crm_order_maintain(from SAP GUI).
    Thanks,
    vinod.

    Hi Vinod,
    The relationship with main item is stored with CRMD_ORDERADM_I- Parent.
    You need to pass the guid of main item to orderadm_i-parent. This will keep the relationship with main item.
    Thanks
    Ajay

  • How to add new line items to FI document

    Hi,
    When doing a Post Goods Issue From VL02N I need to add a new line item to the posted FI document.  BADI AC_DOCUMENT allows you to change the FI document, but it doesn't appear to allow you to add any new lines.  In fact the Exporting parameter EX_DOCUMENT-item doesn't even have all of the line item fields like the GL account(hkont).  Can the item component be extended to add the other item fields?
    Or is it best to use a Business Transaction Event such as Process 1120??
    Thanks for any and all advice!
    Doug Crabtree

    Hi Chris,
    The $20 difference represents a variance between what is the Material Master standard price and and another price that is maintained because of the current rapidly escalating commodity prices.  This amount and cost center to post it to has to be determined dynamically at posting time from VL02N.  Finance wants to be able to post this variance to account 40100 to be able to track this.  Our FI analyst has determined that this isn't possible using config. 
    A possible solution is to create a custom program to post an additional FI doc using a BAPI with the additional line item and run it as a periodic job, however a real-time solution would be preferred.
    There are BADI's and substitutions to substitute values, but I haven't found any great way to add additional line items.  Even several BTE's I have looked at such as PROCESS_00001120 say not to change bseg lines. 
    Any help or advice would be greatly appreciated.  Thanks.
    Doug

  • After Release material in PR not create new line item material

    Hi friends
              I m facing a problem in PR . When PR is Release then  not add new line item in existing PR. It have any solution .
    pls give the solution .
    thanks .
    Anup .

    Hi,
    Go to ME54N > Here reverse Release of PR and then add the new line item and then release it again.
    OR if you don't want to do as above then Go to SPRO > MM > Purchase Requisition > Release Procedure > Procedure with Classification > Set Up Procedure with Classification > Release indicator > Here for Release indicator "2" (RFQ/purchase order), if you have entered Changeabil. as "1" then change it to "4"
    Also check if you have assigned a Field Selection Key as only Display PR then you have to change it or remove it.

  • How to add new line item to SO using BAPI_SALESORDER_CREATEFROMDAT2

    Hi,
    I have sales order A with 1 line item, now i want to add new line item with material x and quantity y to the existing sales order A
    using BAPI_SALESORDER_CREATEFROMDAT2.
    Line item no for new line item should be generated by SAP internally.Please let me know the mandatory parameters to be passed to the BAPI to fulfill the requirement.
    DATA: order_header TYPE bapisdhd1,
               order_inx TYPE bapisdhd1x,
               partners TYPE TABLE OF bapiparnr,
               wa_partners TYPE bapiparnr.
    CLEAR: salesdocument,order_header_inx,wa_in, wa_inx.
    REFRESH: item_in, item_inx.
      salesdocument = wa_vbup-vbeln.
      order_header_inx-updateflag = 'X'.
      wa_in-itm_number = ' '.
      wa_in-material = p_nmatnr.
      wa_in-target_qty = gv_menge - gv_wemng.
      APPEND wa_in TO item_in.
      wa_inx-itm_number = ' '.
      wa_inx-updateflag = 'U'.
      wa_inx-target_qty = 'X'.
      APPEND wa_inx TO item_inx.
          CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
          EXPORTING
           salesdocumentin               = salesdocument
           order_header_in               = order_header
           order_header_inx              = order_inx
          IMPORTING
           salesdocument                 = salesdocument
          TABLES
           return                              = return
           order_items_in                = item_in
           order_items_inx               = item_inx
           order_partners                = partners.
    Thanks
    Bhuvana

    Hello,
    You can use FM: BAPI_SALESORDER_CHANGE with update indicator I (insert)
      call function 'BAPI_SALESORDER_CHANGE'
        exporting
          salesdocument    = l_vbeln
          order_header_inx = l_wa_order_header_inx
          simulation       = l_simulation
        tables
          return           = l_i_return
          order_item_in    = l_i_order_item
          order_item_inx   = l_i_order_item_inx
          partners         = l_i_partners
          schedule_lines   = l_i_schedule_lines
          schedule_linesx  = l_i_schedule_linesx
          extensionin      = l_i_extensionin.
    Thanks
    Subhankar

  • Value Items in Credit memo request

    Dear Experts,
    We are using Group Condition In header.
    While we create credit memo request, Value 100 at header is populated at item level as Below.
    Material Quantity Value
    xxxx 2 40
    xxxx 3 60
    But when we deleting the Billing block through V.23 the values got changed as below.
    Material Quantity Value
    xxxx 2 37
    xxxx 3 63
    What could be the reason of the same.
    Regards
    Chande

    Hi Lakshmipathi
    In Analysis Tab at item level its only mentioned Header Condition.
    Also there is no exit being used .
    Let me know in case anything else needs to be checked.
    Regards
    Chander

  • New pricing procedure for Credit memo request

    Hi All,
    I used pricing procedure ABC01 for sales and billing.
    I want to use new pricing procedure ( ABCO2) at the time of creating credit memo request, this credit memo req is with reference to Billing document.
    If I dont use with ref to billing document I can able to create credit mem req with pricing procedure ABC02,
    but if I am trying to create credit mem req with ref to billing document the pricing procedure in the billing document is being picked which is ABCO1.
    Can any one suggest where I am doing wrong.
    I maintained all the relevant copy controls.
    Thanks & Regads
    BVDV

    Hi
    Assign Document pricing procedure Z in VOV8 for CR document type , Now do the pricing procedure determination in OVKK with sales area + Cupp+Dupp=new pricing procedure
    Example :
    In OVKK, determine with 1000 + 10+ 10 + A+ 1 = standard pricing procedure for normal sales
    For credit memo in OVKK determine with 1000 + 10+ 10 + Z+ 1 = New pricing procedure for Credit memo
    Then when you create a sales order (with document type CR ) with reference to billing document then the new pricing procedure will get copied.
    Regards
    Srinath

  • Profit Center in Credit memo request of Rebate agreement

    Hi all,
    i have created a material rebate agreement. then i have created a sales order. at this moment, it is picking up the profit center in the sales order.
    now when i execute the material for settlement, a credit memo request is automatically created by the system in which i cld not see any profit center. But when i give the profit center manually, system is accepting it. But i want the profit center to  be determined automatically when i release the material for settlement( credit memo request)
    in short: from where the system will determine the profit center.and why the systme is picking up the profit center in sales order and why not in credit memo request.
    Thanks in advance.
    Anil.

    Maintain the Profit Center in Material Master in Sales General Palnat Data. From here it will be captured in Credit Memo Request & also be carried further. Incase you are making use of WBS element & profit center is maintained in Project, then the profit center of Project will supersede from the profit center of Material Master.
    Rwegards,
    Rajesh Banka
    Reward points if helpful.

Maybe you are looking for

  • Copy files in home folder to another user?

    Hi, I recently underwent a name change. So, I set up a new admin user account with my new name/new short name. How do I give my new self access to exactly the same desktop/stuff my old self had access to? Thanks, Shambhavi (formerly known as Lalita)

  • Shopping cart history not showing the latest stauts

    Hello Experts, We are using SRM 4.0 classic scenario and the user has tried the following sequence 1) Shopping cart created with auto approval 2) System created a PR in R3 system. Shopping cart history is showing Follow on document created. 3) PR lin

  • How can I ensure that a file is only ftp-ed once?

    Hi Frens, Im at the level of testing my codes and I noticed my code deliberately ftps a file even though it has been sent. Some servers do not accept duplicate files to be sent at their servers therefore causing FTP ok at first attempt and FTP not su

  • Surcharge On PO For Delivery

    Is it possible to maintain a surcharge per delivery on the PO?  For instance,  an item is purchased and is delivered in four deliveries.  There is a surcharge for each delivery.  The surcharge is not based on the quantity on the order and is not a su

  • Controls required in Chexk Print (FCH5)

    Hi All, I have created manual check in TCode FCH5. There i want following controls: 1. I created check for document number 150000232. There i was able to change the amount manually. I want the amount field to be greyed out. 2. In FCH5, i have to manu