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


I'm using RS_SELECTIONSCREEN_UPDATE to refresh the selection screen after an "ON F4" event but some of the fields on the screen are getting truncated because the field RSSELREAD-FIELDVALUE is only 45 char long.

Does anybody know of an alternate way of refreshing the selection screen after an F4?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 04, 2005 at 03:48 PM

    Check this sample.

    report zrich_0002 .
    parameters: p_bukrs(4) type c,
                p_butxt(50) type c.
    data: dynfields type table of dynpread with header line.
    data: return type table of ddshretval with header line.
    at selection-screen on value-request for p_bukrs.
      call function 'F4IF_FIELD_VALUE_REQUEST'
                tabname           = 'T001'
                fieldname         = 'BUKRS'
                dynpprog          = sy-cprog
                dynpnr            = sy-dynnr
                dynprofield       = 'P_BUKRS'
                return_tab        = return
                field_not_found   = 1
                no_help_for_field = 2
                inconsistent_help = 3
                no_values_found   = 4
                others            = 5.
      read table return with key fieldname = 'P_BUKRS'.
    * Add it back to the dynpro.
      dynfields-fieldname = return-retfield.
      dynfields-fieldvalue =  return-fieldval.
      append dynfields.
    * Get the company code from db and add to dynpro
      dynfields-fieldname = 'P_BUTXT'.
      select single butxt into dynfields-fieldvalue
              from t001
                    where bukrs = return-fieldval.
      append dynfields.
    * Update the dynpro values.
      call function 'DYNP_VALUES_UPDATE'
                dyname     = sy-cprog
                dynumb     = sy-dynnr
                dynpfields = dynfields
                others     = 8.


    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2005 at 04:13 PM

    Hello Tom,

    I do not quite get why you want to refresh the screen after F4. When you hit the F4 button the event AT SELECTION-SCREEN on VALUE REQUEST will get triggerred. And inside that event you can write the code necessary to fetch the appropriate value for the screen field.

    Are you already doing this ? If yes, is there something that's going wrong ?


    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

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.