cancel
Showing results for 
Search instead for 
Did you mean: 

Selection-Screen

Former Member
0 Kudos

Hi all,

Advanced thanks to your reply

In my selection-screen 2 block

selection-screen: begin of block sel with frame title text-sel.

PARAMETERS : P_MATNR LIKE MARA-MATNR.

selection-screen: end of block sel.

selection-screen: begin of block sel1 with frame title text-sec.

PARAMETERS : P_ATNAM LIKE CABN-ATNAM.

PARAMETERS : P_ATWRT LIKE AUSP-ATWRT.

PARAMETERS : P_ATINNR LIKE CABNT-ATINN DEFAULT 'XX_REGION'.

PARAMETERS : P_ATINNL LIKE CABNT-ATINN DEFAULT 'XX_LANG'.

selection-screen: end of block sel1.

my requirement is

execute my report i want see 1 block, the user enter value in this block then display 2 block ,

plz guide me, how to code for it

i look forward to your reply

Thanks

SEK

View Entire Topic
Former Member
0 Kudos

Hi raja

Use

at selection-screen on Block blockname

also u need to use check buttons

see this code

PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

PARAMETERS: p1(10) TYPE c,

p2(10) TYPE c,

p3(10) TYPE c.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.

PARAMETERS: p4(10) TYPE c MODIF ID bl2,

p5(10) TYPE c MODIF ID bl2,

p6(10) TYPE c MODIF ID bl2.

SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF show_all <> 'X' AND

screen-group1 = 'BL2'.

screen-active = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

VijayasekarK
Active Participant
0 Kudos

Hi ,

As said by vijayasarathy using "AT SELECTION-SCREEN OUTPUT" event is the best and only way to handle your requirement.

Regards,

Vijay

Former Member
0 Kudos

Hi,

Thank u very much for your reply

initially i want display

selection-screen: begin of block sel with frame title text-sel.

PARAMETERS : P_MATNR LIKE MARA-MATNR MODIF ID BL1.

selection-screen: end of block sel.

user enter values in this P_MATNR then press enter

then disply

selection-screen: begin of block sel1 with frame title text-sec.

PARAMETERS : P_ATNAM LIKE CABN-ATNAM MODIF ID BL2 .

PARAMETERS : P_ATWRT LIKE AUSP-ATWRT MODIF ID BL2.

PARAMETERS : P_ATINNR LIKE CABNT-ATINN DEFAULT 'XX_REGION' MODIF ID BL2.

PARAMETERS : P_ATINNL LIKE CABNT-ATINN DEFAULT 'XX_LANG' MODIF ID BL2.

selection-screen: end of block sel1.

i don't want put any check box in this selection screen

plz guide me, how to code for it or send sample code

i look forward to your reply

Thanks

SEK

Former Member
0 Kudos

Hi again,

1. just copy paste this code

(Same parmeters/block as yours)

It works fantastic.

2.

REPORT abc.

*----


SELECTION-SCREEN: BEGIN OF BLOCK sel WITH FRAME TITLE text-sel.

PARAMETERS : p_matnr LIKE mara-matnr MODIF ID bl1.

SELECTION-SCREEN: END OF BLOCK sel.

SELECTION-SCREEN: BEGIN OF BLOCK sel1 WITH FRAME TITLE text-sec.

PARAMETERS : p_atnam LIKE cabn-atnam MODIF ID bl2 .

PARAMETERS : p_atwrt LIKE ausp-atwrt MODIF ID bl2.

PARAMETERS : p_atinnr LIKE cabnt-atinn DEFAULT 'XX_REGION' MODIF ID bl2.

PARAMETERS : p_atinnl LIKE cabnt-atinn DEFAULT 'XX_LANG' MODIF ID bl2.

SELECTION-SCREEN: end of block sel1.

data : entry type i.

DATA : inv TYPE i.

*----


AT SELECTION-SCREEN OUTPUT.

*------ check entry

IF p_matnr IS INITIAL.

entry = 1.

inv = 0.

ELSE.

entry = 0.

inv = 1.

ENDIF.

*----


show / hide

LOOP AT SCREEN.

WRITE : screen-name , screen-group1.

IF screen-group1 = 'BL2'.

screen-invisible = entry.

screen-input = inv.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

regards,

amit m.

Former Member
0 Kudos

just paste amits code , it working fine