F4IF_INT_TABLE_VALUE_REQUEST -Restrictions dialog box

Hi,
I am using the function module F4IF_INT_TABLE_VALUE_REQUEST in screens, to implement a search help in my program , but instead of directly displaying the hit list , i want the restrictions screen to be displayed first with some default values, and the list should be displayed only based on the valuies entered in thius restrictions screen. How can i do this using this function module.
To be more precise,
i need the restrictions dialog box to be displayed and this will have 6 fields. i have to pass values to 2 fields from my program, the first field need not be filled and teh remaining fields should be left for the user to enter.
how do i achieve this?
Please help.

Check the sample code. Using the Event PROCEE ON VALUE-REQUEST we can get the F4 Help.
PROGRAM  ztest_duplica.
DATA: kunnr1(10),
           kunnr2(10).
*&      Module  USER_COMMAND_0100  INPUT
*       text
MODULE user_command_0100 INPUT.
  CASE sy-ucomm.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0200  INPUT
*&      Module  get_help  INPUT
*       text
MODULE get_help INPUT.
  DATA:i_retab TYPE TABLE OF  ddshretval,
       wa_ret TYPE ddshretval.
  TYPES: BEGIN OF x_itab,
  kunnr TYPE kunnr,    "it should be type to some standard data element
  END OF x_itab.
  FIELD-SYMBOLS: <fs> TYPE ANY.
  CLEAR : kunnr1, kunnr2.
  DATA: dynfield  TYPE help_info-dynprofld,
        wa_itab TYPE x_itab,
        i_tab LIKE TABLE OF wa_itab WITH HEADER LINE.
  CLEAR  dynfield.
  IF sy-dynnr = '0100'.
    dynfield = 'KUNNR1'.
  ELSE.
    dynfield = 'KUNNR2'.
  ENDIF.
  SELECT kunnr FROM kna1
      INTO TABLE i_tab
      UP TO 20 ROWS.
  "retfield we will pass the column name we are going to get from f4
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'KUNNR'   "<---Return field column name
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      dynprofield = dynfield
      value_org   = 'S'
    TABLES
      value_tab   = i_tab
      return_tab  = i_retab.
  IF sy-subrc EQ 0.
    READ TABLE i_retab INTO wa_ret INDEX 1.
    ASSIGN (dynfield) TO <fs> .
    <fs> = wa_ret-fieldval .
    UNASSIGN <fs>.
  ENDIF.
ENDMODULE.                 " get_help  INPUT
Flow logic for 100 screen
screen consists of Input field pointing to KUNNR1
PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
process on value-request.
field kunnr1 module get_help.
Create a Tcode and Intitial screen 100. and check it .
Regards
Vijay Babu Dudla

