2008 Aug 05 10:51 PM
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
2008 Aug 06 5:33 AM
2008 Aug 06 5:41 AM
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.
2008 Aug 06 8:21 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |