How to set values for Parameters?

Hi,
I have the following Selection Screen;
SELECTION-SCREEN BEGIN OF BLOCK prog WITH FRAME TITLE text-001.
  parameters: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
              R2 RADIOBUTTON GROUP RAD1.
  parameters zw_laufd like reguh-laufd.
  parameters zw_laufi like reguh-laufi.
  parameters zw_BELNR like BKPF-BELNR.
SELECTION-SCREEN END OF BLOCK prog.
For Parameter zw_laufd the following Module is written;
MODULE F4_LAUFD_0200.
  REFRESH TLAUFK.
  TLAUFK-LAUFK = SPACE.
  TLAUFK-SIGN  = 'I'.
  APPEND TLAUFK.
  CALL FUNCTION 'F4_ZAHLLAUF'
    EXPORTING
      F1TYP = 'D'
      F2NME = 'zw_laufi'
    IMPORTING
      LAUFD = zw_laufd
      LAUFI = zw_laufi
    TABLES
      LAUFK = TLAUFK.
ENDMODULE.            
The Module Pops up a window for selection for Parameter zw_laufd. When I select a value from the popup zw_laufd gets a value and long with that Parameter zw_laufi gets a value too, but this value does not get refelcted in the screen. How to show this in the Selection screen?
Thanks,
Kishan

Hi Kishan,
Just try this code in a separate program . On selection screen do an F4 on ZW_LAUFI, select any value and then execute . You will see the selected values in list output . I am not sure what is your probelm. Are you doing some other processing in selection screen apart from this code. Or is it that you want to do F4 on LAUDF and want LAUFI to be populated ?????
<b>data tlaufk like ILAUFK occurs 0 with header line.
SELECTION-SCREEN BEGIN OF BLOCK prog WITH FRAME TITLE text-001.
parameters: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
R2 RADIOBUTTON GROUP RAD1.
parameters zw_laufd like reguh-laufd.
parameters zw_laufi like reguh-laufi.
parameters zw_BELNR like BKPF-BELNR.
SELECTION-SCREEN END OF BLOCK prog.
AT selection-screen on value-request for ZW_LAUFI.
REFRESH TLAUFK.
TLAUFK-LAUFK = SPACE.
TLAUFK-SIGN = 'I'.
APPEND TLAUFK.
CALL FUNCTION 'F4_ZAHLLAUF'
EXPORTING
F1TYP = 'D'
F2NME = 'ZW_LAUFI'
IMPORTING
LAUFD = zw_laufd
LAUFI = zw_laufi
TABLES
LAUFK = TLAUFK.
AT selection-screen on value-request for ZW_LAUFD.
REFRESH TLAUFK.
TLAUFK-LAUFK = SPACE.
TLAUFK-SIGN = 'I'.
APPEND TLAUFK.
CALL FUNCTION 'F4_ZAHLLAUF'
EXPORTING
F1TYP = 'D'
F2NME = 'ZW_LAUFI'
IMPORTING
LAUFD = zw_laufd
LAUFI = zw_laufi
TABLES
LAUFK = TLAUFK.
START-OF-SELECTion.
write :/ zw_laufi.
write :/ zw_laufd.</b>
Cheers.

