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

Show data in a selection-screen comment

Former Member
0 Likes
649

Hello.

I want to do this...

I have a selection-options or a parameter like table-field.

And i want to choose a value from de match code of the parameter.

When i select it then i want to reflect the data of any other field of the selected record

in a selection-screen comment.

for example.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(25) FOR FIELD s_padest.

SELECT-OPTIONS s_padest FOR tsp03l-padest NO INTERVALS NO-EXTENSION .

SELECTION-SCREEN COMMENT 38(79) pad_tx. " -


>>> here i want to reflect the information in execution time

SELECTION-SCREEN END OF LINE.

When I select the id (for example) in the matchcode of the tsp031 table... then i want a description of the thing that i has selected printed in the selection-screen comment in execution time.

someone can give me a help ?

thanks you

Hello.

I want to do this...

I have a selection-options or a parameter like table-field.

And i want to choose a value from de match code of the parameter.

When i select it then i want to reflect the data of any other field of the selected record

in a selection-screen comment.

for example.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(25) FOR FIELD s_padest.

SELECT-OPTIONS s_padest FOR tsp03l-padest NO INTERVALS NO-EXTENSION .

SELECTION-SCREEN COMMENT 38(79) pad_tx. " -


>>> here i want to reflect the information in execution time

SELECTION-SCREEN END OF LINE.

When I select the id (for example) in the matchcode of the tsp031 table... then i want a description of the thing that i has selected printed in the selection-screen comment in execution time.

someone can give me a help ?

thanks you

3 REPLIES 3
Read only

Former Member
0 Likes
589

use at selection screen event

Read only

Former Member
0 Likes
589

Hi,

Use the following way,that will solve your probelm.

At selection-screen output.

SELECTION-SCREEN COMMENT 38(79) pad_tx.

SELECTION-SCREEN END OF LINE.

Hope it is helps.

Regards,

T.D.M.

Read only

Former Member
0 Likes
589

Hi Pablo,

Try this out...

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(25) FOR FIELD s_padest.

SELECT-OPTIONS s_padest FOR tsp03l-padest NO INTERVALS NO-EXTENSION .

SELECTION-SCREEN COMMENT 38(79) pad_tx. " -


>>> here i want to reflect the information in execution time

SELECTION-SCREEN END OF LINE.

At selection-screen output.

  • Display the description

IF s_padest IS NOT INITIAL.

Write select query n get the description from the table tsp03l

IF sy-subrc <> 0.

LOOP AT SCREEN.

IF screen-name = 'PAD_TX' OR

screen-name = '%_PAD_TX_%_APP_%-TEXT'.

screen-active = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ELSE.

LOOP AT SCREEN.

IF screen-name = 'PAD_TX' OR

screen-name = '%_PAD_TX_%_APP_%-TEXT'.

screen-input = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

ELSE.

ENDIF.

Regards

Mamtha