Any Functions can I use Search Help on VALUE-REQUEST in PAI.

Hi~!!  Experts.
I want to know some functions or methods of Search Help.
I have made a ZHxxxx Search Help in SE11.
And I applied a screen field by using screen painter.
But I want to fill up the other fields, using selected value.
So I made a Module under th  PROCESS On VALUE-REQUEST.
unfortunately, I can't use no more The Search  that I made.
I want to using the Search Help(ZHxxxx), and I want to fill up the other fields by using that's values.
I guess some F4 functions can use Search Help. Right?
Anyone know how to deal it.  Please answer me,.     The program Type is Module Pool program.

Hi Insik,
Proceed as below :-
First of all declare the module below in the flow logic of your screen then create it in your main program.
You declare the module in the PROCESS ON VALUE-REQUEST.
PROCESS ON VALUE-REQUEST.
FIELD TXT_DOCNO MODULE VALUE_BELNR.
You also need to create an internal table where you wil store results of the select query fired below in the module.
Here you will get a F4 help on the filed Document Number(TXT_DOCNO) based on the field Company code (TXT_CODCO)
MODULE VALUE_BELNR INPUT.
progname = sy-repid.
dynnum = sy-dynnr.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'TXT_CODCO'.
APPEND field_value TO dynpro_values.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'BKPF'
fieldname = 'BUKRS'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'TXT_CODCO'.
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 BUKRS BELNR
FROM BKPF
INTO CORRESPONDING FIELDS OF TABLE it_doc1
WHERE BUKRS = field_value-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BELNR'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'TXT_BELNR'
value_org = 'S'
TABLES
value_tab = it_doc1.
ENDMODULE. " VALUE_BELNR INPUT
Regards
Abhii

