How to get the F4 help for a field in the selection screen

Hi all,
I am working on a report program. In the selection screen, I have the field 'Brand Node ID'(ZNODEID). The requirement is to have the F4 help for this field. This field is available in a 'Z' table ZNODETAB. There is no Value table maintained for the corresponding data element. So, without disturbing the table data element/domain, I should get the F4 help in the selection screen of the report. In the F4 help, data should be fetched from the table ZNODETAB and the field is ZNODEID. Is there any way to do this.
By searching the function modules, I could find that, we can use the FM F4IF_INT_TABLE_VALUE_REQUEST. But, I am not Sure. Can someone tell me the parameters to be passed to this function module to get the F4 help and the procedure to follow. S_NODEID is the select option used in the program. Please help me in this regard. Thanks in advance.
Thanks & Regards,
Paddu.

look at this code and try
select-options : S_NODEID for ZNODETAB-ZNODEID.
at selection-screen on value-request for s_nodeid-low
perform f4_nodeid using 'S_NODEID-LOW'.
at selection-screen on value-request for s_nodeid-low
perform f4_nodeid using 'S_NODEID-HIGH'.
end-of-selection.
FORM f4_nodeid  USING    p_field.
  declare it_node.
select znodeid from ZNODETAB into table it_node.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'ZNODEID'
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      dynprofield     = p_field
      value           = space
      value_org       = 'S'
      display         = 'F'
    TABLES
      value_tab       = it_node
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.
endform

