Duplicate Purchase Order with all fields.

Hi,
I need a method to Duplicate a Purchase Order with ALL the fields. I tryed with a SendKey("^D") method but the new instance not copy the IC data. Looking for a better method, I read about the option to Save as XML the selected purchase, but I don't know what is the procedure to load the "clone instance" stored in the XML into the SBO Form with a new DocEntry.
Anyone knows the better path to do this?
Thanks in advance.
Oscar Sanchez Montaner

Hi Oscar,
The XML method is fine. You export the original PO to an XML file. You can then use XSLT or a .NET XMLDataDocument object (or similar method if you are using another development environment) to remove the values in the DocNum, DocEntry and any other nodes you don't want to clone (eg DocDate). You can then load this back in to SBO using the GetBusinessObjectFromXML method of the Company object. Personally, I like the XSLT method because it's easy to do and very easy to amend without recompiling your addon (eg if you create new UDFs then you can quickly amend the XLST file to include or exclude these fields).
Kind Regards,
Owen

Similar Messages

  • Adding a custom tab in Purchase Order with two fields - ME21N

    Hello Experts,
    My requirement is to add a custom tab with two fields in purchase order at header level.
    The BADI ME_PROCESS_PO_CUST is alreday implemented previously as there was one custom tab added previously in header.
    The structure  CI_EKKODB already have the custom fields for the enhancement done earlier.
    Now to add my additional tab how should i proceed ....should i put my additional fields in the same structure and write my code in same BADI.....will there be any impact on already done enhanecement.
    Please suggest in achieving this functionality.
    Thanks,
    Naveen

    Hi,
    Check this [wiki|http://wiki.sdn.sap.com/wiki/display/ABAP/DetailedexplanationaboutBADIandthewaystofindtheBADIwithanexample%28ME23n+transaction%29], it tells you how to do with an example for item data.
    Regards,
    Eduardo

  • Change list of items in purchase order with own fields

    Hi,
    we use exit MM06E005 with own customer screens (SAPMM06E/ 0101 and 0111).
    We can change/insert the fields on this screen and store the data in EKPO.
    All is OK.
    Now we want to use these fields in the Item overview (tablecontroll?).
    Has anyone an idea how to do this?
    thanks.
    Regards, Dieter

    Hi
    If it can do it, it can try to use the BADI ME_GUI_PO_CUST
    Max

  • Validity start & end, in Purchase Order with limit

    Hi All,
    We are using  a model of SAP with one type of Purchase Order: we have created a new type of purchase order (ZFOA), that we use for all purchase orders.
    Now we want to use ZFOA also for Blanket Purchase Order, instead of the standard type proposed for this scope by SAP (FO).
    We have inserted Validity Start & Validiti End  as Optional Entry in Customizing.
    ( IMG - MM - Purchasing - Purchase Ordrer - Define Screen Layout at Document Level).
    We have inserted them as Optional Entries, and not as Required Entries, because they are Required only for Blanket Purchase Order. (and we use ZFOA for all ours types of Purchase Order)
    So i want to know if it's possible to connect the obligatory requirement of these two entries to:
    - ZFOA (type of Purchase Order)
    - B (Item category in Purchase Order)
    In this way:
    1) when i create a PO (ZFOA) without item category B --> Validity date & Validity End are not obligatory fields
    2) when i create a PO (ZFOA) with item category B ---> Validity date & Validity End are  obligatory !!
    Have you got any Solutions??
    Best regards
    Alba

    Thanks very much!
    Now i found in MM SAP Manual (SCM 520, Purchasing) a similar example, and it could seem possible:
    When creating a standard purchase order with the standard item category, the following field selection key is determined for the Material group field:
    • Field selection key ME21N (Create/Change Purchase Order transaction):
    The Material Group field is an optional field.
    • Field selection key AKTH(Create activity category):
    The Material Group field is an optional field.
    • Field selection key NBF (purchasing document type NB):
    The Material Group field is an optional field.
    • Field selection key PT0F (item category Standard):
    The Material Group field is a mandatory (required-entry) field.
    The combination of field selection keys ME21N, AKTH and NBF means that the field is an optional field. Because the Material Group field is defined as a mandatory field in the field selection key PT0F however, this means that the field requires an entry when a purchase order is being created.
    I have the same problem for Validity start field, but why if i do all of this things, the field remain not mandatory?
    Thanks in advance
    Best regards
    ALba
    Edited by: Alba Battolini on Apr 22, 2009 9:21 AM

  • Purchase Order with FX Cover

    Hi there,
    If I raise a purchase order and have also arranged FX cover for this amount, in the PO I can select fixed exchange rate, so that this is recorded correctly. 
    However, if the purchase requires multiple part payments at different rates, how can I correctly record these on the PO if there is only one field and at the header level. 
    entering a weighted average on the PO results in fx gains/losses that net out, but are not required.
    Anyone come accross this scenario?  It is not common, but also should not be unique.

    [Create Purchase order with program|can we create purchase order through report programming?]
    Plz be clear about your requirement instead of posting questions like these.
    Don't violate forum rules with Duplicate posts

  • Program for Creating Purchase Order with reference to purchase requisition

    Hi ,
    I need to Create purchase Order with reference to  Purchase requisition,
    in my case i need to automize the Process which is happening in MD04,
    Can you please suggest me ?
    Thanks ,
    Murali

    Hi,
    Plz check this link. It will be helpful to you.
    Purchase order creation with reference to PR
    We can also create the PO Using the BAPI_PO_CREATE1 function module.
    In this function module fill up the all necessary Details.
    With details in Item Table we haveto give the Fields PREQ_NO and PREQ_ITEM for each item .
    then it will creates the PO with PREQ.
    Thanks & Regards,
    Sarita Singh Rathour
    Edited by: Sarita Rathour on Aug 3, 2009 7:01 AM

  • Create purchase order with reference to Sales order Line item

    Hi All,
    i had a requirement that i need to create the Purchase order with reference to sales order line item...
    In T.code me27 client requied a input field for sales order no and with that order reference he want the data of line item to PO creation line item screen.....
    please sujjust......how to proceed......
    regards,
    Ravi Nemani

    Hi
    Go to SPRO->Logistic general->Tax on goods movement->India->Movement types.
    Here you will find the group of movement types check which movement types is mantained for the out side movement groups or inward movement.
    also check the Material Master in MRP view if the collective requirements (02) is mantained.
    Regards
    Sri

  • PURCHASE ORDER WITH OUT BAPI_PO_CREATE CAN WE CREATE?

    PURCHASE ORDER WITH OUT calling BAPI_PO_CREATE CAN WE CREATE?
    Don't Post your question with all Caps. Follow the Rules of Engagement
    Edited by: Vijay Babu Dudla on Apr 23, 2009 1:46 AM

    [Create Purchase order with program|can we create purchase order through report programming?]
    Plz be clear about your requirement instead of posting questions like these.
    Don't violate forum rules with Duplicate posts

  • Purchase order with Freight Value

    Dear All,
    My scenario is....
    I Purchase some material to my x vendor. when he send the material , he charge freight amount on it. now please suggest me how to create a purchase  order with freight value & I want to take freight effect on every material. vendor is not divide freight amount on every material. now what will i do. If i take this effect only one material than My material map get change. How to take this effect on every material.
    Regards
    Vimal

    Hi,
    When vendor send material , vendor send firght value invoicce, means at the time of PO you don't know it,so it can be consider as unplanned delivery cost in SAP and you can post this cost in MIRO ,on details tab in unplanned delivery field.
    In following path you can decide where this value should add in material cost or G/l account in following path
    In SPRO ,Maintain settings as shown  MM---> Logistic Invoice Verification -->Incoming Invoice --> Configure How unplanned delivery costs are posted
    Regards
    Kailas Ugale
    Edited by: kailasugale on Dec 14, 2011 10:21 PM

  • Individual purchase order with subcontracting material

    Hi all,
    I've implemented a individual purchase order in a sale order by means of 'TAB' category item. The material has been set as 'subcontracting'.
    When I create the sale order, a purchase requisition is automatically created with M imputation and special stock 'E'.
    Once I create, the purchase order with reference to purchase requisition, I set 'L' category item. Then I save the purchase order.
    In order to simplify the flowchart, the vendor has enough stock to manufacture the required material.
    Then, Tx. MIGO, stock input with reference to purchase order.
    For the FERT material --> movement 101 E + is set.
    For the component --> movement 121 E - is set.
    How can I obtain 121 'O' - movement for components in order to decrease SC vendor stock?
    Thank you very much in advance for your support.
    Best regards,
    Alberto Ramos.

    Dear Charlie,
    Thank you very much for your response. As you comment, I made a mistake with the number of movement. Certainly the movement for raw material consumption is 543.
    I have executed the flowchart you describe. In your case, an independent subcontracting purchase order is done. This flowchart works correctly (with the results you comment. Actually the raw consumption are related to mov. 543 O -).
    The problem is when purchse order is related to a sales order. That is:
    1. Sale order TA with only one position material A. Category item 'TAB'.
    2. Material master for material A --> MRP 2 view --> Special procurement field: 30 - Subcontracting
    3. An automatic purchase requisition is created (thanks to 'TAB' category item, schedule line, ...)
    4. Tx. ME21N --> I create a purchase order with reference purchase requisition:
        4.1. Account assignment category field is set to 'M' from sales order / purchse requisition
        4.2. I manually set Item category field to 'L' for indicating subcontracting (I don't force this to be 'L' from sales order / purchase requisition because I need to use the same flowchart for subcontracting and not subcontracting materials)
    5. Tx. MIGO
        5.1. For Fert material the system executes mov. 101 E +  (as in your description)
        5.2. For raw materials the system exectures mov. 543 E - ( instead of 543 O -). I would like to obtain the reduction of subcontracting stock, because this material is in my center but povided to SC manufacturer.
    Should I do a 'Subsequent adjustment' by means of Tx. MIGO the movement are:
      - FERT material 121 E - (depending on adjustment)
      - Raw materials 543 E - (again 'E' instead of 'O' which is the result I would like to obtain).
    I will very much appreciate your comments.
    Thank you again,

  • Goods receipt for purchase order with account assignment 'K'

    Hello All,
    There are couple of purchase orders with acc.*** "K". On doing the GR for these PO's they have been done with mvt type 103 & mvt typ 105.
    I understand that material has been directly consumed to the respective cost center.
    How do track the internal movement for these materials??
    I need to view the stock for these materials at the cost center as in MMBE the stock is seen as ZERO.
    All these materials are with QM proc ACTIVE. So a goods receipt is done 105, then the inspection lot is cleared. However, in this case as the material is directly consumed, it is NOT displayed in QA32.
    Is the above procedure correct??? Is it better to receive stock against mvt type 101 & then do a 201 mvt ??
    Request your inputs.....
    Regards,
    Manoj Reddy

    Account assignment inventories are not maintained. To maintain a report for cost center receiving/issuing you need to make a customized report with help of ABAP.
    Other way is to pull report in MB51, with selection criteria COST CENTER and it will give you result of stocks available on cost center. For stocks received on cost center, you can pull report with cost center and movement 101.
    201 is used for goods issue to cost center from warehouse, the stock you receive from PO against 101 is directly charged to cost center, so no need to issue later to cost center.
    Edited by: Afshad Irani on May 17, 2010 2:17 PM

  • Problem regarding Purchase Order with Free of Cost Material

    Dear Xperts,
    I am facing problems while doing Goods Receipt of a Purchase Order having all the materials we are going to receive Free of Cost from the Vendor.
    This case is happening with Doemstic and as well as Importer Vendors also.
    Problems to be solved:
    1. If we are using Tax Code(with excise conditions) ,excise duty calculation does not take pace automatically at Goods Receipt as the Material Value is Zero on which the duties will be calculated for a Manufactuing Plant.
    2. This case seems very problammatic if that Purchase Order is having almost thousand line items.The user has to enter all the Excise duties manually for each & every line item during Goods receipt in a manufacturing Plant.
    3. In case of Importer Purchase Order also, the CVD portion & CESS on CVD portion user has to enter manually.
    4. To solve this problem we are  not using Free Goods Indicator in PO, we are entering 0.01 paisa , but during the MIRO of Planned Delivery Costs , the system is not showing or providing POP-ups of those relevant condition types to the user to enter the actual amount.
    Please advice, how can we proceed in this case.
    Regards,
    Soumick

    First you are putting 0.01 value . So the planned delivery cost is not showing coz if say tax is 8% then 0.01 x 0.08 will be  0.0008. It will take first two digit after decimal and hence its 0.00 and hence plannded delivery cost is not showing.
    If you put 0.5 you will be able to put planned delivery cost in MIRO
    Now regarding value is zero and how will the import duty be calculated. May be make a  pricing routine where in the custom duty is not calculated on this base price 0.5 or 0.01 but on the actual value if it was not free of cost and that value you can maintain  through MEK1 transaction code.
    And while posting MIRO or MIGO you need to identify that these are free of cost material and use BADI fi_ac_document
    and may be replace the actual GL with some other GL so that 0.5 or 0.01  does not add to your inventory cost and you could knock off later.
    Regards
    Sangeeta
    Edited by: Sangeeta Khurana on Feb 6, 2012 1:37 PM

  • Purchase Order with Invoice Plan

    Hi,
    I need to understand working with Invoicing plans for a Purchase Order. Especially the service PO for the rents and other related services.
    How the PO is linked to the Invoice Plan and how the process happens in SAP?
    Thanks in advance!

    Creating an Invoicing Plan  
    The following procedure describes how to create an invoicing plan with the pre-Enjoy ordering transactions (ME21, ME22, ME23).
    The procedure described is also applicable u2013 with certain restrictions u2013 to the Enjoy purchase order (ME21N, ME22N, ME23N).
    If you are using the Enjoy purchase order, you will find:
    ·         The Invoicing Plan button and the indicators for GR-based invoice verification (GR-Based IV), service-based invoice verification (Srv.-Based IV), evaluated receipt settlement (ERS), and invoice receipt (Inv. Receipt) among the item details on the Invoice tab page.
    ·         The account assignment among the item details on the Account Assignment tab page
    ·         The Goods Receipt and GR Non-Valuatedindicators among the item details on the Delivery tab page
    Prerequisites
    Vendor Master Record
    Before you can use the invoicing plan with automatic settlement, the Evaluated Receipt Settlement Delivery indicator must be set on the Purchasing Data screen in the vendor master record.
    (If you wish to enter invoicing dates manually, this is not necessary.)
    Purchase Order
    ●     We recommend using a framework order (that is a purchase order with a validity period and a reason for rejection). The invoicing plan can adopt the validity period specified in the PO header.
    ●     PO items for which you wish to use an invoicing plan must have account assignment irrespective of whether a material with a master record, a material described by a short text, or an external service is involved.
    ●     The GR/IR control facility must be set up in such a way that no goods receipt (or, in the case of services, no service entry) is expected - only an incoming invoice. If you wish to have automatic settlement, you must also set the Evaluated Receipt Settlement indicator.
    If you nevertheless wish to allow service entry sheets for the item (e.g. for information purposes only), you must set the GR Non-Val. indicator.
    Customizing
    Under Purchase Order à Invoicing Plan in Customizing for Purchasing, you can maintain data such as the desired invoicing plan types, date categories, and date descriptions.
    Procedure
           1.      Create a purchase order with account assignment (framework order).
    Click  to access the item overview (or the overview of service lines if you chose item category D for services).
           2.      Enter the desired material or service, the quantity, and the price.
           3.      Select the desired item and click  Account Assignments to access the account assignment screen. Enter the account assignment for this item.
           4.      Click  to access the item detail screen. Check that the GR/IR control indicators are set correctly on the item detail screen.
    ○     The GR and GR-Based Invoice Verification or Service-Based Invoice Verification indicators must not be set.
    ○     IR must be set.
    ○     You must set ERS if you wish to have Evaluated Receipt Settlement.
    ○     If you wish to have service entry sheets purely for information, for example, allow non-valuated goods receipt (i.e. select the GR Non-Val and GR indicators).
           5.      Choose Item ® Invoicing Plan. A window appears, in which the invoicing plan types predefined in Customizing are suggested. Choose the desired invoicing plan type and click  Continue.
    You can use the following invoicing plan types:
    ○     Periodic Invoicing Plan
    ■      You use the periodic invoicing plan if the total value of the PO item is to be invoiced in each period.
    ■      The system creates the invoicing dates automatically on the basis of the settings in Customizing.
    ■      The invoicing date and the amount to be invoiced are shown for each settlement period (e.g. month). In the case of the periodic invoicing plan, the amount represents the total value of the PO item.
    ■      You can change the suggested dates and block individual dates for automatic invoicing if necessary.
    ■      You can enter the start and end dates for the invoicing plan.
    ■      With the Dates from and Dates to fields, you can determine that an invoicing plan does not contain invoicing dates extending over the entire validity period of the purchase order but only for a certain period within that validity period. (E.g. within a validity period from 1.1. to 12.31, only dates within the period 1.1. to 06.30.)
    ■      With the Horizon field, you control how far into the future dates can be created. If you enter a date rule that adds six months to the current date here, invoicing dates will be created for just half a year in advance in each case.
    The system automatically creates new dates if you change the invoicing plan or when you invoke the transaction for Updating Periodic Invoicing Plans. See Generating Further Invoicing Plan Dates
    ■      The In Advance indicator allows you to specify whether the invoice is to be created with regard to a prior or subsequent period. (E.g. at the beginning of February, either in advance for the month of February or in arrears for the month of January).
    ■      In addition, fields with information on the existing invoicing plan are displayed (e.g. the calendar upon which the date determination process is based).
    ○     Partial Invoicing Plan
    ■      You use the partial invoicing plan if the total value of the PO item is to be invoiced in several partial amounts.
    ■      You get an empty date overview in which you can manually enter the desired dates.
    ■      If you work with a reference invoicing plan, the system automatically generates dates in accordance with the reference plan.
    You have the following options:
    ●      You create a reference invoicing plan in Customizing for the invoicing plan type.
    ●      You enter an existing invoicing plan as reference plan directly in the invoicing plan for the PO item.
    ■      You can flag a date in field B (Billing/Invoicing Rule) as follows:
    ●      As a down payment (percentage or value)
    ●      As an invoicing date (percentage or value)
    ●      As a final invoice
           6.      Click  to return to the item overview.
           7.      Click  to save the purchase order item with the invoicing plan.
    You can then start the automatic invoice creation process during invoice verification.
    For more information, refer to the section Settlement of Amounts Due Under Invoicing Plans.
    Once assigned to an item, the invoicing plan type (e.g. partial invoicing plan) cannot be changed. If you wish to assign a different invoicing plan type, you must delete the item and create a new one.
    Generating Further Invoicing Plan Dates  
    If you have assigned a periodic invoicing plan to a PO item but have not initially defined invoicing dates covering the entire validity period of the purchase order, you can generate further dates in due course.
    You have created a PO item with a periodic invoicing plan for a certain planned procurement. The purchase order is valid from 1.1. to 12.31. When creating the invoicing plan, you specified one invoicing date per month for the first half of the year. You have not yet planned any dates for the second half of the year because you do not wish information from the invoicing plan to be passed on to purchase order commitments at this stage, for example.
    By mid-June, it is clear that the PO is to proceed as envisaged, and you therefore wish to schedule invoicing dates for the remainder of its validity period.
    Procedure
    To schedule further invoicing dates, proceed as follows:
    Choose Purchase order ® Follow-on functions ® Period. invoicing plan
    Specify the purchase orders for which invoicing dates are to be generated in the invoicing plan and perform the function.
    A log can be created if desired.
    Result
    The system adds further dates on the basis of information such as the validity period or horizon from Customizing, the purchase order, and the invoicing plan.
    regards,
    indranil

  • Error while creating purchase order with account assignment category "A"

    Dear All,
                      At the time of creating purchase order with account assignment category A - Asset its throwing error as " GL Account 123400 can not be used"
    how to resolve this  issue"
    Edited by: Matt on Sep 16, 2010 10:09 AM - removed bold tags

    HI,
    Assign all assets GL to Asset Class
    spro --> financial accounting new -->assets accounting --> assets accounting (lean Implementation) --> organization structures --> Assign GL
    Hope Help U !
    Regards,
    Pardeep Malik

  • Default a gl account in account in a purchase order with account assignment

    Hi all
    I need default a gl account in account in a purchase order with account assignment P. can somebody help me. They have used a gl account which is not correct.
    Thanks

    Hi,
    Please refer posted tread in the forum
    default G/L account for purchasing documents
    Regards,
    Santosh

Maybe you are looking for

  • I'm trying to move a folder full of "web archive" files to my IPad Mini. It says device missing services. Any ideas?

    Hey all! Recently got an IPad Mini. Already have a Macbook. I have a folder full of songs(lyrics and chords) on the Mac. The file type inside the folder are all "Web Archive". I am trying to transfer this folder to my Mini, via Bluetooth. It won't al

  • RE: prob with line item text in PO print form

    Hi All, Problem with SAPscript I have A problem with PO pronting form.  In the PO craetion(me23n), IF we mention certain text in last line item the PO printing form is behaving uncertanly. If the text limit to a particular line is mentioned , then PO

  • How different fields linked with Application Utilities Lookups

    Hi, I need to know how different fields at different forms are linked with utilities lookups and pick the values(meaning)? For example #1; at Organization form, Type of organization is must to define, value of Type comes from Utilities lookups. Type

  • Querry on third party PR

    Hi All, I am an SD consultant configuring a 3rd party process, i have the following querries: 1. When i create a PR automatically from a sales order will it copy all the items from the sales order - even if the items are supplied by different vendors

  • Bypassing proxy settings does not work

    I can't manage to get my Mac to bypass the proxy settings. My bypass settings are: *.local, 169.254.0.0/16, localhost, 193.230/16, 192.168.0.0/24, 172.16.6.0/24 With these settings if I try to access 172.16.6.120, the server does not respond. However