Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8689

Radio Button Issuse In mpp

$
0
0

I have a selection screen, which is haveing ( posting date, vendor number, vendor name and recipient name )field(all flds are mandatory filed) and also having 2 radio button for cost center and other is for wbs element.

 

So once user fill all radio button , he/she need to choose one radio button and after entering value for that radio button , the next sceren will comes after pressing execute button.

 

For this requirement, I have created screen 9001 which having all selection fld with radio buttons.

 

1 ) selection screen validations I have done in PAI (9001) within chanin and endchain  and also the validation for cost center and wbs element  radio button, I wrote inside same chain and endchain.

 

My issue is I needs to keep my radio buttons always enable.


for that I wrote a module (Module Radio_button),before chanin endchain,  and the below code inside the module is...

 

loop at screen.

 

if screen-group1 = 'R1'      (As in 9001 sceren design i have define 2 radio button in a group R1)

 

modify screen.

 

endloop.

 

Now my radio buttons are always enable and (First radio button -- cost center is selected defult ) but problem is when i entered data into selection screen flds and press enter then again change the radio button from cost center to wbs element, system through me the error ' Enter cost center' instead 'Enter Wbs element'. (As I set error msg for 2 radio button).

 

I debugged the program and find that, for the first time system enter into module radio_button and through the correct error msg (Enter cost center)but when i change the radio button to wbs element, It takes the default radio  button (i.e-cost center). evenif wbselement radio button i have chossed , but system only takes the first one.  means always give error msg 'Enter cost center'.

 

I have checked after pressing enter sy-ucomm is blank.

 

Plz give me suggestion to resoled my issue ? 

 

Thanks & Regards,

 

Ajit sarangi


Viewing all articles
Browse latest Browse all 8689

Latest Images

Trending Articles



Latest Images

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