Similar Messages

  • How to add a search help for a field in Screen Personas?

       I just started learning to use a Screen Personas, and I want to know how to add a search help for a field.
       I found a property in the help document named "IsLookupSupported". Is it the key?  But I saw it was gray in the field I created, and its value is "false". I could not change it.

    Hi, Tamas,
    I found the reason. The function Z_WEBRFC_READ_DATA_SH had a string concatenation error.
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    The correct code is like:
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},{"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    Another question is, I can't get any words in Chinese from WebRFC. It returns error when I try it. How can I configure it?
    Xin

  • How can we provide F4 help for parameter field.

    Hi All,
    How can I provide F4 help for parameter field.
    Regards,
    Amar

    hi,
    different ways of applying search help are :
    you can use anyone:
    1)   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    or
    2) 
    can follow these simple steps for search help:
    go to se11==> put some name after ticking search help radiobutton==> create==>
    then tick " elementery search help " and press enter ===>then put description and table name in selection method ===>then put the field on which u want search help
    in search help parameter==> tick IMP EXP ==> write 1 in lpos and spos===>save and activate===> double click on table name ===>  select that field and press *search help tab* above===> then copy
    3 )
    methods of applyind search help:
    For search help sometimes we use MATCHCODE----->when we apply it directly to parameter or select option.they are obselete now ii.For search help sometimes we CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' ??------->if we want to populate data of internal table as search help.
    iii.For search help sometimes we declare tablename-fieldname in selection?------>if that field in that table is having seach help or check table ..F4 will be avaliable directly.
    also:
    Fixed value of domain can also work as search help.
    i hope it will help u a lot
    thaks and regards
    rahul sharma

  • Search help to a field of a selection screen

    how do we add a search help to a field of a selection screen..??

    refer this code  -  reward if helpfull
    *& Report  ZGILL_VALUE_REQUEST                                         *
    REPORT  ZGILL_VALUE_REQUEST                     .
    data: begin of lt_all occurs 0.
            include structure DYNPREAD.
    data  end of lt_all.
    data: begin of lt_selected occurs 0.
           include structure DDSHRETVAL.
    data: end of lt_selected.
    DATA: BEGIN OF lt_code OCCURS 0,
                code LIKE zgill_main-PERNR,
          END OF lt_code.
    data no_dyn like sy-dynnr.
    Parameters : ECODE like zgill_main-PERNR.
    *parameters: pernr like pa0001-pernr .
    no_dyn =  sy-dynnr.   "give the scren no directly or sy-dynnr in case of report.
    At selection-screen on value-request for ECODE.
    select PERNR into table lt_code from zgill_main.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield               = 'ECODE'
            dynpprog               = sy-repid
           dynpnr                  = no_dyn
          dynprofield              =       'ECODE'
          window_title           = 'Employee Details'
           value_org              = 'S'
          DISPLAY                = 'F'
       TABLES
            value_tab             = lt_code
           RETURN_TAB             = lt_selected.
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    *if sy-subrc eq '0' .
      write: 'success'.
    *endif.
    read   table lt_selected index sy-tabix.
    move lt_selected-fieldval to ECODE.

  • How to get multiple output formats for each execution of the report?

    Hi,
    Is it possible to get multiple output formats for each execution of the report? If so can you provide some details?
    Thanks

    In Reports 6i, Reports Distribution was introduced. This allows you to run the report once and output to a number of destinations with a different format. It also allows you to distribute individual sections within a report to different destinations in different formats.
    The Destinations for a Report to distribute to are defined either in a distribution file and passed on the command line or inside of the report definition.
    To add a destination to the the report definition, bring up the property palette against the report object and then select the "Distribution" property under the "Report" node. This will bring up a dialog that allows you to create a distribution list. You can then test this list by selecting "file->distribute" from the menu.
    To run a report that is to be distributed through rwrun60, you need to add "distribute=yes" to the command line. It will pick up the destinations from the report definition. If you add "destination=<filename>" then it will pick up the destinations from the specified "<filename>" and ignore the destinations in the report definition.
    Note: if "distribute=yes" is specified on the command line then the destype/desname/desformat parameters will be used to format the report (ie: which printer/display to use during formatting for sizing objects) but will be ignored when the report is sent to the destinations.

  • Dynamic search help for one field of the SM30 generated maintenance view

    Hi experts,
    I have one Z* table with three fields. For that table I have generated maintenance dialog in SE55 so I can now run the maintenance in SM30. My requirement is: as soon as a user enters a value for the first field, the search help for the second field should be depended on the value in the first field. Let's say when user entered value 01 into the first field then the search help for the second field should be S_HLP01. For other values entered into the first screen the search help for the second field should be S_HLP02. Both search helps are standard (the names differ).
    Is there any change how to achieve this without making completely new dynpro transaction?

    Hi ,
    You can try it this way.
    pass your match-code( search help to function ) HELP_VALUES_GET_WITH_MATCHCODE and get the value and update it in  your screen field.
    But you have to modify the flow logic in POV event. it would be better if you create your own transaction because once the maintenance is regenerated your modified flow logic will vanish

  • How to get available disk space for a disk in the system ?

    hi all,
    I need to figure out the available disk space for a particular disk before I can write my file to a directory in the disk. I do this to avoid unsufficient disk space problem in my program. May I know how can I do this in Java ? I look at the API function for java.io.File class but there isn't any function to check disk space. I would appreciate any help from fellow Java developers. Thanks a million.
    regards,
    tuck meng

    You cannot do this in purely platform independent way.
    You can use System.exec to run native OS utilities like df and parse the output, but then you have to knwo which platform your program is running on, or build in some automatic detection of OS and have corresponding native calls for each likely one.
    BTW. even if you get a number of free bytes on disk that's larger than the size of the file you want to write this is no guarantee that there will be enough diskspace for your file, because another process might write to the disk in the meantime. So you will have to do proper error handling and recover gracefully from the disk full sitution no matter what.

  • Get  material list for particular equiment no  in the f4 help of component field in the component field.

    hi frnds,
               In the tcode ib02 , we get the bom component list for particular equnr no. now in iw32 we need bom component list in the f4 help o,f component field of the components tab for particular equnr no ,added in the header tab.please help.
    regard rajit.

    Rajit,
    This facility is there in Standard.
    In the components tab click on the List  icon at the bottom menu (see picture below) . You'll be presented the BOM list, Here you double click on the material to be taken into Order. You'll be back to Components page with the material copied into Components list.
    Jogeswara Rao K

  • How to add a search help for a field in alv?

    HI!Everyone ,
    i want to add a search help created by myself for one field in alv,
    and i want to use this function "HELP_VALUES_GET_WITH_TABLE".
    can anyone help me ?
    thanks!

    HI,Vijay.
    My code like this :
          PERFORM build_fcat.
          PERFORM build_objects.
          PERFORM layo_build.
          PERFORM set_drdn_table .
          CALL METHOD alv_grid->set_table_for_first_display
            EXPORTING
             i_structure_name = 'STU_S'
              is_layout        = s_layo
            CHANGING
              it_outtab        = itab_out
            it_fieldcatalog  = i_fcat
            ."Period
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
    for example, there is a field 'UNAME' IN Structure 'STU_S',
    i want to add a search help for 'UNAME'.
    the 'UNAME'  is not users in SAP R/3 , i want to add some data by myself or from a table .

  • Input help for AUART field on the selection screen

    Hi,
    I need to create a Z search help for the Field AUART ( sales document type ) .
    The search help should be created in this way :
       i need to group these Document types under one name  ( say  SALO) ZCM1, ZCM2,ZDM1,ZDM2,ZRE1,ZRE2,ZS01,ZS02,ZS04.
    Then i need to group these document types under another name ( say PRJO) ZCM3,ZDM3,ZS03.
    Then i need to group both SALO and PRJO under one name 'BOTH'.
    So my new search help will be SALO
                                                 PRJO
                                                 BOTH
    If i select SALO , it should pull data from the Table for all the document types specified. Similarly for PRJO and BOTH .
    Can anyone please advice  me in this regard at the earliest
    With Best Regards
    Mamatha.

    Hi Mamtha,
       Your Scenario can be achieved be defining Search help Exit available in the search Help creation Screen
    Regards,
    Kasi S

  • F4 ( Search Help ) for date field  on the selection screen

    Hi Freinds,
    i have used WDR_SELECT_OPTIONS In my component, i have one date field on selection screen(BUDAT), for this date field i want seach help 
    this is my code
    create a range table for Posting Date
    lt_range_table = wd_this->m_handler->create_range_table(
                                                              i_typename = 'BUDAT' ).
    add Posting Date  to the selection
    wd_this->m_handler->add_selection_field( i_id = 'BUDAT'
         i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
                                               I_VALUE_HELP_ID = '??????'
                                               I_DESCRIPTION = 'Posting Date'
                                               it_result = lt_range_table ).
    can any one help me
    Thanks
    Srini

    hi sarbjeet 
    i created search help in dictionary and i used that search help in my program, but still its now working , any other ideas
    Thnx
    srini

  • Retrieve the sales orders for a particular customer in selection screen

    Hi
    I want to retrieve the sales orders for a particular customer(entering customer number field in the selection screen and then clicking on f4 help on sales order field in the selection screen I should get only sales order numbers for that particular customer number).How can I achieve this through search helps?Are there any standard search helps that I can use.
    <removed_by_moderator>
    Edited by: Julius Bussche on Apr 9, 2009 12:55 PM

    Hi,
    try this:
    at selection-screen on value-request for p_par.
    select * from vbak
    into itab
    where kunnr = p_par.
    then use the FM 'F4IF_TABLE_VALUE_REQUEST'.
    with
    retfield = 'VBELN'
    dynprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = <name of parameter>
    value_org = 'S'
    tables = itab.
    Regards,
    Leo.

  • How to get full row from F4 pop up window into selection-screen fields

    HI ,
    I had a selection screen having 3 fields (vbeln, posnr, ebeln )
    If i press F4 on field 1 i will get a pop up having all values.
    If i click on any one row in that popup, only the first field is getting filled with the value. But i want all the other fields to be filled with the corresponding values in the screen simultaneously.
    Please let me know is there any solution for this...
    Regards,
    Kanth....

    Hi
    U should base your selection-screen on a dictionary structure whith those three fields where you assign your search help exporting all values (VBELN, POSNR and EBELN).
    In this way you'll obtain what you need automatically
    Else you can manage it in POV event by your selef.
    Max

  • Search help for a field using a selection method which has a text table.

    Hello all,
    I am trying to create a search help for one of the fields in a structure say RFCDEST. Now for this i am giving the selection method as the DB table where all the RFCDEST are maintained. However there is a text table which is also comes up for this selection method and the description of the filed RFCDEST is in that text table and the description is not stored in the main table which i specified as the selection method.
    My query is that on F4 now all the rfc destinations are being shown however the description i am not able to show them because there is no field in the table specified in the selectionmethod which hold s the description but instead it is there in the text table, how can i fetch the description from there and display in the search help.
    Warm Regards,
    Naveen M

    look at search help FC_RFCDEST. that problem has already been solved with this search help.

  • Two F4 helps for a field in a standard screen

    Hi,
    In an standard transaction, two fields are there and I need to populate one field according to the value of the other.
    For few values of first field, the second field should populate with values other than from table.  This field is already have F4 help.

    Hi,
    data: IT_RETURN LIKE DDSHRETVAL OCCURS 0 WITH header line.
    *internal table made to populate the value of werks when pressing f4
    DATA: BEGIN OF IT_FINAL OCCURS 0,
          WERKS TYPE MARC-WERKS,
          END OF IT_FINAL.
    parameters: p_werks(10) type c.
    *---pass your parameter which contains dropdown result, lets say p_werks
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.
      select  werks from marc
      into table IT_FINAL.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
    *   DDIC_STRUCTURE         = ' '
          RETFIELD               = 'WERKS'   "field of internal table
         VALUE_ORG              = 'S'
        TABLES
          VALUE_TAB              = IT_FINAL
    *   FIELD_TAB              =
         RETURN_TAB             = IT_RETURN
    Thanks,
    Krishna

