Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: radio buttons and selection scerrns

$
0
0

Hello Sandeep,

 

i think and believe you have no idea about classical report event.........why you use at user command event??? you must have to read about all events which is used in report..... your structure declaration style is now obsolete............

 

copy my code and execute it......... your problem will be solved.....

 

tables : mara,marc.

data : beginof w1,

        matnr type matnr,

        ersda type ersda,

        ernam type ernam,

        endof w1,





        beginof w2,

        matnr type matnr,

        werks type werks,

        pstat type pstat,

        endof w2,





        it1 like w1 occurs0,

        it2 like w2 occurs0.


selection-screen : beginofscreen123.

parameters : r1 radiobuttongroup rad USER-COMMAND A ,

              r2 radiobuttongroup rad DEFAULT'X' .

selection-screenendofscreen123.

call selection-screen123.

at SELECTION-SCREEN.

if R1 = 'X'.

select  matnr ersda ernam from mara
  intotable it1.

else.
select matnr werks pstat FROM marc INTOtable it2.

ENDif.

loopat it1 into w1.

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

endloop.

 

Thanks

Sabyasachi


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>