Similar Messages

  • How to set value for trim and bleed using jsx script?

    I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
    Following is the code I am trying with:
    var _saveName = new File ( root_path +_strFileName+".pdf");
        var _saveOpts = new PDFSaveOptions();
        _saveOpts.printerResolution = 300; 
        var bleedarray = new Array();
         bleedarray[0] =9.00;
         bleedarray[1]=9.00;
         bleedarray[2]=9.00;
         bleedarray[3]=9.00;    
        _saveOpts.bleedOffsetRect = bleedarray;

    I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
    var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
    Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds.

  • How to set value for radio button in sap crm survey suite

    Hi ,
    I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
    Thanks & Regards,
    Seshu

    Hi,
    I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
    Regards,
    Seshu

  • How to set value for selectOneChoice

    Hello,
    How to set value for selectOneChoice defined as:
    <af:selectOneChoice label="Label" id="soc1" binding="#{DepositorMergingBean.socSurnameComponent}">
    <f:selectItems id="si1" value="#{DepositorMergingBean.socSurnames}"/>
    </af:selectOneChoice>
    where socSurnames is List<SelectItem> - manually filled list of SelectItem(SomeObject, (String)text_description), so - SOC is filled manually (no binded iterators, etc..)
    Neither socSurnameComponent.setValue( new Integer(0) ) nor socSurnameComponent.setValue( socSurnames.get(0) ) do not help.
    Thanks in advance.

    this.selectOneChoice.setValue(selectItems.get(2).getValue());Try as per the following sample:
    SelectOneChoiceTest.JSPX:
    <af:form id="f1">
    <af:selectOneChoice label="Select One Choice" id="soc1"
    binding="#{SelectOneChoiceTestBean.selectOneChoice}">
    <f:selectItems value="#{SelectOneChoiceTestBean.selectItems}"
    id="si1"/>
    </af:selectOneChoice>
    <af:commandButton text="Set Selected Value" id="cb1"
    actionListener="#{SelectOneChoiceTestBean.onClick}"/>
    </af:form>
    SelectOneChoiceTestBean.java:
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.event.ActionEvent;
    import javax.faces.model.SelectItem;
    import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
    public class SelectOneChoiceTestBean {
    private RichSelectOneChoice selectOneChoice;
    public SelectOneChoiceTestBean() {
    super();
    private List<SelectItem> selectItems;
    public void setSelectItems(List<SelectItem> selectItems) {
    this.selectItems = selectItems;
    public List<SelectItem> getSelectItems() {
    selectItems = new ArrayList<SelectItem>();
    selectItems.add(new SelectItem("One", "One"));
    selectItems.add(new SelectItem("Two", "Two"));
    selectItems.add(new SelectItem("Three", "Three"));
    return selectItems;
    public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
    this.selectOneChoice = selectOneChoice;
    public RichSelectOneChoice getSelectOneChoice() {
    return selectOneChoice;
    public void onClick(ActionEvent actionEvent) {
    this.selectOneChoice.setValue(selectItems.get(2).getValue());
    Thanks,
    Navaneeth

  • How to set value for Dropdown control using Querystring filter wepart

    Hi,
    I have a dropdown in my customized list form and need to set the value for the dropdown control using query string filter web part.
    I am able to set value for textbox control using Query String Filer web part.
    But, since the dropdown values are not populated on form load, the value is not set for dropdown control.
    How to load the values in dropdown control on form load and set a value using Query String filter webpart?
    Thanks,
    dhijit

    Hi,
    According to your post, my understanding is that you want to filter choice field using Query String Filter web part.
    To filter using query string filter web part, we can set the default value for the choice field in the query string filter web part panel as below, then connect to the list.
    Now it would be filter by the value you have set.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to set value for html:img

    i am using <html:img tag to render image and i need to set some value to that image when selected and that value need to be checked in java code.
    How i can set the value for that image.
    Thanks,

    use javascript and hidden input to do this:
    <html:img src="your_img.gif"     ononclick="document.getElementById('your_hidden_input_id').value='your_value' ">
    <input type="hidden" name="your_hidden_input_name" id = "your_hidden_input_id" value="" />Hope that Helps

  • How to set value for table lines in web dynpro ?

    Hi experts,
    I'm new in webdynpro. My requirement is to set value to the second line when user press expand on first line.
    In method ONACTIONLOAD_CHILDREN , I use  get_static_attributes_table to get the current table records and change return table value .
    Then i user bind_table to pass table to the screen.
    It works fine for first time i press expand and collaps, but when i expand it again it throw out a dump 'OBJECTS_OBJREF_NOT_ASSIGNED'.
    Could any one please help to solve that?
    Thanks

    Hi Harsha,
    Thanks for your reply,I've check the dump details and it display like this:
    Information on where terminated
        Termination occurred in the ABAP program "CL_WDR_CONTEXT_ELEMENT========CP" -
         in "IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 40
        of the (Include) program "CL_WDR_CONTEXT_ELEMENT========CM007".
        The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
        procedure "IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE" "(METHOD)", but it was neither
         handled locally nor declared
        in the RAISING clause of its signature.
        The procedure is in program "CL_WDR_CONTEXT_ELEMENT========CP "; its source
         code begins in line
        1 of the (Include program "CL_WDR_CONTEXT_ELEMENT========CM007 ".
    First time i debug it work fine but the next time it dump with same import values.  And it even did not reach the logic i add when i expand it again.
    I'm not sure why it happen.
    My code in ONACTIONLOAD_CHILDREN is like this.
    *navigate from <CONTEXT> to <ITEM_DATA> via lead selection
      lo_nd_item_data = wd_context->path_get_node( path =
      `COMP_CONTEXT.ITEM_DATA` ).
    *get element via lead selection
      lo_el_item_data = lo_nd_item_data->get_element( ).
    *get all declared attributes
      lo_nd_item_data->get_static_attributes_table(
        IMPORTING
          table = lt_item_data ).
      LOOP AT lt_item_data INTO ls_item_data.
        IF sy-tabix = 2.
          ls_item_data-description = 'TEST'.
          MODIFY lt_item_data FROM ls_item_data TRANSPORTING description.
        ENDIF.
      ENDLOOP.
        lo_nd_item_data->bind_table( new_items = lt_item_data
        set_initial_elements = abap_true ).
        lo_nd_item_data->set_lead_selection_index( 1 ).
    First line was set selected but still got dump.
    Could you please help to check this ?
    Thanks & Regards
    Eric Li

  • How to set value for  skip condition in train stop property of train compnt

    Hi,
    Iam using JDev 11.1.1.5 version, i have created a TaskFlow where having train components pointing to different jsff pages, moving from one jsff page to another jsff page.
    I want to validate the input fileds in one of the jsff page, then only have to move to next jsff page. For this, how can i set skip property of train component....to disable to go for next train component...?
    Note: I want to set boolean value(returns 'True', if all input fileds are filled, otherwise 'False') into skip property of train component.
    Regards.

    You can use the skip property of the train stop. You can have an EL expression for it, some thing like this #{pageFlowScope.isContinueEnabled}.
    Once all the mandatory fields are entered, you can set the isContinueEnabled flag and refresh the train button bar.
    For more info refer this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#CJHFBFIE
    Also, you can try navigating to different train stops programmatically.
    Check: 082.      How-to programmatically navigate ADF train models
    in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • How to set value for slis_selfield-tabname

    Hi!
    I'd like to change the value of the field slis_selfield-tabname.
    It will be used to handle different alv's!
    One ALV is shown and after double-clicking, another one is shown.
    If the user double-clicks now on one alv line he should be forwarded to a transaction!
    Therefore I'd like to check the field slis_selfield-tabname to differ the two tables.
    In both cases in my report slis_selfield-tabname is '1'.
    Regards,
    Jacko

    I was looking for the same thing and I found what you were looking for originally. The value of slis_selfield-tabname is set when you build the columns of your ALV. For example:
       wa_fieldcat-tabname   = '1'.       " this is were you set the cvalue for slis_selfield-tabname
       wa_fieldcat-fieldname = 'CAT'.
       wa_fieldcat-seltext_m = 'Category'.
       wa_fieldcat-col_pos   = 1.
       wa_fieldcat-outputlen = 12.
       append wa_fieldcat to i_fieldcat.
       clear wa_fieldcat.
       wa_fieldcat-tabname   = '1'.
       wa_fieldcat-fieldname = 'VAL'.
       wa_fieldcat-seltext_m = 'Value (EUR)'.
       wa_fieldcat-col_pos   = 2.
       wa_fieldcat-outputlen = 25.
       append wa_fieldcat to i_fieldcat.
       clear wa_fieldcat.

  • How to set value for Next Auto Restart for components

    Hi All
    When I checked my SPS13 portal in component monitoring area, I found that one of file server repository  etc is not running. To get rid of the problem, we had to restart the portal.
    On the same page there is a column for Next Auto Restart which was empty. Any idea where do we set it so that we do not have to restart entire portal for such kind of error.
    Any help will be appreciated.
    Regards
    Prabhakar Lal

    Quoting a mail by Akhilesh:
    "Until EP6 SP2 you could have done this via
    System Administration  -> System Configuration -> Monitoring Configuration,
    but this iView was deleted in SP3 and now this configuration needs to be done using the VA
    In the VA navigate to Server -> Services -> Monitoring
    In the Monitor Tree navigate to Root -> Applications -> KMC - > Repository Framework -> Components -> Repository Manager
    You can set the "next auto restart" parameter for managers individually."
    Regards, Karsten

  • How to set values to the structure containing a node with cardinality 0..n

    Hello.
    I 'm trying to set values for the node with cardinality 0..n. The node type is "Fields".
    <xsd:complexType name="Field">
       <xsd:sequence>
          <xsd:element name="fieldCode" type="xsd:string"></xsd:element>
          <xsd:element name="displayValue" type="xsd:string" minOccurs="0"></xsd:element>
       </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Fields">
       <xsd:sequence>
          <xsd:element name="field" type="tns:Field" minOccurs="0" maxOccurs="unbounded"></xsd:element>
       </xsd:sequence>
    </xsd:complexType>
    I  need to set several values for the element "fieldCode" but it has cardinality 0..1 and BPM does not allow it but I did not find any option about how to set values for the structure of type "Fields". Could you help me?
    Best regards,
    Timur Semenchuk

    Hi Marcus,
    If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
    Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
    IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
    wdContext.nodeYourNode().addElement(yourNodeElem);
    Hope this explains a bit!
    Best,
    Robin van het Hof

  • Help on how to set value on LinkButton type column

    Hello,
    Can I programmatically set a value on Item No. in matrix on Sales Quotation which is of type SAPbouiCOM.LinkedButton?
    This code helped me set values to an edittext type column
    Dim et As SAPbouiCOM.EditText = oMatrix.Columns.Item(matrixColumnID).Cells.Item(rowNumber).Specific
    et.Value = value
    Dim et As SAPbouiCOM.LinkedButton = oMatrix.Columns.Item(matrixColumnID).Cells.Item(rowNumber).Specific
    How can set value for the Item No.?
    Thanks and Regards,
    Sheetal

    Just treat the Item No. column as an EditText for purposes of setting its value.
        Dim sboEdit As SAPbouiCOM.EditText
        Set sboEdit = sboMatrix.Columns("1").Cells(lngRow).Specific
        sboEdit.Value = "XXXXXX"
    John.

  • ADF Faces: How do I set values for input controls in an af:table

    Use case: user enters master/detail information into an input form using an af:table for the desired number of detail rows.
    I have an ADF Faces input form with master level input controls, and an af:table (bound to a backing bean CoreTable) for the detail data set.
    The input controls are value bound to updateable view objects built from entity objects, with the appropriate view links providing master/detail iterators.
    Once the user has entered the master keys (via inputTexts, and selectOneChoices), I create a row in the detail VO, thus creating a visible blank row in the af:table.
    The user then completes the key for the detail row (in the af:table) by selecting a value in a selectOneChoice (in a af:column) with autoSubmit on and a valueChangeListener that sets the VO row attribute with the new value.
    The user then continues to enter into the remaining inputTexts and selectOneChoices in the af:columns until all values have been entered.
    I do not have autoSubmit on for any input controls in the af:columns other than the key, for performance improvement.
    The user can then use a command button (which has an action method) to create another row in the af:table.
    But, (in the action method) I need to set the values for the 1st detail VO row attributes, from the input controls, before creating another row.
    The input controls are bound to backing bean CoreInputText and CoreSelectOneChoice objects, and they have not set their values at this point, even though I have partialSubmit on for the "New Row" command button.
    I do not value bind the input controls in the af:columns to the backing bean objects, because we need to display data for all rows entered into the af:table.
    Any advice on the best way to perform this operation would be very appreciated!!!!

    Thanks for the reply Steve!!
    Yes, I followed the techniques in Screencast#7, and it works great in my edit page.
    But I am having problems with my input form.
    I actually have master/detail/detail relationship for which I am creating an input form.
    I created the input form as a copy of the edit form, and am making revisions as necessary.
    I created new view objects for the input form (from my three entity objects), which have the "Tuning" set to retrieve "No Rows (i.e. used only for inserting new rows)"
    I added an invokeAction that binds the "CreateInsert" action on the master iterator, so when the page is first displayed, the master level controls are available for data entry (as in 13.6.2 in the Developers Guide): but the first level detail controls are not rendered, and the af:table (for the second level detail) is rendered but with no rows.
    Once the user enters key values for the master (a three part key), I manually create a first level detail row by executing the "CreateInsert" action binding for the first level detail iterator.
    Continuing on, the user then enters a key value for the first level detail I manually create a second level detail row using it's "CreateInsert" action binding.
    Now the user has a form with all master and first level detail controls completed and one empty row in the af:table for it's first entry.
    The key column in the af:table has autoSubmit on, and an value change listener. That listener uses it's getNewValue() to set the key value ("locationCode" in this case) using
    setLocationCode from the ViewRowImpl. Here is that value change listener:
    public void locationChanged(ValueChangeEvent event) {
    if (null != event.getNewValue()) {
    LocObsCreateViewRowImpl locCreateRow = (LocObsCreateViewRowImpl)appMod.findViewObject("LocObsCreateView").getCurrentRow();
    if (null == locCreateRow.getLocationCode()) {
    locCreateRow.setLocationCode(event.getNewValue().toString());
    Now comes my problem: once they have entered the values in the remaining columns, they can use a command button to create another row in the 2nd detail iterator, thus creating another visible empty row in the af:table. But the values from the first row (other than the key column) are not assigned to the row in the collection and I can't figure out how to set values in the collection's row.
    I imagine I'm missing something using bindings and the Request Processing Lifecycle, and after reading this I can see how much manual work is going on.
    The users have specified the need to have all information available on one page, so I've designed it so they can insert and iterate through the first level detail collection.
    They have also asked to not use the mouse; they are looking for a "heads-down-data-entry" system.
    Again, I really appreciate any advice you could give.
    Jeffrey

  • How to bind values for input parameters from an adf table?

    Hi,
    The version I am using is
    Jdev TP4 11.1.1.0.0
    I need to know how to bind values for input parameters to methods.
    I have created an af:table and I have a button created using a method which is outside the af:table. This method needs to take input parameter values from the column values in the table.
    When I have an adf form instead of the table the binding works.
    Any help?
    Thanks.

    Hi Balaji,
    you need to bind you table to a backing bean and call a method in the backing bean when you hit the button. In the method you get the selected row from the table and have access to the columns of it. Then call the the method with the parameters.
    To bind the table to a bean select the properties of the table, go to behavior section and look for the advanced section 'Binding' property.
    Select the small down arrow at the right side and click edit. In the dialog select or create a bean and property for the table.
    Go to the button properties, look for 'Action', again select the small down arrow and click 'Edit'. Select the bean which holds the table property and create a method for the button.
    The method look like    public void bearbeitenQuelle(ActionEvent actionEvent)
            // Add event code here...
            RichTable lTable = getYourTable();
            Object lData = lTable.getSelectedRowData();
            FacesCtrlHierNodeBinding lNB = (FacesCtrlHierNodeBinding) lData;
            YourViewRow lRow = (YourViewRow ) lNB.getCurrentRow();
        }Hope the get you started
    Timo

  • How to set the connection parameters for SQL

    How to set the connection parameters for SQL to access the MS Access database
    Attachments:
    Quick_SQL.vi ‏21 KB
    Doc1.doc ‏45 KB
    db1.mdb ‏112 KB

    Right-click the WINDOWS desktop, choose New->Microsoft Data Link. That will bring up a dialog that allows you to configure and test your database connection. You might connect to the Access database via ODBC or directly via Jet Engine. The Jet Enginge saves you the trouble of creating an ODBC connection on your PC. After you leave the dialog, the "data link" will show up on your desktop as text file. Open it and copy-paste the connection string to your VI.
    This webpage is an excellent resource for connection strings: http://www.able-consulting.com/ADO_Conn.htm
    If your application requires users to change the database connection at runtime, you can also include the dialog via ActiveX (MSDASC.IDataSourceLocator).

Maybe you are looking for

  • Lync 2010 client asks for credentials when outside of corporate network.

    Hello,  We are running Lync 2010 Enterprise. Everytime our Lync users are outside of our network and they log in to their Lync client, they get a pop-up window asking for credentials. When they log into Lync inside our network the Lync client connect

  • IMac Startup Sound

    My iMac no longer makes the "BONG" sound while turning on. Why is that? Is there a way to get that back?! I REALLY WANT IT!

  • IPhone 4 Bumper Marks on Phone?

    I have marks on the aluminium rim of my iPhone and I believe it is due to the bumper because, from day one, I have the bumper on and I've just taken it off and seen a lot of precise, small marks on the iPhone 4. I was wondering if anyone else had exp

  • ITunes says that my iPhone 4S is an iPhone 4

    Hi, I have a problem with my iPhone 4S, I make a clean restore to iOS 6.1.2 and now iTunes says that it´s and iPhone 4, I try to restore a few times more and it continues equal. I also try with other Macs and iTunes continue saying that it´s an iPhon

  • Nu such object error when load the user from application

    Hi..everybody I'm new comer at Sun ONEDirectory Server I've a problem when try to get the user from my application I use ..getAttribute("cn=username"); always appear No Such Object, whereas I've created that user Thanks