Printing of changed line item in scheduling agreement  smart form.

Hi experts,
I am facing problem in printing of changed line item in schedule agreement.
can any body tell me how to find the line item has been changed through programming?what is the procedure to fetch the data for new line item.its
very urgent for me.
Please help me in this regard.
Priti Shrivastava

Hi
with the help of  T180-TRTYP field you know if that doc has been changed or created.
If it is not equal to H it is changed. H means created.
pass the TCODE of Sched Agreement and check this field.
You can use the CDHDR and CDPOS table s to get the changed values of new item.
Reward points if useful
Regards
Anji
Message was edited by:
        Anji Reddy Vangala

Similar Messages

  • Deleting line item in scheduling agreement

    Hi ,
    The scheduling agreement has 2 line items which are of same material. The first line item needs to deleted as it had the wrong price in it.
    We are able to block it but have not been able to set the deletion flag. There were a few GR and IR done but all of them had been reversed.
    Kindly suggest a way toset the deletion flag.
    Thanks in advance

    Hi Vinayak,
      If you have reversed all the documents of that material, then you can delete the material by selecting that in scheduling agreement ME32L.
    Regards,
    Prasath

  • Corrupted line items in Scheduling Agreement

    I have encountered an issue about Scheduling Agreements. Some items inside the SA's  are corrupted and shows Gross price conditions which should not be the case since this is a ZLP-type SA (SA for Planners).
    As consequence, when we GR for this material, the idocs cannot be posted.The Idoc message indicates that there was an error in the price determination process.
    For workaround, we recreate the items inside the SA and block the existing one. But this is occuring more often so I need to find out it's cause.
    Please help! Thanks!

    I got this message from them:
    "If the issue is concerned with the price determination, please ensure
    you are using the standard pricing calculation schema RM0000 and retest
    the issue."
    How will I know if this schema is the one the system is using?
    Thank you very much. I am a newbie in MM..

  • Function Module to add Delivery Schedule item in Schedule Agreement

    Hi,
    I have a requirement where I have to add Delivery Schedule line items to Schedule Agreement (ME38 transaction code). Well I have try to use Function Module (ME_CONFIRMATION_MAINTAIN) looks like its not working, but when I debug ME38 it is using same FM.
    when I use ME_CONFIRMATION_MAINTAIN separately I am filling up below values
    I_BSTAE  - ASN 
    I_EBELN  - 550000122
    I_EBELP  - 0010
    I_FUNKT - DV
    I_KDATB - 05/03/2000
    I_KDATE - 12/31/2006
    I_MEINS - PC
    I_MENGE -  30,259.000
    I_TRTYP - V
    I_VORGA - LE
    I_WERKS - DD22
    and I am filling up XEKET and not filling up YEKET (I don't know if I have to fill this)
    Please suggest me ?
    Note : mine is SAP 4.7 system
    Thanks
    Sarath

    I resolved the problem myself. Thanks.

  • Delivery before the schedule line date in scheduling agreement.

    Hi All,
    I have a situation where in I am using JIT delivery schedule for processing the delivery requirement from customer. In this, lets say, I have a schedule as 08/05/2009 for material A to deliver 1000 qty and the material is made available to me after production as of 07/05/2009 and I want to despatch the material on 7th only and not on 8th. The system does not allow me to do this.It allows me to make a delivery only on 08/05/2009.
    Is there any alternative to this and is this SAP standard behaviour.

    I think you can change the schedule line date in scheduling agreement itself and do the delivery.
    regards,
    Sudhir

  • Excise base amount is not changing as per the scheduling agreement

    Sub: in migo excise base amount is not changing as per the scheduling agreement type LP ( time dependent ).
    I have created the scheduling agreement type LP with time dependent.
    I have maintained the price value in two validated period i.e
    01/07/08 to 31/07/08 price is 100 rs.
    01/08/08 to 31/08/08 price is 200 rs.
    I have maintained the delivery schedule on
    15/07/08 of quantity 1 nos.
    When I am doing the goods receipts for the scheduling agreement on
    Document date I am giving 15/07/08.
    Posting date I am giving 15/07/08.
    I am giving the posting date in the excise also 15/07/08.
    After item ok.
    When I will the excise base value it is taking 200 and also excise duty is also calculating on 200.
    When I will post the document
    The stock account and GR/IR account is taking 100 only
    And excise duty is posting for rs: 200 only
    Why the excise base value is not changing as per the validity period.
    What setting I have to do the change the excise base value as per the validity date maintained in the time dependent .
    regards
    jrp

    dear sir
    doc date and posting date i have given 15/07/08 and also excise posting date i have given 15/07/08,
    but excise base value it is taking Rs:200 .
    in inforecord price date category 5-goods recepit date i have given
    yes i ahve changed the excise base value it will post , if i will not change the excise base  value i will post rs:200 only and GR/IR clearing account will post Rs100 only.
    why the excise base value will not take based on the time dependent.
    regards
    JRP

  • Text in the scheduling lines of a scheduling agreement.

    hi,
    is it possible to add text some where in the scheduling lines of a scheduling agreement (like how we can insert header text in the line item)??

    yes.I agree with you that in all good processes schedules lines are automatically generated by MRP run.
    On the other hand,some times due to incontigencies we are forced to manually add the schedule.At that time,my client wants to capture those incontigency reasons which he wants along with the schedule lines.
    Please let me know whether SAP has got some way out for this issue.
    Thanks.
    Edited by: r.jeethendiran on May 12, 2011 5:46 AM

  • Copy line items from Master Agreement to SubAgreement

    Dear all,
    As a requirement, we need to create a dummy line item at master agreement and subagreement level to be able to publish them to ERP without need
    to complete line items (they are completed in ERP via a development).
    We have created master agreement templates with a dummy line item but at subagreement level, templates are not available.
    What we are trying to develop is a script on post_create at agreement level to copy line items from Master Agreement to SubAgreement. We are able to get Master Agreement line items and copy them to the SubAgreement, but the subagreement is not created. This is the code we are using:
    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanHomeIfc;
    import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanIfc;
    import com.sap.eso.api.contracts.ContractIBeanHomeIfc;
    Mst_agreementBean = doc.getParentIBean();
    lineItemCollectionSub = doc.getLineItems();
    lineItemCollection = Mst_agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    colln = Mst_agreementBean.getCollectionMetadata("MA_LINEITEMS").get(Mst_agreementBean);
    colln2 = doc.getCollectionMetadata("MA_LINEITEMS").get(doc)
    newProject = Mst_agreementBean.getIBeanHomeIfc().createFromAnother(Mst_agreementBean);
    newMember = colln.get(1);
    //  Get Values Line Item
    assCat = newMember.getAcctAssignCategory();
    actLimP         = newMember.getActualLimitPercent();
    delAdCity       = newMember.getDeliveryAddressCity();
    delAdCount    = newMember.getDeliveryAddressCountryRef();
    delAdDist       = newMember.getDeliveryAddressDistrict();
    //... (all fields included in the script)
    // Create Line
    newMember2 = newMember;
    AgreementHome = IBeanHomeLocator.lookup(session, doc.getObjectReference());
    AgreementHome.upgradeToEdit(doc);
    // Set Values
    newMember2.setAcctAssignCategory(assCat);
    newMember2.setActualLimitPercent(actLimP);
    newMember2.setDeliveryAddressCity(delAdCity);
    newMember2.setDeliveryAddressCountryRef(delAdCount);
    newMember2.setDeliveryAddressDistrict(delAdDist);
    //... (all fields included in the script)
    try{
    colln2.add(newMember2);
    AgreementHome.save(doc);
    AgreementHome.downgradeToView(doc);
    collectionbean = colln2.get(0);
    logInfo("Value of  collectionbeanSub " + collectionbean );
    }catch (ApplicationException e){
    logInfo("Error " + e.getClass() + ". " + e.getMessage());
    When we try to create an Agreement under a Master Agreement (clicking Add on Agreement tab), following error message is shown related to the line in blue:
    Facility=local4;sessionid=4e73bb8e73304d6284816f93f4e04522a7c387b; tenantid=#tenant.ecb#;username=LUGUELL; exception=Sourced file: inline evaluation of: ``// **   import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// **    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
    Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
    of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
    ;stacktrace=Sourced file: inline evaluation of: ``// *JLA*    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// *JLA*    import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
    Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
    of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
    Any ideas what is causing the error? What are we missing on our code to copy line items?
    Many thanks,
    Marc Romagosa
    Message was edited by: Marc Romagosa de Riba

    We managed to create a line item at VALIDATE script, but not at POST_CREATE. Either it is a bug or it is not possible at POST_CREATE script.

  • BAPI_PO_CHANGE Changing line Item

    Hi All,
    My requirement is like this I need to changed line item of a purchase order using BAPI_PO_Change is it required to pass header data other than po Number?I have to change only the Batch Number(POITEM-BATCH) can some body throw some idea on this?
    Thanks&Regards
    Mahesh

    Hi,
       PO number may solve your purpose. Just try filling
       PO number in your BAPI header structure and
       relevent field for your batch number.
    Regards
    Amole

  • Printing problem for line items in a smartform

    Hi
    I am developing a smartform for inbound delivery, i have to print each line item in each page and each line item should be printed according to count of pallets.
    lets say if my first line item has 5 pallets, it should print 5 time on smartform. and second line item should print on second page , and this logic should continue for all line items.
    can some one help me out ?

    item No    Material No   Descripition  Putaway Bin   SUT  Vendor Batch  LE QTY  COA   Base UOM
    this how my line item should like, i am able to print only single line item for each item no.
    if i have 5 pallets for single line item, i want the same line item to be printed 5 times and this is what i am looking at

  • Vendor Display/Change Line Items

    Vendor with Debit balance
    Dear Friends:
    In FBL1N - Display/Change Line Items, How to indentify vendors with debit balance and How to identify vendors who has to be paid and why are amounts showing with - sign?
    Please explain.
    Thanks&Regards
    MSReddy

    Hi,
    You can identify the debit balance by checking the amount with positive value. Or you can also select "debit/credit" indicator in the screen layout. when the layout come out, you'll see "H" representing credit and "S" representing debit.
    Regarding second question, normally the line item that still need to be paid is identified as "open item" (red color", and the amount that has been paid as "cleared item" (green color).
    Even the amount already paid, it will still sign negative, but you can see the "clearing document" number as the payment or clearing document.
    Note that, the assumption on the above is that the payment of outstanding vendor is using clearing procedure.
    regards,

  • Customer Invoicing Printing First page line items blank

    Hi Everybody,
    Customer Invoicing Printing First page line items blank and it is printing it from the second page.  Please help me on this.
    Regards,
    Md Ziauddin.

    item No    Material No   Descripition  Putaway Bin   SUT  Vendor Batch  LE QTY  COA   Base UOM
    this how my line item should like, i am able to print only single line item for each item no.
    if i have 5 pallets for single line item, i want the same line item to be printed 5 times and this is what i am looking at

  • IDOC - add confirmation "AB" line to a schedule agreement

    Hi,
    I'm looking for an idoc that adds a confirmation "AB" line to a schedule agreement.
    We have tried several message types - idoc types, but non of our tests could succesfully add a AB line to the confirmation.
    Has anyone did this already?  Can you help me ?
    Thanks a lot !

    Anyone ?
    Thanks,

  • BAPI_AGREEMENT_MAINTAIN -Change an item in an agreement

    Hello,
    I found a bapi for changing agreements (BAPI_AGREEMENT_MAINTAIN), but I don't know how to use it.
    For example, if I want to change the SHORT_TEXT in the item data. Does anyone know which structures and fields  I exactly need to fill to change an item in an agreement?
    I found an earlier post on this BAPI, but that person  chose to edit via batch input.
    Thanks in advance.
    Minda

    I have the same problem, Can you send me how to use it.
    thank

  • Exice invoice print with no line items

    Hi
    I followed standard method generating excise invice i.e created sales order the did dilvery then i did billing and then generated excise invoice by J1IIN
    Now problem is my excise invoice is printing but no line item is being displayed. Only header data is being displayed.
    This problem is not regular, it happens frequently i.e not every time but sometimes.
    Pls let me know what can be possible problem
    Thanks
    Amit

    This is nothing to do with no of line items and quantity. this is puerly Smartform problem
    Dit with ABAPer and debug the program and find out on what condition it is failling.
    as you said this happenes many times, so just collect the data for which this is failing and analyse the conditions for them

Maybe you are looking for