PO line item copy to another PO doc.

Dear All,
Could you pls let me know how to copy old PO sepecific line item to new PO document?
if there is something to copy (only specific line items) to new PO creation.
thanks in advance
Edited by: Csaba Szommer on May 9, 2011 11:32 AM

Please open ME21N.
Left side, you can see document over view.
If you click on selection variant, you can find My Purchase Order/ Purchase Order.
If the old PO was created in Your User ID, you can get it from 'My Purchase Order'
If old PO was from other user id, you need to enter in to the selection screen, which will run like a SAP Report and will fetch you old PO.
Click the old PO and Drag to the Basket, all the refrence data in old Po will be copied in new PO screen.
Change dates and relevent changes, save PO,
New PO is created.
Let me know if you have doubts.
Raghavan

Similar Messages

  • PO line item copy to new PO doc.

    Hi , one question PO line item copy to new PO doc.
    if i made on PO docuemnt as bleow
    10  Item1    20unit
    20  Item2    10 unit
    30   Intem3   20 Uni
    and when I need to create new PO , if i wanna creat PO inclue only line time 10 ,20
    how can i do it? could you pls kinldy adivse?
    just copy POC totlay to new PO is very easy.. I already know that..

    Hello.
    thanks so much for your answer.
    I tried to create new PO as you told, but I failed again.
    I could copy only one item into new PO document   ( there are serveral item (material item , comsumer itme , )
    but only material item copied to new PO (select item and adopt)
    Could you pls kindly adivse?
    I would like to copy several items from the old PO document and pastes those items on one new PO document
    Step 1 - Type ME21N - Create Purchase order
    Step 2 - Select PO document type, Vendor & PO date.
    =================================================== ( by step 2 , this is just create new PO===
    Step 3 - Click Document Overview button and open new window menu in PO screen left side
    (Do you mean just clike Document overview? in the left screen? )
    Answer : Yes, click on the Document Overview ON button and then open left side one small window.
    Step 4 - Click Selection Variant button in the left side window menu and then select Purchase Order option.
    (do you mean just select "my purchase order" button i the selection options?)
    Answer : No, click on the 'Purchase Order' first option.
    Step 5 - Now next screen open and give OLD Purchase Order document number in Purchasing Document ______ input field &
    other input data filed is empty.
    ( I dont understand exactly what you mean, what's next screen? do mean open new session? or
    just select old PO document via document overview window in the left side? )
    Answer : Yes, after click 'Purchase Order' first option, it will open new session screen and on the screen input option is 'Purchasing Document ___________ . Here, you will give copy of the old PO number remaining input options data are empty.
    Step 6 - Now Execute the screen and shown old PO number 3 times shown (10,20,30)
    (What exactly do you mean? do you mean just click old PO number shown on the document overview? )
    Answer : Yes, after execute the old PO number shown on the document overview screen.
    ( we can do if there is still PO number in the left pane , just clicking po number )
    Step 7 - In the OLD PO first 2 line items are to be create new PO, Select 1st line using mouse and then adopt button click
    (Selection variant next button), 2nd line select & adopted to new purchase order line item from old PO line item 10 & 20 copied.
    (I wonder this answer , I followed as your instuction same way.. select itme 10 and adopt , and select item 20 and adopt
    and in the new PO document just click adopt , in that case, only one item copied..
    Could you pls make clear it? )
    Step 8 - Click Document overview button, the left side window menu closed.
    Step 9 - Adopted 2 line item rate, qty and tax details to be provide and then SAVE as new Purchase Order.
    Hello, my answer provided for you question. Now, you are clear and resolved of old PO to new PO for the particular line items.
    Regards,
    K.Rajendran
    Edited by: SAP toddler on May 14, 2011 9:50 AM

  • BAPI_GOODSMVT_CREATE  (in line item, missing mseg-sgtxt in doc. generated)

    Hi all....
    I'm using this bapi to creat material documents (without purchase orders or anything like that).. In line items I fill field item_text, but when mm document is generated, mseg-sgtxt is empty.  Anyway, bapi works fine, but this field is missing....
    Is it the way that this bapi should works??
    Thanks from Barcelona......

    Hi....
    Sorry about my delay replying to you.. I don't remember the note, but I give you the SAP exit you should checkout...
    EXIT_SAPMM07M_001
    Hope it's useful for u......

  • Service line item related query.

    Hi ,
    i am creating one project and want to copy one service activity with all line items from my another project, the activity is containing more then 200 line items please tell me how to copy a single service ativity from one project to another project? if there is not any solution to copy the activity atleast tell me how to copy all the line items at a time? can abybody help me please?
    Sheetal

    not sure if this is possible
    suggested workaround
    go to the the WBS of the new project - in CJ20N - right click, include WBS, select operative, enter the WBS which has the activity that you wish to copy - choose with activity
    Now the activity is there is the new project - once in the same project you can click and drag the activity to the required WBS and delete the additional copied structures which are not relevant anymore

  • No control line for line item - error while posting bd to accounting

    Hi all,
    Billing document showing err "no control line for line item" while posting to accounting doc.Sales document is complete no in completion logs.
    Previous errr: g/l missing for line item" in order incompletion after maintaining company code for customer, then refresh the g/l missing for line item is no more logs and showing the error "no control line for line item" while posting bd to accts.
    Please help
    Regards
    anush

    Hello Anush,
    if the company data of the payer was not created when the sales order has been created, then the system could not create the correct records in table VBREVK. Once the company data has been maintained the VBREVK records could be corrected by re-saving the sales, but only if no billing document exists.
    In your case you already created the billing document.
    Please try these step:
    1. reverse billing document
    2. run VA02 add a blank char to PO number, save
    3. create new billing document
    Best regards,
    Ivano.

  • Enhancement - Accounting Document from Billing Document - change line items

    Hi Experts,
           Our client has a requirement to display all line items(as shown in Billing document) along with the tax line in the Accounting document. I can explain it as below:
          In VF01 transaction code: enter the delivery number.
          Press enter to see the number of line items that will be populated in the Billing document.
          Click on save.
          Here in the Accounting Doc you'll find only 2 line items, one line item is the consolidation of WRBTR and quatity of all the line items in the Billing Document and the other line item is the tax.
          We are required to replace the consolidated line item in the Account Doc with all the actual lines as populated in the Billing Document.
          For this we tried various methods:
                 Searched for a BAPI - couldnt find any which will help in modifying the line items before creation of Account Doc
                 Checked UserExits - Found one SDVFX008 but it didnt have the table which is sent for population of Accounting doc hence there was no way we could modify any table to get the desired output.
                 Searched the VF01 Flow in Debugger to check when the Accounting Doc is updated, but it also didnt yield any fruits.
          Kindly please guide on a way this can be accomplished. Appreciate the help from you all...

    Hi
    I think that your requirement is related with summarization of items in the FI doc for the billing document. Please, see SAP Note 36353 - AC interface: Summarizing FI documents. See also Note 301077 - User exits for the interface to accounting.
    I hope this helps you
    Regards
    Eduardo

  • Adding new line item while save

    Hi all,
    use an implementation of BADI  ME_PROCESS_REQ_CUST in the MM-Purchase-Requisition, method IF_EX_ME_PROCESS_REQ_CUST~POST while save.
    based on the line items available(USER ENTERED) i have to add few more line items based on the account assignment category and quantity while save.
    How to create new line items (copying the existing line item and change the quantity ) and save the requestion with the additional line items. I used this code. while calling the method CRETE_ITEM  create based on the object REF_ITEM  in the MY_STATE.
    the REF_ITEM object is Initial . so while creation the empty object is created.
    kindly help to give tips/details  to handle.
    Coding:
    data: l_item_list TYPE MMPUR_REQUISITION_ITEMS,
    l_item TYPE MMPUR_REQUISITION_ITEM,
    l_item_akt TYPE mereq_item,
    l_item_ref TYPE ref to IF_PURCHASE_REQUISITION_ITEM.
    l_item_list = im_header->get_items().
    loop at l_item_list into l_item.
    l_item_akt = l_item-item->get_data( ).
    IF l_item_akt-MENGE > 1 AND
           l_item_akt -KNTTP = 'A'.
          DO l_item_akt -MENGE TIMES.
             l_item-item= IM_HEADER->CREATE_ITEM( IM_ITEM =  l_item-item).
            INSERT  l_item INTO TABLE IT_ITEMS_list.
    %%%%%  here i checked useing    get data  method  i am not getting any data other than relesing procedure data.
    I used SET_DATA method to set the data. even I am not getting data.
    endloop.
    (Debugging the code, I manage by doubleclicking while create Item  method the fieldcontent of l_item (e.g ) to show the content of the class-attribute my_state. This works only if the field “Interface” in the Debugger is empty because then I see the attributes of the class. If the field Interface is filled with “IF_PURCHASE_REQUISITION_ITEM”, there aren’t any attributes shown.)
    Thanks in advance for your kind help!!
    Nicole

    I searched sdn and found this not possible.

  • How to split ACC_DOCUMNET03 IDOC after 100 line items for given posting

    Hi Friends,
    I need to create an IDOC based on the company code and posting date & a particular company code for a given date has reached 100 line items then create another IDOC for that.
    EX:
    I have 150 Line Items in file
    120 Items are related to Company Code "1100" and remaining 30 related to company code "1200"
    For this i need to create IDOC's like this
    one IDOC with 100 line items which will contain 1100 company code
    second IDOC with 20 line items which will contain 1100 company code
    Third IDOC with 30 line items which contain 1200 company code
    I assume that this can be done through UDF.
    Please can you guys help me this.
    Thanks in advance.
    Thanks,
    Vivek.

    chk this:
    /people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool

  • Possibility of reversing Goods issue and delivery of one line item

    Hi experts,
    Is there a possibility of reversing Goods issue for only one line item and also the delviery for that line item so that i can make changes in the sales order for that line item only.
    Appreciate your response.
    Regards,
    krishna

    Hi Laxmipathi & Rithvika,
    Basically the issue is in the sales order there are around 90 line items out of which most of them has been processed the delivery and GI and even invoices has been made for some.
    While doing so, there are about 5-6 delivery docs has been created for the 90 line items.
    Now, we need to change some data for few line items , for this we dont want to do reversal for all the line items and again do a delivery and PGI as these line items are in various delivery docs.
    Let me know , if there is anyother way of doing it or we should follow the normal process of doing it all again.
    Regards,
    krishna

  • Idoc Type to add a new line item to existing Inbound delivery

    Hi Friends,
    we have one requirement.
    In the system Inbound delivery is created through Idoc. Once the inbound delivery is created, we need to change that inbound delivery by adding a new line item to that inbound delivery where the line item belongs to another PO. Means, I have an existing inbound delivery number for a PO having one line item. Now I want to add another line item into the inbound delivery for another PO. I have created the inbound delivery through Idoc using the idoc type DESADV. Now I want to change the inbound delivery for adding the line item. Can anybody please tell me which idoc type should I use for this above highlighted requirement?
    Thanks & Regards
    Satya

    Hi.
    I have one PO 4500000001 for which I have created the inbound delivery 180000001. This inbound delivery has been created through an IDOC. I have another PO 4500000002 having one line item. Now i want to add another line item into the inbound delivery 180000001 for the PO 4500000002 as second line item. To add a second line item to the existing inbound delivery, which IDOC type should I use.
    Hope it clarifies the requriement.
    Thanks & Regards
    Satya

  • Problem accessing RFx Response Line Item - Item Specification Group

    Hi There,
    How does one access the BUYER_SPEC_GROUP collection on the Rfx Line Item Response (ID 772) object?  I've read other posts where people are having difficulty but I wasn't clear on their approach.  I think I'm accessing the BUYER_SPEC_GROUP collection correctly, and in fact I can see the correct size(); however, when I iterate over the collection I get a null object reference. 
    I appreciate any help - I've been stumped for days
    My code is as follows (output is documented as comments), and I'm triggering on the RFX Response Save:
    displayName = doc.getDisplayName();
    log.setLogMessage("***** display name: " + displayName);
    Logger.info(log); 
    // correctly returns the RFX Response display name
    // get line item collection
    lineItemCollectionMetaData = doc.getCollectionMetadata("COLLN_LINEITEM");
    log.setLogMessage("***** lineItemCollectionMetaData : " + lineItemCollectionMetaData );
    Logger.info(log);
    // returns com.sap.odp.api.ibean.common.AbsIBean$ IBeanCollectionMd@68f2f4c3
    lineItemCollectionName = lineItemCollectionMetaData.getCollectionLogicalName();
    log.setLogMessage("***** line item collection name: " + lineItemCollectionName);
    Logger.info(log);
    // returns COLLN_LINEITEM
    lineItemCollectionValue = lineItemCollectionMetaData.get(doc);
    log.setLogMessage("***** line item collection size: " + lineItemCollectionValue.size());
    Logger.info(log);
    // correctly returns the size (I've tested with single and multiple line items)
    try{
         log.setLogMessage("***** get(doc) returns " + lineItemCollectionMetaData.get(doc));
         Logger.info(log);
            // returns com.sap.odp.doc.iapi.IapiLocator$@2f81a09d
         LIIterator = lineItemCollectionMetaData.get(doc).iterator();
         log.setLogMessage("***** LIIterator  returns " + LIIterator );
         Logger.info(log);
            // returns com.sap.odp.api.ibean.common.AbsCollection$BeanIterator@6757bbc8
         while(LIIterator.hasNext()){
              LICollectionBean = (Object) LIIterator.next();
              if(null != LICollectionBean){
                            // never makes it here
                   log.setLogMessage("***** LI Collection Bean:" + LICollectionBean);
                   Logger.info(log);
              else     {
                            // always returns the following:
                   log.setLogMessage("***** LI Collection Bean is NULL");
                   Logger.info(log);
    catch (Exception e) {
         log.setLogMessage("***** ERROR " + e);
         Logger.info(log);
    Edited by: skaura on Feb 2, 2012 4:51 PM
    Edited by: skaura on Feb 2, 2012 4:53 PM

    HI implement this note and see since this note correction may not available in sp04.
    SAPKIBKV06 ..
    Muthu

  • How to create the no of line items in a PO

    Hi Sir,
    Please tell me how can i restrict the no of line items to be created in a PO say 20. where i have to do that.
    Regards,
    Krishan

    Hi Krishan
    I think u can not restrict the no of line items to be created in a PO in std SAP .U take a help of the ABAP ppl . They can write a program in such a way that in the ME21N, program checks
    the number of line items copied from purchase requisition,If it is more than 10, it should issue an error message.
    Regards
    Anjali

  • Disable e-mail  field  when line item created by copying another line item

    Hi All,
    I need your help. Actually our user wants to create a line item by copying existing line item in shopping cart. While doing so the requirement is the e-mail address field remains disable after the line item is copied. Please guide me how to do it. Please feel free to ask me any further questions.
    Regards
    Praveen Ghosh

    Hi Zaid,
    Thank you for your response.  Assets are not my area so I’m not sure if I missed a transaction or step in the process.   I tested this out by doing the following steps:
    Created AUC Asset class with line item checked
    Assigned PM Order type as non-investment with no investment profile and created order number
    Created a main asset number 
    Created an AUC sub asset number to step 3
    Created settlement rule to sub asset number on order
    Posted costs to order
    Settled from order to AUC with transaction KO88
    Created distribution rules for asset with transaction AIAB
    Settled from sub asset to main asset number with transaction AIBU
    When I settled from the sub to the main asset number in step 9, I found I lost the line item detail.  Is there another configuration setting I need to make to allow me to see the line item detail when I use AIBU?
    Thank you,

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

  • Price and Pricing conditions are not copied to PO for a line item !!

    Hi
    I have created a PO w.r.t a PR which has only one line item.
    Now, I add another line item to this existing PO, i get an error message that the Price and Pricing conditions are not copied.
    How do i rectify this error !!
    Where might be the link for this Price and Pricing conditions to get copied in to this PO ??
    MaruthiRam

    What kind of PR and in the PO same material you enter for new line or new material and do you have any funcitonal authorization assigned o your user id
    please reply

Maybe you are looking for