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

i have problems with STC1_FULLSCREEN_TABLE_CONTROL

Former Member
0 Likes
345

somebody has used this function?

my problem is that i cannot display header names when i use the function.

tx

a

CALL FUNCTION 'STC1_FULLSCREEN_TABLE_CONTROL'

EXPORTING

HEADER = p_table

tabname = p_table

display_only = p_displ

endless = 'X'

no_button = space

IMPORTING

okcode = w_okcode

TABLES

nametab = it_dfies

TABLE = <itab>

fielddif = it_fdiff

modif_table = <ntab>

EXCEPTIONS

OTHERS = 1.

all parameters are filled when i call the function

a

1 REPLY 1
Read only

Former Member
0 Likes
263

Hello Alvaro

Try to put the following code before calling the fnuction.

loop at IT_DFIES into is_dfies.
    if is_dfies-reptext is initial.
      select single scrtext_s into is_dfies-reptext from ddftx where tabname = is_dfies-tabname
                                                                 and fieldname = is_dfies-fieldname
                                                                 and ddlanguage = sy-langu.
      IF sy-subrc = 0 and is_dfies-reptext is initial.
        select single scrtext_m into is_dfies-reptext from ddftx where tabname = is_dfies-tabname
                                                                   and fieldname = is_dfies-fieldname
                                                                   and ddlanguage = sy-langu.
        IF sy-subrc = 0 and is_dfies-reptext is initial.
          select single scrtext_l into is_dfies-reptext from ddftx where tabname = is_dfies-tabname
                                                                     and fieldname = is_dfies-fieldname
                                                                     and ddlanguage = sy-langu.
        endif.
      endif.
      If is_dfies-reptext is initial.
        select single fieldtext into is_dfies-reptext from ddftx where tabname = is_dfies-tabname
                                                                   and fieldname = is_dfies-fieldname
                                                                   and ddlanguage = sy-langu.
      ENDIF.
      If is_dfies-reptext is initial.
        is_dfies-reptext = is_dfies-fieldname.
      ENDIF.
      modify it_dfies from is_dfies .
    endif.
  endloop.

Regards

dstj