Maybe you are looking for

  • Image icons in Finder

    When I copy a lot of images into a folder, the icons in Finder aren't always created correctly. Can anyone tell me why or how to update them once they have been created? Here is a sample:

  • Control FLV playback with button on different timeline

    I have an FLVPlayback instance on my stage within a movie clip within a movie clip eg. _root.showreel_mc.showreelHolder.showreel (where showreel is the instance name given to the FLV component itself) I already have a button that fades out showreel_m

  • Creative Media Source Prob

    Whenever I transfer albume to and from my Zen V Plus, Media source insists on adding the album title to the song name. This makes very long titles which can't be easily read in the Zen V. I have tried a number of transfers, and media source always ap

  • Need Help with AutoNumbering for Section Heads--Stat!!

    Howdy-- Okay, I'm trying to set up section numbering using autonumbering. I want the Heading1's of my document to have section numbers whose look like: <$chapnum>.1, 2, 3, etc. For example, 2.1, 2.2, 2.3, etc.. where the first number is the chapter n

  • CFPRINT Fonts

    I am having a issue using CFPRINT. I have a pdf file which uses three fonts: Arial, ArialBold, and ArialNarrow. Note that ArialNarrow is an "Embedded Subset", the other fonts are not. When printing using CFPRINT the ArialNarrow text prints rectangles