Passing changing parameter to RFC of ECC 6.0 from webdynpro java

Hi,
      I need to use a simple ZRFC from ECC 6.0 for ESS customization in one of the ESS components (Portal 7.0). There is a  changing parameter in the zRFC which should return a set of multiple values. I can see one single parameter under as input parameter (directly under the main node) and i can set a value for it. How to pass the values to changing parameter (it is a structure of multiple fields) while executing the model. Can any one please provide the code sample of executing the model.
Regards
Ramesh

Hi,
      This is my Model Node. Ch_Ethnicity is supposed to hold a set of rows (table). It is at both Input and Output. Currently I am passing only Im_Raky which is a code and I should get the table of descriptions into Ch_Ethnicity parameter under the Output Node. But webdynpro Model is expecting some input to the Ch_Ethnicity parameter under the Input Node also. This is the problem and when I have contacted Ababp team, I am asked to send an empty table structure for Ch_Ethnicity parameter under Input Node also. Can you suggest me the code to send an empty table structure as input according to the below given context.
Z_Get_XXXXXX_Input
Ch_Ethnicity
---Zhr_Ethnicity
ethcode
ethdesc
AndSoOn Attrib N
Output
Z_Get_xxxxxx_Output
Ch_Ethnicity
Zhr_Ethnicity
ethcode
ethdesc
AndSoOn Attrib N
    |----
Im_Raky
Regards
Ramesh

