Skip to Content
0

Cannot select values of Search Help in Dynpro

Jan 24, 2017 at 01:48 AM

44

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Ajeet Kumar Jan 24, 2017 at 05:11 AM
0

Hi Marwan,

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

Regards

Ajeet


f4if.jpg (25.2 kB)
Share
10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi
Jan 24, 2017 at 06:46 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Sandra Rossi Jan 24, 2017 at 08:16 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded