Application Development 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: 

output field only

Former Member
0 Kudos

hi all.

Please look at this code, am using this to make my filed output only.. But its not working properly. Please let me know what is wrong in this code.

parameter: p_parm1(2) default 'MY'.

at selection-screen output.

loop at screen.

if screen-name = 'P_PARM1'.

screen-output = 1.

modify screen.

exit.

endif.

endloop.

Regards

Prajwal.K

1 ACCEPTED SOLUTION

former_member188827
Active Contributor
0 Kudos

parameter: p_parm1(2) default 'MY'.

at selection-screen output.

loop at screen.

if screen-name = 'P_PARM1'.

<b>screen-input = 0.</b>

modify screen.

exit.

endif.

endloop.

plz reward ppoints if dis helps

3 REPLIES 3

former_member386202
Active Contributor
0 Kudos

Hi,

Refer this code

----


  • PARAMETERS & SELECT-OPTIONS *

----


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-011.

PARAMETERS : p_pay1 RADIOBUTTON GROUP grp USER-COMMAND fc DEFAULT 'X',

p_pay2 RADIOBUTTON GROUP grp.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.

SELECT-OPTIONS : s_pernr FOR pa0000-pernr. "Personnel Number

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT (31) text-018.

PARAMETERS : p_begda LIKE pa0000-begda OBLIGATORY. "Start Date

SELECTION-SCREEN COMMENT 52(05) text-019.

PARAMETERS : p_endda LIKE pa0000-endda OBLIGATORY. "End Date

SELECTION-SCREEN END OF LINE.

SELECT-OPTIONS : s_stat2 FOR pa0000-stat2, "Status

s_werks FOR pa0001-werks, "Personnel Area

s_raufnr FOR catsdb-raufnr MODIF ID md1. "Internal Order Number

SELECTION-SCREEN END OF BLOCK b2.

----


  • AT SELECTION-SCREEN *

----


AT SELECTION-SCREEN OUTPUT.

IF p_pay1 EQ 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'MD1'.

screen-active = '1'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ELSEIF p_pay2 EQ 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'MD1'.

screen-active = '1'.

screen-input = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Regards,

Prashant

former_member188827
Active Contributor
0 Kudos

parameter: p_parm1(2) default 'MY'.

at selection-screen output.

loop at screen.

if screen-name = 'P_PARM1'.

<b>screen-input = 0.</b>

modify screen.

exit.

endif.

endloop.

plz reward ppoints if dis helps

0 Kudos

hi...

thank u its working..

Message was edited by:

prajwal k