Skip to Content

Cannot select values of Search Help in Dynpro

Peace be upon you all,

I'm trying to use search help in Dialog Programming (Dynpro)

The search help should display values according to another field

When I tried doing this using the following code

process on value-request.
  field WA_TAB-PI  module F4_HELP_PI.

**************************************

module F4_HELP_PI input.

  select VBELN
    from VBRK
    into corresponding fields of table IT_PI
    where FKART = WA_TAB-FKART.

  sort IT_PI.
  delete adjacent duplicates from IT_PI.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      RETFIELD    = 'VBELN'
      DYNPPROG    = SY-REPID
      DYNPNR      = SY-DYNNR
      DYNPROFIELD = 'WA_TAB-PI'
      VALUE_ORG   = 'S'
    tables
      VALUE_TAB   = IT_PI.

endmodule.                 " F4_HELP_PI  INPUT


<br>
<br>

The problem was that I have to press enter

as the screen doesn't refresh

and the value I enter appears blank in the debugger

So,

I thought of creating a button, giving it FCode, and doing this through the normal SY-UCOMM

However, as I used almost the same code (only changed Module to Form)

The Search Help Popup appears but I cannot choose anything (even double click)!

As per the attached photo

f4.png (15.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 24, 2017 at 05:11 AM

    Hi Marwan,

    You need to pass( Display = 'F') exporting parameter in exporting of FM 'F4IF_INT_TABLE_VALUE_REQUEST'.

    Regards

    Ajeet

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 24, 2017 at 06:46 AM

    Move sy-repid and sy-dynnr to local variable and use those in the call or use parameter return_tab and move the first selected value in the field.

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 24, 2017 at 08:16 AM

    I guess the "select" button is grayed out because the dynpro field "WA_TAB-PI" is not declared like VBRK-VBELN.

    Add comment
    10|10000 characters needed characters exceeded