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

Similar Messages

  • Shipping Instructions text not copied from Sales Order to Delivery Document

    Hi All,
    The Shipping instructions text in the Sales order Header is entered manually. Now when the delivery is created, the text is not getting copied to the Header text (shipping instruction note) of the Delivery document.
    What may be the problem. Can anybody help ?

    Hi
    Check this link
    http://learnsaptips.blogspot.com/2010/09/text-type-configuration-in-sap.html
    regards
    Prashanth

  • 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

  • Can't change quantity when copy from Sale order for Delivery

    Hi all!
    Can i use authorization for can't change quantity when copy from Sale order for Delivery.

    Tien,
    Approval will not work when you have mutiple rows of data.  You would have to work with SP Transaction Notification
    There has been threads before on the forum on the same topics.
    Block the Quantity in Sales Delivery
    Approval Procedure for chaning quantity in Delivery Document
    Suda

  • 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

  • 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

  • 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

  • Open a report from button click/javascript

    Hi,
    Does anyone know if there is a way to call a report from a button click? Or through javascript? I set the report to Display Results > Link - within the dashboard and then did a view source on it and found the function that calls the report from the hyperlink.
    This is the code:
    return DashboardReportLink('saw.dll?PortalGo&_scid=v-x8QJloqTY&PortalPath=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/_portal/Plan\x2520Setup\x2520Audit&Page=Historical&NavFromViewID=d\x253adashboard\x257ep\x253acp4tq3p9brn77o6o\x257er\x253a8a2g9nltmkrtra9n&Path=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/Archive\x2520Reporting/Run\x2520Historical\x2520Report&Action=PromptStart&Options=frdc', 'd:dashboard~p:cp4tq3p9brn77o6o~r:8a2g9nltmkrtra9n','Dashboard&PortalPath=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/_portal/Plan\x2520Setup\x2520Audit&Page=Historical', false)
    I added this function to the end of my javascript but when i click the button it just opens a blank page with
    http://la820119:9704/analytics/saw.dll?PortalGo
    as the url.
    Any help would be appreciated

    Hi,
    So i have been trying out a few things and the following url works to open the default view of the request:
    window.location='saw.dll?Go&Path=/shared/Plan Setup Audit Tool /Archive Reporting/Run Historical Report&Options=dfr';
    I just replaced 'Dashboard' in the code provided with the 'Go' and it started to work :)
    What i need to do though is have this work for the session variables set up on the dashboard. I have 7 prompts which a user can use to filter a request. Each is assigned to a session variable that is used to call a stored procedure. Originally i thought that by setting the variables and then calling the report from the url that the session variable values i set would be used in the request. What seems to be happening is that the variables get set and then, on calling the url, they are reset to the defaults and the report is run.
    Any help in solving this would be very much appreciated
    Una

  • Determine material No. from EAN No. in Delivery Document

    Hi All,
    We have a requirement  wherein we must determine the material number of the material from the EAN when the customer scans the barcode on the material.
    Can anyone help me in finding any suitable solution so that we are able to determine the material number from EAN number once the article is scanned and the corresponding EAN number is entered in to the delivery document ( the EAN number is entered in the Material no. field).
    Rregards,
    sandeep

    Hi,
    The EAN number of any material is a unique number all over the world.
    So it can be considered same as the material number.
    Match the EAN number in MARA-EAN11 to get the material number.
    Regards,
    Ankur Parab

  • Version with "copy to" and "copy from" button

    Hello,
    in which version/SP/PL was the buttons included with "copy from" and "copy to" in quotation, order,...?
    Thanks
    Johann

    Hi Johnn,
    I think these options are there in SBO from Patch 28 onwards.
    Regards
    Raja.S

  • Condition copy from STO PO to Delivery VL02N

    Hello Experts,
    During STO how can we copy conditions from STO PO to delivery created via VL10G ?
    I am go to transaction VL02N for picking and doing "post goods issue" but even after that the conditions tab in the line item is coming empty.
    Please help, I am stuck on this from days.
    regards,
    Ayaz

    Hi Mohammad Ayaz Siddiqui ;
    You can benefit from SD Pricing : Cross Module Reference Condition Type (Config)
    Regards.
    M.Ozgur Unal

  • Text is not copied from Customer masterdata to sales document header

    Hi Friends,
    Text was maintained in customer masterdata, that should be copied in to sales order header. In Quality server its working as per requirement. But in production its not copied from customer master data.
    Same configuration settings are in production as well as quality(VOTXN)
    Please suggest me regarding this

    Hi Durga,
    Please go to SD> Basic function > text control> Define and Assign Text Determination Procedures and in that screen, check the customer sales and distribution change view customer sales text and sales note for customer and its assignment .
    I hope these will be helpful for you.
    Regards,

  • How to get iterator used on jsff from button clicked on jspx

    Hi All,
    I am using jdeveloper 11.1.1.5.
    I have a bounded task flow and inside that I have a jsff and I have added one iterator in its bindings. Now I have dragged that jsff on my jspx page as a region.
    I have a button on my jspx page I want to find the iterator of the jsff on button click.
    How to find it.
    Please help.
    -- NavinK

    Thanks Timo for your reply.
    Does that mean We have to add the same iterator in the bindings of jspx as well ?
    In my case I have added the iterator to my jspx page but I am getting the error described in InputText value is not getting updated in Iterator
    Please help.
    --NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • HELP FOR OPEN IE FROM BUTTON CLICK ?

    Hello All,
    i make a jframe i want to open internet explorer window for particuler site by button
    click any body tell me plz.
    Thanks ...
    Arif.

    See this Application below, use it in your application
    //to open an application during the run time use runtime
    //n no of applications can be opened during the run time
    import java.awt.*;
    import java.io.*;
    public class RT
    public static void main(String str[])
    try
    Runtime rt = Runtime.getRuntime();
    rt.exec("notepad"); //exit or execute
    // rt.exec("wordpad");
    rt.exec("c:/progra~1/netscape/communicator/PROGRAM/NETSCAPE.EXE");
    /* Process p = exec(perl xyz.pl);
    DataInputStream dis = new DataInputStream(p.getInputStream());
    System.out.println(dis.readLine()); */
    catch ( Exception e)
    e.printStackTrace();

Maybe you are looking for