Similar Messages

  • Restrict movement of dialog box

    hi,
    I have an internal frame when the user clicks a button a dialog box should pop up , how shall i restrict the movement of dialog box within the parent..(Desktoppane) i have used custom dialog box coz i need to capture the button click event.
    Thanks in advance

    You could use a JDesktopPane with JInternalFrames, this is their default behaviour. Read this section from the Swing tutorial on "How to Use Internal Frames":
    http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html
    Otherwise, you would have to add a ComponentListener to the JDialog. Whenever the JDialog is moved, you would check its location and if it is outside the bounds of the parent frame then you would reset its location. Here is a tutorial on "Using a Component Listener":
    http://java.sun.com/docs/books/tutorial/uiswing/events/componentlistener.html

  • In javascript how to invoke save as dialog box ,which saves .pdf files only

    Through javascript i generated a save as dialog box. the main problem is , it is only saving .html and .doc files by default. how to restrict it to save only .pdf files.
    the code i used is
    function SaveFile(fname)
    document.execCommand('SaveAs', null, fname)
    <input type="button" value ="save" onclick="SaveFile('');">
    /**********************************************************************/

    this is actually a Java forum its slightly different from javascript
    but try this not sure if it helps
    <input type="button" value ="save" onclick="SaveFile('.pdf');">

  • Bug: Navigation: Save As Dialog Boxes in Windows (thus any application) goes to Computer Drive C - instead of Quick Access

    Bug: Navigation: Save As Dialog Boxes in Windows (thus any application) still have its legacy behavior implemented and navigates to a computer drive, by preselecting and letting the user start at Computer > Drive C - instead of Quick Access.
    This is simply a forgotten correction after Quick Access has been introduced that needs to be corrected for Quick Access to work effectively (in a valuable way for the user) with files not just during create and modify operations on files - but also Open
    file - using File Dialog Boxes (although users may use launch instead for Opening files using i.e. Explorer or navigation from shortcuts on the desktop).
    This missing change of File Dialog Box behavior is unintended and now contradicts the new design with Quick Access for faster navigation (so you should not have to start with a scroll and extra navigation to look for Quick Access (contradiction:
    i.e. QUICK Access)
    Please support the new navigation provided by Quick Access intended to give Quick Access - thus Save As must be able to start here.
    For variability, may be provide an overriding option in Explorer>Folder Options>General (if you change the default behaviour in the File Dialogue) to have Save As start at Computer > Drive C.
    ! Remember to do the change for the Common File Dialog as well - used by most widespread software applications in the Adobe software applications portfolio, i.e. Adobe Photoshop CS6

    Thank you for your time and response! Unfortunately, we have the machine locked down pretty tight (they are public use computers that require heavy restriction) and it is set to restrict all drives so access is limited to the local profile. We did try
    testing your method, however, by adding the Desktop as an allowed location in the Office policy (which would not solve the issue for the other applications but was good for a test) using the path %userprofile%\desktop. When choosing that location, it does
    not throw the error but unfortunately, it does not remember like it did for your with the E: drive so it still always throws the error when first loading the dialogue box no matter what I do. If you're able to confirm that this is simply by design and we're
    just expected to inform our users to click through the errors, then I guess that's the accepted answer. Although, do you think that there might be a registry key value that is set after you save to the E: drive for the first time? Maybe we could set that value
    to %userprofile%\desktop if it's doing the redirection after the first save through registry. Thanks again!

  • Filter in the Dialog box for selection

    I have report that contains a file selection dialog using the following code
    at selection-screen on value-request for p_file.
      perform f_get_file using cl_gui_frontend_services=>filetype_excel.
    form f_get_file using p_filetype type string.
      data: lt_filetable  type filetable,
            ls_file       type line of filetable,
            lv_filename   type string,
            lv_path       type string,
            lv_fullname   type string,
            lv_title      type string,
            lv_desktop    type string,
            lv_rc         type i,
            lv_action     type i.
      call method cl_gui_frontend_services=>get_desktop_directory
        changing
          desktop_directory    = lv_desktop
        exceptions
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          others               = 4.
      if sy-subrc <> 0.
        message e007(zspx) with 'Desktop not found'.
      endif.
    * Update View
      call method cl_gui_cfw=>update_view
        exceptions
          cntl_system_error = 1
          cntl_error        = 2
          others            = 3.
      lv_title = text-003.
      call method cl_gui_frontend_services=>file_open_dialog
        exporting
          window_title            = lv_title
          file_filter             = p_filetype
          initial_directory       = lv_desktop
        changing
          file_table              = lt_filetable
          rc                      = lv_rc
          user_action             = lv_action
        exceptions
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          others                  = 4.
      if sy-subrc = 0 and lv_action ne cl_gui_frontend_services=>action_cancel.
        read table lt_filetable into ls_file index 1.
        if sy-subrc = 0.
          p_file = ls_file-filename.
        else.
          clear p_file.
        endif.
      else.
        clear p_file.
      endif.
    endform.                    " f_get_file
    Currently while opening the dialog for file selection its showing the desktop directory. But user can select file from any other directory.
    My question is how to restrict this dialog box from which user can select only from desktop directory.
    PS : Please don't suggest  to validate the file after getting the file that its from desktop or not

    Hi,
    Like the bellow ?
    Replace following code
    if sy-subrc = 0 and lv_action ne cl_gui_frontend_services=>action_cancel.
        read table lt_filetable into ls_file index 1.
        if sy-subrc = 0.
          p_file = ls_file-filename.
        else.
          clear p_file.
        endif.
      else.
        clear p_file.
      endif.
    with the bellow
    IF sy-subrc = 0 AND lv_action NE cl_gui_frontend_services=>action_cancel.
        READ TABLE lt_filetable INTO ls_file INDEX 1.
        IF sy-subrc = 0.
          FIND FIRST OCCURRENCE OF lv_desktop IN ls_file-filename.
          IF sy-subrc = 0.
            p_file = ls_file-filename.
          ELSE.
            MESSAGE: 'Sorry! you can select file only from Desktop' TYPE 'I'.
            PERFORM f_get_file USING cl_gui_frontend_services=>filetype_excel.
          ENDIF.
        ELSE.
          CLEAR p_file.
        ENDIF.
      ELSE.
        CLEAR p_file.
      ENDIF.
    Regards,
    Faisal

  • What are the advantages of utilizing a dynamic VI compared to utilizing the VI Call Configuration Dialog Box Reload for each call option?

    Is it more efficient to use a dynamic VI or utilize the VI Call Configuration Dialog Box which apparently can perform the same function? I realize that there are restrictions on using the VI Call Configuration Dialog Box, however, if my scenario doesn't concern the restrictions, why would I want to go thru the trouble of creating a dynamic VI when I could simply click on the VI of interest and configure from a menu? Are there performance advantages? Thanks in advance!

    Generally, I wouldn't recommend playing with the call setup dialog at all (for those who don't know it, you can get to it by right clicking a subVI in the BD). By default, VIs are configured to load with callers and that's the correct options for almost all static VIs. The Open VI Reference primitive has multiple advantages:
    It allows you to select different VIs dynamically.
    It allows you to spawn multiple copies of reentrant VIs.
    It allows you to perform asynch runs (although I think that this is something that should actually be available through the call setup dialog).
    It allows you to open references to VIs in other application instances.
    In the rare cases where you do want the same functionality that the call setup dialog gives you, it doesn't hide it.
    Try to take over the world!

  • How to stop internet explorer dialog box

    Hi all. I'm new here. I've just added a flash image ( a moving one ) to my web page. It's like a moving logo. I've used this code
    <object width="150" height="95"> <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"></param><param name="flashvars" value=src=http://localhost/school/logovid.flv&controlBarMode=none&controlBarAutoHide=false&playButto nOverlay=false&loop=true&autoPlay=true&scaleMode=stretch"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="150" height="95" flashvars="src=http://localhost/school/logovid.flv&controlBarMode=none&controlBarAutoHide=false&playButto nOverlay=false&loop=true&autoPlay=true&scaleMode=stretch"></embed></object>
    to get it working. It's fine in safari, firefox, chrome and flock. But in opera I get a dialog box asking if it's ok to connect  to ftp.adobe.com and then the image doesn't display. Also in IE I get a dialog asking me if it's ok to allow something.
    I can live with the opera problem because it's a minority but I really need to resolve the IE issue because so many people use it.
    Any help very much appreciated.
    Marcus.

    Hi Mike,
    >>Basically i want all users to get restricted to IE9.
    Internet Explorer 10 will be available as an “Important” update through the Automatic Update feature of Windows Update. Users of Windows 7 Service Pack 1, who have opted to
    download and install updates automatically through Windows Update (recommended setting), will automatically be upgraded to Internet Explorer 10.
    However, we can prevent users from upgrading to IE 10 via Windows Server Update Services (WSUS) or System Center 2012 Configuration Manager.
    Regarding how to prevent users from upgrading to IE10 or IE11, the following two articles can be referred to for more information.
    Internet Explorer 10 Delivery through Automatic Updates
    http://technet.microsoft.com/en-us/ie/jj898508.aspx
    Internet Explorer 11 Delivery through Automatic Updates
    http://technet.microsoft.com/en-in/ie/dn449235
    Best regards,
    Frank Shen

  • Turn off print dialog box

    I want to turn off the print dialog box in Adobe Reader.  I want a similar function "quick print"  that Word has in order to use Adobe Reader more efficently with other software.  Is this possible?

    You will have to write some custom JavaScript and with versions 7 or newer or Acrobat/Reader, you will need to install a special script in a special application folder due to revised security restrictions.  You will also need to write a script file to add a menu item or tool bar button.
    The basic Acrobat JS code is:
    // Print a file silently
    this.print({bUI: false, bSilent: true, bShrinkToFit: true});

  • No print dialog box

    Guys,
    I am running OS X 10.5.5. I have an HP Officejet 7700 to which I print wirelessly.
    The problem I am having is that I am restricted to printing an entire document. I would like to be able to print just certain pages. I have no option that I can find in the dialog box after I hit print.
    I can print an entire document no problem. I have the latest drivers installed from the HP website.
    Any ideas appreciated.
    Thanks.

    Nevermind... Figured it out.

  • Any way to see ICONS in Open and Close Dialog boxes?

    Is there any way to see ICONS in Open and Close Dialog boxes, instead of just lists of items names?
    I know you can preview one at a time, but I'd love to see all my artwork as picture icons, just as you can in a finder window.
    Windows does this, but not OSX that I know of. Is there a third party app that enables you to see icon view in the Open and Close Dialogs?

    Thank you Steve Jobs. I guess that feature has been added in Leopard. Now there really is nothing that I'll miss from Windoze.

  • Open dialog box....

    Hi Everyone,
    I have designed a form in which user has to input the path where he wants to save his report.
    Like c:\test.PDF
    what i want to do is that when user click a button againts this field a dialog box should appear in which he can select the location, like in Notepad File > Open or File Save.
    and after selecting the path and closing the box the path should be display in the text field which i have provid to my user. Is it possible to attach the default file extension automatically in the text box?
    like if user have written c:\test it should be automatically converted into c:\test.PDF? Any Idea?
    How is this posible in Developer 6i. I will be very thankful if someone can help me solving this problem.
    Regards,
    Imran

    use GET_FILE_NAME - it's documented in the help - client server only

  • I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    Canon 1DX support was added to ACR in version 6.7, 7.1.  An updated CS6 should be at level ACR 8.6.  If your ACR is not at level 8.6 try using CS6 menu Help>Updates.  If that does not install ACR 8.6 try downloading the ACR and DNG 8.6 converter and see if ACR 8.6 will install into your CS6.
    Adobe - Adobe Camera Raw and DNG Converter : For Windows
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh

  • When I try to open photoshop I get a "help adobe improve it's produts" dialog box every time and it freezes

    When I try to open photoshop I get a "help adobe improve it's produts" dialog box. No matter what I do, I get this box when I try to open a file in photosop never opens although it appears to be

    Hi Steadyalberta,
    Something might be preventing Photoshop from being able to save your selection on the dialog window properly. You might try right clicking and choose Run as Administrator on the Photoshop icon when launching (Windows) or test if the behavior persists when using a newly created admin user account.
    Hope that helps,
    - Dave

  • Why doesn't firefox close out when I'm done with it and close it; when next I try to open firefox again I get a dialog box telling me firefox is open and to close it or restart my computer? I'm tired of doing that one of more times a day.

    1. This happens at least once a day, and sometimes multiple times. Today it's happened twice, thus far. My home page is FoxNews.com and if I leave it up overnight or for longer periods during the day firefox doesn't allow the refresh of the home page it just goes to yahoo 404--error can't find the webpage. Then when I enter FoxNews.com it adds a /error to the url and doesn't allow me to go to MY homepage. So I close firefox and then if I try to reopen it and then I get the dialog box saying firefox is open and to close it or restart my computer. Very aggravating. 2. Also the Adobe flash drive update always fails. 3. Webpages get in loops and fail to load to the point I have to stop and refresh or close out and reopen.

    One situation in which Command+w or Ctrl+w might not work is if the "focus" is in a plugin such as the Flash player used on Youtube after you interact with the player controls. Firefox will continue to send the keyboard input to the plugin until you move the focus back to the page. Does that account for any of the problem?

  • File Format options not appearing in the Save As dialog box - InDesign CC

    So i was working with a legacy file (an .eps from illustrator4) that i placed into InDesign CC, and when i went to export as a jpg, the option to choose a different file format from the bottom of the dialog box was gone. Did i hit some crazy shortcut to remove the options, or is this a bug that occurs when working with certain legacy files? I've restarted InDesign, rebooted my laptop, deleted my Adobe preferences, reset my adobe warning dialogs, and I still cant export or save as any other file format because the option doesnt appear. And it doesnt matter if i create a new file or open an existing one. Please help. See the pic below. No option for file format on the bottom of the dialog box.

    Thank you very much!
    Reinstalling worked, but i'd still kinda like to know what caused this problem & if this will continue to happen. To me, reinstalling is pretty much like having to reboot anytime you go to IT -- they dont know what the problem is, they just know how to fix/stop it.

Maybe you are looking for