Unable to copy line item from Sales Order [ZPLV] to new Sales Order [ZPCV]

I have here a requirement to create a new Sales Order[ZPCV] with reference to the previously created SO[ZPLV].
I looked in transaction code VTAA, and the configuration for the aboves condition is:
target sales doc type - ZCPV   from sales doc type - ZPLV
dataT: 302, 907 and 001 respectively
copying requirement: 001
copy item number is checked
complete reference is checked
is there something wrong with the configuration?
please advice!
thanks,

Hi
For those line items you can assign a REASON FOR REJECTION. Automatically the status of those line items will be closed.
Thanks,
Ravi
PS : sorry....please ignore my post.
Edited by: sankar ravi on May 20, 2008 3:45 PM

Similar Messages

  • 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.

  • Sales order create/change line item with reference to contract - Open quantity not getting deducted for copied line item from the contract

    Hi friends,
    Please provide some valuable inputs for the following scenario:
    When a sales order line item is created(VA01) or changed(VA02) with reference to a Contract the open quantity is deducted in the contract which is a standard functionality. If the referenced line item is copied (custom enhancement to copy line item), then for the copied line item the open quantity is not getting deducted instead ATP quantity i.e. Available-to-promise is deducted.
    Any inputs on how we can fix this functionality i.e. deduct the open quantity from the contract for the copied line item?
    P.S. : Custom enhancement to copy line item is working fine, but open quantity is not getting deducted if the copied line item was referenced to a contract.
    Thanks,
    Sandeep
    Message was edited by: sandeep

    Sandeep,
    Yes, that was my original interpretation.  I was having a hard time believing that someone would ask such a question. 
    I guess, then, that you already know that you will have to add this logic to your enhancement. You should create your specifications and hand them off to a developer; ideally the one who created this enhanced solution in the first place.
    I do not provide advice in these forums about details of enhanced solutions.  Perhaps one of the other members will be more willing to do your work for you.
    Best Regards,
    DB49

  • How to copy line items from one expense report to the next

    I travel to the same project/destination every week so in PR05, I was able to just copy the previous expense report for the new week and edit the expense values. Now, when I book travel, the air line booking starts a new expense report entry.
    Is there a way to copy the employee-paid expenses to the GetThere-generated trip entry expense report, i.e. just copy the line items from one expense report to another that already exists. I guess that would be a merge function.

    Hi Tom,
    Here are two alternative solutions:
    Alternative 1:
    If you copy the expense report before you book the services (flight, hotel …)
    in GetThere, then the airline or hotel bookings will not start a new expense
    report but will be assigned to the copied expense report.
    Alternative 2:
    This alternative is a bit laborious.
    Shift the start date and end date of the expense
    report  that was automatically created by
    your flight booking for next week (e.g. Calendar Week (CW)  47) to the week after next week (e.g. CW 48).
    Copy the expense report of the previous week (e.g.
    46)
    Afterwards open the expense report that you
    moved to CW 48 and click on the tab strip itinerary
    Now assign the bookings (flight, hotel …) to the
    expense report of CW 47 by clicking on the button assign to existing trip
    Later delete the expense report in CW 48
    Get back to me if you have any questions concerning the alternatives outlined
    above.
    Note:
    These solution alternatives are only available for customes using HTML5 UIs.

  • Profit Center is not getting captured in Vendor line item from MIRO.

    Dear Friends,
    Profit Center is not getting captured in Vendor Line Items from MIRO Transaction for some New Business Users, where as for Old Users profit center is getting generated at Vendor Line Item.
    We have provided the same authorization of old Users to new business users. (i.e. New user is a copy of old user)
    Please help us how we can the get Profit Center in all transactions will be processed by New Business users.
    I think we need to maintain user based authorization to get the Profit center in vendor Line items processed from T.Code:MIRO in SAP.
    Looking forward for your kind cooperation in this matter
    Thanks & Regards,
    Naveen Kumar.

    Hello Naveen,
    I am not very sure about your query, as you might be knowing that the Profit Center is only updated in New GL tables (FAGLFLEXA, FAGLFLEXT) and hence the Vendor relavant tables would not.
    The profit center information in the split lines or the line of the 'General Ledger View' are only displayed within transaction FAGLL03 which read the 'new' table for the NewG/L.
    About profit center wise reporting, when New GL is active Please review attached consulting SAP note:
    - 826357     Profit Center Accounting and new general ledger in
    I hope this helps. If not, please provide an example of your requirement.
    Thanks and regards,
    Suresh Jayanthi.

  • How to release Stock blocked against deleted line items from  Sales order.

    We have Scenario as follows.
    Sales order made for  items available in stock.  Deleted few lineitems from sales order balance items delivered and invoiced. Sales cycle is complete in all sense.
    What we have noticed is when we are creating new sales order / Delivery for deleted items from above Sales order it shows deleted quantity is blocked against old sales order. These line items are no longer
    available in old sales order since it is deleted also it is not appearing in open sales order report (VA05).
    Overall stock available is same as quantity mentioned in deleted line item.
    In MD04 - Sales requirenment transaction it shows sales order / line item against which it is blocked.
                    i.e deleted line item.
    How to release these stock and make available for sales. Any standard process available ? or any other solutions
    Thanks & Regards,

    I got a solution for my question from other forum. for info
    Go to SE38 and enter program SDRQCR21 then execute...
    Enter line item which is blocked for sales order in MD04 and enter plant then check Data
    transfer box and uncheck other boxes... It will pop up information and click yes...
    You will get one report and Stock inconsistency will go off and then check it in MD04....
    regards

  • Not to be able to delete line items from sales orders

    I have to do something so as not to be able to delete the line items from a sales order if I have already received a down payment for this sales order

    Dear Stilianos
    Assign Reason for Rejection for that line item and create a new line item in the same sale order.
    Incidentally, why do you want to delete the line item ??
    thanks
    G. Lakshmipathi

  • How to delete a line item from the sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi
    U can do this in two ways one u can short close the order by entering Reason for rejection in VA02 at header level and if yr order is multiple line item order u can enter the reason for rejection in any of the line item which u don't want to deliver.
    This is called short close ( as the qty is not delivered fully).
    Thx.

  • How to delete the line item from a sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • Deleting line item from sales order

    Hi to All,
    I am an SD support consultant,i had an issue please help me out,
    When i am trying to delete one line item from the sales order i am getting error message that line item cannot be deleted because of planned order.

    Hello
    Due to your availability check & transfer of requirement config for sales process & material, in the background planned order already generated. Till the time you have subsequent document for Item, you can't delete the litem.
    So, take assistance of PP consultant in your team for delete planned order
    Thanks & Regards
    JP

  • How to get report for deleted line items from sales orders

    Dear FRIENDS,
    please infirm the t.code or report for viewing the deleted line items from sales ordrers.
    Kindly do the neeedful.
    regards,
    N.M.PAWAR

    Hi,
    With transaction SE16 you can view table CDHDR for header changes and
    CDPOS for item changes. This includes deletion.
    OR
    GO to VA03 - Display Sales order -> Put order no : don't press enterbutton. -> Go to Enviornment -> changes -> You will get details
    Date ItmNo. SLNo Action
    Hope this help please close the thread if answers

  • How to delete line item from sales order ?

    Dear All ,
                               user is having 20 line items from which 3 line items of which prod order confirmation cancellation is done also goods reversal done now as user tries to delete the line items an info box pops up --> Due to cost management the line item can not be deleted . Can u tell me that if these line item is not deleted than how to delete this ?  sos what user had done that he had selected reason for rejection for these 3 line items so now the total wt is reduced but user is not able to delete the lineitems .
    pl help
    sap11

    Hi
    For those line items you can assign a REASON FOR REJECTION. Automatically the status of those line items will be closed.
    Thanks,
    Ravi
    PS : sorry....please ignore my post.
    Edited by: sankar ravi on May 20, 2008 3:45 PM

  • Locking Sales order and line item from reading

    Hi,
    I am writing an interface program to create an offer list inspection report. If two users are running the program at the same time, and if the first user read and processing a sales order line item, it should not read the same sales order line item twice for the second user.
    Please let me know if anybody has used locking sales order at line item level (VBAP).
    The enqueue function for VBAP is not working.
    Any suggestions will be helpful.
    Regards
    Ravikanth

    hi Ravi ,
    u Can lock the Sales Order for processing ,  u cannt restrict users @ tables level.
    u hhave to enqueue the VBELN
    Regards
    Prabhu

  • Delete a line item from Sales Doc type RE

    Unable to delete a line item from a sales order linked to document type RE.  Get a long runtime - no specific error message.  Use the 'Stop Transaction' option to end the transaction.
    Have done thorough testing and can delete line items linked to all other sales document types in our system.
    Researched SPRO to see if there was a line item deletion option that was not created for sales doc type RE - but can find nothing.
    On a critical time line here - this was discovered during Hotpak installation testing which is scheduled to move to PRD June 22.  Question as to why we have not run across this issue before now??  - I don't think we have had an occasion to delete a returns line item before - but I want to have the option if available.
    Any help to resolve this issue would be appreciated.
    Regards
    Patsy

    Thanks for your response.
    After creating document type RE, execute VA02 transaction, select line item, select delete line item icon.  The system goes into runtime and just stays there.  No error message, no abap dump.  To escape the transaction, I have to select 'stop transaction'.
    I have tested all other document types we use in our system,  (including our customized transactions) SO, CR, DR, etc., and the system allows line item deletion.

  • User needs to delete a line item from old STO

    Hi all,
    User needs to delete a line item from old stock transfer order and would like to be advised what he needs to do to delete the line item from the STO.
    On the STO, Goods Issue done and reversed also. Delivery completed indicator not checked. I aslo found that the payment has been made for the line item 40 for Freight. Carrier charges. It seems that the payment has been made/cleared to the vendor.  I think Due to this reason they are unable to remove this line item from STO. They have attempted to delete or block an item that is not yet closed. All down (advance) payments made to date have been taken into account.
    Can you please advice how to resolve this problem?
    Thanks in advance..
    Regards
    Suresh

    Hi,
    Delivery completed tick is also there for STO PO. If you are not getting it then check settings. Also you can mark deletion indicator for that line item. Or minimise quantity to goods received quantity.
    For STO if delivery is made from delivering plant but Goods receipt not done in receiving plant then that material remains in transit. Can viewed with ME5t. In this case that line item cannot be delted or delivery completed.
    Still your client wants to complete these type also better to leave decision to business if they want to reverse delivery (Stock of issuing plant will increase) or make Gr ( Stock of receiving plant will increase) Although they can adjust later with physical inventry process and make stock in system to real physical stock
    Regs,
    Appie

