How to populate table in RFC

How do I populate an abstractlist that is an input to an RFC?  I read the post by Bertram Ganz, but my generated classes look different.  I imported the RFC and the system generated the following:
-zbapi_appraisal_create
  -zbapi_appraisal_create_input
    -appraisees (bapiappraisee)
      -bapiappraisee
        -fields...
    -output (zbapi_appraisal_create_output)
      -same as output node below
    -appraiser_id
    -rest of input parameters...
  -zbapi_appraisal_create_output
...etc.
I have no problem setting the regular input parms, but how do I set the table?  I tried the following, but I get a ClassCastException on the call to setAppraisees().
Zbapi_Appraisal_Create_Input input = new Zbapi_Appraisal_Create_Input();
wdContext.nodeZbapi_Appraisal_Create().bind(input);
input.setAppraisal_Model_Id(appraisalModelId);
input.setStart_Date(startDate);
input.setText(description);
input.setCreation_Date(appraisalDate);
input.setAppraiser_Id(appraiserId);
//static values
input.setPlan_Version("01");
input.setAnonymous(true);
input.setAppraiser_Type("P");
input.setAppraiser_Plan_Version("01");
//create appraisee
<b>Bapiappraisee obj = new Bapiappraisee();
obj.setPlan_Version("01");
obj.setType("P");
obj.setId(appraiseeId);
obj.setName(appraiseeName);          
List myList = input.getAppraisees();
if (myList == null) myList = new ArrayList();
myList.add(obj);
input.setAppraisees((AbstractList)myList);</b>
wdContext.currentZbapi_Appraisal_CreateElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
Any input is greatly appreciated!!
John<b></b>

Please read a good manual prepared by Arun Bhat -
<a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f3f93ee7-0c01-0010-2593-d7c28b5377c2">Adaptive RFC Troubleshooting Guide</a>
WDDynamicRFCException most likely comes in the following cases:
a) JCo is not setup properly
b) Your function module does not exist in R/3 system referred by your JCo
c) Your function module is not RFC enabled
d) DD_DOMA_GET is not RFC enabled
Also make sure you have got your cardinality settings for your model node in context controller proper.
If you have used a template approach, just check your wdDoInit method of your custom/component controller for code similar to the following:
wdContext.nodeBAPI_Input().bind(new BAPI_Input());
If you have the above code and the code that you have just  pasted , just comment this code and try executing your application again.
Regards,
Subramanian V.
Message was edited by: Subramanian Venkateswaran

