Passing parameter to EA60 transaction from FM

Hi,
I have a requirement that i need to call EA60 transaction using CALL TRANSACTION and pass all the required invoice details, print parameters and Re-print invoice automatically using the FM which i have created after execution. Could anyone help me in passing the parameters and executing the transaction?

Me actually,
Hi Helmut!
Im using a very similar technique heavily in a customer project for jumping into several transactions from an iView.  Instead of expicitely creating an iView i directly call the respective master iView
"com.sap.portal.appintegrator.sap.Transaction"
Then I append the required parameters as GET parameters:
?System=<system alias>&Technique=[SSF|SSD]&TCode=<exec first screen?>SU01 param=value;param=vaue;param=value&GuiType=[WinGUI|WebGUI|JavaGUI]
GuiType should be clear, technique defines the startup behaviour of Wingui (being either as an activeX control (SSD) or using SAP shortcuts (SSF) ). If you want to submit the first selection screen, simply add a "*" to the Tcode. Also note that there is a space between the tcode and the param list.
This should resolve the issue. Good luck with it,
(and see you somewhen again in "real life"
Dominik

Similar Messages

  • Looking for a way to pass parameter to external list from infopath

    Hey, i have a Sharepoint 2010 list for which I want to create Infopath form. I have an external content type and external list based on it.
    I want to prepopulate some fields in my Sharepoint list with data from external list. I tried to use external list as a secondary data source and query it for needed values. The issue I encounter is that my ECT has a finder with filter and I can't figure
    out how to pass a value to this filter within infopath.
    How can it be done with infopath? How can I pass the filter value to the external list using Infopath?

    Hi,
    According to your post, my understanding is that you wanted to pass parameter to external list from infopath.
    You need to query the external list from InfoPath using coding and CAML Query.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/33575/filtering-sharepoint-external-list-bcs-from-infopath
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Passing Parameter to SAP Transaction via AppIntegrator

    Hi,
    I created an AppIntegrator iView that calls a R/3 Transaction. The iView is running correctly.
    Now I want to pass a dynamic parameter to the Transaction so that it skips the first screen of the transaction.
    For this purpose there is the iView Parameter "AutoStart" that has to be set to true in SAP Transaction iView. Furthermore I have to set parameter "ApplicationParameter" in the follwing manner "<Screen_field1>=<Parameter1>" according to help.sap.com.
    Lets assume that the transaction I want to call is <b>SU01</b> and the screen field is <b>USR02-BNAME</b>.
    So the iView parameter "ApplicationParameter" has the value "USR02-BNAME=MyName".
    This works fine but is not dynamic.
    I then called my iView using the follwing URL:
    http://.../irj/../portal_content/.../R3_iView?param=MyName
    and changed the value of "ApplicationParameter" to ""USR02-BNAME=<Request.param>".
    This does not work. The input field of the R/3 Transaction contains "<Request.param>" instead of "MyName".
    My Question:
    Does the Template Processor of AppIntegrator not work for the Parameter "ApplicationParameter"?
    Help is most welcome
    Helmut

    Me actually,
    Hi Helmut!
    Im using a very similar technique heavily in a customer project for jumping into several transactions from an iView.  Instead of expicitely creating an iView i directly call the respective master iView
    "com.sap.portal.appintegrator.sap.Transaction"
    Then I append the required parameters as GET parameters:
    ?System=<system alias>&Technique=[SSF|SSD]&TCode=<exec first screen?>SU01 param=value;param=vaue;param=value&GuiType=[WinGUI|WebGUI|JavaGUI]
    GuiType should be clear, technique defines the startup behaviour of Wingui (being either as an activeX control (SSD) or using SAP shortcuts (SSF) ). If you want to submit the first selection screen, simply add a "*" to the Tcode. Also note that there is a space between the tcode and the param list.
    This should resolve the issue. Good luck with it,
    (and see you somewhen again in "real life"
    Dominik

  • Pass parameter to background job from report

    Hi All,
    I have following requirement.
    I am executing a Report. At end of report I am executing an event.
    On the bases of event a background job runs.
    Problem is that, I want to pass one field data from report to background job.
    I already tested SET PARAMETER/GET PARAMETER is not working.
    Is there any way any one can suggest, without using Tables.
    Regards

    Hi,
    If you submit via job it will not be executing the program ..After SUBMIT statement the control will come to the program immediately..
    Check this example..
    DATA: p_jobcnt LIKE tbtcjob-jobcount,
          l_release(1) TYPE c.
    Open the job
    CALL FUNCTION 'JOB_OPEN'
         EXPORTING
              jobname          = 'ZMY_OBJ'
         IMPORTING
              jobcount         = p_jobcnt
         EXCEPTIONS
              cant_create_job  = 1
              invalid_job_data = 2
              jobname_missing  = 3
              OTHERS           = 4.
    Submit the job.
    SUBMIT ztest_program VIA JOB 'ZMY_OBJ' NUMBER p_jobcnt
           TO SAP-SPOOL WITHOUT SPOOL DYNPRO
           WITH destination = 'LOCL'
           WITH immediately = space
           WITH keep_in_spool = 'X' AND RETURN.
    Close the job.
    CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
              jobcount             = p_jobcnt
              jobname              = 'ZMY_OBJ'
              strtimmed            = 'X'
              prdmins              = 15
         IMPORTING
              job_was_released     = l_release.
    Thanks,
    Naren

  • Unable to pass parameter to EBS Form from external system (OBIEE)

    I set up the OBIEE to EBS Navigation as per a metalink note to the form PA_PAXTRAPE_SINGLE_PROJECT. I tried to pass a PROJECT_ID parameter. The form opens up but I do not see any indication of the parameter being passed through.
    In general, when you pass a parameter to a EBS form from an external system, is it suppose to open the FORM with that specific value? In this case should it open up the Project for the PROJECT_NUMBER that I passed through?
    Any way for me to diagnose the issue?

    Hi,
    Rather than giving the name of the Block and Field name there create a parameter in the form itself and pass value to that parameter. You can use this values using :PARAMETER.<field_name>.
    Regards,
    Viral

  • Pass Parameter to a Transaction Using Transaction Iview Portal

    Dear Experts.
    I have the following doubt:
    The developer ABAP created a program Z_PROGRAM_ABAP
    and a T.Code Z_CODE_PROGRAM for this program.
    I have created a Transaction Iview in the portal for this transaction, but I need pass a value in the Iview  to a variable in the program that call this transaction.
    How can pass a paramete to a variable in the program that is called with the transaction Z_CODE_PROGRAM?
    Thank In advance for your help.
    Best Regards
    Carmen G.

    Hi .
    I have the following code:
    REPORT Z_PROGRAM_ABAP.
       parameters: XYZ type Char no-display.
    if XYZ = 1.
    Write 'ABC'.
    else.
    Write 'MNO'.
    endif.
    And in the portal:
    Application Parmeter    :  XYZ = 1
    Parameters Forwarded: 1
    The problem is that i not want that the user can see the parameter XYZ in the Sreen. When I delete the NO-DISPLAY of the sentence    parameters: XYZ type Char no-display, the parameter is passed.
    How can solve this issue?
    Best Regards
    Carmen

  • Passing Parameter to Stored Procedure from Form

    Hello All,
    I have been stuck while passing a form parameter to a database Procedure.In the query data source arguments I have provided the parameter Value as :parameter.parameter_1...Is it right...
    Can somebody throw some more light on this...
    Regards,
    Kaps

    You can pass the parameters from Forms through the Query Data Source Arguments of this block.
    There are a little example on http://www.Friedhold-Matz.de/appl_plan.htm.
    I used in block B the Query Data Source Arguments property to fill the
    procedure input arguments with the :PARAMTER.P_name of this Form.
    Hope it helps
    Friedhold

  • ATrouble in passing parameter to PO Form from a Custom OAF Page

    Hi All,
    I have created a custom OAF page from where I am calling the standard purchase order screen, the URL which i am using is as below;
    form:Respapplshortname:Respkey:STANDARD:PO_POXPOEPO:po_header_id={@PoHeaderId}
    I have done the below Form Personalization for the same
    Create a when-new-form-instance personalization and create following actions
    1)
    Type: Builtin
    Builtin Type: DO_KEY
    Argument: ENTER_QUERY
    Create a WHEN NEW ITEM INSTANCE personalisation and create the following actions
    1)
    Type: Builtin
    Builtin Type: GO_ITEM
    Argument: PO_HEADERS.SEGMENT1
    2)
    Type: Property
    Object Type: Item
    Target Object: PO_HEADERS.SEGMENT1
    Property Name: VALUE
    Value :==:'PO_HEADER_ID'
    3)
    Type: Builtin
    Builtin Type: DO_KEY
    Argument: EXECUTE_QUERY
    Here in the below mentioned step
    Type: Property
    Object Type: Item
    Target Object: PO_HEADERS.SEGMENT1
    Property Name: VALUE
    Value =:253253
    If I hard code the value 253253(which is the header_id for PO_NUMBER 10031791) in the field 'value' then the PO_NUMBER form works as expected(PO Form opens up in queried mode and all the data of the PO_NUMBER is pre-populated)
    My query here is how do I pass a parameter from OAF page to PO_NUMBER form so that we are able to pass the value dynamically instead of hard coding the value(253253 as mentioned above).
    Please revert back as soon as possible in case anyone has inputs or better ways of achieving the above problem statement

    Did you ever figure out how to resolve this issue. We are facing the same issue and developer is not able to figure out.
    Thanks.

  • Passing parameter to a jsp from a servlet

    Hi,
    I need to pass a parameter from a servlet to a jsp without using the session object. Is it possible? I've been looking for a method like response.setParameter but it doesn't exist.
    Please help !!!

    Actually, there is no setParameter method in the ServletRequetsObject. Still, you can create one. This can be usefull when you have a jsp that get its parameters from either a direct html form posting or a forward from a servlet. This can be achieved using wrappers, instead of the real request object.
    It's not really tricky, it's only a little "underknown" feature.
    Here is a sample code when you can fake the settings of requets parameters :
    public class MyRequest extends HttpServletRequestWrapper {
       private HashMap fakedParameters;
       public MyRequest(HttpServletRequest nested) {
          super(this);
          fakedParameters=new HashMap();
        public void setParameter(String key,String value) {
            fakedParameters.put(key,value);
        public String getParameter(String name) {
           String res=fakedParameter.get(name):
           if (res==null)
               res=super.getParameter(name);
           return res;
    }NB: this is a sample, you may also override other method (such as getParameterNames) for a full featuerd wrapped request.
    Now, you can use your wrapped request :
    MyRequest req2=new MyRequest(request);
    RequestDispatcher dispatcher=request.getRequestDispatcher("/somePage.jsp");
    req2.setParameter("name","yourName");
    dispatcher.formard(req2,response);Hope it helps.

  • Passing parameter to VB Script from Java file

    I have a jhtml(read java) page which is trying to create a virtual directory in IIS. The servlet container run on IIS. I have a VB Script file (.vbs) which creates the virtual directory. Now the vbs file needs a parameter to create a new directory every time and the directory name should be the parameter name. I am able to run the vbs from java but the parameter passing doesn't work.
    String acctname = "test";
    String path = "d:/ScriptTool/CreateAccountWebIIS.vbs";
    String fullpath = path+" "+ "/c:"+acctname;
    System.out.println("path = "+fullpath);
    Process process1;
    Runtime userRuntime = Runtime.getRuntime();
    try
    process1 = userRuntime.exec("wscript.exe " + fullpath);
    discussed options
    1) convert vbs to exe
    2) use batch file

    If you're creating a string that is going to be used as a file name by a Windows program on a Windows command line, then you have to use the backslash to separate directories in the path.String path = "d:\\ScriptTool\\CreateAccountWebIIS.vbs";Forward slashes are okay (actually, preferred) in Java code for use by Java classes but once you hand it over to Windows you do need to follow the Windows rules.

  • Passing Parameter to report (html) from html page

    Hi
    I have a html page use web application server as tool, this page
    link to report, I want to pass the parameter to report
    paramform.
    This is my PL/SQL
    procedure eqp_form(ceqp in out mms_eqp_master.eqp_code%type) is
    htp.tableData(htf.anchor(report.print('msr_eqp_group'),'<font
    color=ffffff>Eqp Group
    Report</font>',cAttributes=>'target=target_blank'));
    How can I do to pass 'ceqp' into report parameter form, before
    running report?

    <p>In the scenario you described the report that connects to the stored procedure will automatically require parameters so they can be passed to the stored procedure.</p><p>Here is a link to a sample that passes a parameter to a report at runtime using BusinessObjects Enterprise XI R2:</p><p>http://diamond.businessobjects.com/node/1018 </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • How to pass Parameter to Oracle Report from portal

    Dear All
    I create a report use Oracle Report, and the file name is "Account.rdf"
    This report have a start date parameter and a end date parameter. I put this
    report to the report server, and then add a new entry to the cgicmd.dat file,
    so i enter the URL into IE and pass the start date and end date parameters to
    the report.
    And now, i want to put this report into portal, but how can i config the
    start date parameter and the end date parameter?? i want provide a interface
    to the end-user, so user can select which date he want to display. It is
    possible?? How can i config?? Would you give me some idea.
    Thanks for your help.
    Tony

    You will have to Register your .rdf in Oracle Portal. The following document gives details.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=170178.1

  • Passing parameter to stored procedure from windows form getting error

    I've written a procedure which shows the data in a table according to the table flag selected from the windows form. My code is:
    --- stored procedure ------
    CREATE PROC [dbo].[PROC_SELECT_TABLES]
    @TBL_FLAG INT
    AS
    BEGIN
    SET NOCOUNT ON;
    IF (@TBL_FLAG = 1)
    SELECT * FROM MHT_APPUSER ;
    IF (@TBL_FLAG = 2)
    SELECT * FROM MHT_ISA11 ;
    IF (@TBL_FLAG = 3)
    SELECT * FROM MHT_ISA22 ;
    SET NOCOUNT OFF;
    END
    GO
    Now, the module for calling the above procedure
    namespace DAL;
    public class DisplayData
    SqlLayer layer = new SqlLayer();
    public int tblFlag { get; set; }
    public DataTable GetData(int tblFlag)
    SqlParameter[] p = new SqlParameter[1];
    p[0] = new SqlParameter("@tblFlag", this.tblFlag);
    return layer.ExecuteDataSet("PROC_SELECT_TABLES", p).Tables[0];
    Now the SQL LAYER, containing the ExecuteDataSet and database connection code:
    namespace DAL;
    public class SqlLayer
    // sql connection code
    public DataSet ExecuteDataSet(string commandText, SqlParameter[] sqlParameter)
    SqlCommand cmd = new SqlCommand(commandText, this.conn);
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.Parameters.AddRange(sqlParameter);
    SqlDataAdapter sda = new SqlDataAdapter(cmd);
    DataSet ds = new DataSet();
    sda.Fill(ds);
    return ds;
    Now the windows form layer:
    using DAL;
    namespace BookKeepingSystem
    public partial class DisplayDataForm : Form
    DisplayData view = new DisplayData();
    private void GetData()
    view.tblFlag = 3;
    DataTable dt = view.GetData(view.tblFlag);
    dgvDisplayData.DataSource = dt;
    public DisplayDataForm()
    InitializeComponent();
    private void DisplayData_Load(object sender, EventArgs e)
    GetData();
    private void btnExit_Click(object sender, EventArgs e)
    Application.Exit();
    When I run the code I got the error:
    "Unhandled exception has occurred in your application...
    Procedure or function 'PROC_SELECT_TABLES' expects parameter @TBL_FLAG, which was not supplied"
    I can not figure what is missing with my code. Please can any one point out please.
    Thank You!!!

    Try something like this for starting -- do just this procedure to see if it works first.
    private DataTable GetDataTable(SqlConnection conn1)
    SqlDataAdapter daS1 = new SqlDataAdapter();
    daS1.SelectCommand = new SqlCommand();
    daS1.SelectCommand.Connection = conn1;
    if (conn1.State == ConnectionState.Closed) conn1.Open();
    daS1.SelectCommand.CommandType = CommandType.StoredProcedure;
    daS1.SelectCommand.CommandText = "yourStoredProcedureName";
    daS1.SelectCommand.Parameters.Add("@ParamName", SqlDbType.Int, 4);
    DataSet DS1 = new DataSet();
    daS1.Fill(DS1, "tbl1");
    return DS1.Tables["tbl1"];
    Note:  in the CommandText part place the name of your stored procedure.  In the Parameter part put the name of your parameter exactly as it is in the actual stored procedure.  Also, (if you have not done this already) make sure your stored
    procedure runs OK -- first -- test out your stored procedure in Sql Server Management Studio.  If the procedure runs OK in SSMS, then try it from you app.  Just create a simple form with one button .  Place GetDataTable() code under
    the button and call it something like this:
    private void button1_Click(object sender, EventArgs e)
    int i = GetDataTbl().Rows.Count;
    Console.WriteLine("i is {0}", i);
    Rich P

  • Passing Parameter to sub report from detail section of Main report

    I am new to CR
    I am developing a CR for Clinical Lab Test. My main report have four field i.e
    1. Test Code
    2. Test Name
    3. Result Value
    4. Normal Values
    This report has sub report in Page Footer. When TestCode = 18 or 19 It has to show a normal value table in Page footer of that page. Other wise this table should not appear on page footer.
    Please help me

    Hi Qasim,
    Go in Section Expert and select the page footer.  You will find Suppress in right side of the window, go in formula editor and give the follwoing formula :
    If Testcode<> 18  or Testcode <> 19 Then true
    Thanks,
    Sastry
    Edited by: Sastry Duvvuri on Oct 14, 2008 7:10 PM

  • Passing parameter list to Report  from form

    Hi all
    How can I assign values that are written in a form, and haven't save to the database, into variables?
    The form layout style is tabular, and it has two fields: parameter_name and parameter_value.
    I want to assign the value the user wrote in the filed parameter_value for each row.
    thanks

    Hi,
    if you built the tabular layout in a control block, then you can loop thorugh it using next_record; built-in. The value to read this is
    variable_name := controlblock.parameter_name;
    variable_value := controlblock.parameter_value;
    Frank

Maybe you are looking for