Maybe you are looking for

  • Error while activating transfer structure for 0MATERIAL_ATTR

    I am trying to activate the transfer rules of 0MATERIAL_ATTR, but when activating the process end with the following message: Error generating program Message no. RSAR245 Diagnosis An error occurred in the program generation: Program / Template:   RS

  • Want to be sure it's OK to install Windows XP Home on my New Mac mini

    Last night I bought the Mac mini with DVD SuperDrive, 120GB hard drive, 1GB RAM, 2.0 GHz Intel Core 2 Duo processor, and Leopard. At the Apple Store. Got an adapter so I can hook the mini up to my 23" Cinema Display (1998 vintage). Also got Fusion. A

  • I have problems to connect my iphone 6 with IOS 8.0.2 to my citroen c5.

    My iphone 6 has problems to connect to my citron c5 via bluetooth. After several attempts I was able to pair the phone to the car but neither are the contacts from the phone accessible by the car nor is can I successfully create calls using the car.

  • Problem with load balancing on ACE 4710

    Hello. I'm setting ACE4710. I'm using DSR (Direct server return). The load balancing cannot be distributed now. I append the network configuration. Could someone please help out? THANKS!

  • Menu titles not going in order

    Is there a way to make the DVD directional remote go to the next title in order that it's on the DVD and not the closest title to the previous one in the menu graphic?    In this case, I want the right toggle to go from "let's go" to "sit."  Any idea