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

LDB Selection Screen Modify

Former Member
0 Likes
742

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.

5 REPLIES 5
Read only

Former Member
0 Likes
679

hi

try

<b>screen-required = '1'.</b>

regards

ravish

<i><b>plz dont forget to reward points if helpful</b></i>

Read only

Former Member
0 Likes
679

Thx, but still doesnt work.

<a href="http://xs116.xs.to/xs116/07244/ldbss.JPG">Click Here and Check my Problem.</a>

Read only

0 Likes
679

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

Read only

Former Member
0 Likes
679

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

Read only

Former Member
0 Likes
679

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?