Copy From Button similar to Purchase Order

Dear Members,
I have a user defined for named Quotation. I want to create a Copy from button  in Purchase Order through coding, similar to those present in sale order and copy the contents in quotation to  Purchase Order.
Please send some sample coding to create a  Copy From  button  in Purchase Order  , and to list  my user defined form quotation,
similar to present in sale order Copy to A/R Invoice.
Help will be appreciated to solve this issue.
Thanks and Regards,
Venkatesh.R

could somebody explain me why cannot text in code format and its in one line? - i cannot insert the code for few weeks. thx
Enable email in your profile and Ill send the code to email - i cannot insert it here.
Edited by: Petr Verner on Jul 24, 2009 10:22 AM
If pVal.FormTypeEx = "142" And pVal.BeforeAction And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD Then
                Dim oform As SAPbouiCOM.Form
                oform = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                oform.Items.Add("combo", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
                oform.Items.Add("button", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
                Dim oitem As SAPbouiCOM.Item
                Dim obutton As SAPbouiCOM.Button
                Dim ocombo As SAPbouiCOM.ComboBox
                oitem = oform.Items.Item("combo")
                oitem.Left = -1 * oform.Items.Item("10000329").Left - 100
                oitem.Top = 399
                oitem.Width = 100
                ocombo = oitem.Specific
                ocombo.ValidValues.Add("1", "First")
                ocombo.ValidValues.Add("2", "Seccond")
                oitem = oform.Items.Item("button")
                oitem.Width = 100
                oitem.Left = oform.Items.Item("10000329").Left - 100
                oitem.Top = 400
                obutton = oitem.Specific
                obutton.Caption = "Copy From"
            End If
If pVal.ItemUID = "button" And pVal.FormTypeEx = "142" And pVal.BeforeAction = False And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then
                Dim oform As SAPbouiCOM.Form
                oform = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                Dim oitem As SAPbouiCOM.Item
                Dim ocombo As SAPbouiCOM.ComboBox
                oitem = oform.Items.Item("combo")
                oitem.Left = oform.Items.Item("10000329").Left - 100
                ocombo = oitem.Specific
                oitem.Click(SAPbouiCOM.BoCellClickType.ct_Regular)
                oitem = oform.Items.Item("button")
                oitem.LinkTo = "combo"
                oitem.Update()
            End If
Edited by: Petr Verner on Jul 24, 2009 10:31 AM

Similar Messages

  • Net Price - direct copy from material master into purchase order

    When purchase requistions are converted to purchase orders, currently we are maintaining Net Price manually
    before saving the purchase order. Is there a way where the standard price is copied from the material master {Accouting view} into the purchase order directly without manual entry
    If yes, Please advice

    Hi,
    1. Go to SPRO > MM > Purchasing > Authorization Management > Define Function Authorizations for Buyers > Function Authorizations: Purchase Order > Here "New Entries" and define Function Authorization Key as "01" and give description.
    OR use T. Code - OMET
    Here under "General parameters" subscreen, cctivate "Adopt PO Price" indicator and select "Enter conditions"
    In "Possible ref. objects", select "W/o reference" otherwise reference documents (for e.g. PR, RFQ, etc...) for PO creation will become mandatory.
    2. Now go to SU01 > Enter User ID > Parameters Tab > Here for Parameter ID EFB i.e. Function Authorization: Purchase Order, maintain value "01" and check in PO, PR will become mandatory for that user.
    3. Now during creation of PR in ME51N, under "Valuation" Tab, you will get option for PO Price Adoption as Net or Gross. Select as per your requirement and it will copy Price to PO.

  • How to hide some buttons like CREATE PURCHASE ORDER, COPY, EDIT from POWL?

    In SRM 7 ECS we need to hide some buttons like CREATE PURCHASE ORDER, COPY, EDIT from POWL"s. We can do some manipulation via security but we need to make a few buttons invisible without security. Appreciate any advice. Thanks.

    Hi Ashwanin
    To make read only
    Below are the steps to Hide the buttons in POWL table
    1. if you want to Gray out the Buttons
        IMG > SRM SERVER> Cross Application Basic Settings --> Extensions and Field Control. There you will find a node to control   Actions. based on the object type choose your option and make it as read only
    To Make invisible
    1.If you want to  make invisible  the button .
    IMG > SRM SERVER> Cross Application Basic Settings --> Powl and Advance Search - > Adjust powl layout ,search criteria and push button (OR) t-code :   /SAPSRM/POWL_CUST
    2.choose the POWL type for the POWl table
    3.click on Action node , you will find all the acction assigned for the POWL table ,delete the entry which you want to make invsible and save it
    4 .Now run the report POWL_D01 and provide powl type in the selection criteria and deleate the catche quries
    Regards
    chinnaiya P
    Edited by: chinnaiya pandiyan on Jun 27, 2011 3:12 PM

  • Simulate Copy-From Button Click on Delivery Document

    Hi Friends,
    How can I 'programmatically' click on Copy From button, and then select the Sales Order?
    (I could get a forum post to capture the Copy From button click in the delivery document, but I want to do clicking also programmatically)
    I could click on the Copy-From button programmatically.
    After that, till I manually click on "Sales Order", control is not returned to the program (It acts similar to a message box:( )
    Do you know any ways to acheive it?
    Thanks.
    Regards,
    Geetha

    Hello Rajkumar,
    I came upon this thread but did not find it to be quite complete (and see that you were looking for a similar answer).  I just wanted to let you know how I am using "Copy To" to copy a Sales Order into an A/R Invoice.  I realize you are desiring a "Copy From" but I believe the steps will be the same (and believe others will value seeing this).  I know there is discussion above that the copy to is a matrix but I found the simplest approach is to just treat it like a combobox.  Here is my code in C#:
    // Declare my variables
    SAPbouiCOM.Form oForm = null;
    SAPbouiCOM.Item oItem = null;
    SAPbouiCOM.ComboBox oCombo = null;
    // Set my form to the currently active form
    oForm = SBO_Application.Forms.ActiveForm;
    // Simulate a "Click" on the Copy To (for A/R Invoice)
    oItem = oForm.Items.Item("10000329");  // This is the Item Number for Copy To
    oCombo = (SAPbouiCOM.ComboBox)oItem.Specific;
    oCombo.Select("A/R Invoice", SAPbouiCOM.BoSearchKey.psk_ByDescription);  //If I want to copy to an A/R Down Payment, I simply change the "A/R Invoice" to "A/R Down Payment"
    In short, by using the combo and "Selecting" the parameter I want, my belief is that SAP automatically initiates the remainder of the work.  Hope this helps you (and others).

  • How to get Reference Doc from copy from button

    Hi..
    I would like to know if there is a way to get the source document or reference document number with-out  sdk or add on development , if you used the copy from button to populate the data?
    sample
    in order entry you can populate the data by using the copy button then choose sales quotation,  then using formatted search or select statement could i get the source documents (sales quotation number)..
    thanks
    Loren

    Hi Loren,
    If you need to get the BaseRef field before saving the document you can use the screen reference in your query:
    SELECT $[$38.44.0]
    Just selects the BaseDocument reference number from a row.  You may want to also use:
    SELECT $[$38.43.0]
    To get the Base Document Type (sales quotation, delivery etc.)
    Bob Richardson

  • BOM button in STO purchase order

    Dear SAPERS,
    We have a requirement from our client, that is
    They need BOM explode button and Components button in STO Purchase order with Item Category U in Material master tab, just like in Subcontract Purchase Order Item category L.
    Actually Those BOM and components buttons are it self are include programs which are executed based on Item category.
    Please provide solution that how we can achieve this functionality for STO purchase orders.
    Regards,
    Venkat

    HI,
    Thanks for your quick reply,
    Actually our requirement is from Plant A some components are STO done to Plant B via Sales cycle, In plant B the components are converted to Finished Product and then soled to customer for plant B.
    At time of PGI from Plant A to Plant B system will generate Sl. numbers for those components at the time PGI
    So, We need the BOM concept in STO via BOM explode and Components button in STO PO, from this po bom system will get the list of components in PGI in sales.
    Regards,
    Venkat

  • Edit "Copy From button" on  A/R Invoice

    Hi
    I've added two extra Forms  "Loading"  &  "Unloading" under A/R Invoice . This is not the problem.
    The problem is---
    I want to get the "Copy from Unloading" dropdown  after clicking the Copy From button  on A/R Invoice  Form.
    Rgds
    Subrata

    Hello,
    (I didn't understand the answer. Would I solve the following problem by that answer?)
    I've made a form for Unloading of goods.
    Now I have to copy the details of the form from "Unloading Form"   to
    "A/R  Invoice"  .
    So, I've to add  one item "Unloading"  with others-"Sales Quotaions",  "Sales Orders" ,  "Deliveries"   in the "Copy From"  button  of  A/R Invoice Form.
    Is it possible?
    If yes, then How?
    Rgds
    Subrata

  • Copy From Button Combo

    Hi
    I am using DI API 8.8 and .net 2.0 to create addon.
    I have created a COPY FROM button combo with values SALES QUOTATION and SALES ORDER in my user defined form.
    I am also able to handle the event for that.
    I want to copy the data from SALES ORDER when i select SALES ORDER. How to do this?

    Hello,
    Quickly added some pseudocode, search the forum for more specified code.
    Documents SalesQuotation = (Documents) company.getObject(.....)
    salesorder.getbyKey(salesquoteDocEntry);
    SalesQuotation .saveXML(XMLSTREAM)
    // Change values in the xmlfile in the XMLSTREAM
    Documents Salesorder = (Documents) company.getObject (.....)
    Salesorder.getAsXml(XMLSTREAM)
    HTH Regards Teun

  • Delete button in process purchase order

    Hi All,
    I need some informaiton on the "Delete" button in process purchase order screen.
    Has it been enabled only for held POs? It is disabled in case of ordered POs. Can we enable it for ordered POs?
    Also, I put an ordered PO on hold and after that I could see the delete button enabled in PO. When I delete it, it is giving me the message "Your order was deleted". But still I could able to see the Po in the system.
    Is there a note or SAP help describing this? Plz help.
    Thanks,
    ss
    Edited by: SRM Stranger on Aug 25, 2009 11:27 AM

    Once the PO is published, you cannot delete it. If you have created a change version for the published PO, you can delete the change version but not already published PO.

  • How to disable and hide the menu items of 'copy From' button of Goods Recei

    hi expert,
    I am new in SAP B1. so please help me.
    Q:How to disable and hide the menu items of 'copy From' button of Goods Receipt PO form?
    Regards
    sanoj

    Hi Sanoj,
    Try This.....
    If pVal.FormType = "143" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE And pVal.BeforeAction = False Then
                oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, "1")
                Dim oitem As SAPbouiCOM.Item
                oitem = oform.Items.Item("10000330")
                'To Disable the button
                oitem.Enabled = False
                'To hide the button
                'oitem.Visible = False
            End If
    Thanks
    Shafi
    Edited by: shafi_sunshine on Sep 15, 2011 7:35 AM

  • Resrtict -  copy from option while creating Production order

    Dear all,
    I want to know how to  Block  the "copy from" option while creating Production order(CO01).
    Regs.
    S.R

    Dear Ramesh,
    You can do this Via SHD0
    Just check the below link
    [Regarding Backflushing(MFBF) fields making display;
    Regards
    kumar

  • Copy Control - Address Details from Quantity Contract to Purchase Order

    Dear Experts,
    When I create a Purchase order w.r.t a Quantity Contract, in some cases the address details (such as street address, phone #, e-mail etc.) are copied from Quantity contract and in other cases they are copied from the vendor master. I compared the vendor masters and quantity contracts in both the scenarios and cannot figure why this is so.
    The way I create a PO is to use the selection variant option in ME21N to pull in the Quantity contract and then 'Adopt' the details.
    Is there a address copy control functionality somewhere at the vendor master level that governs this behavior?
    Examples:
    1) Vendor A has telephone 888-888-8888 on vendor master data and QC 5000001 has 999-999-9999 as telephone for the same vendor in the quantity contract. When I use this QC, 999-999-9999 copies over to PO and this is desired/correct
    2) Vendor B has telephone 888-888-8888 on vendor master data and QC 5000002 has 999-999-9999 as telephone for the same vendor in the quantity contract. When I use this QC, 888-888-8888 copies over to PO and this is not desired/incorrect
    Any insight would be helpful
    Thank You
    Siva
    Edited by: Sonshine on Feb 23, 2012 3:53 PM

    Hi Arminda,
    The note refers to the Plant/shipment Delivery address and I am having trouble with the communication address (supplier address, email, fax, telephone etc.) of the vendor.
    Any other inputs?
    Thanks
    Siva

  • Copy attached documents from network activity to purchase order

    Has anyone ever tried copying attachments (e.g. MS Word documents) from an external activity in the project to the purchase requisition and purchase orders that are created from it?
    Our client would like to attach detailed specs for the purchasing in the Project Builder. The specs will then be used by Purchasing when they request offers from vendors, and finally attach it to the PO when it is created.
    Any ideas how this can be solved? Any best practices or recommendations?
    We're working on 4.6C and don't use EBP.
    Thanks in advance for the help!
    Pim

    Hi Pim,
    If the same document should be used for more than 1 object, it is better to my opnion to use a link and not an attachement (in that way you are sure to have the same information, it is a golden rule never to have the same info twice). You have to think about where to put your documents. You could use for instance a file server. Other solutions supported by SAP are possible.
    You could make use of an ABAP development to create the same link to the purchase requisition as to the activity (based on a user exit or use a workflow to trigger the creation of the link).
    Regards,
    Paul

  • Copy text from allocation table to purchase order

    I am unable to get header/item text to be copied to follow-on Purchase order. I am unable to link AK1, AP1 to purchase order text types. Help please.
    Thanks.

    I am unable to get header/item text to be copied to follow-on Purchase order. I am unable to link AK1, AP1 to purchase order text types. Help please.
    Thanks.

  • How to create the Copy icon in the change Purchase order functionality

    Hi,
    In the shopping cart creation screen, there has a option to copy one Item in the Items in Shopping Cart section.This functionality is supplied by standard SAP.
    Now I will have to build the same logic ( Copy Icon with the copy and paste logic)  in the Cahnge Purchase Order functionality.
    So anybody told me how this can happen?
    Also want to know the BADI or some Function Module name from where standard  SAP did the same thing ?
    Thanks for your help in advance.

    Hi. You could add a new button by amending the template, then use the BBP_DOC_CHANGE_BADI to copy the item when it is pressed.
    Just copy all the details for the line to be copied in the BADI. I think you will have to generate new GUIDs for the new lines using function GUID_CREATE. All the other GUIDs, header, partner etc could be copied from what was already there.
    Alternatively, still using BBP_DOC_CHANGE_BADI, you could add a new custom field, see note 672960, called "Copy Item" and the user could enter an X or something in there to indicate they want to copy.
    Or how about a number of copies, they could enter 1 for 1 copy, 10 for 10 and so on?
    When the user presses check the BADI runs and you copy the lines.
    It would not be as neat to look at as the copy button, but it would actually give more functionality and would mean you would not have to mess around with templates.
    Regards,
    Dave.

Maybe you are looking for