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

customizing selection screen display

Former Member
0 Likes
2,315

hey,

i am defining selection screens..i want to control the screen size, as it is going beyond my screen limits. also i want to customize the field names..or e.g. if i choose kna1-kunnr, kunnr is displayed, insetad i want "customer number" to be displayed. how to handle all these ?

thks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,463

>

> hey,

>

> i am defining selection screens..i want to control the screen size, as it is going beyond my screen limits. also i want to customize the field names..or e.g. if i choose kna1-kunnr, kunnr is displayed, insetad i want "customer number" to be displayed. how to handle all these ?

>

> thks

You can Maintain the Text elements for Selection screen elements.

From Menu->Text Elements -> Selection texts

You can maintain the text for respective element.

Screen Limit , if the screen contains more elements you cannot control directly.

you can use varaints Option , there you can hide some unwanted fields, It depends on user , according to user requirement you can create the variants and hide some of the elements.

7 REPLIES 7
Read only

Former Member
0 Likes
1,464

>

> hey,

>

> i am defining selection screens..i want to control the screen size, as it is going beyond my screen limits. also i want to customize the field names..or e.g. if i choose kna1-kunnr, kunnr is displayed, insetad i want "customer number" to be displayed. how to handle all these ?

>

> thks

You can Maintain the Text elements for Selection screen elements.

From Menu->Text Elements -> Selection texts

You can maintain the text for respective element.

Screen Limit , if the screen contains more elements you cannot control directly.

you can use varaints Option , there you can hide some unwanted fields, It depends on user , according to user requirement you can create the variants and hide some of the elements.

Read only

0 Likes
1,463

Thanks Vijay, I am ok with selection texts.

regarding the screen limit, what i mean was that my block size of the selection screen was extending to the right beyond my main screen limit's right end. r u able to follow me ?

is there any way to control the block size in the statement

selection-screen begin of block b1 with frame title text-001.

thks

Read only

0 Likes
1,463

Also as i asked in my last post, how to associate my own POV request to these selection options ??

for e.g. in my selection screen, i have defined in the main program as follows:

select-options: VSTEL for ZXXX-VSTEL,

Now when user chooses F4 I want the values from my Z table to appear here. Earlier I had written as follows in main screen:

-


PROCESS ON VALUE-REQUEST.

FIELD VSTEL MODULE SHIPPOINT.

MODULE SHIPPOINT INPUT.

SELECT DISTINCT VSTEL INTO L_VSTEL FROM ZXXX.

WA_ITABSP-VSTEL = L_VSTEL.

APPEND WA_ITABSP TO I_TABSP.

ENDSELECT.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'VSTEL'

dynpprog = sy-repid

dynpnr = SY-DYNNR

dynprofield = 'VSTEL'

value_org = 'S'

TABLES

value_tab = i_tabSP.

ENDMODULE.

-


Now since we r using selection screen, how adnd where to associate this POV ?? thks

Read only

0 Likes
1,463

For this also you have to use the POV.

For subscreen how you will handle ?

you will handle the actions in the mail screen where you call the subscreen.

Which method you are following ...?

in which casse Block size is exceeding, is it behaving different from normal case .

Read only

0 Likes
1,463

I appreciate ur patience and help, Vijay. thanks.

Let me tell u the steps of my design.

1) Program SAPMZXXX.

here i wrIte the selection screen design statements as follows:

selection-screen begin of screen 0101 as subscreen.

selection-screen begin of block b1.

select-options: S_VSTEL for ZXXX-VSTEL,

S_KUNNR for ZXXXX-KUNNR,

selection-screen end of block b1.

selection-screen end of screen 0101.

start-of-selection.

2) Same program, screen 100. I design it with a subscreen area. In it's PBO, I write

call subscreen SUBSCR including SY-REPID v_dynnr.

where v_dynnr is set to 0101.

My subscreen is displayed with selection options, no issues ..

Now where do I write my POV ??

I tried in screen 100, as follows

PROCESS ON VALUE-REQUEST.

FIELD S_KUNNR MODULE SHIPTO.

it says there is no input/output field as S_KUNNR !! syntax error during screen generation at the above line

FIELD S_KUNNR MODULE SHIPTO...

Can you please tell me the exact location where i need to add this code ? or anyother way to handle this ?

thanks

Read only

Former Member
0 Likes
1,463

Hi Friend this is very simple to control the selection screens.

First on the menu bar

GO TO

SELECTION TEXT

input the text save and activate

and come back to report editor se38..

again save and activate then execute F8

Read only

Former Member
0 Likes
1,463

Check the Below code.

Report  ZTEST_MOD.

data: kunnr(10).

* Custom Selection Screen 0200
selection-screen begin of screen 0200 as subscreen.
select-options: s_kunnr for  kunnr.
selection-screen end of screen 0200.

at selection-screen on value-request for s_kunnr-low.
break-point.

start-of-selection.
call screen 100.

*&---------------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
module status_0100 output.
   SET PF-STATUS 'STATUS'.
endmodule.
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------*
module user_command_0100 input.

endmodule.

Flow Logic

PROCESS BEFORE OUTPUT.
*
  MODULE status_0100.
*
  CALL SUBSCREEN sub INCLUDING sy-repid '0200'.
*
PROCESS AFTER INPUT.
*
  MODULE user_command_0100

We have to do the normal report event

at selection-screen on value-request

Regards

Vijay babu Dudla