Similar Messages

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • Passing values to an InternalTable in a  Function Module from WebDynpro

    Hi,
       I have created a model from a function module that has a internal table.I have assigned the  value as a String to the datamodel context element of the internal table as a Line in the node that represents the input for the funtion module.The internal table accepts a value as an input.When i call the execute method on the input node i am not able to pass the value from the Webdynpro to the function module.I have also checked the assignment of the value as a String to the datamodel context element of the internal table as a Line in the node that represents the input for the funtion module and the value was assigned.
    If you can provide me any info on how to pass the internal table from Webdynpro to the function module will be very helpful ..???
    Thanks In Advance,
    Varma.

    Hi Rajendra,
               what u can pass to a function module is the parameter which are in import and tables  of RFC .so u have to declare a variable as a type of your internal table which may be type of   structure or table. then in your RFC u have to copy that into a variable of function module  and go for ur  logic ...

  • Passing parameters to an ITS Transaction iView Table from Webdynpro Java

    Hi,
    I am calling the IW44 transaction from Webdynpro using ITS, and would like to pass a list of Confirmation Numbers as screen parameters. When I pass parameters to AFRUD-RUECK, I can fill one cell, but my question is how to fill up each row as the technical name will be the same?
    Thanks

    Try this
    <AFRUD-RUECK1>=<parameter1>
    &<AFRUD-RUECK2>=<parameter2>
    [http://help.sap.com/saphelp_nw70/helpdata/en/88/266a3e54a2e946e10000000a114084/frameset.htm]

  • How to pass a parameter of type __int64 to a DLL from LabVIEW?

    I have a DLL function built in C that has a parameter of type __int64. Is it possible for me to represent a control of type equivalent to __int64 in LabVIEW?

    kelsie,
    I would agree with the other answers, but I have a bit more information as well. LabVIEW's EXT data type is in an IEEE format for an 80-bit floating point number (1 sign, 15 exponent, 64 mantissa, see Application Note 154). This should then represent an 64-bit integer with no issues (theoretically). However, I have only ever been able to get it to represent integers up to 1000000000000000000.000000 visually (1*10^18). I have a VI that reproduces this and I am trying to get it fixed. Now, the numerical value in memory is correct, but LabVIEW cannot visualize it to you at each integer value from 10^18 to 2^64. (Try placin
    g an EXT control on the front panel and typing in 1000000000000000000.000000. Then type in 1000000000000000001.000000. Notice that it does not display that value. However, run the attached LabVIEW VI and notice that the numerical values are not identical because they are not equal.) Another thing to note is that the increment/decrement buttons quit working after 9007199254741000.00.
    This all came about because customers wanted to get 64-bit integers from GPIB instruments. So what I did what to take the string and make the 64-bit integer into 2 32-bit integers. I then put them back together into an EXT data type to represent the large number. This is when I ran into the issue of the very large numbers.
    So, I agree that inputting two 32-bit integers would be the best method. Then use the "Scale by Power of 2" function to multiply the high part by 2^32 and add it to the low part. Again, this works for numbers up to 10^18.
    I hope this helps.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask
    Attachments:
    EXT_Test2.vi ‏25 KB

  • Can we wrap a RFC as webservice  and use from external java application ?

    Hi Friends ,
                         Our scenario is  call a webservice ( wrapped form of RFC)  from a external  java application  which will pass the input to that webservice and get back the result  .
                          How XI will play a role here ?
                          Can we wrap a rfc as web service  ?
                           Any blogs for that ?
                          Can you please give a brief details about this ?
                          Expecting yoour asap
    Best Regards .,
    V.Rangarajan

    Hi
    Can we wrap a rfc as web service ?
    Yes.
    <i>To use the SAP Web AS 6.40 you need to build a wrapper in the 6.40 system. This is a remote function call (RFC) enabled function module with the same interface or a similar interface that internally calls the required RFC-enabled function module in the old 4.6x system via RFC. The wrapper then can be exposed to the outside world as a Web service. Another option is to use the Integration Broker capabilities for calling Web services in an older system.</i>
    How XI will play a role here ?
    XI will pass the input to the external java application and get back the result to the webservice
    regards
    krishna

  • How to pass dynamic params to Transaction iView from webdynpro java app

    Hi Experts,
    I am trying to call a transaction iview in PCD from my Dynpro application with a dynamic param.
    Can somebody help me generating the URL for transaction iView and passing the dynamic params???
    Thanks in advance
    biroj...

    Hi,
    Generating the URL:
    StringBuffer strBuff = new StringBuffer("/webdynpro/dispatcher/xyz.com/xx~xxxx~xxxxx/xxxxxApp");
              strBuff.append("?");
              strBuff.append("TCODE=");
    strBuff.append("" + WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("TCODE"));
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(strBuff.toString(), "TCODEWindow");
    window.show();
    Please try the above code snippet helps you to create a TCode iView in a new window.
    or
    We can include URL parameters in a portal URL that calls a Web Dynpro page and these parameters can be forwarded to the otehr iVIews on the page.
    Example:
    http://xxxxxxxxx.com/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.WebDynpro?System=SAP_XXXXXXXX&WebDynproNamespace=xxxxx.com&WebDynproApplication=xx~xxxx~xxxx/xxxxApp&DynamicParameter=u201DTCODE=VA02u201D
    For more information Please go through this:
    http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
    Thanks
    Krishna

  • Pass rich text string from webdynpro java into interactive form

    Hi, experts:
      I know rich text-related questions have been asked by many other forum member.
      But I still cannot figure out how to display rich text string in the interactive form.
      below code is set rich text string in my webdynpro program.
    wdContext.currentDataForPDFElement().setDescription("<html xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:contentType=\"text/html\"><body><p>20100730 0950</p><h1><strong>test1</strong><br /></h1></body></html>");
    or
    wdContext.currentDataForPDFElement().setDescription("<p>20100730 0950</p><h1><strong>test1</strong><br /></h1>");
    Text field in the interactive form has been assign "Field Format" to "Rich Text", "Data Format" to "XHTML".
    I also check XML in the "XML source" tab of interactive form.
    <field name="Description" w="152.817mm" minH="25.2984mm" colSpan="3" access="readOnly">
      <ui>
      </ui>
      <font typeface="Myriad Pro"/>
      <bind match="dataRef" ref="$record.Description"/>
      <value>
         <exData contentType="text/html">
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="2.4.5277.0"/>
         </exData>
      </value>
    </field>
    My development tool version is NWDS CE EHP1 SP4, LiveDesigner v 7.1.
    What I miss? Any hints would be very appreciated.

    What about these:
    Formatting in SO10 texts into the form
    Trouble with xhtml text in adobe forms
    Prevent HTML escaping in RichText fields
    regards Otto

  • How to passing lowercase values to RFC/BAPI using webdynpro for JAVA

    Hi Exerts,
    When we sending values to RFC/BAPI through webdynpro (JAVA), the values are sent in capital (uppercase) letters to ECC.
    So if we fill xxxx, it is send like XXXX. Why? and how to avoid this?
    Thanks in advance,
    Joeri

    Hi,
    There could be two possibility if you are storing this value in ABAP table.
    1. You are entering value in UPPERCASE in your webdynpro application.
    2. The data stored in ABAP table, converts value in small to upper case.
    1.  Can you tell me how you are passing this value, is user entering value in some input field which is binded to some context and this value are you passing to RFC/BAPI...???
    Or else before passing value to RFC/BAPI you can use toLowerCase string function and the npass this value to RFC/BAPI
    e.g String name = wdContext().currentContextelement().getName().toLowercase();
    Now pass this name to RFC/BAPI is should go as lowercase only..
    This is from webdynpro java side..
    2. If you are storing this value in ABAP table, check the domain/type of variable in ABAP table for which you are storing the value. Ask ABAPper, so that this value are stored in small case letter.
    There is one tick in domain which you need to remove so that it stores in lower case. I dont have exact information but you can consult this with ABAPer.
    Hope this information helps guy ..!!!!
    Regards,
    Jigar

  • Exporting and changing parameter

    Hi abapers,
                        I am working object oriented abap and i need a small example of ,how to use
                       export and changing parameter of a method.
                       Can anyone help me regarding this
    sanjay

    See the below code. Hope it will be helpful.
    <code>
    REPORT zexp1 .
    DATA : w_tax    type p decimals 2 ,
           w_salary type p decimals 2 .
    CLASS CTAX DEFINITION.
      PUBLIC SECTION.
       METHODS : TAX_CALC IMPORTING grade  TYPE C
                          EXPORTING itax   TYPE P
                          CHANGING  salary TYPE P .
    ENDCLASS.
    CLASS CTAX IMPLEMENTATION.
      METHOD : TAX_CALC.
       CASE grade.
        WHEN 'A01'.
         itax = salary * '0.2'.
        WHEN 'A02'.
         itax = salary * '0.1'.
        WHEN OTHERS.
         itax = salary * '0.15'.
       ENDCASE.
        salary = salary - itax.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
      DATA : OREF1 TYPE REF TO CTAX.
      CREATE OBJECT : OREF1.
      w_salary = 30000.
      w_tax    = 0    .
      write:/5 'Before method call, salary and tax are' ,
               w_salary ,
               w_tax .
       CALL METHOD OREF1->TAX_CALC EXPORTING grade = 'A01'
                                   IMPORTING itax  = w_tax
                                   CHANGING salary = w_salary.
        write:/5 'After method call, salary and tax are' ,
               w_salary ,
               w_tax .
    </code>
    The program contains a method TAX_CALC belonging to the class CTAX. It receives GRADE as IMPORTING parameter and SALARY as CHANGING parameter. Based on the grade, the EXPORTING parameter ITAX is calculated and the CHANGING parameter , SALARY is modified by deducting tax from it.
    reward if you find it helpful.
    Thanks & Regards,
    Rajesh

  • RFC with CHANGING parameter

    Hi All,
    When creating an RFC, if i add a parameter in CHANGING tab, it is giving an Information message that `CHANGING is not allowed in RFC`. Is it true ?
    If yes, that what is the alternative to pass a parameter which can be changed from SAP as well as the Other system using the RFC.
    Thanks,
    Best regards,
    Prashant

    Hi,
    User enters MATNR on screen-other application, RFC is called. If field STATUS is blank(will be blank for 1st RFC call), then data would be validated and MATERIAL related data is sent back with value in STATUS as 01(success) else appropriate error message no. is sent.
    Other application will check If STATUS NE 01, then error message description is fetched locally by the application and displayed on screen else the material related data is displayed on screen. User would click on confirm. Again the same BAPI would be called. If validations are fine, then COMMIT work would be done.
    So the purpose is that, data is fetched in 1st RFC call and displayed on screen. Then user would click confirm and then same RFC would be called.
    COMMIT WORK should not be executed for the 1st call to RFC but later it should be executed.
    Best regards,
    Prashant

  • Passing a Parameter to the Procedure and changing it in the Procedure

    Hi all,
    I am trying to pass a parameter to a procedure like this.
    PROCEDURE FLASH_PHY
    (date_begin IN DATE, date_end IN DATE)
    IS
    I am trying to do SELECT and INSERT based on the date range passed in the procedure as mentioned above. And I am trying to do something like this.
    SELECT NVL(sum(charges),0),count(summary_balances_id)
    INTO lnu_charges_6months,c_summary
    FROM SUMMARY_BALANCES
    WHERE period_begin BETWEEN ADD_MONTHS((date_begin), -6) -- AND ADD_MONTHS((date_end), -1);
    UPDATE summary_balances
    SET cummulative_charges_6mo = lnu_charges_6months;
    how should I do this parameter change. Right now if I use this select statement than it does not return anything as the parameter is passed on the procedure level. I am under the impression that when you pass a parameter to the procedure like this you can't change it into the procedure.
    PLEASE GUIDE. Thanks a bunch. I really appreciate it.

    From what I understand your variables that are passed into the
    procedure can be manipulated as local variable to the procedure.
    Here is my interpretation of what your attempting to do:
    create or replace procedure A (x in number) IS
    yes varchar2(3) := 'No';
    begin
    dbms_output.put_line('Start value for yes:'||yes);
    select 'yes' into yes from dual where x+1 = 2;
    dbms_output.put_line('End value for yes:'||yes);
    end;
    Call the procedure called "A" passing in a "1".
    EG:
    BEGIN
    A(1);
    END;
    Does this answer your question?
    ,Russ

  • Passing date field to RFC

    Hi there,
    I am implementing a mail to RFC scenario and everything seems to work fine except of this: the RFC has a date as incoming parameter, which is not filled (correctly). When I look at the message being sent to the RFC adapter I can clearly see that all values are filled correctly, but when I am debugging the RFC in ECC the date field has 0000000 as a value. I already tried to pass a whole set of formats, but none of them seem to be able to get passed. I already checked the communication channel monitor, but there no errors are shown (and the message still contains all values).
    I saw that the field in XI has type date instead of the xsd:date which could be expected. But this is also the case for standard BAPIs, so I suppose this won´t cause a lot of problems. :-s
    Anyone who could clarify/solve the issue that I am having? A solution would be to ask the ABAP developer to make it a CHAR field, but at this time I consider that as the last option (because it should be possible to solve it like it is)
    Thanks a lot in advance!

    Thanks a lot for your replies!
    I am aware of the fact that 00000000 is the default value of a date field in ECC. The issue is that it is filled at the XI side, but at the ECC side it appears to be empty.
    At the moment I am passing 2008-03-12, because this seems to be the format what a xsd:date field would expect to receive (according to http://help.sap.com/saphelp_nw04s/helpdata/en/fe/26da4105aa3f5de10000000a1550b0/frameset.htm), but this doesn´t seem to get passed. I also tried the the following formats:
    20080312 (internal format ECC)
    12-03-2008
    12.03.2008
    12/03/2008

  • Error while passing Application Parameter in Transaction iView editor

    Dear all
    I am trying to pass some application parameters to one of the transaction iViews. Without passing any parameter in 'Application Parameters' field of the iView editor the iView can be previewed/displayed fine. But when I am trying to pass the parameters as follows <Screen_Parameter1>=<ABC>&<...>=<...> the preview is coming up with a Portal runtime error saying that the <Screen_Parameter1> is an invalid terminal property of the root context_
    Can anybody help me out with this?
    MAQ

    In any application parameter field u need pass screen_field
    u need to find the screen_field value first .
    login to backend ECC server , give u r required Tcode .
    click in  required field , press f1 -> click on Technical setting icon on top .
    in that screen , screen_field is the last field .
    copy  this screen_field value
    place ths screen _field value in application parameter field .
    example : rs38-programm=ztest
    here re38-programm is the screen field
      ztest is it's value .
    & this is used for the separator between 2 values

  • How do I Pass a parameter to a SQL Component Task where the source SQL statement is also a variable

    Hi,
    I have been tasked with making a complex package more generic.
    To achieve this I need to pass a parameter to a SQL Component Task where the source SQL statement is also a variable.
    So to help articulate my question further I have create a package and database as follows; -
    USE [KWPlay]
    GO
    /****** Object: Table [dbo].[tblTest] Script Date: 05/14/2014 17:08:02 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[tblTest](
    [ID] [bigint] IDENTITY(1,1) NOT NULL,
    [Description] [nvarchar](50) NULL,
    CONSTRAINT [PK_tblTest] PRIMARY KEY CLUSTERED
    [ID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    I populated this table with a single record.
    I unit tested the SQL within SSMS as follows;
    SELECT * FROM dbo.tblTest
    Result; -
    ID           
    Description
    1             
    Happy
    DECLARE @myParam NVARCHAR(100)
    SET @myParam = 'Sad'
    UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    SELECT * FROM dbo.tblTest
    Result; -
    ID   
    Description
    1    
    Sad
    Within the package I created two variables as follows; -
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = @myParam FROM dbo.tblTest WHERE ID = 1
    Name: strStatus
    Scope: Package
    Data Type: String
    Value: Happy
    I then created a single ‘Execute SQL Task’ component within the control flow as follows; -
    However when I run the above package I get the following error; -
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = @myParam FR..." failed with the following error:
    "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. 
    The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the
    errors.
    SSIS package "Package.dtsx" finished: Failure.
    I also tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    However I received the error; - 
    SSIS package "Package.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "UPDATE dbo.tblTest SET [Description] = ? FROM dbo...." failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with
    the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
    the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    SSIS package "Package.dtsx" finished: Failure.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Tried; - 
    Name: strSQL
    Scope: Package
    Data Type: String
    Value: UPDATE dbo.tblTest SET [Description] = ? FROM dbo.tblTest WHERE ID = 1
    and; - 
    Result; - 
    SSIS package "Package.dtsx" starting.
    SSIS package "Package.dtsx" finished: Success.
    Therefore the answer was to put the parameter number rather than the parameter name under the parameter mapping tab-> parameter name column. 
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

Maybe you are looking for

  • Adobe AIR on RedHat and SUSE Linux

    Hi, I am trying to install AIR 2.5 runtime on RedHat Linux and SUSE Linux . When I try to do it on RedHat, I get the following error: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or direct

  • Doubt in loading Driver

    I am connecting to Oracle Database. I have written the following code to connect to a database 1 Class.forName("oracle.jdbc.driver.OracleDriver"); 2 con = DriverManager.getConnection ("jdbc:oracle:thin:URL","USERNAME","PASSWORD"); 3 st = con.createSt

  • What proof do I need for educational discount?

    I don't have a student card or anything. But i have an acceptance letter and a tonne of forms about my accomedation would that suffice apple? also iam in the UK.

  • How to display more than 200 rows in the table?

    Hi Experts, Is that possible to display more than 200 rows in a Table. when i query from table, it has 1000 rows, i want to display all the 1000 rows in the Table. when i query, the values are displaying up to 201 rows only, when i click next on 200

  • INVOIC01 - Vendor Invoice Reciept

    Hi I have used INVOIC01 for the creating a IDoc for vendor invoice receipt (EDI 810 Inbound). The IDoc is able to generate the Invoice document but I am facing some troubles as below: 1. But when i seen the invoice document in MIR4, its asking for Ju