Reg:Radio button in ABAP Query
Hi ABAPers ,
I created radiobuttons in SQ02 there i have to write the coding for it ... what type of coding we have to write
ALV coding wll work out or what type of coding we have to write can you guys plz suggest me
Help me out from this problem i am not familiar with ABAP Query
Regards,
Y Ravichandra.
Hi Ravichandra,
You have to use at selection-screen output event for this purpose here is a sample code try it and you will get the logic.
PARAMETERS :
p_flight RADIOBUTTON GROUP r1 ,
p_book RADIOBUTTON GROUP r1 .
PARAMETERS :
w_temp1 RADIOBUTTON GROUP r2 MODIF ID sc1 ,
w_temp2 RADIOBUTTON GROUP r2 MODIF ID sc1 .
SELECT-OPTIONS s_carrid FOR sflight-carrid MODIF ID sc1 .
" Airline Code
PARAMETERS :
w_temp01 RADIOBUTTON GROUP r3 MODIF ID sc2 ,
w_temp02 RADIOBUTTON GROUP r3 MODIF ID sc2 .
SELECT-OPTIONS s_bookid FOR sbook-bookid MODIF ID sc2 .
" Airline Code
* AT SELECTION-SCREEN OUTPUT *
AT SELECTION-SCREEN OUTPUT .
IF p_flight = 'X' .
fl_flag = 1 .
LOOP AT SCREEN.
IF screen-group1 = 'SC2'.
screen-active = 0 .
MODIFY SCREEN .
ENDIF. " IF SCREEN-GROUP1 = 'SC2'
ENDLOOP. " LOOP AT SCREEN
ELSEIF p_book = 'X' .
fl_flag = 2 .
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-active = 0 .
MODIFY SCREEN .
ENDIF. " IF SCREEN-GROUP1 = 'SC1'
ENDLOOP. " LOOP AT SCREEN
ENDIF . " IF P_FLIGHT = 'X' .
Here in this case, There are 2 radio buttons and 2 select options. On clicking the first radio button one of the select option is hidden. If you you just have a single radio button then you can avoid using at selection-screen output and just write your code start-of-selection.
Much Regards,
Amuktha
Similar Messages
-
Hi,
Can you please let me know how to add the radio button in the selection criteria of the ABAP/4 Query.
InfoSet is developed by joining two tables. It does not include any LDB.
Requirement:
Based on the Radio button value given in the selection-screen, I need to filter the records.
For this, I need to add the radio-button on the selection-screen of the report.
Please let me know how to add the radio button on the selection-criteria of the report.
and also let me know is there any possibility to change the InfoSet attached to the query.
Thanks,
Madhuri.HI
YOU CAN USE THE FOLLOWING SEGMENT OF CODE TO HAVE RADIO BUTTONS IN THE SELECTION SCREEEN..
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
R2 RADIOBUTTON GROUP RAD1,
R3 RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
IF R1 = 'X'.
<b>SELECTION CRITERIA</b>
ENDIF.
FOR MORE DOCUMENTATION PLEASE REFER THE LINKS
1 <a href="http://72.14.203.104/search?q=cache:M-DVSgwQ-pYJ:www.geocities.com/siliconvalley/campus/6345/paramete.htmRADIOBUTTONINSELECTIONSCREENIN+ABAP&hl=en&gl=in&ct=clnk&cd=6">PARAMETERS</a>
2 <a href="http://72.14.203.104/search?q=cache:GVSXomykKsYJ:cma.zdnet.com/book/abap/ch21/ch21.htmRADIOBUTTONINSELECTIONSCREENIN+ABAP&hl=en&gl=in&ct=clnk&cd=7">SELECTION SCREENS</a>
IF THESE ARE USEFUL PLEASE REWARD POINTS
REGARDS,
ANOOP -
Check Box or Drow Radio Button on Bex Query
Hi Experts,
Does anyone know to how to put a "Check Box" or "Drow Radio Button" variable on query selection screen?
The user want to switch the order data between open and completed on a same report by a check box / radio button.
ThnaksHi Linkzhou,
Why don't you directly use a var on Actual Delivery Date & include/exclude on # cases to report open/closed shipments.
Alternatively, You can achieve the same without making changes to backend, if you are ok with using WAD. In WAD 7, you can use a DropDown webitem instead of a RadioButton/Checkbox webitem since you cannot assign a Command on selection from a RadioButton/Checkbox webitem. Also, you would need to design the same in a web template since this will not be made available on your query selection screen.
In the DropDown webitem, use Data Binding Type -> 'Fixed List of Options' , here you can configure
Open -> under Action use Command 'SET_SELECTION_STATE_SIMPLE', choose your Actual Delivery Date char, Sign -> INCLUDING, Operator -> Equals, Equals -> Member Name, Member Name -> Direct Input -> # [Not Assigned]
Closed -> under Action use Command 'SET_SELECTION_STATE_SIMPLE', choose your Actual Delivery Date char, Sign -> EXCLUDING, Operator -> Equals, Equals -> Member Name, Member Name -> Direct Input -> # [Not Assigned]
Now when the user selects Open option from the DropDown webitem, the data provider query will be filtered for open shipments & vice versa for Closed option.
--Priya -
Hii All
In my report i am creating two radio buttons normally when we create radio buttion text comes first then radio button comes
But i want first radio button comes then corresponding text to my radio button appears
Helpful Answers will be rewarded
regards
HiteshHi
see this selection screen design
TABLES EKKO.
********END OF DATA DECLARATIONS*********
********SELECTION SCREEN DESIGN ***********
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R2 RADIOBUTTON GROUP G1.
SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
******END OF SELECTION SCREEN DESIGN****************
double click that text elements and write what ever you want and activate it
thats all -
Selection Based on Radio buttons in SAP Query
Hi All,
I am new to SAP Query.
I have added the radio buttons on the selection screen of my SAP query screen.
Can anyone please tell me how to make the field selection in query based on the status of these radio buttons.
Thanks And Regards,
RupeshHI
you have to do this using modif id. here is a sample program to do this
PARAMETERS show_all radiobutton group g1 USER-COMMAND flag.
PARAMETERS no_show radiobutton group g1 default 'X'.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p1(10) TYPE c,
p2(10) TYPE c,
p3(10) TYPE c.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p4(10) TYPE c modif id bl2,
p5(10) TYPE c modif id bl2,
p6(10) TYPE c MODIF ID bl2.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF show_all <> 'X' AND
screen-group1 = 'BL2'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
endloop.
reward if helpful
Message was edited by: Harikishore Sreenivasulu -
Missing output format radio button in SAP Query
Hi SAP Gurus
We have SAP Query which as created in 4,6c. After the upgrade to ECC 6.0 We found that the output format radio button is mising in SAP Query. We are unable to choose teh output format. How can we have the radio button back?
Appreciate yr help
Rgds..SanjayDear Sanjay
Refer OSS Notes 723577 and 132813, may be this notes helpfull. -
Reg Radio Buttons configured as a group
Hi,
I have 5 search regions and 5 radio buttons on a page.I have configured 5 radio buttons as a group.I have done a PPR on radio buttons whereby based on the radio button clicked the corresponding Search region(OAF Query region) is rendered on the page.So when a radio button is clicked, it shows a query region with a "Go" and "Clear" button.
1."Go" button is working fine for all query regions but "Clear" is working only for the query region rendered by the last radio button,... that is which ever radio button is last on the page....it alone clears the data on the search fields.(irrespective of query region it is clearing all the search criteria's).For the rest of the radio buttons when "Clear" is clicked it does not clear the search fields.
2.Each Query region is based on a different View object and the VO's are read only.
The code written for configuring all the radio buttons as a group is:
(Here..Customer,Item,Arrow,registration,supplier are the five radio buttons)
OAMessageRadioButtonBean customerButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("CustomerRB");
customerButton.setName("SearchRG");
customerButton.setValue("Customer");
OAMessageRadioButtonBean partButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("PartRB");
partButton.setName("SearchRG");
partButton.setValue("Item");
OAMessageRadioButtonBean arrowButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("ArwUniqueNumRB");
arrowButton.setName("SearchRG");
arrowButton.setValue("Arrow");
OAMessageRadioButtonBean regButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("RegNumRB");
regButton.setName("SearchRG");
regButton.setValue("Registration");
OAMessageRadioButtonBean manfButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("ManufacturerRB");
manfButton.setName("SearchRG");
manfButton.setValue("Supplier");
Thanks,
SwarnaThanks for the reply...I have checked in Dev guide.It is given that...for multiple query regions with auto customization mode I have to
1.Set the Add Indexed Children property of the container for the query bean to false.---But query bean does not have Add Indexed Children attribute..where to set this?
2.Call the oracle.apps.fnd.framework.webui.OAQueryUtils createSecondaryQueryBean API---I tried doing this....by...
OAQueryBean custQueryBean = (OAQueryBean)webBean.findIndexedChildRecursive("CustQueryRN");
OAQueryBean itemQueryBean = (OAQueryBean)webBean.findIndexedChildRecursive("ItemQueryRN");
OAQueryBean arwQueryBean = (OAQueryBean)webBean.findIndexedChildRecursive("ArwUnqNumQueryRN");
OAQueryBean suppQueryBean = (OAQueryBean)webBean.findIndexedChildRecursive("SupplierQueryRN");
OAQueryBean regQueryBean = (OAQueryBean)webBean.findIndexedChildRecursive("RegNumQueryRN");
OAHeaderBean hdrBean = (OAHeaderBean)webBean.findIndexedChildRecursive("SimpleSearchHdrRN");
Now I am supposed to call the API which I am not able to:
I have tried writing it as below but it hasnt worked.....
hdrBean.createSecondaryQueryBean(pageContext,webBean,itemQueryBean,"1");
I am supposed to call this API for all my radio butons apart from the first:
createSecondaryQueryBean(pageContext,webBean,itemQueryBean,"1");
createSecondaryQueryBean(pageContext,webBean,arwQueryBean,"2");
createSecondaryQueryBean(pageContext,webBean,suppQueryBean,"3");
createSecondaryQueryBean(pageContext,webBean,regQueryBean,"4");
How do I proceed? -
Reg: radio button and parameters usage
Hi,
If there are 3 radio buttons and 1 parameter, and if i click one radio button then the parameter must be a mandatory, if i click the remaining radio button the parameter must be a normal one( Not mandatory).
give me clear picture to solve it, as soon as possible,
thanks in advanceHi,
Wanna try this...??
PARAMETERS: p_exp RADIOBUTTON GROUP radi,
p_imp RADIOBUTTON GROUP radi,
p_clear RADIOBUTTON GROUP radi.
PARAMETERS: path(30) TYPE c .
at selection-screen.
if p_exp = 'X'.
if path is initial.
message 'Enter clear' type 'E'.
endif.
endif.
Solves ur problem!!
Have Fun!!
Ira!! -
Reg: Radio Buttons urgent
HI all
How to add radio buttions in prgogramm. how to initialize in the programm and where can i give selecton parameters in the programm plz send me detailed steps
regards
JK Raohi,
i am sending u a simple ex prog which is close to ur req,go thru it.
i have 2 radio buttons and 2 parameters on the selection screen.
if 1st radio button is selected,display material number
that is eneted by the user for the parameter p_matnr,
if 2nd ine is selected display plant.
displaying part you can wirte accordingly,
<b>selection-screen begin of block b1 with frame.
parameters:r1 radiobutton group GP1,
r2 radiobutton group gp1.
selection-screen end of block b1.</b>
<b>selection-screen begin of block b2 with frame.
parameters:p_matnr type mara-matnr,
p_werks type mard-werks.
selection-screen end of block b2.</b>
data:v_matnr type mara-matnr,
v_werks type mard-werks.
start-of-selection.
<b>if r1 = 'X'.</b>
select matnr from mara into v_matnr
where matnr = p_matnr.
write:/ v_matnr.
endselect.
else.
select werks from mard into v_werks
where werks = p_werks.
write:/ v_werks.
endselect.
endif.
*do award points for all helpful answers
regards -
Summation button missing in abap query ..
Hi,
How to activate summation button in Abap query..
Problem is ,we had instaled some service packs in our production system..
After this we found that ,when we run one of our Abap query (with transaction code) in output summation button is not there.
Can you please let me know how can we activate this summation button..
Thanks,
Parnith..Hi Amit,
Thanks For Reply..
Even though there are summables in list ,summation button is deactive..( It is not being dispalyed on output list)
Can you please suggest the process to activate this summation button..
Thanks
Parnith -
Radio buttons on interactive report
Hello all,
I've added radio buttons to an interactive report. What would be the best way to submit the form when user selects the buttons?
Thanks.Hi inka,
inka wrote:
Hello all,
I've added radio buttons to an interactive report. What would be the best way to submit the form when user selects the buttons?
Thanks.
one of the way to submit the form is use apex.submit
Check the example given below
1) Assuming you have used apex_item.radiogroup to create radio buttons.
sample sql query for interactive report
select EMPNO,
ENAME,
JOB,
MGR,
HIREDATE,
SAL,
COMM,
DEPTNO,
apex_item.radiogroup(1, EMPNO) r
from EMP
2) Go to Report Attributes -> Edit Radio button column
Under Column Definition
Display Type : Standard Report Column
Under Column link -> do the changes given below
Link Text : #R# // here R is my radio button column name, so select yours radio button column name.
Target : URL
URL : javascript:apex.submit({request:'TEST',set:{'P6_HIDDEN':#EMPNO#}});
// here P6_HIDDEN is item where i am setting EMPNO to that column, if you want to set any value to any item that you want to use in process then create Hidden item with protected value no.
or if you want to show confirm message before submitting the page then use apex.confirm in place of apex.submit .
Hope this helps you,
Regards,
Jitendra -
Hi All,
For radio buttons in a group , I know by default one radio button will be selected always. If I give Default option for radio button with value "X" then that will be selected in selection screen.
Now my query : "Is there any way to have both/all radio buttons unselected when the program is executed and let user choose one of the radio buttons on selection screen and carry ahead the exection" ?
Please confirm even if this cannot be done , as I just want to be sure whether this can be done or not in ABAP.
Thanks for your help.
Regards,
JalpaHi,
Its not possible to have without default selection of radio button group in ABAP.
But we can achieve this one through screen design within that screen design properties we can keep input check boxes unselected.
for that in screen layout take three radio buttons then go to elementary list>general attribute>input check box unselect
Result is disable radio buttons but all are unselected.
Hence as per my knowledge which your being expected not possible in ABAP.
Regards
Sreenivas -
NEED HELP IN RADIO BUTTON QUERY
Hi, Friends
I like to query to extract data from my table with the help of radio button but I am not able to think what I should write to query. Plz help.
The radio button select jsp page code is-
<form action="queryservice.jsp" method="post">
<h3><strong>Services Available</strong></h3>
<p>
<label>
<input type="radio" name="service" value="si" />
Institutions</label>
<br />
<label>
<input type="radio" name="service" value="sc" />
Corporate_Offices</label>
<br />
<label>
<input type="radio" name="service" value="sr" />
Restaurent_Cafe</label>
<br />
<label>
<input type="radio" name="service" value="sb" />
Bus_Stop</label>
<br />
<label>
<input type="radio" name="service" value="sa" />
Apartment</label>
<br />
<label>
<input type="radio" name="service" value="sh" />
Hotels</label>
<br />
</p>
<label>
<input type="submit" value="Submit" />
</label>
</form>And queryservice.jsp page is
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
<sql:query var="xyz" scope="request">
<% String var = request.getParameter("service"); %>
if(var.equals("si")){ SELECT si FROM serviceTable}
else if(var.equals("sc")){ SELECT sc FROM serviceTable}
else if(var.equals("sr")){ SELECT sr FROM serviceTable}
else if(var.equals("sb")){ SELECT sb FROM serviceTable}
else if(var.equals("sa")){ SELECT sa FROM serviceTable}
else if(var.equals("sh")){ SELECT sh FROM serviceTable}
</sql:query>Please correct it.
Thanking youError Report-
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException:
if(var.equals("si")){ SELECT si FROM serviceTable }
else if(var.equals("sc")){ SELECT sc FROM serviceTable}
else if(var.equals("sr")){ SELECT sr FROM serviceTable}
else if(var.equals("sb")){ SELECT sb FROM serviceTable}
else if(var.equals("sa")){ SELECT sa FROM serviceTable}
else if(var.equals("sh")){ SELECT sh FROM serviceTable}
: Non supported SQL92 token at position: 57: SELECT
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException:
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
Apache Tomcat/6.0.14 -
How to use Radio buttons in WAD to select different condition in a query
Hi Guru,
I am new to WAD, I want to use radio buttons in selection screen of query for different selections based on selection criteria. I am aware of executing different queries using different radio buttons. but i want to use single queries for different radio button selections.
I have found some relevant topic to it but not got exact solution. Please guide me.Hi Avinash,
Drag a DropDown webitem into your template. Under DropDown webitem properties, Data Binding -> Fixed List of Options.
Fixed Option -> Action -> Command via Command Wizard, Command -> Commands for Data Providers -> Data Provider Commands for Filter Values -> SET_SELECTION_STATE_SIMPLE. Data Provider Affected -> choose the main DP Query here. Characteristic -> choose Employee Group characteristic here as present in your DP Query. Sign -> INCLUDING, Operator -> EQUAL_SELECTION, Equals -> MEMBER_NAME, Member Name -> specify the value here i.e. Employee1 etc.
Repeat above Fixed Option step for Employee2, Employee3 etc. selections. For 'All' option choose Command CLEAR_SELECTION_STATE with Data Provider Affected as the main DP Query & Characteristic as Employee Group.
--Priya -
Replacing SAP Object Selector with Radio Button in ALV table in WD ABAP
Hi All,
I have a view in Webdynpro ABAP which displays data in an ALV table view (using SALV_WD_TABLE component).
By default we have the SAP Object Selector for selecting a particular row of the table. This has to be replaced with radio buttons.
I mean instead of using the SAP Object Selector, I need radio buttons at the start of each row.
What I have thought of is to make the SAP Object Selector Invisible and create another attribute for the radio button in the node which contains ALV output data.
Can you please let me know how to remove the SAP Object Selector from ALV output table and also how to include a column with radio button in the ALV output table.
Thanks and Regards,
Sayan GhoshHi Lekha,
I am working with HRASR00_PROCESS_EXECUTE WD component of MSS application. In order to generate the data, this in turn calls another component called DATAOBJECTPROVIDER. I need to make the table selection as none and replace the SAP Object Selector with the radio button.
Do you know under which method in DATAOBJECTPROVIDER do we need make the changes. I tried to search all the methods but couldnt understand a suitable one.
Thanks and Regards,
Sayan Ghosh
Maybe you are looking for
-
ITunes wont open up from internet explorer or firefox... Cant verify email
I recently made a iTunes store account and received the verification email, but when i click the link, it says opening iTunes please wait or something... So i wait and nothing happends. I tried to log in but it tells me to verify email again. Help pl
-
Good Morning, I just did a software update on my phone (finally) last night and now my phone will not come on. It keeps showing the charger pointing up to a blue circle with iTunes inside and will not go any further. Can ANYONE help me please???
-
Prob in retaining spaces in Combo Box, PLEASE HELP ASAP!!
Hi In the application that I am working on, I have developed a screen wherein I populate the names of some schemes from the database, in a combo box (<Select><option></option></Select>). A particular scheme in the database has a multiple-word name wi
-
Hi All, I want import xsl file in B1if. I want parse the xml Files. Where i am going to import New XSL Files. Thanks & Regards B.Lakshmi narayanan
-
When d/ling mp3 quicktime always comes up in browser
When someone sends me a link like the one below in mail. I try to download it and instead of the downloads window poping up I get the quicktime player smackdab in the middle of a blank browser window while qt downloads it. How do I stop this annoying