Badi ISU_PRODUCT_CHANGE and creation of a new contract line item

Hello Gurus;
I have this requirement: Once a contract gets close the ending date (30 days before) i need to automatically renew the contract. In order to do that i thought that an action in the Contract Item might get the job done and browsing i found that badi ISU_PRODUCT_CHANGE does almost what i need even if it creates a new contract line item with a new product and this is not good for me... Does anybody know if there is a better Badi matching with my requirements or i have to "modify" the ISU_PRODUCT_CHANGE? I hope my question was clear if you need more specifics please ask me...
Thank you very much.
Fabio

You can create a new costing variant with  a valuation variant that points to inforecords for material prices. Go to OKKN t-code and create the required configuration and start using the new costing variant to measure the current cost of making vehicles.

Similar Messages

  • Set funcitonal area in new PO line item

    We are trying to re-trigger the derivation of the functional area when a new PO line item is created using the <Copy PO line item> function.  Using standard SAP functionality and changing the delivery date, the functional area associated with the new delivery date is not derived.  I have tried using BADi ME_PROCESS_PO_CUST~PROCESS_ITEM interface and try to rederive the functional area.  This works but when I try to set it using method SET_DATA for the account assignment, the field status does not allow me to do it.  Also, I have tried using the FIELDSELECTION_ITEM interface to set the field status of the functional area.  However, SAP has informed me that this will only work for customer-defined fields and not standard SAP fields, even though the documentation said it would.  Has anybody tried to figure this out or has run into a similar problem?  If so, how did you fix it?

    Thanks for your answer. Yes i am aware of that, basically the settings is what the price indicated in the info record and as long it is included in the validty periiod then when you create the PO, that price will be detected by the system. i am clear for that, my issue is why there are some materials that i can change the price in the PO directly while the others are the pricing tab is disabled(cannot change the price)
    Settings in the SPRO-MM - PURHASING- CONDITIONS-DEFINE PRICE DETERMINATION PROCESS- DEFINE CONDITION TYPES PB00 is D(NOT POSSIBLE TO PROCESS MANUALLY) but stilll the system is showing some PO's that can be changed the price

  • Not able to change the the Contract Line Item Payer

    Hi there,
    I am not able to change the Contract Line item Payer and giving an error message '' Credit limit customer differs from credit limit customer in header''.
    I checked the credit management assignment and the Business partner is assigned with the required Payer.
    Request your help.
    Thanks,
    Renjith

    Hi Renjith
    So first of all  check with which customer you have created Contract. So go to CMR data and check wheather you have maintained multiple Payers or not. If not maintained maintain multiple payers.
    As you are getting error  '' Credit limit customer differs from credit limit customer in header'' , so check the payer at header level and item level also. the payer at header level and item level should be different.
    Regards
    Srinath

  • Issue in using custom discount condition type in pricing agreement at Service Contract line item level

    Hello
    We are facing an issue while using a Z discount condition type in price agreement at service contract line item level.
    A Z Condition type has been created in ECC and assigned to the pricing procedure. This pricing procedure is downloaded in CRM and determined in the service contract.
    A condition maintenance group using this Z condition type is created in CRM and assigned to service contract item category.
    Condition records are created in CRM for this condition type/condition maintenance group for specific products along with sales org and discount percentage.
    But when the price agreement(using this condition type) is used at the item level of a service contract, the system throws errors (related to product/unit of measure and sales org, even though no issues seem to be there)and thus the price agreement is not allowed to be used.
    If anyone has worked on such kind of scenario, please get in touch, I will share more details for the same. 
    Regards
    Ankit Arora

    Dear Ankit,
    Once the pricing procedure is downloaded, please maintain the document pricing procedure at service contract header level, and maintain the customer pricing procedure at business partner sales area billing data.
    In spro, maintain the pricing procedure for the combination of sales area, document pricing procedure, customer pricing procedure.
    Please crosscheck whether the condition table is active or not.
    Regards,
    Maddy

  • Substitution and activated the same at the line item level in order to subs

    I have created a substitution and activated the same at the line item level in order to substitute the ZRSPL (Payment Block) field by a constant value and a vendor invoice is posted using Transaction FB60. But the same is not working. When I post a vendor invoice using FB60, Payment Block field is being shown as blank instead of the constant value which I want to substitute.
    >
    > My prerequsite is mentioned below :
    > BKPF-TCODE = &#39;FB60&#39; AND BKPF-BUKRS = &#39;ABC&#39; AND ( BKPF-BLART = &#39;KR&#39; OR
    > BKPF-BLART = &#39;KY&#39; ) AND BSEG-DMBTR &gt; &#39;10000&#39;

    Hi,
    I am not understanding the logic behind the prerequisites mentioned in your query.
    Payment block field exists only for vendor related line item.  However, you have not mentioned vendor reconciliation account in the prerequisites.  It means, this substitution will trigger for all the line items which is wrong.
    Or try following  options.....
    1) Substitution->Simulation
    2) Extras->Expert Trace
    Best Regards,
    Madhu

  • How to compare New and Old long text at PO Line Item

    Hi all,
    I am Using user exit "EXIT_SAPMM06E_013". In user exit i am trying to compare the old and new values of PO maintain at item level. All this values, i am getting in X and Y structures in user exit
    For long text there is no Such structures. When i am trying to fetch the details from FM Read_Text to fetch this values, Every time i am getting old values. Since new values has not yet been store to database.
    Is there any way through which i can compare the old and new values of item Long text.
    Thanks in advance,
    Regards,
    Vikram Singh.

    Hi Vikram,
    Iam not sure though, did you chekced EXIT_SAPMM06E_022 if it helps you in anyway.
    Regards,
    Swarna Munukoti

  • Relation with Contract Line Item and Billing Plan

    Can a Billing Plan have more than one Contract (Sales Document) Line Item ?
    To detail, for example, a Billing plan is X and it has three Plan Items 1,2,3. Can there be situation where Billing Plan X:Item 1 is set up for Contract A:Item 10 and rest of the Items i.e. Billing Plan X:Item 2,3 are set up for  a different Contract B:Item 20 ?

    yes , we can

  • Creating new sub line items before a Sales Order is saved (in CRM)

    Hi CRM Experts,
    I am pretty new to CRM system. I have a scenario.
    The actual business scenario behind this is: the customer can only choose a dummy material while placing an order. The customer will not be able to choose what all materials that will make up this order. So he can place an order for a "Pack" with say Qty as 50 units. The business contains some rules based on which the actual materials are mapped to this dummy material.
    User creates a SO in CRM system (using txn CRMD_BUS2000115). Assume a dummy material is added as first line item. The system displays it as line item 10. At this stage I need to create sub line items for this high level line item (item 10) based on what all actual materials can fulfill this. I need to do it programmatically. Is there any BAdI that can be used to do this? Also I need some hints on how to go about this? That is how to do it programmatically. For every sub-item material I need to carry a ATP check and only if the stock is available then add it as a sub line item.
    Basically what I need is to create sub line items programmatically exactly in the same way as it would have been created manually. The system is configured to put the sub line item numbers automatically. That is, if the high level item is 10, then sub line items will be automatically numbered as 11, 12 so on.
    Please feel free to throw me questions if you need more info.
    Thanks a lot in advance.
    Regards,
    Shyam

    Hi,
    I have a similar kind of a requirement.
    I need to add new line items to the order through the program.
    Can you please suggest how did you resolve your issue ?
    Thanks in advance!

  • Problem in adding vales to service contract line item

    I want  the OBJECT ID  field to be filled in  OBJECT LIST tab at item level when ever  a service product is entered in service contract ( new line item) automatically ...
    I tired wiht CRM_ORDERADM_I_MERGE (CRM_ORDERADM_I_BADI) and
    CRM_ORDERADM_I_MERGE(ZCRM_ORDERADM_I_BADI) methods and using fuction module
    CRM_ORDPRP_I_MAINTAIN_OW  but not success yet.
    any help !!
    Thanks ....
    Edited by: aday rao on Sep 15, 2008 3:08 PM

    The way I typically handle organizational service attributes is to have a single amadmin XML file per AM service and in that amadmin file I have two requests, one to assign the service and the second to modify the service attributes. I then run the amadmin command with the -c continue option on the amadmin XML file so the service is always modified with latest settings regardless of whether or not it was assigned for the first time.
    Since your question relates to service attribute modification investigate the SchemaRequests -> AddAttributeSchema amadmin commands. For example, I use the following files to modify the amUserService
    <Requests>
    <!-- <SchemaRequests serviceName="iPlanetAMUserService" SchemaType="User">
    <RemoveAttributeSchema>
    <Attribute name="someoldattribute"/>
    </RemoveAttributeSchema>
    </SchemaRequests> -->
    <SchemaRequests serviceName="iPlanetAMUserService" SchemaType="User">
    <!-- full path or amadmin must run from same directory -->
    <AddAttributeSchema fileName="/opt/SUNWam/custom/amUserAttributes.xml" />
    </SchemaRequests>
    </Requests>
    <Requests>
    <!-- newest addition first, amadmin will quit on error regardless of -c flag -->
    <AttributeSchema name="somenewattribute"
    type="single"
    syntax="string"
    any="display"
    i18nKey="u301">
    </AttributeSchema>
    </Requests>

  • Updating service contract line item's end date

    Hi,
    I am trying to extend the end date on a line item in a service contract via the DI and it is giving me the following error:  'Item's end date cannot be greater than contract's end date' and I don't understand why.
    I retrieve the service contract object, change the header end date then find the line item  I need, update it with the same end date and then issue call the SC update method.  Here's my code:
        Try
                 SC.Lines.SetCurrentLine(SerialNbrLineNumber)
                 NewStartDate = LineEndDate
                 'calculate new end date & extend service contract
                 NewEndDate = NewStartDate.AddYears(Warranty_Duration)
                'never make the contract end date earlier than it had been
                SC.EndDate = IIf(NewEndDate > SC.EndDate, _
                                                             NewEndDate, _
                                                             SC.EndDate)
                'update service contract detail with new end date
                 If NewEndDate > LineEndDate Then
                     SC.Lines.EndDate = NewEndDate
                 End If
                 If SC.Update() <> 0 Then
                    rs.RtnCode = -1
                    rs.RtnMessage = B1Comp.GetLastErrorDescription()
                 End If
    I did see something in the di help that mentions that B1 calcs an end date based on the "duration of coverage" field but I don't think I could use that because I might only change the end date for one line item. 
    BTW I can do this in the application with no problem.
    Thanks in advance for any assistance.

    Known B1 bug.  Should have checked support first.  More info on note # 1026540

  • How to insert contract line item from file using any bapi

    Hi gurus,
    Just wanted to ask how can I insert new line item which were created from a file
    when updating/changing contract details.
    The requirement was to create new line item from a file and use those details in updating the contracts.
    What BAPI can I use to address this requirement?
    Thanks!

    Hi Rajvansh Ravi,
    This is for Service Contracts. Sorry for missing this detail.
    Hi Tarangini Katta,
    I have already used BAPI_CONTRACT_CHANGE, and it was good in updating existing line items,
    but it doesn't update the contract when a new line item is created in the file.
    To make a clearer view of the flow (requirement)
    First scenario:
          From the tcode (ME32K or ME33K), we can download contract details into an excel file for a particular service contract.
    Next scenario:
          That same excel file (downloaded) can be enhanced per line item (can also insert new line) and be saved locally.
    Next scenario:
          This same excel file can also be uploaded. And the changes done to the file have to overwrite or rather have to changed the details of the same contract and then will appear/reflect in the tcode.
    With this, if we had a new line item created (inserted) on the file (not change), we can not see the changes when we view the same contract in the tcode. (ME33K)
    Do you have any idea how the insertion from the file can be reflected on the tcode using an existing bapi?
    Hope this was clear enough...
    Thanks and hope to hear something from you soon.

  • Order creation logic how to pass line items

    experts
    i have the following data in iternal table itab.
    po number ,customer number, matnr,quantity ,order date.
    1212838383  7494749  8383938833   20  20032009
    1212838383  7494749  8383938832   10  20032009
    1212838382  7494749  8383938833   20  20032009
    1212838384  7494745  8383938823   30  22032009
    1212838384  7494745  8584858588   05  22032009
    now i want to populate this data into idocs orders segement .
    for all po the customer will be the same and i need to create one order for that.
    in the above data first 2 lines have same po so i need to create order with 2 line items.
    sales org,division,distribution channnel,ordertype will be same for all the records.
    loop at itab into workarea.
    at new po. "for same po, same header data so i am using AT NEW
    edi_dd40-segnum = 1.
    edi_dd40-segnam = 'E2EDK14 '.
    edi_dd40-mandt = sy-mandt.
    edi_dd40-psgnum = psgnum.
    e2edk14-qualf = '008' .
    e2edk14-orgid = 'NN21.
    MOVE e2edk14 TO edi_dd40-sdata.
    append edi_dd40 to itab_output.
    edi_dd40-segnum = 1.
    edi_dd40-segnam = 'E2EDK14 '.
    edi_dd40-mandt = sy-mandt.
    edi_dd40-psgnum = psgnum.
    e2edk14-qualf = '006' .
    e2edk14-orgid = 'ni.
    MOVE e2edk14 TO edi_dd40-sdata.
    append edi_dd40 to itab_output.
    endat.
    now the item data comes , so i need to create items with same po.and afetr this i need to submit this data to fm before another diffent  po comes.below same customer and po so need to consider as one sales order and submit to fm.
    item1  1212838383  7494749  8383938833   20  20032009
    item2  1212838383  7494749  8383938833   20  20032009
    call function 'MAST_IDOC_DISTRIBUTE'
    My concern is how to tell to the system for the same po create the order with multipl line items , do i need to use to AT NEW
    or some other commands above?
    endloop.

    i have used at end of po. but my matnr is becoming *************. no date is showing in the internal table while populating the matnr to segments.
    Loop at itab into workarea.
    at end of po.
    here i am filling the matnr to the segment. here  workarea-matnr is showing ***********  only stars,
    endat.
    endloop.
    If i remove the at end of po , then the matnr is comming .
    Please sugggest me what to do.
    my fields sequence are like this.
    kunnr " customer
    bstnk "po
    matnr " material
    currency
    kwmeng "order quantity
    podate
    orderdate
    so how to handle this please suggest.

  • New GL Line Item Extraction

    Please clarify this requirement for Line Item Data from  New GL. my client BMW Inc have configured  New GL in ECC 6.0  if i pull all the records to BW from FAGLFLEXA (Line Item Table) is that sufficient to meet the <b>all line item GL data</b> or is there any other tables missing that also shall be combined to bring the Line item GL  data. Please help me for this if u can check with any of your friends in FICO.  
    2. I have seen that BSEG AND BKPF are used earlier in old FI  versions so what is there now in New GL ECC 6.0 that will suffice for these BSEG AND BKPF  or still i have to pull records by using these tables. for GL Line Item Data.
    If you can help me to give the short  overview of  New GL posting process it would be great.
    Thanks
    Regards
    Soniya Kapoor

    1. If I use FAGLFLEXA Line Item Table , how to combine the remaining fields such as BLART Document Type etc.. from BSEG AND bkpf
    We are using BSEG_ADD instead of bseg with the same DS – 0FI_GL_4. you would need to enhance the same DS to read the BSEG_ADD. But I would suggest talk to ur finance folks to see if BSEG_ADD captures all the required fields as that of FAGLFLEXA
    2. What is BSEG_ADD: Entry View of Accounting Document for Additional Ledgers, Should i also Include this table since it contains some fields like BSTAT
    document status etc for line item.
    It is a new table that comes along with the new GL – it even captures all the line items just like BSEG as in the old ledger.
    3. If I take the approach with line item as per new GL TABLE : FAGLFLEXA. and
    BSEG_ADD by creating generic data source on two table and enhance any other required fields like blart Document Type will it solve the line item extraction purpose
    If ur finance folks can confirm which table need to be used, ur strategy might change. If say BSEG_ADD is good enough to capture all the items, do as I suggested by enhancing the old DS - fi_gl_4
    4. I took the approach as mentioned in Point 3 . but not able to create the generic data source
    Not sure of ur approach
    5. I have reviewed 0FIGl_4 LINE ITEM Data source and found that it contains only bseg and bkpf but no faglflexa table fields. so suggest if i can proceed as number 4.
    Just as I said add code to make it read BSEG_ADD too along with BSEG.
    FAGLFLEXA & FAGLFLEXT

  • Reg : New GL Line Items

    Hi,
    We are implementing new GL and I did find out some information on the new GL Vs Classical GL.
    New GL :
    Total table : FAGLFLEXT
    Line Item table : FAGLFLEXA
    Clasical GL :
    Total Table : GLT0
    Lie Item Table : BSEG
    I have a question based on the above information.For new GL, SAP Has given 0FI_GL_10 datasource for getting Totals table ie FAGLFLEXT but no data source for line items.
    But we have a datasource for Classical GL Line items ie 0FI_GL_4.My question is , having implemented new GL, can I use 0FI_GL_10 for getting the totals data and 0FI_GL_4 for line items ?
    Will the line items data coming from 0FI_GL_4 be the same as the line item data in FAGLFLEXA ?
    Instead of creating a generic datasource based on FAGLFLEXA,what if I use 0FI_GL_4 for line items ?
    Will there be any issues in the future ? Anyone,went thru the above assumption.if so, Please explain the Pros & Cons ...
    Regards,
    Kumar

    Hi Roberto,
    I spoke with functional folks in my project and i got the following information.
    1.As per the talk, line item details are coming to both FAGLFLEXA and BSEG.
    2.There are couple of fields like XREF1,XREF2,XREF3,ZUONR, ACTIVITY TYPE etc fields are populated only in BSEG not in FAGLFLEXA.They also say, BSEG has all the entries that are posted in FAGLFLEXA.
    As per the discussion, functional folks prefer BSEG than FAGLFLEXA. I am assuming 0FI_GL_4 would pick up all the line item data from BSEG and I am not sure if there are any problems while reconciling with the totals table FAGLFLEXT to that of BSEG (using 0FI_GL_4) ?
    Regards,
    Kumar

  • CO Report  Create new PL line item report

    Hi,
    I have an requirement to develop a Report as below ,and also I am new to CO, please help in this reference.  Tables or procedure to do this requirement .
    Currently, many costs for manufacturing cost centers in the P L in individual cost element buckets.  Intent of this report is re-express these by mapping into specific material, direct labor, outbound freight, variable burden, fixed burden, G A and sales summary buckets for the final P L report.  Concept is to map specific cost elements tied to specific cost centers into summary buckets. 
    Thanks in advance.
    Netaji

    I got the solution from COEP table.

Maybe you are looking for