2009 Nov 25 1:59 PM
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. " RADIOBUTTONbut 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. " RADIOBUTTONbut 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
2009 Nov 25 2:08 PM
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,
2009 Nov 25 2:17 PM
2009 Nov 25 2:23 PM
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
2009 Nov 25 5:37 PM
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.
2009 Nov 25 5:39 PM
2009 Nov 25 5:46 PM
yes i have done that , but i m getting the same error still..
2009 Nov 25 5:53 PM
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
2009 Nov 25 5:55 PM
can u please elaborate on what is meant by sperate include,
can u please explain.
2009 Nov 25 5:58 PM
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?
2009 Nov 25 6:09 PM
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
2009 Nov 25 2:33 PM
2009 Nov 25 3:52 PM
Your code is correct , appears you have not written the perform for this form.SO, write that at appriorate place.
2009 Nov 25 5:47 PM
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
2009 Nov 25 5:52 PM
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.
2009 Nov 25 6:47 PM
2009 Nov 25 7:04 PM
2009 Nov 25 7:16 PM
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_RADIOJust 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
2009 Nov 25 7:20 PM
HI
i have solved it myself..thanks
actaully i had to call in the program which was submitting the program..
thread is closed
2009 Nov 25 7:15 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |