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

output field only

Former Member
0 Likes
675

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
Read only

former_member188827
Active Contributor
0 Likes
618

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

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

3 REPLIES 3
Read only

former_member386202
Active Contributor
0 Likes
618

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

Read only

former_member188827
Active Contributor
0 Likes
619

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

Read only

0 Likes
618

hi...

thank u its working..

Message was edited by:

prajwal k