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

selection screen

Former Member
0 Likes
617

Hi Experts,

I have to design a selection screen in the following manner

Cost Plus LTP Validation Reports

Report Type

 Current Cost Plus LTP (ZPUP)

 Cost Plus LTP pending for validation (ZTUP)

 Cost Plus LTP Comparison Report (ZTUP vs. ZPUP)

Supplying Plant # : From __________ to _________

Material Type : From ____________ to __________

Material # : From __________ to _________

ANY LTP PRICES VALID FROM: __/__/__

if i click the first check box it has to do some process.if i click the second it has to do another process.how can i write a code for check boxes and selecting that particular check box

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
588

Hi,

i hope this can help u.

TABLES: MARA,MARC.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS CH1 AS CHECKBOX.

SELECTION-SCREEN COMMENT 2(50) LB1.

PARAMETERS CH2 AS CHECKBOX.

SELECTION-SCREEN COMMENT 2(50) LB2.

PARAMETERS CH3 AS CHECKBOX.

SELECTION-SCREEN COMMENT 2(50) LB3.

SELECTION-SCREEN END OF LINE.

SELECT-OPTIONS: S1 FOR MARC-WERKS,

S2 FOR MARA-MTART,

S3 FOR MARA-MATNR.

WRITE:/ 'ANY LTP PRICES VALID FROM 27/12/2007'.

INITIALIZATION.

LB1 = 'Current Cost plus LTP (zpup)'.

LB2 = 'Cost Plus LTP pending for validation (ZTUP)'.

LB3 = 'Cost Plus LTP Comparison Report (ZTUP vs. ZPUP)'.

IF CH1 = 'X'.

WRITE:/ 'THIS IS FIRST CHECKBOX'.

ENDIF.

IF CH2 = 'X'.

WRITE:/ 'THIS IS SECOND CHECKBOX'.

ENDIF.

IF CH3 = 'X'.

WRITE:/ 'THIS IS THIRD CHECKBOX'.

ENDIF.

just go thru it.

if u want to change the displayed text for variables S1,S2 and S3. then click "GOTO"->"TEXT ELEMENTS"->"SELECTION TEXTS".

if u need any futher help then i wl clarify them.

Thank you.

chandu

6 REPLIES 6
Read only

former_member386202
Active Contributor
0 Likes
588

Hi,

Do like this

selection-screen begin of block b1 with frame title t1.

parameters : p_chk1 as checkbox,

p_chk2 as checkbox,

p_chk3 as checkbox.

select-options : s_werks for marc-werks,

s_matnr for marc-matnr,

s_matkl for marc-matkl.

seelction-screen end of block b1.

Regards,

Prashant

Edited by: Prashant Patil on Dec 26, 2007 1:12 PM

Read only

0 Likes
588

hi jyothi can you please make ur point a bit more clear

like what is want is when you click on one check box then the selection screen should change then you can use screen group to modify ur selection-screen

and in case you want the output of report to change then simply use if and endif on differnt check boxes in ur report to make it work accordingly

Read only

former_member404244
Active Contributor
0 Likes
588

Hi,

U might have given name for the check box right,so call them with thir names

for example

data : chk1 as checkbox,

chk2 as checkbox.

if chk1 is not initial.

do processing.

endif.

if chk2 is not initial.

do processing.

endif.

Regards,

nagaraj

Read only

Former Member
0 Likes
588

Hi jyothi,

u can design the selection screen, i hope so.Then u have to write in coding as

if zpup = 'X'.

ur logic

if ztup = 'X'.

ur logic

Regards

Karthik

Read only

Former Member
0 Likes
588

Hi jyothi,

suppose CHK1 - Current Cost Plus LTP (ZPUP)

CHK2 - Cost Plus LTP pending for validation (ZTUP)

CHK3 - Cost Plus LTP Comparison Report (ZTUP vs. ZPUP)

follow below code...

Parameters: CHK1 TYPE C AS CHCKBOX DEFAULT 'X',

CHK2 TYPE C AS CHECKBOX,

CHK3 TYPE C AS CHECKBOX.

select-options: s_plant for mara-werks,

s_material for mara-mtart,

s_material for mara-matnr.

This the display the screen as u wanted.

You said if i click first check box u need to do some process and if u click second checkbox u want to do some process so what type of process u want to do just tell me so that i ll give answer as per ur requirement.

Reply back.

<b>reward if useful </b>

Regards,

sunil kairam.

Read only

Former Member
0 Likes
589

Hi,

i hope this can help u.

TABLES: MARA,MARC.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS CH1 AS CHECKBOX.

SELECTION-SCREEN COMMENT 2(50) LB1.

PARAMETERS CH2 AS CHECKBOX.

SELECTION-SCREEN COMMENT 2(50) LB2.

PARAMETERS CH3 AS CHECKBOX.

SELECTION-SCREEN COMMENT 2(50) LB3.

SELECTION-SCREEN END OF LINE.

SELECT-OPTIONS: S1 FOR MARC-WERKS,

S2 FOR MARA-MTART,

S3 FOR MARA-MATNR.

WRITE:/ 'ANY LTP PRICES VALID FROM 27/12/2007'.

INITIALIZATION.

LB1 = 'Current Cost plus LTP (zpup)'.

LB2 = 'Cost Plus LTP pending for validation (ZTUP)'.

LB3 = 'Cost Plus LTP Comparison Report (ZTUP vs. ZPUP)'.

IF CH1 = 'X'.

WRITE:/ 'THIS IS FIRST CHECKBOX'.

ENDIF.

IF CH2 = 'X'.

WRITE:/ 'THIS IS SECOND CHECKBOX'.

ENDIF.

IF CH3 = 'X'.

WRITE:/ 'THIS IS THIRD CHECKBOX'.

ENDIF.

just go thru it.

if u want to change the displayed text for variables S1,S2 and S3. then click "GOTO"->"TEXT ELEMENTS"->"SELECTION TEXTS".

if u need any futher help then i wl clarify them.

Thank you.

chandu