Similar Messages

  • Using a function module in a search help.

    People,
    I make a function module for a search help. Into the function module I call a function 'K_GROUP_SELECT' that show me a screen to make another search but I don't know how can I put the value that this function return me in the field that the user click the button of the search help in my program.
    This is the code that I put in the function module.
    Thanks!
    FUNCTION Z_GROUP_SELECT_ZFINCOKOH1_B.
    *"*"Local Interface:
    *"  TABLES
    *"      SHLP_TAB TYPE  SHLP_DESCT
    *"      RECORD_TAB STRUCTURE  SEAHLPRES
    *"  CHANGING
    *"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
    *"     VALUE(SHLP) TYPE  SHLP_DESCR
    tables: setheader.
    data: setname type setheader-setname.
      CONSTANTS:
                  CLASS         TYPE SETCLASS VALUE '0103',
                  FIELD_NAME    TYPE RGSBS-FIELD  VALUE '*',
                  KOKRS         TYPE TKA01-KOKRS  VALUE 'BPPR',
                  KTOPL         TYPE TKA01-Ktopl VALUE 'CAPI'.
    IF callcontrol-step = 'SELECT'.
    *PERFORM k_group_select USING: CLASS, FIELD_NAME, KOKRS, KTOPL.
    CALL FUNCTION 'K_GROUP_SELECT'
      EXPORTING
       BUTTONS                  = 'X'
       CLASS                    = CLASS
       CRUSER                   = '*'
       field_name               = FIELD_NAME
       SEARCHFLD                = '    '
       SEARCHFLD_INPUT          = 'X'
       SEARCHFLD_REQUIRED       = 'X'
       SET                      = '*'
       START_COLUMN             = 10
       START_ROW                = 5
       TABLE                    = 'CCSS'
       TYPELIST                 = 'BS'
       UPDUSER                  = '*'
       KOKRS                    = KOKRS
       KTOPL                    = KTOPL
    IMPORTING
       SET_NAME                 = setname
    EXCEPTIONS
       NO_SET_PICKED            = 1
       OTHERS                   = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endif.
    ENDFUNCTION.

    Carlos,  Please see the following program. It is working well in my system.  The only difference is that I've implemented you function module as a subroutine instead of in a FM.   You can see that it will return the selected value back to the screen field.
    report zrich_0002 .
    data: setname type setheader-setname.
    parameters: p_val type setheader-setname.
    data: dynfields type table of dynpread with header line.
    data: return type table of ddshretval with header line.
    at selection-screen on value-request for p_val.
      perform f4_help.
      p_val = setname.
    start-of-selection.
    *       FORM f4_help                                                  *
    form f4_help.
      constants: class  type setclass value '0103',
                 field_name    type rgsbs-field  value '*',
                 kokrs  type tka01-kokrs  value 'BPPR',
                 ktopl  type  tka01-ktopl value 'CAPI'.
      call function 'K_GROUP_SELECT'
           exporting
                buttons            = 'X'
                class              = class
                cruser             = '*'
                field_name         = field_name
                searchfld          = '    '
                searchfld_input    = 'X'
                searchfld_required = 'X'
                set                = '*'
                start_column       = 10
                start_row          = 5
                table              = 'CCSS'
                typelist           = 'BS'
                upduser            = '*'
                kokrs              = kokrs
                ktopl              = ktopl
           importing
                set_name           = setname
           exceptions
                no_set_picked      = 1
                others             = 2.
    endform.
    REgards,
    Rich HEilman

  • How to use Search help PRCTR_EMPTY in Web dynrpo ABAP

    Hi,
    I have a requirement to use search help PRCTR_EMPTY as F4 help for an InputField in my application. But, in the F4 help, if I select "Profit Center Via Standard heirarchy" and search, it is giving me the following error:
    "Sending of dynpro SAPLSPO4 0300 not possible: No window system type specified"
    Here the search help is trying to call a R/3 screen from web dynpro.
    Pelase suggest me if there is any other way to use this search help in web dynpro.
    Thanks,
    Manogna

    hello,
    Any search help where R/3 screen is called, will not work in WD ABAP environment. You can create search help using OVS and follow the similar way of data selection as in search help.
    Regards
    Vishal kapoor

  • How to use search help in ECC6.0 reports without matchcode.

    How to use search help in ECC6.0 reports without matchcode.
    Select-options: O_SHIP FOR KUNWE MATCHCODE OBJECT DEBI  is in 4.6c.

    we can use on value request for that.
    report zrich_0001 .
    tables: t001.
    data: begin of it001 occurs 0,
    bukrs type t001-bukrs,
    butxt type t001-butxt,
    ort01 type t001-ort01,
    land1 type t001-land1,
    end of it001.
    select-options s_bukrs for t001-bukrs.
    initialization.
    select bukrs butxt ort01 land1 into table it001 from t001.
    at selection-screen on value-request for s_bukrs-low.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield = 'BUKRS'
    dynprofield = 'S_BUKRS'
    dynpprog = sy-cprog
    dynpnr = sy-dynnr
    value_org = 'S'
    tables
    value_tab = it001.
    start-of-selection.
    refer to this thread:
    On value request?

  • How to use search help in layout of se51

    how to use search help in layout of se51.

    Hi,
      One of the important features of screens is that they can provide users with lists of possible entries for a field. There are three techniques that you can use to create and display input help:
    Definition in the ABAP Dictionary
    In the ABAP Dictionary, you can link search helps to fields. When you create screen fields with reference to ABAP Dictionary fields, the corresponding search helps are then automatically available. If a field has no search help, the ABAP Dictionary still offers the contents of a check table, the fixed values of the underlying domain, or static calendar or clock help.
    Definition on a screen
    You can use the input checks of the screen flow logic, or link search helps from the ABAP Dictionary to individual screen fields.
    Definition in dialog modules
    You can call ABAP dialog modules in the POV event of the screen flow logic and program your own input help.
    These three techniques are listed in order of ascending priority. If you use more than one technique at the same time, the POV module calls override any definition on the screen, which, in turn, overrides the link from the ABAP Dictionary.
    However, the order of preference for these techniques should be the order listed above. You should, wherever possible, use a search help from the ABAP Dictionary, and only use dialog modules when there is really no alternative. In particular, you should consider using a search help exit to enhance a search help before writing your own dialog modules.
    Input help from ABAP dictoinary
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm
    Field Help on the Screen
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaa6135c111d1829f0000e829fbfe/content.htm
    Field Help in Dialog Modules.
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
    Regards,
    Vara

  • How can i add search help

    hi  how can i add search help .
    when i am giving a parameter of type BSART  it takes the in built search help
    but i want only those values to appear in F4 help which have  diff values in category  but i want only with catogory "F".
    thanks in advance
    naval bhatt

    Hi,
    You have a Function module <b>HELP_VALUES_BSART</b>
    or
    You need to use AT SELECTION-SCREEN ON VALUE-REQUEST FOR <FIELD>.in this one use the Function module F4IF_INT_TABLE_VALUE_REQUEST.
    Look at the below linkhttp://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
    Regards
    Sudheer

  • What function can be used to give a "count of occurrences of values" ?

    I would be very appreciative if someone in the user community could save me a few months of work....I've already been neck deep in my old statistics and calculus manuals. What function can be used to get the count of occurrences of the value of an item. Ex: Item is Status and possible values are "Published", "In Production", "Construction". In one report, I want to report all records of a table and list the Status (among other items) but at the total, I would like to see a count of each value for the item Status....something like Sum(Count(Status = "Published")) Sum(Count(Status = "In Production")) Sum(Count(Status = "Construction")). I know I could run the report 3 times counting a unique value, but I'm trying to be more efficient in my reporting. Thanks all for any help given.

    Hi
    In addition to John's answer, inside Discoverer you can do this:
    Let's assume you have a Status item and it has the values you mention. If you create the following new calculation SUM(ROWNUM) and name it Status Count you only need to include the Status and the Status Count in the worksheet. You will now see a count for each status.
    Best wishes
    Michael

  • If we use DML statement in function then that function can be used inside s

    if we use DML statement in function then that function can be used inside select query or any DML query?

    select f from t2;I think you meant to query t1.
    It works if the function is an autonomous transaction:
    create or replace function f return number
    is
    PRAGMA AUTONOMOUS_TRANSACTION;
    begin
        update t1 set c=2;
        commit;
        return 1;
    end;
    select f from t1But as Billy said why would you want to do DML this way. And this is not the way autonomous procedures should be used either.
    An an answer to an interview question though nothing wrong with it.

  • Using SEARCH HELP exit in dependency of other parameters from my dynpro.

    Hello experts,
    how can I access the values of input fields (parameters or select-options) from my dynpro?
    I need to build a F4-help in dependencie of another field on the screen with help of the F4 - exit. I think this should be possible.
    If I do test the search help with SE11 it works fine. All parameters from screen are given in SHLP_TAB[1]-INTERFACE (the parameter of my f4-help-exit)
    The short example explains the problem more detailed.
    REPORT  test_dynpro_events_ck.
    PARAMETERS ea1 TYPE my_char_10_ck DEFAULT 'here I push F4' MATCHCODE OBJECT MY_F4_HELP_CK.
    PARAMETERS ea2 TYPE my_char_10_ck DEFAULT 'this is the value I need to generate the F4 help of field ea1'.
    MY_F4_HELP_CK:
    import: EA1 and EA2
    export EA1
    Many Thanks
    Christian

    Thank you so far.
    But how are these parameters passed to the search help without using global set/get parameters or DYNPRO_READ_VALUE? Why can I put these parameters to my search help as input parameters ... seems to be useless if I use search help on Selection-Dynpros?
    Is there not a better way to deal with search-helps which are dependent from other input fields? Btw. I need the value without passing PAI and PBO.
    In my Example:
    doing some text inputs in field EA2 -> hit search help on EA1 -> need a selection dialog in dependency of the input in EA2. This can not be that complicated?
    Many thanks
    Christian

  • Only Using Search Help Value When Entry Value

    Hi Experts,
    I'm using search help at my screen field for entry value. But I dont want to entry value with using hand/finger/manuel.
    I want to use only search help at my field.
    Is this possible?
    Best regards.

    Thanks All for answers.
    I mixed your solution and I find new way for my issue.
    I did like this.
    I added Input/Output Field at screen and I did input properties false.
    And I added button near the I/O Field.
    I wrote at PAI - User_Command for button on click.
    May there is different way but so my solution.
    My draft code below.
        WHEN '&BTN_PREPARE'.
       DATA : BEGIN OF ITAB OCCURS 0,
          KTANIM TYPE CHAR9,
          IPTPKOD LIKE ZKZN_004-IPTPKOD,
          KYPTYPEID LIKE ZKZN_004-KYPTYPEID,
          FIILOLS LIKE ZKZN_004-FIILOLS,
    END OF ITAB.
          CLEAR : ITAB.
          REFRESH : ITAB.
          SELECT IPTPKOD KYPTYPEID FIILOLS
          INTO CORRESPONDING FIELDS OF TABLE ITAB
          FROM ZKZN_004
          WHERE SILINDI = ''.
          LOOP AT ITAB.
            CONCATENATE ITAB-IPTPKOD ITAB-KYPTYPEID
            INTO ITAB-KTANIM SEPARATED BY SPACE.
            CONCATENATE ITAB-KTANIM ITAB-FIILOLS
            INTO ITAB-KTANIM.
            MODIFY ITAB.
          ENDLOOP.
          DATA : DFIES LIKE DFIES OCCURS 0 WITH HEADER LINE,
                 DDSHRETVAL LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE,
                 DSELC LIKE DSELC OCCURS 0 WITH HEADER LINE.
          CLEAR   : DFIES, DDSHRETVAL, DSELC.
          REFRESH : DFIES, DDSHRETVAL, DSELC.
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
              RETFIELD        = 'KTANIM'
              VALUE_ORG       = 'S'
            TABLES
              VALUE_TAB      = ITAB
              FIELD_TAB         = DFIES
              RETURN_TAB      = DDSHRETVAL
              DYNPFLD_MAPPING = DSELC.
          BREAK MELIHM.
          READ TABLE DDSHRETVAL INDEX 1.
          IF SY-SUBRC = 0.
            ZKZN_DATA01_S01-IPRJSCR01 = DDSHRETVAL-FIELDVAL.
          ENDIF.

  • Is there any practical reason to use DB helper class?

    Is there any practical reason to use database helper class ( e.g. database.bookDB in Duke's bookstore)in servlet design? What if I setup a DB connection for every servlet?

    to ken_robinson
    I am currently setup DataSurece in servlet init().Usually (I know WebLogic is this way), if you configure the DataSource through the app server's configuration app, it is available to all applications.
    The most efficient way to look up the DataSource in a particular app is have a ServletContextListener lookup the DataSource from JNDI and set it in the Context as an Attribute. Each servlet would then, in it's init() method, get the DataSource from the ServletContext (faster than using JNDI for each Servlet. The ServletContextListener requires the container you are running in support the 2.3 spec. If it does not, simply use a startup servlet (servlet that is loaded when the app is loaded) and do the same thing.

  • Are there any libraries can be used to generate Type 1 font postscript file

    I am trying to create a Type 1 font postscript file. But I found it is hard to find the library to generate the Type 1 font postscript file. I just found a library named iText which can create the Type 1 font PDF file.
    Are there any libraries can be used to generate Type 1 font postscript file?
    Thanks!

    I don't see much benefit with the current ODI adaptors for planning if it is an EPMA type planning application.
    They have been specifically designed to work with classic planning applications.
    It certainly is possible to load into EPMA interface tables using ODI though there are no direct adaptors and it takes quite a bit of effect to get them into the correct format.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • SRM 7.0 Ship-to address by using search-help(F4).

    Hi,
    My problem -
    Create or change Ship-to address by using search-help(F4). After selection, new/changed address is not refreshed in detail screen of Ship-to adress. Default Ship-to address is displayed.
    I have looked at the SAP NOTE -1148246 which is the exact problem i have but the note is for older release and the changes mentioned in this SAP Note are done in my system.
    Thank you.
    Regards,
    Kailash.

    Hi
    did you crreate a new ship to address? or change the contact details of ship to address ?
    if you changed the ship to address . you must get updated address when you search.
    if you created new ship to address , you must get new ship to address when you search it.
    how did you change the ship to address ? - internal address?
    Muthu

  • Search help exclude values

    Hi
    I have created a search help with selection method --> MCHB. One of the fields i use is CLABS. Do you know how to exclude the zero values of this field. Is there any trick ( i suppose the search help exit) to write code in this. Any ideas?

    Hi Antonis,
    In SE11 you can create a Help View with filter, and then use it as your selection method
    regards,
    Paulo

  • Generic problem for search help without values

    Hi,
    Always I open a search help without values I get the warning popup "No values found" but after this no link let me come back to the previous screen.
    Does anybody know how I can solve this (in a standard way)
    thanks
    regards

    Hi
    It seems to be a bug in the system.
    <b>Please have a look at the following SAP OSS Notes -></b>
    <u>Note 574604 - Various correction reports for EBP business partner
    Note 1028643 - Input help for contact persons in purchase order
    Note 843008 - EBP4.0 and higher: Terms of Payment, Texts and codes
    526416 Structural enhancements LFA1
    698246 EBP 4.0 address maintenance: Default address for address use
    701321 EBP 3.5 address maintenance: Default address for address use
    701323 EBP 3.0 address maintenance: Default address for address use
    701384 BBP 2.0C address maintenance:Default address for address use
    690619 Plants are not transferred during location replication
    641960 New processing of terms of payment in EBP 3.5
    628386 Incorrect link for EBP for 'External business partners'
    Note 544392 Error in search helps EBP 2.0
    Note 544816 Error in search helps EBP 3.5
    Note 544713 Error in search helps EBP 3.0</u>
    Please raise a customer OSS message with SAP as well.
    Regards
    - Atul

Maybe you are looking for

  • MSI Big Bang-XPower New Build Compatibility Questons

    I am doing my first build, and do not see several components I have selected (some already purchased) for my new system in the MSI compatibility literature for the Motherboard.  Can someone please advise if any of the below components will cause issu

  • MSI X48C Platinum Windows boot problem

    Hi, I tested the MSI X48c Platinum motherboard with windows xp Pro 64 bit, Windows 7 RC1 and Windows 7 Retail, all of them share the same problem so it has to be caused by hardware. When I boot up at the logo of windows it freezes, when I reboot and

  • Changing Date Time Original Tag from Date Created Tag

    Hi, I need to change programmatically the "Date Time Orignal" tag by copying the "Date Created" Tag so that Media Encoder preserves the date during encoding. I can do this by hand without a problem in Bridget 5.5 but would like to automate it. Can I

  • Real Time Application Clusters in Oracle 9i

    want to know what exactly the Real Application Clusters In oracle9i

  • Can't run Xbox live and computer at the same time

    I purchased a E3000 router for Christmas so we can run our new laptop, desktop, son's ipod, and the xbox live. At first, the only problem we had was that if a video or large page was downloading on the internet, xbox live would glinch and run very sl