Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

radio buttons and selection scerrns

$
0
0

i have two radio buttons .when i click on r1 the content in table1 should be displayed and when i click r2 the content in table2 dhould be displayed.

   is ths code is correct...

tables : mara,marc.

data : begin of w1,

       matnr type matnr,

       ersda type ersda,

       ernam type ernam,

       end of w1,

 

 

       begin of w2,

       matnr type matnr,

       werks type werks,

       pstat type pstat,

       end of w2,

 

 

       it1 like w1 occurs 0,

       it2 like w2 occurs 0.

 

 

 

 

selection-screen : begin of screen 123.

parameters : r1 radiobutton group rad,

             r2 radiobutton group rad.

 

 

selection-screen end of screen 123.

call selection-screen 123.

 

 

at user-command.

start-of-selection.

case sy-ucomm.

when 'r1'.

do.

 

 

select  matnr ersda ernam from mara

into table it1.

 

 

loop at it1 into w1.

write : / w1-matnr,w1-ersda,w1-ernam.

endloop.

enddo.

endcase.


Viewing all articles
Browse latest Browse all 8332

Trending Articles