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

REGARDING RADIOBUTTONS

SwarnaliBasu
Participant
0 Likes
2,192

HI

i have declared a perform which includes 4 radiobuttons, this perform i have called at end-of-selection.

but still my selection is not happening. please tell me where is the problem

PARAMETERS:p_none radiobutton group log default 'X',
    p_mpay RADIOBUTTON GROUP log,
*           p_date like FPLTC-DATBI,
           p_epay  RADIOBUTTON GROUP log,
           p_ddate RADIOBUTTON GROUP log.

*----------------------------------------------------------------------*
form RADIOBUTTON .

***radio button
if p_mpay = 'X'.
perform missing_payment_card.
elseif p_epay = 'X'.
perform expiry_so.
elseif P_DDATE = 'X'.
perform next_date.
endif.

endform.                    " RADIOBUTTON

but when i see in deugging then

p_mpay = SPACE when i have selected before executing

Edited by: Rob Burbank on Nov 25, 2009 9:17 AM

HI

i have declared a perform which includes 4 radiobuttons, this perform i have called at end-of-selection.

but still my selection is not happening. please tell me where is the problem

PARAMETERS:p_none radiobutton group log default 'X',
    p_mpay RADIOBUTTON GROUP log,
*           p_date like FPLTC-DATBI,
           p_epay  RADIOBUTTON GROUP log,
           p_ddate RADIOBUTTON GROUP log.

*----------------------------------------------------------------------*
form RADIOBUTTON .

***radio button
if p_mpay = 'X'.
perform missing_payment_card.
elseif p_epay = 'X'.
perform expiry_so.
elseif P_DDATE = 'X'.
perform next_date.
endif.

endform.                    " RADIOBUTTON

but when i see in deugging then

p_mpay = SPACE when i have selected before executing

Edited by: Rob Burbank on Nov 25, 2009 9:17 AM

19 REPLIES 19
Read only

awin_prabhu
Active Contributor
0 Likes
2,162

Hi Swarnali,

Check in ur code whether you are clearing the radio button 'P_MPAY' before END-OF-SELECTION.

Check all ur CLEAR statements for fied P_MPAY.

Thanks,

Read only

Former Member
0 Likes
2,162

you have not called the subroutine.

Read only

0 Likes
2,162

Hi Infinity,

The code you are seeing here is only the relevant code. Without calling the subrouting the program will not get activited.

I agree with SAP FAN's anwer that there must be some CLEAR statement which is causing the problem.

Regards

Abhii

Edited by: Abhii on Nov 25, 2009 3:24 PM

Read only

0 Likes
2,162

HI

i have already told in 1st line that i have called the subroutine at END-OF-SELECTION,

PLEASE request you all to read the query 1st before replying.

Read only

0 Likes
2,162

Call in Start of selection and check.

Read only

0 Likes
2,162

yes i have done that , but i m getting the same error still..

Read only

0 Likes
2,162

Write you form logic in a seperate include and not in end of selection.

Edited by: Harsh Bhalla on Nov 25, 2009 11:23 PM

Read only

0 Likes
2,162

can u please elaborate on what is meant by sperate include,

can u please explain.

Read only

0 Likes
2,162

Write your FORM logic in seperate INCLUDE and not between events.

or place it in last in your report.

Also check value of all radiobuttons , at least one should be filled.

Also , change name of your subroutine , it should not be a keyword.

Declare parameter in start of selection.

I am confused in your issue now

Please tell me , how was your issue finally solved?

Read only

0 Likes
2,162

Write your FORM logic in seperate INCLUDE and not between events.

or place it in last in your report.

Also check value of all radiobuttons , at least one should be filled.Check in debugger , which is filled.

Also , change name of your subroutine , it should not be a keyword.

Declare parameter in start of selection.

Edited by: Harsh Bhalla on Nov 25, 2009 11:39 PM

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,162

Some possibles explanations

- Reset of data - There is a CLEAR of the global field/parameter with this name

- Scope of variable - There is another field of the same name declared at a lower level (eg a DATA in the FORM or a parameter of the FORM)

Regards,

Raymond

Read only

Former Member
0 Likes
2,162

Your code is correct , appears you have not written the perform for this form.SO, write that at appriorate place.

Read only

Former Member
0 Likes
2,162

Hi There,

If u have written the perform statement in end-of-selection then what I felt that either ur end-of-selection is not triggered ( Due to stop etc ) or there is something that clears your selection.

Regard's

Anmol

Read only

0 Likes
2,162

HI

I HAVE COPIED A STANDARD CODE, SO THERE END-OF-SELECTION IS TRIGGERED FOR REST,

AND ITS ALSO NOT GETTING CLEARED anywhere as i m using it in for 1st time.

Read only

Former Member
0 Likes
2,162

Please supply your entire selection-screen definition.

Read only

0 Likes
2,162

everything is already supplied

Read only

0 Likes
2,162

Hi

This is a very simple code:

PARAMETERS: P_NONE RADIOBUTTON GROUP LOG DEFAULT 'X',
            P_MPAY RADIOBUTTON GROUP LOG,
*           p_date like FPLTC-DATBI,
            P_EPAY  RADIOBUTTON GROUP LOG,
            P_DDATE RADIOBUTTON GROUP LOG.
PARAMETERS: P_EOS AS CHECKBOX.

START-OF-SELECTION.
  IF P_EOS IS INITIAL.
    WRITE: 'START-OF-SELECTION'.
    SKIP.
    PERFORM WRITE_SEL_RADIO.
  ENDIF.

END-OF-SELECTION.
  IF P_EOS = 'X'.
    WRITE: 'END-OF-SELECTION'.
    SKIP.
    PERFORM WRITE_SEL_RADIO.
  ENDIF.

FORM WRITE_SEL_RADIO .
  CASE 'X'.
    WHEN P_NONE.  WRITE: 'P_NONE'.
    WHEN P_MPAY.  WRITE: 'P_MPAY'.
    WHEN P_EPAY.  WRITE: 'P_EPAY'.
    WHEN P_DDATE. WRITE: 'P_DDATE'.
  ENDCASE.
ENDFORM.                    " WRITE_SEL_RADIO

Just as u can check, this code works fine, that means the radiobutton can be managed in every event.

I believe something of your code (that you haven't pasted here) is wrong.

Try to set a radiobutton (for ex. P_MPAY) and run the program in debug, while debugging set a watchpoint where the radiobutton will be cleared.

Max

Read only

0 Likes
2,162

HI

i have solved it myself..thanks

actaully i had to call in the program which was submitting the program..

thread is closed

Read only

SwarnaliBasu
Participant
0 Likes
2,162

thread closed