Similar Messages

  • How to pass table in RFC and use that table to populate fields in Mapping?

    Hi,
    I have a requirement FIle to CSV, the file consists of thousand lines...
    What I did first is to put RFC look up per line. It is taking too long to process the message.
    One work around that I could think of is to pass all the values to a table then pass the table to RFC then RFC returns another table, so only one RFC call is required.
    How am I going to use the table returned by the RFC? Please advise how to achieve this scenario.

    Hi,
    I use an ABAP RFC function, which has a parameter that contains many rows.
    In ABAP, I create a two types. First is a ROW - contains some fields, for example, param1, param2, etc.
    Second is a TABLE - contains multiple count of ROW.
    Then I create a Remotecallable Function that has this TABLE-type as parameter (you can make this parameter as INPUT and OUTPUT). So in my mapping program after import RFC Function, I see a message looks like this:
    MY_TABLE_PARAM (Occurences: 1)
    item (Occureces: 0..unbounded)
    param1 (Occureces: 1)
    param2 (Occureces: 1)
    etc (Occureces: 1)
    Regards.

  • How to populate table BAPI2017_GM_SERIALNUMBER in BAPI_GOODSMVT_CREATE

    hi everyone
    can anyone tell me how to populate the table BAPI2017_GM_SERIALNUMBER in BAPI BAPI_GOODSMVT_CREATE?

    DATA:
    gm_serialnumber TYPE STANDARD TABLE OF BAPI2017_GM_SERIALNUMBER,
    wa_gm_serialnumber  LIKE LINE OF gm_serialnumber.
    wa_gm_serialnumber-MATDOC_ITM = '0001'.
    wa_gm_serialnumber-SERIALNO = 'abcd'.
    APPEND wa_gm_serialnumber TO gm_serialnumber.

  • How to Populate table using values from a muti-select list

    I have a muti-select list in a page, the user can select some of the values from the muti-select list. How to populate a table in a process using the selected values.
    Thanks.
    XP

    XP,
    you can also have a look at the following thread.
    Re: Shuttle Control In APEX 3
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • How to populate table TVENDCUST_SCGRT?

    Hi I want to know how was this table being populated....Actually I had a problem in transaction FK03 the field that I appended in table LFB1 for vendor group does not display in FK03 for spanish log.in but for english log-in it display.W hen I debug I found out that on this table TVENDCUST_SCGRT the screen group and the description is not maintained for Spanish language. So I am asking on how this table being populated.Hope to hear ideas..
    ---Ekit

    Hi,
    You can go to transaction SM30 and can maintain in the view VC_VENDOR_EXP
    Or
    SPRO> Financial Accounting > Accounts Receivable and Accounts Payable > Vendor Accounts >Master Data > Preparations for Creating Vendor Master Data > Adoption of Customer's Own Master Data Fields > Prepare Modification-Free Enhancement in Vendor Master Record
    Or
    Transaction S_AL0_96000722
    Regards,
    Gaurav

  • Populate Table from RFC in WD-Java Adobe Form

    Hi Experts,
    I have a Table in WD-Java Adbe Form. The first column is EMPLOYEE_ID and rest of the columns are EMPLOYEE_DETAILS.
    I provide the EMPLOYEE_ID as input in the first column and then on clicking of the CHECK button, I want to get the remaining columns populated with Employee Details
    If I enter just one employee id (Row1) then I should get the details of the first employee only.
    If I enter two employee ids (Row1 and Row2) then I should get the details of both eployees in the table.
    The ABAP RFC Function Modules have already been designed in such a way that a table is bein passed as Import (having EMPLOYEE_IDs) and another table is beig returned with the filled in details of the employees in the Export.
    THe issue is how to use the RFC to implement this table in the form.
    Thanks & Regards,
    Shobhit
    Message was edited by:
            Shobhit Swarup Mathur

    Hi Shobhit,
    You could populate the columns by writing a script at the click event of the button.
    Is it a dynamic table..(asking this coz then the reference of the row will also be dynamic)
    if its a static table.
    on the click event, you can write the following script.
    Note...i am taking the table name as Table1
    var nTableLength = Table1.nodes.length;
    for (var nCount = 0; nCount < nTableLength; nCount ++) {
    if ((Table1.nodes.item(nCount).className == "subform") && (Table1.nodes.item.nCount).name !== "HeaderRow")) {
    oRow = Table1.nodes.item(nCount);     
    if (oRow.EMPL_ID.rawValue !== null ){
    // populate the other value over here eg
    // oRow.EMPL_NAME.rawValue = 'Shobhit';
    let me know if theres any problem.
    Best Regards
    Mona

  • How to populate table from forms

    I'm working with forms 4.5 and have created a form that is based on table A. I need to be populate another table B which has the same fields as table A from this form. How do I do that?

    that's right but this way needs some more attention actually: make sure that insert block allows inserts and use only that table (not for instance view), then you have to call the form and browse throw all the records to fire the process and perform final commit.
    So the better way is to create procedure inside the form doing that automatically. You can use the block fields to assign values (:blockA.field1 := :blockB.field1). It seems to be easier to build and run.

  • How to populate table rows with selected listbox items?

    Hello,
    I am trying to populate a table with selected listbox items. Each item should be a new row in the table. The picture below is the listbox and table I am using. I need to get the selected name to populate the Attendee column of the table when the user clicks the Add button. How do you do this with mutltiple attendees selected?
    Thank you,
    Angie

    So you're considering the fact the if the user clicks the button twice, the name will appear twice and you don't want this, right?
    Then you must check if any value is the same than the one you are about to add in the row..
    for (var i = 0 ; i < ListBox1.length; i++){
         if (ListBox1.getItemState(i) == true){
              for (var x = 0 ; x < Table1._Row1.count; x++){
                   var boNewAttendee = true;
                   var strAttendee = Table1.resolveNode("Row1[" + x.toString() + "]").txtAttendee;
                   var newAttendee = ListBox1.getDisplayItem(i);
                   if (strAttendee.rawValue == newAttendee){
                        boNewAttendee = false;
                        break;
              if (boNewAttendee){
                   txtAttendee.rawValue = ListBox1.getDisplayItem(i);

  • How to populate table programmatically??

    Hi,
    I want to populate a fresh table from my result set which i am getting from firing query in database which is written in my Managed Bean.
    The data of result set populate my table which is on my ADf page.
    How I can do this, please help me....
    Jdev version:- 11.1.1.3.0
    Thanks,
    Ramit Mathur
    Edited by: Ramit on Aug 8, 2011 1:54 AM

    Are you modifying the contents of tree and want the changes to be reflected in the UI?
    If so, after executing the custom query in the managed bean - do the following:
    1) Whenever the tree is to be refreshed, get the handle to the iterator and reexecute the iterator
    (which would ideally fetch from the VO).
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iteratorBinding =
    (DCIteratorBinding)bindings.get("<ITERATOR_NAME_IN_PAGEDEF>");
    if (iteratorBinding != null) {
    iteratorBinding.executeQuery();
    2) Assuming that the TreeTable has binding in the Managed Bean as 'treeTable',
    after doing the required operations as mentioned above, add the partial Target as follows in the managed bean code:
    AdfFacesContext adfFacesContext =
    AdfFacesContext.getCurrentInstance();
    adfFacesContext.addPartialTarget(this.treeTable);
    Thanks,
    Navaneeth

  • How to populate table editor which has dropdown by index in a column

    Hi Experts,
    I have a table editor with 3 columns.
    Column 1. DD By Index - Subjects
    Column2: marks ( input field )
    column3: Result ( text view)
    On an action of button on top of the view, i am getting the data for column2 and 3 and populating the node but i am unable to populate the column 1 Dropdown by Index.
    My Node looks like this:
    Node_Parent
       Node_DD
          Subject_Text
       Marks
       Result
    When i get the internal table for Node_parent i am not getting Node_dd in that, so i am populating Marks and Result. binding it.
    again looping on lt_parent and binding the node_dd.
    it works fine when there is one row in lt_parent, its going for dump when its more than 2 records.
    What am i missing while binding the subnode Node_DD while looping?
    Any clue is highly appreciated.
    Note: I am not using Supply Function to populate the subnode.
    Ajay
    Edited by: ajay matam on Aug 1, 2011 12:40 PM

    Hi,
    Parent Node and Child node has cardinality 0 to N only.
    I am getting the child node of the parent.
    Lo_node_parent->get_child_node ( name = 'Node_dd' )
    i am trying to bind an internal table to Lo_node_parent but i am getting a dump with error
    "COMPONENTCONTRLLER.1.PARENT.2.NODE_DD.NODE_DD" does not exist.
    Binding works when there is one record in Parent node
    loop at lt_parent into ls_parent.
    binding the child node
    endloop.
    above thing works fine when there is one record, but when there are more than 1 record i am getting the above error.
    Ajay
    Edited by: ajay matam on Aug 1, 2011 1:40 PM

  • How to populate table name dynamically to a ref cursor

    Hi,
    I came accross with a requirement that in ref cursor how can i pass the table name
    for ex
    open ref_cur for select * from emp;Like that i've some 100 tables , instead of typing each and every time the table name
    that should be dynamically changed
    Like below
    open ref_cur for select * from &tbl_nm;How can i do that??
    Thank you

    I assume you are using SQL*Plus:
    SQL> variable ref_cur refcursor;
    SQL> begin
      2      open :ref_cur for select * from &tbl_nm;
      3  end;
      4  /
    Enter value for tbl_nm: emp
    old   2:     open :ref_cur for select * from &tbl_nm;
    new   2:     open :ref_cur for select * from emp;
    PL/SQL procedure successfully completed.
    SQL> print ref_cur
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 12/17/1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 02/20/1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 02/22/1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 04/02/1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 09/28/1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 05/01/1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 06/09/1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 04/19/1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            11/17/1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 09/08/1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 05/23/1987 00:00:00       1100                    20
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7900 JAMES      CLERK           7698 12/03/1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 12/03/1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 01/23/1982 00:00:00       1300                    10
    14 rows selected.
    SQL> begin
      2      open :ref_cur for select * from &tbl_nm;
      3  end;
      4  /
    Enter value for tbl_nm: dept
    old   2:     open :ref_cur for select * from &tbl_nm;
    new   2:     open :ref_cur for select * from dept;
    PL/SQL procedure successfully completed.
    SQL> print ref_cur
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    SQL> SY.

  • How to populate table at run time

    Hi All,
    I have a requirement like , i have department table and i created view object for that and dragged into jsp page as a single selection choice.
    when i select department id in the drop down list a table should be populated with the details
    //-- Table should only appear if the user has chosen drop-down criteria .please help me how to achieve this.
    Thanks

    at the rendered property you could use something like
    rendered="#{bindings.comboBox.inputValue eq null? false : true }"So the first time you come on your page, the table won't be rendered.
    When you select a value from you combo box, the view criteria will do his work and the rendered property will be set to true.

  • How to populate table of values based on selected value of dropdown list

    Hi
    I have an urgent requirement.
    Whenever I select a value in Dropdownlist, Based on the selected value I need to display serveral values in tabular form.
    I have created a dynamic LOV and created the actionListener
    I have created a table by dragging the ViewObject and i have set the partialTrigger attribute value to the LOV Id.
    Now My doubt is What should I return in the actionListener method
    Thanks

    Hi,
    So get the value what i tried is ,bind the list item of the select one choice ,
    and then i used the method something like this
    UISelectItems see=getSelectItems1();
    System.out.println("Selected Value"+ see.getValue());
    but it returns me something like this
    Selected Value[javax.faces.model.SelectItem@b20090, javax.faces.model.SelectItem@431753]
    Don't know what are those ,hoe can i get the display value.Please help.
    Thanks

  • How to populate the condition tables of CRM 7.0

    Hello Friends,
    How to populate values in CND* tables , i assume these are the tables that hold the conditions.
    Thanks and Regards,
    Vasu

    Hi,
    if you refer to CND* tables those are tables involved in the condition master data exchange between ERP and CRM (on CRM side). Actual condition tables for pricing related condition records start with CNC*. In the help there is a documentation of the condition master data tables for pricing available: http://help.sap.com/saphelp_crm70/helpdata/EN/0e/91f9392486ce1ae10000000a114084/content.htm
    Hope this helps.
    Best Regards,
    Michael

  • How to populate data in PAY_PEOPLE_GROUPS table (People Group Flexfiled)

    Hello
    We are migrating the data from one oracle instance to another oracle instance which are in same version of Oralce Applications 11.5.10.2. As a part of migration can anybody let me know how to populate data in "People Group Key Flexfiled" (PAY_PEOPLE_GROUPS table), ideally I will create or update employee records from the source instance to destination instance, so while creating or updating the employee records in can pass people_group_id while calling to the assignment api but my question here is before passing group id to the api i should have the data populated in PAY_PEOPLE_GROUPS TABLE so that i can fetch the group id as per the combination and pass it in to the api.. please suggest...

    Thanks for your information! by any chance do you have any sample code which will create/update assignments with People Group Flexfield; when i check "hr_assignment_api.update_emp_asg_criteria" it only has parameter to pass people group id and not having segments parameters to pass individual segments.
    Also let me know the links if you have any for all HR API guide which will help me to develope the interfaces...
    My requirement is we have two instances in which in one instance we are treating as source for HR which will be used to master for all HR related activities and we are planning to develope an interface which will bring master instance in sync with dummy instance.

Maybe you are looking for

  • Windows installation unusable.. error causes restart

    I had a problem with my computer restarting which I put down to overclocking (I decided to raise the core voltage each time it happened (not often - I only actually raised it once)). Whilst trying to install software it happened again. The computer r

  • Automatic Clearing not done in Production Run

    Hi, There is strange case in automatic clearing. When I am executing the transaction F.13 in test run it is showing a clearing date but when i am executing in production run it is not generating the clearing document. The message I am getting is as f

  • Does Power BI has similar feature as Power Pivot Gallery in SharePoint 2013?

    Hi, I have a data model in an Excel file, and I would like to publish it to the Power Pivot Gallery, so other people can connect to the data model in their workbooks and create their own visualizations.  How do you achieve this in Power BI? Thanks, H

  • How can I type into a text window on top of a box?

    Hi gang. When I create a box (for example, a sidebar b/g) then create a text box on top of it, I can't type into that box unless I drag it off to the side, away from the b/g box (or layer, since we're not talking Quark) as the text just hops over to

  • Classification text objects

    We are using classification objects in our BW system.  One of our master data objects has about 50 attuibutes from classification data.  When we make a change to the master data object and transport it to QA or PRD we get about 20 to 30 text object l