‎2007 Jun 14 1:29 PM
Hi SDN friends,
I'm Using LDB, and I need to modify my Selection Screen.
I Need to exclude a button, and that is properly done.
I Need to make some criterias invisible and that is ok too.
Finally I need to make some other selection criterias visible.
And using the same logic to make some invisible, I could
do that too.
But I have a problem... Those selection elements comes blank.
This the crucial part of the coding.
----
AT SELECTION-SCREEN OUTPUT.
----
DATA : itab TYPE TABLE OF sy-ucomm.
APPEND: 'FC03' TO itab.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = itab.
BREAK-POINT.
LOOP AT SCREEN.
IF screen-name = 'CN_STUFE-LOW' OR
screen-name = 'CN_STUFE-HIGH' OR
screen-name = '%_CN_STUFE_%_APP_%-TEXT' OR
screen-name = '%_CN_STUFE_%_APP_%-OPTI_PUSH' OR
screen-name = 'CN_MATNR-LOW' OR
screen-name = 'CN_MATNR-HIGH' OR
screen-name = '%_CN_MATNR_%_APP_%-TEXT' OR
screen-name = '%_CN_MATNR_%_APP_%-VALU_PUSH'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
The Elements below comes without selection text....
IF screen-name = 'CN_AKTDT' OR
screen-name = 'CN_VERDT' OR
screen-name = 'CN_VSEL1' OR
screen-name = 'CN_VSEL2' OR
screen-name = 'CN_VSNMR-LOW' OR
screen-name = '%_CN_VSNMR_%_APP_%-TEXT' OR
screen-name = '%_CN_VSNMR_%_APP_%-VALU_PUSH'.
screen-active = 1.
screen-invisible = 0.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
END-OF-SELECTION.
‎2007 Jun 14 1:41 PM
hi
try
<b>screen-required = '1'.</b>
regards
ravish
<i><b>plz dont forget to reward points if helpful</b></i>
‎2007 Jun 14 1:48 PM
Thx, but still doesnt work.
<a href="http://xs116.xs.to/xs116/07244/ldbss.JPG">Click Here and Check my Problem.</a>
‎2007 Jun 14 2:03 PM
You need to expand your IF statement to include the screen fields for each of the text elements ie
%_S_LGART_%_APP_%-TEXT
* The Elements below comes without selection text....
IF screen-name = 'CN_AKTDT' OR
screen-name = 'CN_VERDT' OR
screen-name = 'CN_VSEL1' OR
screen-name = 'CN_VSEL2' OR
screen-name = 'CN_VSNMR-LOW' OR
screen-name = '%_CN_VSNMR_%_APP_%-TEXT' OR
screen-name = '%CN_AKTDT_%_APP_%-TEXT' OR
screen-name = '%CN_VERDT_%_APP_%-TEXT' OR
screen-name = '%CN_VSEL1_%_APP_%-TEXT' OR
screen-name = '%CN_VSEL2_%_APP_%-TEXT' OR
screen-name = '%_CN_VSNMR_%_APP_%-TEXT' OR
screen-name = '%_CN_VSNMR_%_APP_%-VALU_PUSH'.
screen-active = 1.
screen-invisible = 0.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
~Suresh
‎2007 Jun 14 3:29 PM
Thx, Suresh.
My problem is almost solved.
I'm having dificulties with the frame text. Still in blank. Anyone can help solve this last one?
Oh... And I need to insert the icon in the %_CN_VSNMR_%_APP_%-VALU_PUSH.
Message was edited by:
Jose Oliveira
‎2007 Jun 14 7:48 PM
Ok... Icon on the select-options Button problem solved.
Check the code below.
Just need to put both input and output on. (Value = 1)
IF screen-name = '%_CN_VSNMR_%_APP_%-VALU_PUSH' .
screen-active = 1.
screen-invisible = 0.
screen-output = 1.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
But Still having problem with the frame.
The Frame Name is SV_TITLE.
I already tried all combination of screen-invisible, active, input and output.
Anyone have the same problem before?