How to set the table input in Query template?

Hi all.
I need to call a Bapi_objcl_change, with import parameter and a table as an input. I have done this, in BLS. I have set the table input in the
form of xml. In BLS, I get the output(the value gets change in SAP R3, what i have given in BLS).  But if i set the same xml structure  in
query template, I didn't get the output. Table input parameter does not take that xml source.  How to set the table input in Query template?
can anyone help me?
Regards,
Hemalatha

Hema,
You probably need to XML encode the data so that it will pass properly and then xmldecode() it to set the BAPI input value.
Sam

Similar Messages

  • How to set the tables parameter to a BAPI using adaptive RFC model

    Hi,
    I have a BAPI ZBAPI that has a tables parameter ZPernr of type ZTable with two elements pernr and name.
    I used adaptive RFC model and created model classes for the BAPI.
    My question how do i set list of pernr and name to the tables parameter in the webdynpro for java.
    I have the following methods available
    ZBAPI input = new ZBAPI();
    1.ZTable table = new ZTable();
    table.setPernr(pernr);
    table.setname(name);
    input.addZPernr(table);
    how do i set the table parameter for multiple pernr and name
    2.
    add all the pernr and name to list and set that list to input in the following way
    input.setZPernr(list) and list of typecom.sap.aii.proxy.framework.core. AbstractList
    out of two methods mentioned which one is correct.
    Please let me know the solution
    Thanks
    Bala Duvvuri

    Hi Bala,
                In your code:
    List pernrList = new ArrayList();
    pernrList  should be declared as the  type of class HROBJECT   ( The structure name in the model  e.g. the node PERFWARN type is Zhrecmfm_002_Perfrat_Warning_Input )
    Try this:
    HROBJECT  pernrList = new HROBJECT();
    pernrList.setPernr(pernr);
    input.setPernr_List(pernrList);
    // call BAPI execute method
    If you want to pass list of pernrs, you can pass in alternate way
    IPrivate<viewname>.I<nodeame>Node prNode = wdContext.node<node>();
    IPrivate<viewname>.I<nodeame>Element prEle;
    for (int i = 0; i < table.size(); i++) {
    HROBJECT  pernrList = new HROBJECT();
    pernrList.setPernr(pernr); // Set the pernr from current record
    prEle = prNode.create<nodeame>Element(pernrList);
    prNode.addElement(prEle);     
    // call BAPI execute method
    Once I execute the BAPI how do i iterate thru second table parameter PERNR_PERFRAT to get pernr and performance rating text
    Say your node name is  PERNR_PERFRAT
    for (int i = 0; i < wdContext.nodePERNR_PERFRAT().size(); i++) {
    wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPernr();
    wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPerfrat();
    Regards,
    Siva

  • How to set  the  table I_ORG in 'BBP_EXTREQ_INBOUND'?

    dear all,
      Now I am using BAPI 'BBP_EXTREQ_INBOUND' to create a shopping card and have successed.
      but  in the table I_ORG,   whatever I set the value of  organization ID and group ID, it will not be changed in the SRM.
    how can I set them?
       t hank you!

    hi ,
    you can use BADI --> BBP_PGRP_ASSIGN_BADI in your SRM system and make changes according to your own requirements.
    if you make changes using the above BADI --> then changes should be updated in the newly created shopping cart.
    this is because , the above BADI is called ---> in the
    BAPI 'BBP_EXTREQ_INBOUND' .
    check out the following sequence --->
    BBP_EXTREQ_INBOUND ---> calls
    FM BAPI_SCEC_CREATE ---> calls
    {BAdI - BBP_PGRP_ASSIGN_BADI -
      PERFORM sc_pgrp_assign_badi TABLES lt_i_items             "XMZSP02AO
                                         lt_i_account           "XMZSP02AO
                                         lt_i_partner           "XMZSP02AO
                                   USING ls_i_header            "XMZSP02AO
                                CHANGING lt_i_orgdata[]         "XMZSP02AO
                                         return[].              "XMZSP02AO

  • How can set the timestamp format in query component?

    I met 2 problems when I am using timestampTZ on query component.
    The first one, in the table, I have a field type is timestampTZ. And I have a query on this field. However, When I open the page, I found the date format is not what I want, can I change the format in the query component? Like from “mm/dd/yyyy” to “dd/mm/yyyy” in the search criteria. For the query component. I used bing variable. The bing variable I set to timestampTZ type.
    Another problem is, as in the database, the time has date and time, but in the query component, it only has date, so if I added a end date field, it only show the records before the end date. I think the parameter take the time as 00:00:00. Is there any way to fix this?
    Thanks a lot.

    Thanks a lot. I tried, but still not work, I can see the date with time. But I tried to execute the query, it threw exception (with/without date value). Is that because the field in database is timestampTZ?
    <RegistrationConfigurator><handleError> Server Exception during PPR, #1
    java.lang.ArrayIndexOutOfBoundsException: 7
         at oracle.sql.TIMESTAMP.toTimestamp(TIMESTAMP.java:294)
         at oracle.sql.TIMESTAMP.timestampValue(TIMESTAMP.java:431)
         at oracle.jbo.domain.Timestamp.getData(Timestamp.java:433)
         at oracle.jbo.domain.Timestamp.getValue(Timestamp.java:421)
         at oracle.adfinternal.view.faces.convert.DomainConverter.convert(DomainConverter.java:67)
         at org.apache.myfaces.trinidadinternal.convert.GenericConverterFactory.convert(GenericConverterFactory.java:287)
         at org.apache.myfaces.trinidadinternal.convert.DateTimeConverter.getAsString(DateTimeConverter.java:95)
         at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getConvertedString(ValueRenderer.java:158)
         at oracle.adfinternal.view.faces.renderkit.rich.OutputTextRenderer.encodeAll(OutputTextRenderer.java:148)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderDataCell(BaseColumnRenderer.java:1213)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:103)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:1932)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:606)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:529)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:297)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:574)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:241)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:297)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:574)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:241)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1515)
         at org.apache.myfaces.trinidad.component.UIXGroup.encodeChildren(UIXGroup.java:138)
         at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:57)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:410)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.encodeFacet(DecorativeBoxRenderer.java:289)
         at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer._encodeCenterPane(DecorativeBoxRenderer.java:442)
         at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.encodeAll(DecorativeBoxRenderer.java:258)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    ...

  • How to set the language of a mail template from NotificationUtil?

    Hi experts!
    I've been having some issues with the Message Template Language when using the NotificationUtil to send an Email.
    How do I set the language of the template?
    Do i set this by the sender? Or do I need to reference the recipient?
    If so, how could I get the Account Object Interface from the user given that I got him as a collaborator?
    I wish you could help me out whit this language problem.
    Here's an example of the code I'm using:
    Properties params = new Properties();
    params.put(new String("PHASE_NAME"), faseName);
    params.put(new String("DOCUMENT_TYPE"), docType);
    params.put(new String("DOCUMENT_NAME"), contractName);
    params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());
    params.put(new String("START_DATE"), fecha);
    params.put(new String("INSTRUCTION"), "");
    params.put(new String("DOCUMENT_HEADER_URL"), vinculo);
    String[] recipients = {mail};
    sender = session.getAccount();
    mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);
    NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);
    Thanks in Advance!

    Hi vikram!
    Sorry for the still inconvenience, but I'm getting this error:
    Error in method invocation: Static method sendNotification( com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.api.comp.messaging.MailTypeEnumType, java.util.Properties, null, null ) not found in class'com.sap.odp.api.util.NotificationUtil'
    Im making the code the following way:
    Properties params = new Properties();
    params.put(new String("PHASE_NAME"), faseName);
    params.put(new String("DOCUMENT_TYPE"), docType);
    params.put(new String("DOCUMENT_NAME"), contractName);
    params.put(new String("RECIPIENT_FIRST_NAME"), nombre);
    params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());
    params.put(new String("START_DATE"), fecha);
    params.put(new String("ORG_UNIT"), orgUnit);
    params.put(new String("INSTRUCTION"), "");
    params.put(new String("DOCUMENT_HEADER_URL"), vinculo);
    recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal()); // This Changed.
    ( I also tried like this:
    IapiAccountIfc recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal());)
    sender = session.getAccount();
    mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);
    NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);
    Thanks again!

  • How to set the value of a data template parameter at runtime?

    I went through the document and found one line "A parameter is a variable whose value can be set at runtime.". But there is no further description or example about this feature.
    Can anyone tell how to do or show me a example?
    Thanks in advance

    Hi,
    define in the report-definition a parameter (for example p_deptno). This results in an entry in the xdo-file:
    <parameter id="p_deptno"> ....
    Define the same parameter in the Data Template ....
         <parameters>
    <parameter name="p_deptno" datatype="number"/>
    </parameters>
    and use this parameter in your Query:
    <sqlStatement name="QueryDept">
    <![CDATA[SELECT DEPTNO,DNAME,LOC FROM DEPT WHERE DEPTNO = :p_depnto]]>
    </sqlStatement>
    Regards
    Rainer

  • How to set the default selection screen

    I modified screen using screen-input = 0.
    then how to set the screen-input = 1.
    that is how to make that field input enable.
    if use the statement screen-input = 1 directly it is giving 2 fields to enter value

    In the PBO / AT SELECTION-SCREEN OUPUT
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = <your FIELD>. " Fields by name
    *   IF SCREEN-GROUP1 = <your group of fields>. " Fields with MODIF ID
          IF <test>.
            screen-input = 1. " For input enable
          ELSE.
            screen-input = 0. " For input disable
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Regards

  • Set the table's width for TableView

    I am creating a new TableView with few columns and I am trying to set the width for the entire table. I searched the API but it only gives me setMaxWidth. I tried but, it didn't work. Can anyone suggest me how to set the tables width.
    I am doing this:
    private TableView<XYZ> table = new TableView<XYZ>();
    table.setMaxWidth(600);
    table.setLayoutX(15);
    table.resize(40, 40);
    But nothing really changed the entire table's width.
    thanks.

    Column resize policy is what you are looking for.

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • How to set the default text in an input box or a label to be a predefine, multiline text

    how to set the default text in an input box or a label to be a predefine, multiline text. In other words how to break the line in the code of a text box.
    thank you

    There are a couple of ways of doing this:
    If you're editing on the canvas, press Shift + Enter.
    If you're working in Express View (see lower right hand corner of Project Siena), you'll need to copy a hard return from another app such as Notepad.
    I believe a better implementation of hard returns are in the list of requested functionality that you can find here:
    https://social.technet.microsoft.com/Forums/en-US/2e1f9446-56b2-419a-9c17-7037d2cd6146/from-the-community-overview-of-requested-additional-functionality?forum=projectsiena
    Thor

  • SAPUI5: How to set the appearance of Table control?

    Hi there,
    I have a table on my app UI. Now I want simply show the table grid lines (currently, the vertical lines between columns are not shown). Any idea?
    Furthermore, how to set the width of the bord lines or even teh color of the lines?
    Thanks very much in advance!
    Dong Zhu

    Hi,
    The demo link provided by Chandra uses Blue Crystal theme, hence it shows the vertical lines between the columns of the table. If you are using Gold Reflection theme, then to get the vertical lines, you need to play with CSS. Add the below snippet of CSS between <head></head> of your html file.
    <style>
    .sapUiTableTr>td {
                  border-right: 1px solid #cccccc !important;
    </style>
    Thanks & Regards,
    Vishwa

  • How to set the column table so it can not be moved !

    how to set the column table so it can not be moved !

    m_table.getTableHeader().setReorderingAllowed(false);
    m_table.getTableHeader().setResizingAllowed(false);

  • How can I set the microphone input level?

    How can I set the microphone input level?

    It would be best to use the standard windows mixer "sndvol32.exe" (in the windows directory) and control it with the System Exec.vi from the Communication palette.
    You may want to look at the following discussion thread, too:
    how to control the microphone volume input via LabView
    How Can I Record Sound in LabVIEW from Sources other than the Microphone?
    Zvezdana S.

  • How to set the gain and input coupling for each channel on a NI 4462 DaQ card?

    I've seen a few examples in how to set the gain for NI 4462, but none tell me how to chose the channel I wish to set this gain.  Also the same problem with input coupling
    Does anyone know how to set the gain and input coupling for each individual channel?
    Thanks,
    Hector
    LabView 8.5 Windows XP

    Hey Hector,
    http://forums.ni.com/ni/board/message?board.id=100&thread.id=1688
    This has a few examples of how to do that.  Let me know if you have further questions.
    Have fun!
    -gaving

  • Does the iPad mini have a setting so it can be used with either 120 or 240 electrical current? If yes, how do you go about setting the desired input voltage? I will travel to Northern Europe and want to know if I will need a voltage converter.

    Does the iPad mini have a setting so it can be used with either 120 or 240 electrical current? If yes, how do you go about setting the desired input voltage? I will travel to Northern Europe and want to know if I will need a voltage converter.

    The iPad charger is dual voltage. You need only a plug adapter to be able to plug your US charger into a European wall outlet. A basic one costs about $2.00. - $6.00. Like this...
    http://www.amazon.com/CVID-Grounded-European-Adapter-Adaptor/dp/B0098B5GN8/

Maybe you are looking for

  • Can no longer properly print to colour laser printer after latest update

    Hi, I've just updated my iLife '08/Leopard software using software update. It would appear that I can no longer print greeting cards etc. from iPhoto to my colour laser printer since this update. All photos are printed in a very pale yellow colour th

  • "Where is Keychain Scripting?" Mountain Lion edition

    This came back to haunt me from the Lion days. I launch the newly renamed Contacts app, and within a few seconds a "Choose Application" dialog with the caption "Where is Keychain Scripting?" pops up. But this time, nothing is clickable - I get a Spin

  • How do i change my password to get into my laptop

    HOW DO I CHANGE MY PASWORD TO GET INTO MY MACBOOK PRO?????????? Please help....Thank you

  • No audio on home videos?

    I have taken videos on my digital camera and converted them for iPod, but when I sync and try to play the movie on iPod there is no audio! How do I fix this?

  • Can I ask this question?

    First of all, I hope I'm not breaking any rules - I've read the Terms of Use which don't seem to preclude my asking this question... I know little about Motion and, although I do have the inclination to learn it, I don't have the time. *Would someone