Unbound fields in a table built with rfc model

Hi,
I would like to have unbound fields in a table in addition to the fields that are coming from the model.
I have a model from an RFC function. I use this to build a table. There are 5 columns. This works fine. I would like to add two additional columns to the table that have their data coming from elsewhere (not from the rfc function).
I've tried using the wdDoModifyView as below:
IWDTextView text = (IWDTextView)view.getElement("TextView2");
text.setText("This is the text");
The problem here is that the value is shown on all the rows, not just one.
And if I try to use the object that contains the getters and setters for the table data, these additional unbound fields do not have the getters and setters.
How can I get to these unbound fields so I can fill them in a loop ? Can I create additional fields in the model so I can bind them to the context ?
I do not wish to change the rfc code to have these additional fields in there. I am also not able to add fields to the model by hand (should I be able to ?).
Any help greatly appreciated
Kind Regards,
Jari Pakarinen

Thanks.
I will need a clarification though
Here is the code snippet from wdDoInit():
for (Iterator iter = list.iterator(); iter.hasNext();) {
     Object skeduLine = iter.next();
     StringTokenizer toker = new StringTokenizer(((Ztab4000)skeduLine).getWa(), "t");
     Zmaterials zMats = new Zmaterials();
     String blaa = (toker.nextToken().split("\,"))[0];
     if (blaa.indexOf('.') != -1);
          blaa = blaa.replaceAll("\.", "");
     zMats.setWmeng(Integer.parseInt(blaa));
     zMats.setEtdat(getDate(toker.nextToken()));
     zMats.setMatnr(toker.nextToken());
     zMats.setKdmat(toker.nextToken());
     wdContext.nodeZ_Rfc_Schedagrt_Save_Input().currentZ_Rfc_Schedagrt_Save_InputElement().modelObject().addMaterials(zMats);
I'm going thogh a list that contains String objects.
Each String object contains fields separated by a tab. There are 6 fields, and 4 of them are going to the Zmaterilas object, and the rest 2 should be put to the additional fields of the table.
I create the Zmaterials (table contents minus the additional fields) object and populate these fields with the 4 fields of data.
How should I put the additional data to the table here ?
Kind regards,
Jari

Similar Messages

  • How to Populate a Dropdown field for a table control with different keys

    Hi All,
    I have Table control with abt eight columns (fields). Out of these eight field one field is with dropdown list. In table control Project ID is Primary key column. Depending upon this Project ID value, i have different values which is to be populated in dropdown boxes. In table control if there is only one project ID value say 'P000715' i can populate it but when i have more than one project ID (P000715, p000716, P000717.....) in display in rows of table control i want to have different values in my dropdown field corresponding to that row of project id. Experts please tell me how to achieve this functionality.
    Thankx in Advance
    Rizwan Ahmad Siddiqui

    The only way you may be able to do this is using
    MODULE PROCESS ON VALUE-REQUEST. User-programmer F4 help
    in your PAI routine.
    In this routine you would build the list and get the returned value to update the field.
    Something like this.
      DATA: BEGIN OF value_tab OCCURS 0,
        field1 TYPE zlmltype,
        field2 TYPE zltypex,
      END OF value_tab.
    * Drop down values
      REFRESH it_return_tab. CLEAR it_return_tab.
      REFRESH value_tab. CLEAR value_tab.
      SELECT ltype ltypex
        INTO TABLE value_tab
        FROM zlmltyp
        WHERE auth NE '9'.    "System Only
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield   = 'FIELD1'
                value_org  = 'S'
           TABLES
                value_tab  = value_tab[]
                return_tab = it_return_tab.
      READ TABLE it_return_tab INDEX 1 INTO wa_return_tab.
      CHECK sy-subrc EQ 0.
      p_pleadtyp = wa_return_tab-fieldval.

  • Passing values for Table in Adaptive RFC model

    Hi ,
    I am new to WebDynpro ,I have a requirement I need to pass a table for the back end BAPI, the table has two columns say (column1 and column2), before calling the BAPI I need to fill values in the column1 and the when the BAPI returns it should fill the column2 values, Is this possible to do, If so do I need to call invalidate for the values to get reflected after the BAPI returns??
    Can some one send me the sample code as to how to do this??
    Regards,
    emrin.

    Hi,
    After creating model and context mapping to table,
    u write the following code in component controller,
    WD Doinit();
    Bapi_Flight_Getlist_Input bap=new Bapi_Flight_Getlist_Input();
        wdContext.nodeBapi_Flight_Getlist_Input().bind(bap);
        try{
        wdContext.nodeBapi_Flight_Getlist_Input).currentBapi_Flight_Getlist_InputElement().modelObject().execute();
             wdContext.nodeOutput().invalidate();
        catch(Exception e)
             e.getStackTrace();

  • Dynamically retreiving fields of a table

    Hi,
    I have a text file in the application server containing data corresponding to the fields of table EPROVAL15.I have declared an internal table and work area of the table type .While I am trying to split the file into respective fields it's throwing an error which is "field should be declared of character type".since fields such as 'VAL0000' or 'VAL0015' are of decimal format,so split statement doesnot work for such data type.Can any1 suggest how to split the file so that data from the text file get appended to the internal table?
    I thought of declaring a structure containing the same number fields as the table EPROFVAL15 with data type as char,but then that would be time consuming process as the table contains many fields.Can any one provide a solution to it?
    I would like to know ,if there is a table containing more than 100 fields and we want to append values from text file to it through an internal table ,then in the split statement do we need to provide every field  name (the usual process that we do) ?i feel it's a time consuming process to mention all the field name manually.is there any way out by which the fields can be called  dynamically for appending the data from the text file into it?

    Hi Brad,
    The text file is delimited by' | '.
    following is the sample code .
    data: gt_IEPROFVAL15  type  IEPROFVAL15,
           gwa_IEPROFVAL15  type  EPROFVAL15.
    split g_temp1 at '|' into gwa_IEPROFVAL15-PROFILE  gwa_IEPROFVAL15-VALUEDAY gwa_IEPROFVAL15-VAL0000
                                      gwa_IEPROFVAL15-VAL0015   gwa_IEPROFVAL15-VAL0030  gwa_IEPROFVAL15-VAL0045.
    The above split statement contains fields up till VAL2345(presently i have shown fields up till VAL0045).The syntactical error is
    ' gwa_IEPROFVAL15-VAL0000 must be a character type data object'.
    Is there any way by which data conversion can take place explictly ?
    If i declare a structure containing the same fields as that of table EPROVAL15(with the data type being char instead of integer) to be used in the split statement  then again it's a tedious process.
    Hope the problem stated is clear to you.

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

  • Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - Problem: Can't tab from one entry field to the next; Hitting tab instead hides all palettes; Is there a fix? This didn't happen in Adobe Indesign CC

    Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - Problem: Can't tab from one entry field to the next; Hitting tab instead hides all palettes; Is there a fix? This didn't happen in Adobe Indesign CC

    This is planned to be fixed in the next release.

  • How to link label with an input field in data table?

    I am curious if there is a nice way to link a label to input field in a data table directly in JSP? Data filling the table are dynamically bounded.
    Sample, simplified code below. Values of "label" property are unique in the collection binded to dataTable.
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:jsp="http://java.sun.com/JSP/Page">
         <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" />
         <f:view>
              <html>
              <body>
              <h:dataTable value="#{screen$monitoring$errorlog$CorrectHopper.dataset}" var="DATA_ROW">
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Name" />
                        </f:facet>
                        <h:outputLabel value="#{DATA_ROW.label}" for="#{DATA_ROW.label}_id" />
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Value" />
                        </f:facet>
                        <h:inputText value="#{DATA_ROW.label}" id="#{DATA_ROW.label}_id" />
                   </h:column>
              </h:dataTable>
              </body>
              </html>
         </f:view>
    </jsp:root>
    returns:
    17:39:01,390 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.IllegalArgumentException: #{DATA_ROW.label}_id
    what is related to EL expression in h:inputText's "id" attribute.
    Is there any other way to bind label with dynamically created input field in JSP? Do I really have to bind input field directly to component objects with "binding" and set IDs manually with setId() (what is ugly solution because it moves View related logic to Model layer)?

    I've thought of using EL because I have to somehow
    link a label to an input field dynamically. Somehow? Dynamically? Just use plain text :)Well... just look at my code snippet (notice: we want to join the pairs of labels and text boxes placed in a datatable [or any other repeater-like component rendering properties of objects from a collection]):
    <h:dataTable value="#{screen$monitoring$errorlog$CorrectHopper.dataset}" var="DATA_ROW">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name" />
    </f:facet>
    <h:outputLabel value="#{DATA_ROW.label}" for="#{DATA_ROW.label}_id" />
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Value" />
    </f:facet>
    <h:inputText value="#{DATA_ROW.label}" id="#{DATA_ROW.label}_id" />
    </h:column>
    </h:dataTable>
    and what is your idea of using plain text as "id" attribute value in this case? :)
    Regards,
    Michal

  • How can I link table KONV with table VBRP and VBRK using KSCHL field?

    Hi experts,
    How can I link table KONV with table VBRP/VBRK using KSCHL field so that items are fully filtered?
    Thanks,

    Hi,
    If you do not want to specify it as hard code, then define a variable for it if you want to pass the value for it from the selection screen so that it will be dynamic. Code will be as follows.
    select-options: x_KSCHL for T685l-KSCHL.
    select kwert
               kbetr
               knumv
               kposn
               kschl
          from konv
          into CORRESPONDING FIELDS OF TABLE it_konv
          FOR ALL ENTRIES IN it_all
          where knumv = it_all-knumv
          and   kposn = it_all-b_posnr
          and   kschl in x_KSCHL. "Dynamic Selection as per the selection screen input
      endif.
    Hope this helps.
    Regards,
    Chandravadan

  • I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    Hi Arun ,
    Can you explain little bit more ??
    what is account doc no? 
    what are the transactions should be displayed in your output??
    -Rajesh N

  • Similar fields in table CAWN with ekko,ekpo,mara,marc,makt

    hi ppl,
             I have a requirement in which atwrt field has to be displayed.so i need a link or similar fields in cawn table with that of ekko,ekpo,mara,marc,makt,..iam unable to find the link between these tables with that of CAWN..

    Hi,
    Follow the below procedure For all the tables with CAWN table. You will come to know the relation.
    1. Use SQVI transaction,
    2. Create a View
    3. Enter title,
    4. Choose the Data source as Table Join
    5. Now use Insert table option.
    6. And insert the tables which you want. It will propose the relation between them.
    Hope it will be useful for you. If any issue let me know.
    Thanks
    Nitesh

  • A field of the table in sql server db can't be updated with the db adapter

    Hi all,
    I am using db adapter to update data in bpel. The database is sql server.
    But on the running time, i find a field which named 'JDBCT1' can't be updated. all the other fields of this table can be updated properly.
    For the operation type, i have tried the update only and execute pure sql. None of them works.
    The version of SOA is 11.1.1.6.
    Can any one give some solutions?
    It's urgent, thank you!

    Hi,
    Pls check the data type in your mapping file and data type in table. It might be mismatched.
    thanks

  • Problem with displaying Date field in the table.

    Hi All,
    I am trying to display data into a table UI Element. 
    In that data, i have one DATE type field. While displaying data in DATE field, it will display like this "01.02.2009".
    Now my requirement is if i want to modify that DATE field, it will allow to modify "01.02.2009"  to "26.02.2009".
    But while modifying DATE field , I want to show the Calender of that month, in that i  have to select the another date.
    (Like normal Date UI Element will show that calender).
    Can anyone please help me.
    Thanks in Advance!
    Regards,
    Sreelakshmi.

    Hi,
          Go to the context attribute that was mapped to the DATE field of the table and change the perperty INPUT HELP MODE to  AUTOMATIC and it works.
    Regards,
    Manne.

  • Issue with Vendor Master Data-field notes ID  (Table ADRT-REMARK)

    Hello,
    I have a issue related to Vendor Master Data maintenance.
    The client wants to maintain the u201CNotesu201D field in vendor master data. The field gets populated from the field u201CADTR-REMARKu201D table ADRT.
    Now client wants to maintain some alphabet to distinguish some of vendors (i.e. 1250) out of 5000 vendors. We tried to develop LSMW, however it is not getting generated as this field is not getting recorded as the field is inside the tab (next to e-mail id field) which requires click. It seems BDC also is also not working as it is not populating these fields except e-mail id.
    The table ADRT contains filed ADDRNUMBER which is the same field in LFA1, and it is ADRNR (Address number).
    Also please note that CATT/e CATT is not permitted at all the client level.
    Can any body suggest the way to change the master data through some way.
    Regards,
    Chepan

    Hi,
    Did you heard about SAP GUI Scripting? There is SAP functionality - seems to Excel Macros. You are able to record SAP  like macros, then after small code modifcation (code is in Visual Basic), and special excel origin (there could be excel prepared like for CATT) upload data to VMD.
    If you have any questions I try to help you?
    Best regards,
    Piotr
    Edited by: Piotr Wieczerzak on Jan 26, 2010 9:35 PM

  • Problem with adding user fields to user table

    hi everyone,
    i have written code to create user tables and some user fields to that table....
    its working fine...
    in the code i have some conditions like if the table is already created.. then it should execute the code written for creating table..?
    udTables1 = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                If udTables1.GetByKey("FA_MASTERDATA") Then
                    udTables1 = Nothing
                Else
                    udTables1.TableName = "FA_MASTERDATA"
                    udTables1.TableDescription = "Fixed Assets Master Data"
                    udTables1.TableType = SAPbobsCOM.BoUTBTableType.bott_MasterData
                    ret2 = udTables1.Add()
    System.Runtime.InteropServices.Marshal.ReleaseComObject(udTables1)
                    udTables1 = Nothing
                    GC.Collect()
                End If
    but how to check the same condition for adding fields????
    udfields1 = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                '' 1st field
                udfields1.TableName = "FA_MASTERDATA"
                udfields1.Name = "Alias"
                udfields1.Description = "Alias"
                udfields1.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
                udfields1.EditSize = 20
    '''how to write condition to check whether the field is already creatd or not????
                ret3 = udfields1.Add()
    System.Runtime.InteropServices.Marshal.ReleaseComObject(udfields1)
                udfields1 = Nothing
                GC.Collect()

    hi try this..
    oUserFieldsMD = muc_ParentAddon.SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                '********Adding 1st Field
                If Not IsFieldExist("POR1", "PINo") Then
                    oUserFieldsMD.TableName = "POR1"
                    oUserFieldsMD.Name = "PINo"
                    oUserFieldsMD.Description = "Purchase Indent No"
                    oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
                    oUserFieldsMD.EditSize = 20
                    lRetCode = oUserFieldsMD.Add
                    If lRetCode <> 0 Then
                        muc_ParentAddon.SBO_Company.GetLastError(lErrCode, sErrMsg)
                        MsgBox(sErrMsg)
                        Return False
                        Exit Function
                    Else
                        Fields = True
                    End If
                End If
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserFieldsMD)
      Private Function IsFieldExist(ByVal as_TableName As String, ByVal as_FieldID As String) As Boolean
            Dim flag As Boolean
            Dim businessObject As SAPbobsCOM.Recordset
            Try
                businessObject = DirectCast(Me.muc_ParentAddon.SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset), SAPbobsCOM.Recordset)
                businessObject.DoQuery(String.Concat(New String() {"Select * From CUFD Where TableId = '", as_TableName, "' AND AliasID='", as_FieldID, "'"}))
                If (businessObject.RecordCount > 0) Then
                    flag = True
                Else
                    flag = False
                End If
            Catch exception1 As Exception
                Me.muc_ParentAddon.SBO_Application.SetStatusBarMessage(exception1.Message, SAPbouiCOM.BoMessageTime.bmt_Short, True)
            End Try
            System.Runtime.InteropServices.Marshal.ReleaseComObject(businessObject)
            Return flag
        End Function
    hope it helps

  • How to move field symbol internal table to internal table with header line?

    Dear all,
    hi...hereby i would like to ask how i can move field symbol internal table to a internal table?
    as i know field symbol internal table is without header line..
    so, may i know how to do this....to move field symbol internal table to internal table which consist of header line and field and record will same as field symbol internal table...in additional, my field symbol internal table is dynamic table mean everytime will have flexible columns..?
    Please advise...
    Thanks
    Regard,
    ToToRo.
    Edited by: @ToToRo@ on Aug 20, 2009 6:16 AM

    Hello,
    Try this way:
    If both the type of internal tables are same then you can directly assign dynamic internal table to static internal table.
    itab = <itab>.
    Suppose you have field symbol internal table <itab> which is different in structure from ITAB.
    Now, you can create <wa> as follow:
    FIELD-SYMBOLS <wa>.
    DATA wa TYPE REF TO DATA.
    CREATE DATA wa TYPE LINE OF <itab>.
    ASSIGN wa->* to <wa>.
    This way your work area is read.
    Using [ASSIGN COMPONENT|http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3923358411d1829f0000e829fbfe/content.htm] syntax you can read required component of <wa>.
    Finally you can use that value to load static internal table.
    You can also refer to my thread on [Dynamic table|Re: Creating Dynamic table].
    Hope this helps!
    Thanks,
    Augustin.
    Edited by: Augustarian on Aug 20, 2009 10:06 AM

Maybe you are looking for

  • When can we see the new updates coming to the cc

    when can we access The New updates that were announced before NAB 2015 ? like the Morph Cut and the Colour correction updates from Lumetrie?

  • I see video on TV with MEGA PC 180

    Hi, I've a MEGA PC 180. I've connect it to my TV but when I want to play video (DVD or AVI) I don't have anything in the video window and I can see every other thing on screen. Does someone can help me? Thirnanox

  • Dial up modem

    I have a Pavillion g6 113TU notebook. I have crap wireless internet reception and my phone exchange cannot support ADSL, so am looking at dial up a a back up. (Yes, I live in Bedrock). Can anyone tell me if my computer has a built in dial up modem, o

  • Change opacity of multiple layers in ImageReady?

    Does anyone know how to change opacity of MULTIPLE layers in Adobe  ImageReady CS2 (NOT cs5)? I have like 30 layers, and I'm trying to fade  out effect of all 30 layers, if I do it manually I'll have to click  layers and change opacity 300 times, tha

  • SWF Movie Won't Load in Preview Mode?

    Hey, I'm new to all of this, but when I put my .SWF movie into my website as an advertisment banner, but when I open it in preview mode, it just doesn't load. Why is this? Here is the code for it (I think):   <tr>     <td height="404" colspan="2"><ob