Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

in reports

Former Member
0 Likes
458

hi

in reports , i am providing F4 help for a field, for that i used the function module

'popup-with-table-display'.but when i press F4 on that filed it is showing the popup window with 10 records with '00' . when i choose one it is copying to that field correctly. But in the display i am not getting the entire field value. it is showing only '00' s.

what would be the reason?

hi

in reports , i am providing F4 help for a field, for that i used the function module

'popup-with-table-display'.but when i press F4 on that filed it is showing the popup window with 10 records with '00' . when i choose one it is copying to that field correctly. But in the display i am not getting the entire field value. it is showing only '00' s.

what would be the reason?

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
441

You can create search help in 2 ways:::

1) Goto SE11 and create search help with any name ZSRCHELP.

For reference u can see some standard search help like H_T530E for field PREAS in table PA0002.

Now go to SE11 in table ZTSH, u can find the tab for search help, select your field TSMONTH, and click on search help tab and give the name of search help u created.

Now activate it.

Now u goto ur report u will find search help will be shown for that parameter.

2)See the report below

TABLES: mara, makt.

DATA mat LIKE mara-matnr.

DATA: BEGIN OF itab OCCURS 0,

matnr LIKE mara-matnr,

END OF itab.

DATA : BEGIN OF btab OCCURS 0,

maktx LIKE makt-maktx,

END OF btab.

DATA : return LIKE ddshretval OCCURS 0 WITH HEADER LINE.

SELECT-OPTIONS: so_matnr FOR mara-matnr,

so_maktx FOR makt-maktx.

INITIALIZATION.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_matnr-low.

PERFORM matnr.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_matnr-high.

PERFORM matnr.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_maktx-low.

PERFORM maktx.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_maktx-high.

PERFORM maktx.

&----


*& Form matnr

&----


  • text

-


FORM matnr.

REFRESH itab.

SELECT matnr FROM mara INTO TABLE itab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'MATNR '

dynprofield = 'P_MATNR '

dynpprog = sy-repid

dynpnr = sy-dynnr

value_org = 'S'

TABLES

value_tab = itab

return_tab = return.

mat = return-fieldval.

UNPACK mat TO mat.

so_matnr = return-fieldval.

REFRESH return.

CLEAR return.

ENDFORM. "matnr

&----


*& Form maktx

&----


  • text

-


FORM maktx.

REFRESH btab.

SELECT maktx FROM makt INTO TABLE btab WHERE matnr = mat AND spras =

sy-langu.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'MAKTX'

dynprofield = 'SO_MAKTX '

dynpprog = sy-repid

dynpnr = sy-dynnr

value_org = 'S'

TABLES

value_tab = btab

return_tab = return.

so_maktx = return-fieldval.

REFRESH return.

CLEAR return.

ENDFORM. "maktx

Read only

Former Member
0 Likes
441

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PSFILE.

Reward if useful

Narendra