Assign Search help in report program

Dear All,
I facing problem to assign search help in report program.
I crated one elementary search help in which three fields i include
-carrid
-carrier name
-booking  
all three fields having import and export parameter in search help.
while executing this search help in se11 it gives proper output.
but while assigning this search help in report program it only fetch one carried.
my report is also having three parameter
-carrid
-carrier name
-booking
i assign search help like
PARAMETER :  p_carrid TYPE scarr-carrid
                           MATCHCODE OBJECT z01_carrid,
with all three field but it fetch only carrid ...

Hi Chintan,
For such types of requirements you can use this Function Module:
F4IF_INT_TABLE_VALUE_REQUEST.
Use this functiom modue under AT SELECTION-SCREEN ON HELP-REQUEST FOR P_CARRID.
With this function module, you can fill your remainng parameters : P_carriername and booking also.
Sample Code:
     DATA : TMP_RETURN_TAB  LIKE TABLE OF DDSHRETVAL,                                TMP_RETURN      LIKE DDSHRETVAL,                    
                TMP_FIELD       TYPE  DFIES-FIELDNAME.               
CASE AKIND.                                        
   WHEN '1'.                                        
     TMP_FIELD = 'AENNR'.                                        
   WHEN '2'.                                        
     TMP_FIELD = 'VBELN'.                                        
   WHEN '3'.                                        
     TMP_FIELD = 'ZZTEHAI'.                                        
  ENDCASE.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'                                                                 
   EXPORTING                                                                                     
     RETFIELD               = TMP_FIELD                                                                      
     WINDOW_TITLE           = ATITEL                                                                      
     VALUE_ORG              = 'S'                                                                                
   TABLES                                                                                          
     VALUE_TAB              = ATABLES                                                                           
     RETURN_TAB             = TMP_RETURN_TAB                                                                      
   EXCEPTIONS                                                                                
     PARAMETER_ERROR        = 1                                                                           
     NO_VALUES_FOUND        = 2                                                                           
     OTHERS                 = 3.                                                                                
  IF SY-SUBRC =  0.                                                                                
    READ TABLE TMP_RETURN_TAB INDEX 1 INTO TMP_RETUN.                                                            
    AVALUE = TMP_RETURN-FIELDVAL.                                                                      
  ENDIF.                                                  
Jus analyze this code, you can get ur requirement done.
Regards
Sandeep Reddy

Similar Messages

  • Assign search help for a screen field in standard program?

    Hi All,
    Is there any other way to assign search help to a standard SAP screen field? (to be precise i want to assign search help to Recipient field in table control of components tab in transaction IW32/IW31)
    I know we can do this by assigning search help through screen painter (by changing standard program, which is my last option).
    Any advice/help will be greatly appreciated.

    Hi,
    I think you will find solution in below <b>threads</b>:
    Re: Search Help for standard field
    How to assign a search help
    Search help for Standard SAP field
    <b>Reward if helpful</b>
    Rgds,

  • How to use the created search helps in the program?

    Hi Everyone,
    I know how to create Search help elementary / collective search help through SE 11. I have a question, how can I make use of the created search help in the program.
    How to use the Search help in the programs, which is created through SE11
    Subbu.

    Hi,
    In case if you want to use in parameters statement, then we can use the suffix MATCHCODE OBJECT syntax.
    Eg.
    report abc.
    parameters : a(10) type c matchcode object ZBELNR.
    Hope this helps.
    regards,
    amit m.

  • Search help in dialog program

    Hi all,
    Fora search help in dialog program.
    I HAVE TO GET SEARCH FOR A FIELD ZID ON APARTICULAR SCREEN BASED ON DATA, MODIFIED BY AND A PLANT..
    I HAVE A RECORD IN ONE MY ZTABLE.
    I HAVE TO GET THAT BY SEVERAL SEARCH PARAMETERS SAY BY DATE , MODIFIED BY,PLANT ETC.
    each user has been assigned a plant , so in search he has to get records belonging to that plant.
    so i cannot include plant in my search help, because user may type in other plant.
    so i tried two ways
    1) i created a search help in se11 including the plant field again the problem arises if the user types a different plant.
    so i want to know whether we can apassa value to plant field in search help(i.e the plant assigned to the user),
    i have this kind of thing in some standard t -code i.e especially for searching material , the plant field in search help was filled by one plant.
    this should be one of the solution
    2)I tried to write a code in pov of program code.
    this is how my code looks.
    DATA : BEGIN OF ITAB OCCURS 0.
         INCLUDE  STRUCTURE ZXXX.
    DATA : END OF ITAB.
    ITAB HAS FIELDS ID, DATE , MODIFIEDBY , PLANT.
    USER_PLANT = 'ABC'.
    SELECT * FROM ZXXX INTO TABLE ITAB WHERE PLANT = USER_PLANT.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        RETFIELD               = 'ZID'
      PVALKEY                = ' '
      DYNPPROG               = ' '
      DYNPNR                 = ' '
      DYNPROFIELD            = ' '
      STEPL                  = 0
        WINDOW_TITLE           = 'TEST'
      VALUE                  = ' '
        VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      TABLES
        VALUE_TAB              = ITAB
      FIELD_TAB              =
        RETURN_TAB             = IT_RETURN4
      DYNPFLD_MAPPING        =
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if sy-subrc = 0.
              clear itab.
              read table it_return4 index 1.
                ZXXX-ZID = it_return4-fieldval.
    endif.
    THIS WORKS FINE , BUT HE CANNOT SEARCH BASED ON DATE AND MODIFIEDBY
    ALL i want is is get a pop up window and should be able to search based on data and modifiedby for a predifined plant.
    I hope iam clear.
    Thanks

    Hi,
    Create a FM with the following code..The interface is defined in the code..
    In the Function module top include add the following code.
    <b>TYPE-POOLS: shlp, vrm.</b>
    IN this code I am deleting the records that are not of the currency USD...
    Do the same thing for your requirement...
    FUNCTION Y_SEARCH_HELP_EXIT.
    ""Local interface:
    *"  TABLES
    *"      SHLP_TAB TYPE  SHLP_DESCR_TAB_T
    *"      RECORD_TAB STRUCTURE  SEAHLPRES
    *"  CHANGING
    *"     REFERENCE(SHLP) TYPE  SHLP_DESCR_T
    *"     REFERENCE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
    where z_test is my z table..
    DATA: ITAB LIKE Z_TEST OCCURS 0 WITH HEADER LINE.
    ITAB[] = RECORD_TAB[].
    IF NOT RECORD_TAB[] IS INITIAL.
      DELETE ITAB WHERE WAERS <> 'USD'.
      RECORD_TAB[] = ITAB[].
    ENDIF.
    ENDFUNCTION.
    Thanks,
    Naren

  • How to assign search help for an input field by fetchign values from an int

    i have an input field ,
    i want to assign search help for the same by fetching values from a table.
    how to achieve this ?

    Using the below ways you can assign search help to a field.
    1) [OVS Search Help|http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp]
    2) [Freely Programmed Search Help|http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help]
    3) Dictonary Help - Use the Data element for that purpose.

  • How to assign search help using ovs for select options for ALV in web dynpr

    how to assign search help using ovs for select options for ALV in web dynpro

    Hi,
    refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
    http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
    and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
    Thanks,
    Chandra

  • Assigning search help (F4 functionality ) for recipient field in IW32

    Hi,
    my requirement is to assign search help (F4 functionality) for recipient field in components tab of IW32. anybody help me to assign search help for it. same way i need to assign that in MIGO, MB21, MB1A goods recipient field.

    hi,
    refer to the following link:
    http://www.saptechies.com/how-to-add-f4-help-to-a-field-on-screen-module-pool/
    i hope it helps
    regards

  • Creating search help through reports

    Hello experts,
    Is there a method so that I can create search help through reports?
    Thanks,
    Mohit.

    hi,
    we can create F4 help through report and also we can create Input Help from the ABAP Dictionary  .
    please check this link for Input Help from the ABAP Dictionary  .
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm
    and for F4 help in reports you can use some function modules:
    select-options :                 so_selgp FOR t458a-selgp  /
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_selgp-low .
      REFRESH gt_auskt[].
      here insert select query to fill your internal table .
      IF so_selgp[] IS NOT INITIAL.
        DELETE gt_t458a1  WHERE selgp NOT IN so_selgp[].
      ENDIF.
      SELECT aussl auslt FROM t458b INTO CORRESPONDING FIELDS OF  TABLE gt_t458b WHERE spras = 'E'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          retfield               = 'SELGP'
        PVALKEY                = ' '
         dynpprog               = 'ZPPGL_MRP_LIST '
         dynpnr                 = '1000'
         dynprofield            = 'SO_SELGP'
         value_org              = 'S'
      IMPORTING
        USER_RESET             =
        TABLES
          value_tab              = gt_auskt   " internal table.
      EXCEPTIONS
        PARAMETER_ERROR        = 1
        NO_VALUES_FOUND        = 2
        OTHERS                 = 3

  • Dynamically assign Search Help to the field

    Hi All,
    I have creates one search help from se11 like zshlp. i m not assign this search help to the database field. bocz i used this search help at runtime. so how can i assign this search help during execution time of my program. 
    Reward for helpful answer.
    THANKS & REGARDS,
    SAHIR

    Hi Sahir,
       Creating dynamic search help means the f4 help will come on the context bases.
    that will achieved with function module
    1. F4IF_INT_TABLE_VALUE_REQUEST  : Display internal table as search help (documented in SAP)
    *---Report with selection screen and to display the list of
    possible entries for field 'B' as per the value in field 'A'.
    REPORT ZTEST_F4HELP .
    parameters: p_vbeln type vbak-vbeln,
    p_posnr type vbap-posnr.
    at selection-screen on value-request for p_posnr.
    data: begin of help_item occurs 0,
    posnr type vbap-posnr,
    matnr type vbap-matnr,
    arktx type vbap-arktx,
    end of help_item.
    data: dynfields type table of dynpread with header line.
    dynfields-fieldname = 'P_VBELN'.
    append dynfields.
    call function 'DYNP_VALUES_READ'
    exporting
    dyname = sy-cprog
    dynumb = sy-dynnr
    translate_to_upper = 'X'
    tables
    dynpfields = dynfields
    exceptions
    invalid_abapworkarea = 1
    invalid_dynprofield = 2
    invalid_dynproname = 3
    invalid_dynpronummer = 4
    invalid_request = 5
    no_fielddescription = 6
    invalid_parameter = 7
    undefind_error = 8
    double_conversion = 9
    stepl_not_found = 10
    others = 11.
    read table dynfields with key fieldname = 'P_VBELN'.
    p_vbeln = dynfields-fieldvalue.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
    input = p_vbeln
    importing
    output = p_vbeln.
    select posnr matnr arktx into table help_item
    from vbap
    where vbeln = p_vbeln.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield = 'POSNR'
    dynprofield = 'P_POSNR'
    dynpprog = sy-cprog
    dynpnr = sy-dynnr
    value_org = 'S'
    tables
    value_tab = help_item.
    Hope this is helpful to you. If you need further information, revert back.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • Creating customized search helps in Dialog Programming

    Hello people I have a little predicament here. I need to create search help restricting the results.
    Like lets say I want to create a search help that select material numbers and name for a specific material group. Then use that as a seach help.
    Right now Im playing around with function module <b>HELP_VALUES_GET_WITH_TABLE</b> but it seems to open right when you access call screen.
    Also Since this is dialog programming I am using screen painter. And I need to assign the search help in an I/O Field.
    Well that's all for now take care guys. Take care to you all.

    Hi Chad,
    Is your problem been resolved .
    If not , just try this code
    Copy paste as it is and it will work .
    TYPES: BEGIN OF values,
             carrid TYPE spfli-carrid,
             connid TYPE spfli-connid,
           END OF values.
    DATA: carrier(3) TYPE c,
          connection(4) TYPE c.
    DATA: progname TYPE sy-repid,
          dynnum   TYPE sy-dynnr,
          dynpro_values TYPE TABLE OF dynpread,
          field_value LIKE LINE OF dynpro_values,
          values_tab TYPE TABLE OF values.
    CALL SCREEN 100.
    MODULE init OUTPUT.
      progname = sy-repid.
      dynnum   = sy-dynnr.
      CLEAR: field_value, dynpro_values.
      field_value-fieldname = 'CARRIER'.
      APPEND field_value TO dynpro_values.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE value_carrier INPUT.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                tabname     = 'DEMOF4HELP'
                fieldname   = 'CARRIER1'
                dynpprog    = progname
                dynpnr      = dynnum
                dynprofield = 'CARRIER'.
    ENDMODULE.
    MODULE value_connection INPUT.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname             = progname
                dynumb             = dynnum
                translate_to_upper = 'X'
           TABLES
                dynpfields         = dynpro_values.
      READ TABLE dynpro_values INDEX 1 INTO field_value.
      SELECT  carrid connid
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF TABLE values_tab
        WHERE carrid = field_value-fieldvalue.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'CONNID'
                dynpprog    = progname
                dynpnr      = dynnum
                dynprofield = 'CONNECTION'
                value_org   = 'S'
           TABLES
                value_tab   = values_tab.
    ENDMODULE.
    <b>For Screen 100 logic:
    Copy:</b>
    PROCESS BEFORE OUTPUT.
      MODULE INIT.
    PROCESS AFTER INPUT.
      MODULE CANCEL AT EXIT-COMMAND.
    PROCESS ON VALUE-REQUEST.
      FIELD CARRIER MODULE VALUE_CARRIER.
      FIELD CONNECTION MODULE VALUE_CONNECTION.
    <b>Do design the layout also.</b>
    I hope this will help you.
    If this satisfy  you then please close the thread by rewarding appropriate points to the helpful answers.
    Cheers
    Sunny
    Message was edited by: Sunny

  • How to assign search help for custom cost centre field in SRM 7.0

    Hi Experts!!
    We are currently working in SRM 7.0.As per our business requirement, in account assignment tab we need to use a custom
    cost centre field (ZCOST_CENTRE) instead of standard cost centre field.It is observed that for standard cost centre field there is a standard web-dynpro search-help assigned where it will return the F4 search help values from backend.
    Can any one of you please help me how can I assign the search-help for the custom cost centre field. Is there any FM to call the backend cost centre search help for custom field or any other way how can I achieve this?
    Thanks in advance.
    Regards,
    Kalyani

    kalyani,
    i can see your requirement in below way..
    as it just reads: you need to assign the standard cost center help to a z cost center field in component /SAPSRM/WDC_UI_DO_ACC.. which actually is fetched though the component /SAPSRM/WDC_UI_BACKEND_SH
    so, if you see the component controller of SAPSRM/WDC_UI_DO_ACC you will see the component
    USAGE_SH_F4     /SAPSRM/WDC_UI_BACKEND_SH                        
    USAGE_SH_F4     /SAPSRM/WDC_UI_BACKEND_SH     INTERFACECONTROLLER
    so you can replicate the same functionality for your z field.
    but can you clarify one thing.. why are you going for this z field in place of standard field ?

  • Assign Search help dynamically

    Hi,
    I have two fields(issue_status and remarks)in a table control. I want to assign a search help to the 'REMARKS' field of the table control only when the user selects the value 'REJECTED' in the 'issue_status' field of the table control.
    could some one please help me in solving this problem.
    Regards,
    Makam

    If you are building a ABAP application you should post this in the ABAP Forum and if it's a BSP application you should post it in the BSP Forum.

  • Assign search help to a field in PCUI

    Hi Friends,
    Here is my requirement. I have designed a PCUI application which searches the address based on the post code entered. Now the standard method to assign this application as search help is to specify the name of the application in the "input help" property of a field in the field group.
    I have implemented the same for the field POST_CODE1 of the field group ADR_DETAIL_POSTAL which is a part of service order application in PCUI. Now when i try to use the same thing in street field, it does not work. the F4 help just does not come. It works fine for STR_SUPPL2 field, House_num1 field and all other fields in the field group except for the Street field. ANd the client wants in only on the street field.
    I am not able to understand that what might be the possible mistake. Any help in this matter will be highly appreciated.
    Thanks in advance,
    Karan

    Check the FM: HELP_VALUES_GET_WITH_TABLE_EXT
    Check the documentation for example code.
    regards,
    Ravi

  • Account assignment search help in SC.

    We currently implement stand-alone scenario and looking for solution how to maintain account assignment data in EBP. As far as I know account assignment data managed in back-end system and not replicated into EBP.
    We would like to manage account assignment data in EBP in Z-table. This table required to have F4-search for WBS-elements in SC transaction.
    So the question is how to create F4-search based on Z-table. Can BADI BBP_F4_READ_ON_ENTRY help me to resolve this issue? It seems like this BADI does not work in SC transaction.
    Is it possible to show WBS-element description on account assignment overview screen?
    Thanks,
    Alexander

    Hi
    Which R/3 back-end are you using ?
    Are you not replicating the same A/c Assignment caetgories from R/3 into SRM
    system ?
    Do let me know.
    <b>Meanwhile, Please go through the following SAP OSS Notes below -></b>
    Note 945158 - F4-Help Validation in local Scenario
    Note 815849 - FAQ: Account assignment system response
    Note 791465 - PPOMA_BBP:Incorrect search help in back-end for WBS elements
    Note 725247 - Search help and BAdI BBP_F4_READ_ON_ENTRY in accnt assgn scr
    <u>The 2 Related Notes for Note 725247</u>
    1) Note  925890 - Cost centre drop down not working
    2) Note  839534 - Problems with dropdown list in Acc. ***. overview
    Note 856914 - Cost Assignment search returns incorrect description
    Note 712701 - Backend search help for WBS elemnt (Work breakdwn structure)
    Note 693795 - Search help for activities for the network
    Hope this will help.
    Regards
    - Atul

  • F4 search help on report selection screen

    Hi to all
    I am developing a report.
    There are four fields on selection screen.
    ncode
    ccode
    mcode
    mj_code
    On these fields i want search help.
    When I press f4  all possible values should display.
    Then in second field, when I press F4 , only the values corresponding to that previous selection should display.
    same for remaining two fields also.
    Please tell me which function module to use at selection screen and how to select corresponding values only.
    Please guide me.
    Regards
    Anubhav

    Hi Anubhav Gupta,
    Try like this code you will definetly get your answer
    Parameters: carrid type spfli-carrid,
                P_connid(3).
    DATA: BEGIN OF values,
             carrid type spfli-carrid,
             connid type spfli-connid,
           END OF values.
    data: dinpro_values type table of dynpread,
          value_tab     like table of values,
          field_value   like line of dinpro_values.
    at selection-screen on value-request for P_connid.
      field_value-fieldname = 'CARRID'.
      APPEND field_value TO dinpro_values.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname             = sy-repid
                dynumb             = sy-dynnr
                translate_to_upper = 'X'
           TABLES
                dynpfields         = dinpro_values.
      READ TABLE dinpro_values INDEX 1 INTO field_value.
      values-carrid = FIELD_VALUE-FIELDVALUE.
      SELECT  CARRID
              connid
        FROM  sflight
        INTO  TABLE VALUE_TAB
       where  carrid eq FIELD_VALUE-FIELDVALUE.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'CONNID'
                dynpprog    = SY-REPID
                dynpnr      = SY-DYNNR
                dynprofield = 'P_CONNID'
                value_org   = 'S'
           TABLES
                value_tab   = value_tab.
    Reward if it is useful only,
    Mahi.

Maybe you are looking for

  • Zoom in isight

    how do i zoom in zoom out in isight when using photo booth or imovie? Also how do i get more effects for photo booth other than the default ones?

  • Form Builder missing feature

    In the Form Builder of the Adobe Acrobat v.9.3.3 I did not find any possibility to import data list (eg. from xls) into the drop down list box component. The list of the selectable elements can be added in the properties box one by one which is extre

  • Web Dispatcher medium / large configuration

    When we install web dispatcher, we are given an option for creating configuration for system of size medium / large... There is a system installed as medium and I am looking it to adjust for large number of users.. Any help on what parameters will I

  • Delivery date variance

    Hi, We want to maintain the Delivery Date variance in the following customisation; SPROMaterials ManagementPurchasingStatistics-Define Grid for Delivery Date Variance Here We want to maintian the following intervals, how to maintian below ranges as w

  • PB G4 with incredibly slow start up

    It does eventually start up, but it takes several minutes. Also seems like it is running hotter and a battery charge doesn't last very long. HHelp!