Skip to Content
author's profile photo Former Member
Former Member

search help

hi frnds,

in my prg., i am using a ztable which has 2 fields.. which does not have any search help.. now i should display the 2 fields in the table control.. first of all the field1 should be made as f4 help... depending on the value selected the next field should be retrieved from the database. i am not gettig correctly how to do the same. plz help me in this regard....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 01:02 PM

    hi,

    using

    CALL FUNCTION 'DYNP_GET_STEPL'

    IMPORTING

    POVSTEPL = L_xxx

    EXCEPTIONS

    STEPL_NOT_FOUND = 1

    OTHERS = 2.

    using the above fm you can get current line of the table control

    CALL FUNCTION 'DYNP_VALUES_READ'

    EXPORTING

    dyname = dyname

    dynumb = dynumb

    TABLES

    dynpfields = dynpfields.

    to get the dynamic value from the screen

    then use F4IF_FIELD_VALUE_REQUEST to popup the f4 help

    cheers,

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi,

      you want to populate the help in the field2 as per in the field1 values...both of them in the table control

      field1 & field2

      could u find any values in the field1. else try with this

      in the module

      call function 'DYNP_GET_STEPL' (current line ofthe table)

      importing

      povstepl = g_stepl

      exceptions

      others = 0.

      then use FM

      CALL FUNCTION 'DYNP_VALUES_READ'

      EXPORTING

      DYNAME = DYNAME

      DYNUMB = DYNUMB

      TABLES

      DYNPFIELDS = DYNPFIELDS.

      normally we can get the field values at PAI event, if want to get the values in POV we go for the above function module

      then use FM

      F4IF_INT_TABLE_VALUE_REQUEST and fill one more paramenter stepl in the function module

      STEPL = g_stepl

      cheers,

      sasi

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 12:54 PM

    Hi,

    STEPS FOR CREATING A SEARCH HELPS

    STEP 1: GOTO SE11

    STEP 2: SELECT SEARCH HELP AND GIVE A NAME

    STEP 3: PRESS CREATE

    STEP 4: GIVE SHORT DESCRIPTION

    STEP 5: IN SELECTION METHOD SELECT ANY OF THE FOLLOWING

    SELECT FOR DATABASE TABLES

    SELECT FOR VIEWS

    STEP 6: GIVE THE NAME OF THE TABLE OR THE NAME OF THE VIEW

    STEP 7: IN THE SELECTION PARAMETER PRESS F4

    STEP 8: SELECT THE FIELDS TO WHICH THE SEARCH HELP SHOULD BE ADDED

    STEP 9: SAVE AND ACTIVATE.

    Hope it helps u.

    Thanks&Regards,

    Ruthra.R

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 12:56 PM

    Hi,

    do you mean a standard dynpro table or an alv grid control?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 01:19 PM

    Hi Ateeq,

    This is the Search Help Process(F4) for a Particular Field.

    Go to SE11.

    Select Search Help Radio button : Any name with Z or Y.

    Create.

    Short Description : Any.

    Selection Method : Table Name.

    Dialog Type : Display Values immediately.

    Search Help Parameter : Field Name (for which field ur doing in the table).

    Exp : Tick it.

    Lpos : 1 Just giving the position.

    SAVE CHECK ACTIVATE.

    Next Assign the Search Help to the table or field.

    SE11.

    Your Table Name : Change.

    Search Help Button above the fields.

    Search Help name : Your search help name.

    Copy.

    SAVE CHECK ACTIVATE.

    Now go and check to the field by F4.

    Thats it.

    hope this helps you.

    reward points for helpfull answers.

    regards,

    venu.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 04:38 AM

    Process on value request should be outside loop .

    Try this on screen

    <b>PROCESS AFTER INPUT.

    process on value-request.

    FIELD it_1001-freqtyp MODULE freqtyp_data.</b>( just remove the loop, it shd work ).

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I had given the label name freqtype and freqdesc in the table control. now, when i am activating it is giving a error like 'freqtype not assigned to a loop..endloop must appear in pbo and pai'.

      whr could be the error have occured

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.