Dynamic Parameters from SAP to C' Method

Hey there,
I hav a great Problem. I wrote a C# Program which runs as a Server. whithin this I wrote a Method i want to call from ABAP. This method needs to get two static and various dynamic parameters. In C# it is quite easy to implement this, by "params object[]...", but how can I get these Parameters from SAP to my Application?
When I describe the Parameter for RFC then it works, e.g. by "[RfcParameter("INSTID",RFCTYPE.RFCTYPE_STRING,30,30,0,RFCINOUT.IN)]". Does i have to give a certain RFCTYPE? When i do so, it works? Please give help, i need this very urgent.
Regards

Hello,
Sorry, the answer remains NO.
In COM4ABAP, this feature is implemented only for the generic invoking function COM_INVOKE itself, but not for those functions/methods invoked through COM_INVOKE.  So this functionality is perhaps "nice" to the developer who wrote COM4ABAP. But for the users of COM4ABAP, it seemed not to make much sense.
Of course, the support to dynamic parameters will be important if you want to write a generic method invoker for .NET (something might be called as DOTNET4ABAP). There is for now no plan to provide this feature in the future releases of the .NET Connector.
Regards,
Guangwei

Similar Messages

  • Crystal Reports Dynamic Parameters with SAP Business One

    Okay, I've got this very strange issue with dynamic parameters in Crystal Reports connected to SAP Business One.
    Let's start with the software versions:
    - Crystal Reports 12.3.0.601
    - SAP Business One 8.8 (8.80.231) SP: 00 PL: 13
    - Windows XP SP3
    (SBO Server on Windows 2003 and SQL 2005)
    What I'm about to describe is something I've tried in several reports and for which I created a very, very simple test report to see if it was reproducible in a very simple situation.
    - I connected to a Business One server through CR's SBO connection type. Logon is successful, tables are shown.
    - I pick OCRD and plac CardCode and CardName in the details section on the report. Previewing the report shows data.
    - I create a dynamic parameter on CardCode and in the Select Expert I select the CardCode field and define that that should be equal to the parameter.
    - I preview the report again. Now it asks me in such a parameter screen for logon credentials. It shows the server and database it tries to connect to and in the username it shows the SQL Server username I used to connect to the SQL Server in the first place. However, the password for that user is not accepted. I also tried to login with the Windows administrator user and with the SBO manager user, but no success with any attempt.
    I also tried to add a static parameter and add all database values to the list. Same screen, different result:
    Crystal Reports 2008 wrote:
    Logon Failed.
    Error in File UNKNOWN.RPT:
    Unable to connect: incorrect log on parameters. (rptcontrollers.dll)
    (On a side note: the report is saved as report1.rpt)
    Anyone else got similar issues and found a solution?

    Hi,
    When you have fixed your crystal installation following the note posted earlier, please take a look at the [how to guide|http://service.sap.com/sapidb/011000358700000882232009E.pdf] and also at the [e-learning|http://service.sap.com/sapidb/011000358700001370262010E] about SAP Business One 8.8 and Crystal Reports.
    There are so called "tokens" which you need to use instead of dynamic parameters.
    Dynamic paramters don't work in SAP Business One 8.8, if they are not defined as a static paramter with token.
    Best regards,
    Darius

  • Calling APEX form with dynamic parameters from Oracle Apps 11.5.8

    I have successfully managed to setup access to APEX forms from Oracle Apps 11.5.8 menus utilising Form Functions passing a number of hardcoded parameter values as outlined in the document, http://www.oracle.com/technology/products/database/application_express/pdf/Extend_Oracle_Applications_11i.pdf.
    I am now trying to ZOOM from an Oracle Form passing values of form items (dynamic parameters) to an APEX form. I have so far not been able to do this.
    I've also tried using;
    web.show_document('http://derep.obup.co.uk:4657/pls/apex/f?p=100:1::::::p1_cust_account_id:'||name_in('ast_cu_act.account_id')||':', '_TOP');
    but this prompts for a username/password again as this bypasses the APEX Launch process that is defined in my Form Function.
    Is this possible in the parameters section of Form Functions? or elsewhere.
    Regards,
    Naeem

    Hi Daan
    We do havea couple of customers doing this, they have taken two approaches:
    1. Install XMLP on a separate server entirely - kick off conc request to extract data and then use Java Messaging Service (JMS) to push the resulting XML to the external server where they are using AQ to set up jobs for the XMLP server to work through, generating and delivering the final documents.
    2. Set XMLP up as a virtual printer - here the conc request again generates XML but this time the result is directed to a virtual printer namely XMLP. There is a perl or similar wrapper that gets called as the printer and accepts the data, template, output format and delivery destination as parameters.
    Apologies for the 10,000 feet overview, hope it helps. Tim

  • Timeout error in accessing CR 2008 with dynamic prompts from SAP Portal

    Hi
    We are using Business Objects XI 3.0 with Integration Kit for SAP
    Solutions on Windows 2003 Server with Weblogic 10.0 server.we have
    created a report (13 parameters) using Crystal Reports 2008 and
    deployed on the BOE.Crystal Reports are created using opensql driver
    and using tables.The prompts/parameters are created using Business
    views.After deploying the report under the database configuration under
    When viewing report the option selected is "Use SSO context for
    database logon".
    Later an iview is created on SAP Portal pointing to Crystal Report
    using Business Objects iview template.The SSO is working fine and we
    are able to select the parameters and when clicked ok we get an
    error.we have pasted the error below when we try to view source :
    <form action="../PlatformServices/service/app/error.do" method='post'>
    <input type='hidden' name="errMsg" value="A timeout error has occurred"><input type='hidden' name="loc" value="en_GB">
    <input type='hidden' name="pvl" value="en_GB">
    <input type='hidden' name="errStack"
    value="com.businessobjects.webutil.websessiontimeout.WebSessionTimeoutFilter.doFilter(WebSessionTimeoutFilter.java:142)
    weblogic.servlet.internal.FilterChainImpl.doFilter
    (FilterChainImpl.java:42)
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3368)
    weblogic.security.acl.internal.AuthenticatedSubject.doAs
    (AuthenticatedSubject.java:321)
    weblogic.security.service.SecurityManager.runAs
    (Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)
    Ljava.lang.Object;(Unknown Source)
    weblogic.servlet.internal.WebAppServletContext.securedExecute
    (WebAppServletContext.java:2117)
    weblogic.servlet.internal.WebAppServletContext.execute
    (WebAppServletContext.java:2023)
    Thanks
    Kamal

    Hello,
    1)How do I assign my user ID to the organisational unit? Please advise me step by step as I am new to SRMu2026
    2) Regarding error u201CThe following error text was processed in the system SR3 : Attribute for user USER18 contains errors. Inform system admin.
    The error occurred on the application server eccserver1_SR3_01 and in the work process 0 . u201C
    Using transaction SM21, I have discovered multiple errors for SAP instance eccserver1_SR3_01 like BBP_PU 245 transaction canceled, HTTP/RFC session has been deleted following timeout...
    3) How do I run report BBP_CHECK_CONSISTENCY? With transaction SE38? What do I choose next from the options available?
    This is too technical for me right now..maybe not in the future, but at this moment, I need more guidance...
    Thank you,
    Iuliana

  • Get selection screen parameters from sap query

    Hello. I use SAP Query Reporting, so I added a report assignment for detailing (sq01 ->  Change button -> Goto -> Report Assignment -> Insert row -> Other type row -> Abap Report Program)
    and put there ABAP program.
    When I run query and press CtrlShiftF1  (or double click) It calls my abap program.
    So the question is: how to get selection screen parameters in my program ?
    to be more precise I want to get date parameter (begda, endda)
    Thanks a lot.

    There is a Z query which I can see in sq01. I set reporting period and run the query; when I run it, it gives me the employee list.
    So I wrote the abap report to get an employee details, customized query as I mentioned above.
    The query calls my report and I need to get parameters.
    SELECTION-SCREEN BEGIN OF BLOCK frm1 WITH FRAME TITLE text-001.
    PARAMETER :  p_pernr LIKE p0001-pernr OBLIGATORY MATCHCODE OBJECT prem.
    PARAMETER : p_date LIKE sy-datum.
    SELECTION-SCREEN END OF BLOCK frm1.
    Parameter
    p_pernr
    passes normal. ALV Query contains it, but I'd like to get one more parameter from selection screen of the query and don't know how to get it.

  • How do send along hidden parameters from a form action method

    Hi,
    I have a JSP that displays an HTML form with several input types such as cehck boxes, radio buttons, text field and read only text fields. The read only fields are populated from a database. There are also a few hidden parameters that come in from the requesting JSP.
    Now, when I have entered values in the input fields and click on SUBMIT, I want the action to lead to another jsp which will validate the entries and also want the hidden parameters in the html page sent and also want the read only values sent to the validating JSP ....how do I accomplish this ?
    Please help !
    mahesh

    Hmm...I did exactly that in my target jsp..where I used request.getParameter("MODE") where MODE is the key that I had passed into the html using an earlier jsp:forward command....something like "inputform.jsp?&MODE=ADD.....etc.
    but my request.getParameter("MODE") returned null.
    When you say properly formatted within the form and /form tags, I wonder if you could tell me what I need to do to format hidden parameters that have been passed along from an earlier request ?
    Thank you very much,
    Mahesh

  • ABAP WebDynpro app calling Transaction iview with Dynamic Parameters..?

    Good day!
    I need to code a call to a transaction (with dynamic parameters) from an Abap WD application.  It appears that to achieve this, the app needs to call a new portal transaction iview, passing the parameters in the call..? 
    This should ideally be via a Sapgui for Windows, but Html also an option (does it matter with regards to the method used?). 
    Kindly assist with advise/instructions, idealy with sample code extract to illustrate (new to Abap WD)...
    Kind regards
    j

    Hi
    this will help you doing so
    http://help.sap.com/saphelp_nw04s/helpdata/en/18/f96f4132f15c58e10000000a1550b0/frameset.htm
    Use BUSINESS_PARAMETERS to pass the data
    Abhi

  • Passing dynamic variable from html to Flash

    I know this is pretty simple but all that I have read doesn't make much sense to me. I have one swf calling another swf that I have embedded into an htnl. In other words just calling another html page in a seperate window.
    In one.swf (runing in broswer) I use the below to call another html page passing the variable NewLessonArray. This contains an array of completed chapters.
    // LOADING URL
    var NewLessonCompleteArray:String = LessonCompleteArray.toString();
    navigateToURL(new URLRequest("two/index.html?CurrentLessonInfo=<NewLessonCompleteArray>"), "_blank");
    In the receiving swf I want to retrieve the passing parameters.
    two.swf
    // Getting the parameters passed
    this.loaderInfo.parameters.toString()
    All that is returned that I can see is object Object. But since I am passing on a address line into another swf embedded in a html page I am unable to determine that correct syntac for retrieving the information.
    Any suggestions? This has got to be pretty simple... I think.
    THANKS

    What you are trying to do is not extremely difficult to do, but it is not something I would consider as being simple.  With Andrei's approach you should be able to take the url String and dissect the parameters from it using String methods, like split().
    As for the loaderInfo end of things, you are not passing the parameters to the swf file, you are passing them to the html page.  So the loaderInfo won't have any info for you regarding the url parameters.  The loadInfo would typically get parameters via the FlashVars parameters passed in in the html's swf embedding code.
    Here are some other solutions that you might consider.  I have not dealt with these myself, they are merely in my collection of useful info, so you might have to experiment to get them working.  One is a link to a class-based approach and the other is an approach that use swfObject embedding to dynamically add the parameters as FlashVars to the embedding code....
    http://mikethenderson.com/2009/02/as3-return-query-string-value-version-2/#more-105
    OR
    In your HTML:
    var flashvars = {};
    if (swfobject.getQueryParamValue("aParameter")) {
      flashvars.param = swfobject.getQueryParamValue("aParameter"); 
    swfobject.embedSWF("myMovie.swf", "myContent", "550", "400", "9.0.0", "", flashvars);
    And the param variable will be available as a FlashVar to your movie:
    var theParam = loaderInfo.parameters.param;

  • JCO.Server Error while trying to execute a RFC program from SAP

    Hi,
    We are connecting to an external registered server program from SAP via Web Methods.
    The external server program is registered with the SAP Gateway. We have created a TCP/IP RFC destination and are able to connect to the destination successfully via SM59.
    An RFC function is created in SAP and is called using the syntax CALL FUNCTION "/NGN/BAPI_STRE_SEARCH_PROCESS" DESTINATION 'PRDB2B'. We have also handled the COMM_FALIURE and SYSTEM_FALIURE exceptions in the function call.
    We are monitoring the gateway via SMGW and see a connection log to the RFC destination as below
    Number - 10
    LUname - dev01
    TPName - sapgw00
    User - KRAORANE
    Status - CONNECTED
    Symbolic - PRDB2B
    Conversation - 86520353
    Prot - REG
    SAP return code - 0
    CPIC rtn code - 0
    The external program returns results as expected.
    However sometimes the RFC fails and returns the message “JCO.Server could not create server function /NGN/BAPI_STRE_SEARCH_PROCESS”.
    We are not able to figure what exactly is causing this error. Any help will be highly appreciated.
    -Kiran

    Hi,
    Please see the below links..
    JCO.Server Error while trying to execute a RFC program from SAP
    Re: JCO.Servcer could not find server function
    Re: JCO.Server could not find server function 'SET_SLD_DATA'
    /people/kathirvel.balakrishnan2/blog/2005/07/26/remote-enable-your-rfchosttoip-to-return-host-ip-to-jco
    Re: interfacing SAP with an existing java applications
    http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
    http://www.sapgenie.com/faq/jco.htm
    Regards
    Chilla..

  • Static Parameters Vs Dynamic Parameters in intialization Parameter file

    Hi Gurus,
    How do i find out the list of Static and Dynamic Parameters from the Initialization Parameter file [ in Oracle 11g Rel2]. Is there any Metadata for this?
    Can you please through some light on this!
    Regards,
    Sudipta.

    Thanks mate.
    Unfortunately i searched with various tag line, but could not find the earlier thread..
    Anyways, this was helpful.
    Regards,
    Sudipta.

  • Running a SQL Stored Procedure from Power Query with Dynamic Parameters

    Hi,
    I want to execute a stored procedure from Power Query with dynamic parameters.
    In normal process, query will look like below in Power Query. Here the value 'Dileep' is passed as a parameter value to SP.
        Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData 'Dileep'"]
    Now I want to pass the value dynamically taking from excel sheet. I can get the required excel cell value in a variable but unable to pass it to query.
        Name_Parameter = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
        Name_Value = Name_Parameter{0}[Value],
    I have tried like below but it is not working.
    Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData Name_Value"]
    Can anyone please help me with this issue.
    Thanks
    Dileep

    Hi,
    I got it. Below is the correct syntax.
    Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData '" & Name_Value & "'"]
    Thanks
    Dileep

  • How to call a AM method with parameters from Managed Bean?

    Hi Everyone,
    I have a situation where I need to call AM method (setDefaultSubInv) from Managed bean, under Value change Listner method. Here is what I am doing, I have added AM method on to the page bindings, then in bean calling this
    Class[] paramTypes = { };
    Object[] params = { } ;
    invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
    This works and able to call this method if there are no parameters. Say I have to pass a parameter to AM method setDefaultSubInv(String a), i tried calling this from the bean but throws an error
    String aVal = "test";
    Class[] paramTypes = {String.class };
    Object[] params = {aVal } ;
    invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
    I am not sure this is the right way to call the method with parameters. Can anyone tell how to call a AM method with parameters from Manage bean
    Thanks,
    San.

    Simply do the following
    1- Make your Method in Client Interface.
    2- Add it to Page Def.
    3- Customize your Script Like the below one to Achieve your goal.
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("GetUserRoles");
    operationBinding.getParamsMap().put("username", "oracle");
    operationBinding.getParamsMap().put("role", "F1211");
    operationBinding.getParamsMap().put("Connection", "JDBC");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    i hope it help you
    thanks

  • Automatically Pass Parameters From Crystal To SAP B1

    So, I've searched extensively, and haven't been able to find an answer to my unique issue.
    This question pertains to linking a Crystal Report by parameter values to the OWOR table in SAP B1, and automatically passing those parameter values from the active record in SAP. Several other tables are used in sql joins, but the report is generated from an OWOR production order. I should start by stating that the report works great when manually populating the parameter fields when SAP calls for them.
    Overview:
    I've written a report in Crystal that contains several sub reports, some of which are looking to the DocEntry field as the parameter (DocKey@) and others that do not look to the DocEntry field at all - but rather use another field on the form to pull up information that spans more than just that one production order. I've chosen to upload as a layout in SAP (as that is all I've worked with up to this point, and it seems it needs to be to automate from a production order); but as I continue to research, it appears DocKey@ is mandatory when uploading as a layout, and in order to view the report from the actively selected production order, it must be a layout. Does that mean the parameter is required in all sub reports? Is it required in any sub report?
    I have two main issues that I need to hurdle for this report to work how I would like it to:
    1. Three of the eight Commands (one main command and seven sub-report commands) use the DocKey@ as the parameter to pass from SAP back to Crystal. The main report command, as well as four of the sub reports/commands are looking to another field in the OWOR record - which happens to be a re-seller defined field (UDF). For all intensive purposes, let's call this field BatchID. I'm assuming the sub report commands run in succession, one after the next. The reason I need to use BatchID as the parameter to pull from the record, rather than DocEntry, is there are other records that contain the same BatchID, and I want all of the info pertaining to that BatchID to populate on the report.
    Q1: The first command containing DocKey@ is automatically populated by SAP, and the user does not have to key that one in. However, the next two DocKey@ parameters do not automatically populate, and the user is asked for those values. How can I fix this?
    Q2: How can I automate the passing of BatchID so the user does not have to fill it in 5 times when they wish to preview the report(layout)? Can I link ObjectID@ to any field in OWOR? Is there any other way like creating a stored procedure or something , to automate the passing of that variable from the SAP active record to the crystal report - so the user doesn't have to key it in several times just to pull up the report?
    Thank you so much for even reading, let alone helping me with this issue!!
    Cheers,
    Nick

              Hi
              I had the same problem. Take a look at this newsgroup article on the businessobjects
              website :
              http://support.businessobjects.com/library/kbase/articles/c2015264.asp
              Grieg
              "Rada Pickens" <[email protected]> wrote:
              >
              >Hi,
              >
              >I'm getting the same error message, I was wondering if you fixed the
              >problem.
              > I'm stumped, can you help?
              >
              >Rada
              >
              >
              >"JAI" <[email protected]> wrote:
              >>
              >>I am passing parameters, from the JSP page to Crystal Report, i took
              >>the code from
              >>the below mentioned url, i dont know, it is something wrong with the
              >>jsp page
              >>or crystal report.
              >>i have created parameter field in crystal report to receive the value
              >>from the
              >>jsp page.
              >>If u r not clear with the error, please reply to me.
              >>
              >>i took the code from the below mentioned page
              >>
              >>reference page:
              >>----------------------
              >>http://dev2dev.bea.com/trainingevents/webinars/012804_faq.jsp
              >>parameterFieldsViewReport.jsp
              >>
              >>
              >>error displaying in the jsp page
              >>-----------------------------------
              >>com.crystaldecisions.report.web.viewer.CrystalReportViewer
              >>Some parameters are missing values
              >
              

  • Pass 2 different  parameters from 2 different methods to 1 method

    Hi all,
    To the method "renameFile" my parameter is "File dst" and
    to the method "renameCode" my parameter is "String name".
    But I need to get both the parameters "File dst" and "String name" into a single method. Could anyone please help me with this. My code is:
    public static void renameFile(File dst) throws IOException
    public static void renameCode(String name) throws IOException
    But I need both the parameters into the following method as:
    public static void filename(File dst, String name) throws IOException
    }

    The following is my entire class code:
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    public class filesMove
    /** Creates a new instance of filesMove */
    public filesMove()
    public void copyDirectory(File srcDir, File dstDir) throws IOException
    copyFile(srcDir, dstDir);
    public static void copyFile(File src, File dst) throws IOException
    InputStream in = new FileInputStream(src);
    OutputStream out = new FileOutputStream(dst);
    byte[] buf = new byte[1024];
    int len;
    while((len = in.read(buf)) > 0)
    out.write(buf, 0, len);
    in.close();
    out.close();
    renameFile(dst); 
    public static void renameFile(File dst) throws IOException
    combined(code);
    public static void renameCode(String name) throws IOException
    combined(code);
    public static void combined(File dst, String name) throws IOException
    //Please tell me how do I get both the parameters "File dst, String name" from the above two methods. Presently its throwing an error
    }

  • Error : passing parameters from method to FM is empty ?

    Hello,
    import parameters are not being passed to the end ???
    i have a workflow with a task, this task is calling a method called METHOD1 and this method is linked to a function module FM1.
    The workflow is triggered by an even, so i did binding between the event container and the workflow container, and then between the workflow container and the task container, so METHOD1 has import parameters.
    when i debug, the values of the import parameters are in the source code of the program under SWO1 but when from there the system calls FM1 prviding the correct import parameters for FM1, the parameters are not reaching, when debugging FM1 i see that its import parameters are empty.
    Any ideas as to why this is happening ?
    points are awarded.
    Regards

    Hello,
    thanks for your answers.
    Still did not work. Here is what i have:
    the workflow is triggered by the even "changed"
    so i am binding the object key from the event container to the workflow container, and then from the workflow container to the task container. the task takes a method that has import parameters, these import parameters are the keys of the object  that created the event. So when the task is calling the method, the import parameters have values, then this method exports these parameters to the function module, the function module have import interface, in the function module, the parameters are reaching empty, but when i am in the method the parameters have values. so why i am loosing these values once the method calls the function module.
    I tried doing pass by reference and pass by value -> did not work.
    - Yes i made sure that they are of the same types
    - what is SWC_GET_ELEMENT CONTAINER  and why should i use it -> No i am not using it.
    -the variables that i defined in the workflow container are set as , import, export and mandatory. - > is this correct ? i tried import and mandatory but this too did not work.
    Can you guys please provide me with more insight as to why this is happening ?
    regards
    points are awarded.

Maybe you are looking for