How to create Drop Down box in screen painter..??
Can anybody give me sample code or detailed description about creating Drop-Down Box in a screen...??
I have created the drop down box in screen..
But how to make data to be visible in Dropdown box, when i click the drop icon in that box...???
Regards
Pavan Sanganal
Here are couple of DEMO programs for the same functionality
DEMO_DROPDOWN_LIST_BOX
DEMO_DYNPRO_DROPDOWN_LISTBOX
You execution sequence will be PBO - Process before output, then the screen is displayed and the PAI Process after input.
Regards,
Ravi
Note : Please mark all the helpful answers
Similar Messages
-
How to create Drop down menu in the selection screen
Hi all,
How to create Drop down menu in the selection screen.
Fast answer will be highly rewarded
Regards
Bikashi ,
TYPE-POOLS : vrm.
TABLES:vbak,vbap.
DATA : v(80) TYPE c.
DATA: wa_vbak TYPE vbak,
it_vbak TYPE vbak OCCURS 0 WITH HEADER LINE,
wa_vbap TYPE vbap,
it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE.
DATA: l_name TYPE vrm_id,
li_list TYPE vrm_values ,
v_count TYPE i,
l_value LIKE LINE OF li_list.
PARAMETERS: p_test(20) AS LISTBOX VISIBLE LENGTH 60 MODIF ID DAT.
INITIALIZATION.
AT SELECTION-SCREEN OUTPUT.
PERFORM get_data.
LOOP AT it_vbak.
l_value-key = it_vbak-vbeln .
l_value-text = it_vbak-vbeln .
APPEND l_value TO li_list.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_TEST'
values = li_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
AT SELECTION-SCREEN ON P_TEST.
clear : li_list , li_list[].
SELECT vbeln
matnr
meins
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.
START-OF-SELECTION.
SELECT vbeln
matnr
meins
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.
LOOP AT it_vbap.
WRITE :/ it_vbap-vbeln, it_vbap-matnr,it_vbap-meins.
ENDLOOP.
*& Form get_Data
text
--> p1 text
<-- p2 text
FORM get_data .
SELECT vbeln
FROM vbak
INTO CORRESPONDING FIELDS OF TABLE it_vbak.
ENDFORM. " get_Data
regards,
venkat. -
How to create drop down option in service manager 2012 incident portal
Hii,,
Please assist how to create drop down option in service manager 2012 SP1 default incident portal. We would like to provide the drop down option in "Please enter the title for the Issue" to our users.
Regards, Syed Fahad AliAs was already referenced, you could use a Simple List for the prompt, however if you are referring to the default General Incident that is available out-of-the-box, you might be limited in what you can modify.
I did some work for a client, that wanted to have a list and other options for the General Incident through the Portal. So, I ended up having to create a custom General Incident instead of using the default one, which will then allow you to add any type
of prompts, and configure them as you want (i.e. with a simple list). -
How To Create Drop Down Menu With Tab
hi
How To create Drop Down Menu with tab in Header of application like website Horizontal Dropdown Menu In html.
Thanks
Manoj
Edited by: Manoj Kaushik on Dec 30, 2009 4:16 AMTry the Apex forum {forum:id=137} someone there may have an answer.
Which version, that could be important, XE out-of-the-box has apex 2.1 if it hasn't been upgraded to 3.x -
Can any share me the procedure to create a text box in screen painter?
Hi Friends,
Can anyone share me the procedure to create a text box in screen painter and browser for attaching files ....please its urgent....
Points will be definetly rewarded.
ThanksRefer to
How to create a text box in ascreen painter?
where another user (venkateshwar reddy) has asked a very similar question... is this an exam question?
Jonathan -
Setting values in Drop down list in Screen Painter
Hello Freinds,
I have the requirement as, I have drop down list in screen painter and want to fill the values in that list using database table.
So using foreign key table I have updated the values in the list.
But now client wants me to fill the dropdown list with ID as well as description..
Please suggest me how to achieve this.
Thanks and Regards
NishadHi,
You the FM 'F4IF_INT_TABLE_VALUE_REQUEST' and try.
Fill the internal table with the key and description and pass the same to above FM.
You will get sample code by searching the forum.
Thanks.
Anversha -
How to put drop down box in selection screen
Hi all,
I have to create a selection screen.
in that i have to use a drop down box for the text box.
how to do that.
thanking u.
with regards,
giri.HI
Check thi ssample code -
REPORT ZTESTPRG.
TYPE-POOLS: VRM.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
NAME = 'PS_PARM'.
VALUE-KEY = '1'.
VALUE-TEXT = 'LINE 1'.
APPEND VALUE TO LIST. VALUE-KEY = '2'.
VALUE-TEXT = 'LINE 2'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
START-OF-SELECTION.
WRITE: / 'PARAMETER:', PS_PARM.
Hope this helps.
OR
You can use the F4 function module or use a List box
see the sample codes
See the following ex:
TYPES: BEGIN OF TY_MBLNR,
MBLNR LIKE MKPF-MBLNR,
END OF TY_MBLNR.
DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.
data: it_ret like ddshretval occurs 0 with header line.
At selection-screen on value-request for s_mat-low.
Select MBLNR from mkpf into table it_mblnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'MBLNR'
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_MBLNR
FIELD_TAB =
RETURN_TAB = IT_RET
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF SY-SUBRC = 0.
read table it_ret index 1.
move it_ret-fieldval to S_mat-low.
ENDIF.
Go through the test program.
REPORT Ztest_HELP .
TABLES : MARA.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_MATNR(10) TYPE C.
SELECTION-SCREEN END OF BLOCK B1.
DATA : BEGIN OF ITAB OCCURS 0,
MATNR TYPE MATNR,
END OF ITAB.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
SELECT MATNR
FROM MARA
INTO TABLE ITAB
UP TO 10 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MATERIAL NUMBER'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MATNR'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
LIST BOX
Input : p_char = 'J'.
Press: enter
List Box of Month = January, June , July.
REPORT ZLIST_VALUES.
TYPE-POOLS vrm.
tables:
spfli.
parameters: p_char type c.
parameters:
p_month(12) as listbox visible length 20,
p_year as listbox visible length 20 .
DATA:
t_table TYPE STANDARD TABLE OF vrm_value,
t_table1 TYPE STANDARD TABLE OF vrm_value,
vrm_values1 LIKE LINE OF t_table.
DATA:
t_year TYPE STANDARD TABLE OF vrm_value.
data: w_year(4) type n value '2000'.
at selection-screen output.
vrm_values1-key = 'a'.
vrm_values1-text = 'January'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'p'.
vrm_values1-text = 'February'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'q'.
vrm_values1-text = 'March'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'r'.
vrm_values1-text = 'April'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 's'.
vrm_values1-text = 'May'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 't'.
vrm_values1-text = 'June'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'u'.
vrm_values1-text = 'July'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'v'.
vrm_values1-text = 'August'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'w'.
vrm_values1-text = 'September'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'x'.
vrm_values1-text = 'October'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'y'.
vrm_values1-text = 'November'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'z'.
vrm_values1-text = 'December'.
APPEND vrm_values1 TO t_table.
t_table1[] = t_table.
delete t_table1 where text+0(1) <> p_char.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'p_month'
values = t_table1
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
do 10 times.
add 1 to w_year.
vrm_values1-key = sy-index.
vrm_values1-text = w_year.
APPEND vrm_values1 TO t_year.
enddo.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'p_year'
values = t_year
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
start-of-selection.
write: p_month. -
Dynamically create drop down box with JSP
Hi,
I hope this is not a repeat post, I have search the forum and a posting has not jumped out at me. I am making a jsp that dynamically constructs a custom SQL query.
I have a number of text boxes with an id, my jsp page calls a servlet, the servlet reads the contorl id and the value to build the query - this works great. However, there's a large text input box which receives a number of extra conditions - this text box receives the input in the following format:
searchAttributeName1,searchAttributeValue1;searchAttributeName2,searchAttributeValue2
This is functional, however, it's a bit rubbish as the user has to know the special recognised attributeNames. What I would like to have is some sort of criteria control. This would consist of a drop down box populated from the servlet, a text input for the value and a button to add another criteria control. so the user could build up the number of query criteria. The drop down box ensures they cannot select the wrong keyword, pressing the add criteria button adds a new drop down box and text box pair to the screen.
An example of this I recently saw was at Intel's jobs search web site https://jobs.intel.com/jobs/jobs.iccw - see that for example.
Has anyone got any ideas on how to achieve this? I initially thought use jsp scripting (there is no restriction against this) but I need to use javascript I'm guessing as the button click triggers adding a new combo box. Another idea was to use styles and tables to hide the other drop down boxes but this seems like a real hack that I'd like to avoid. I can do with with .NET i hope java can deliver!
Any ideas are much appreciated - I am a novice with java web development so please, any examples thoroughly explain (no need to explain populating the drop down box - there seem to be plenty of posts on this).
Thanks for any help or ideas on this issue -Gina,
Here is some sample code for using a ComboBox in a JSP from an EditCurrentRecord bean. This particular example uses a query, you can also populate combo boxes, list boxes, radio buttons and checkboxes from a static list. See the JavaDocs for the EditCurrentRecord bean.
<jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
<%
RowEditor.initialize(application, session , request, response, out, "wt_bc_WT_bcModule.WalkthroughEngineSlidesView");
RowEditor.setTargetUrl("WalkthroughEngineSlidesView_SubmitInsertForm.jsp");
RowEditor.createNewRow();
RowEditor.setReleaseApplicationResources(true);
RowEditor.useComboBox("Presname","select pres_name,pres_name from wt_info","PRES_NAME","PRES_NAME");
RowEditor.render();
%>
</jsp:useBean>
null -
How to insert drop-down box into the already set-up table ?
if i have a table already set up, and i do want to add the drop-down box into each column like in the excel. how would i do that ? this drop-down box would allows me to specifically select the data as shown on the screen.
Hi Bondwaan,
I am not sure wht you are asking but I suspect it has to do with a popup menu. If that is the case, a popup menu is a formatting choice.
If you need more info, you will need to ask a more specific question.
quinn -
How to handle Drop Down Box on Interactive Adobe Form
Hi,
On my adobe form there are some drop down boxes like company code, cost centre etc, actually i need F4 help on those fields, but what i found is it's not possible to have F4 help on adobe form so i have choosen alternative as webdynpro acitvex drop down box in library. I have written a web dynpro application to fetch the data and display it on adobe interactive form, i could able to display the data for all the fields on adobe form except these drop down boxes, can any body suggest me how to handle these drop down boxes in webdynpro application. Your help will be greatly appreciated.
Thansk & Regards,
VenkatHi Venkat,
As you are using the WDP ActiveX dropdown in your form, it is fine but to populate values in the DD, you need to bind the context attribute with a simpletype and then populate the values. Use the below code to obtain a ModifiableSimple Type:
IWDAttributeInfo abcInfo = wdContext.nodeABC().getNodeInfo().getAttribute("AttributeName");
ISimpleTypeModifiable def = abcInfo.getModifiableSimpleType();
IModifiableSimpleValueSet abcValueSet = def.getSVServices().getModifiableSimpleValueSet();
and after this put te values in the obtained modifieable simple type like below:
abcValueSet.put(key,value);
where key may be the ID and value may be the name to be displayed in DD.
Reward points if found helpful.
Regards,
Arafat -
How to add drop down in SAP screen module pool
Hi,
Can you please advise me on how to add drop down in SAP module pool screen (a drop down with fixed set of values).
Thanks
MohitHi,
Hope it helpful.
Refer the Program : rsdemo_dropdown_listbox
Regards,
Venkat. -
Hi
Can we create drop down menus in HTML DB as we do in
Visual Basic.
Thanks.In HTML DB v2.0 you can create drop down menus. I cannot say if they are the same as Visual Basic because I am not familiar with VB..
Here is an example pull-down menu:
A B C <--- Top level
A1 B1 <--- Second level
A2 <--- Third levelInitially the user sees a horizontal menu with "A", "B', and "C". When the user clicks on "A" a menu containing "A1" and "A2" is displayed under "A".
Here is what you do to create this:
1.) Edit a page.
2.) Click the "Create" (plus sign) button in the "Lists" region under "Shared Components".
3.) Enter a List name.
4.) Make the "List Template" be "DHTML Menu with Sublist".
5.) Click the "Create List Entry >" button on the right. You are now creating your Top Level menu.
6.) Enter "A" into the "List Entry Label".
7.) Set "Target Type" to "- No Target -". This could be an URL or another page in the application.
8.) Click the "Create and Create Another" button. You are now create the lower level menus.
9.) Select "A" for the "Parent List Entry".
10.) Enter "A1" into the "List Entry Label".
11.) Set "Target Type" to "- No Target -".
12.) Repeat steps 8, through 11 for "A2".
13.) Click the "Create and Create Another" button.
14.) Repeat steps 6 through 12 for "B" and "B1".
15.) Click the "Create and Create Another" button.
16.) Repeat steps 6 and 7 for "C".
17.) Click the "Create" button.
18.) Click the "Add this list to the current page" link.
19.) Specify the region information for the menu and click "Next" button.
20.) Click the "Create List Region" button.
Mike -
How to create drop-down menu with transparency
Hello,
Is it relatively easy to create drop-down menu's with
transparent drop downs? Any step by step help would be greatly
appreciated.
I thank you in advance,
Jazjasperjaz schrieb:
> Looks like some cool stuff. However, nothing on drop
downs
>
Take a look at "Creating Animated Buttons". The Tweening of
the text to
the right and changing the color perhaps could be replaced or
appended
by your drop-down-needs? The Drop-Down is another Animated
Button!?
Bye
Klaus -
How to create a text box in ascreen painter?
HI friends can anyone tell me how to create a text box in a screen painter?
And attachment BROWSER like what we attach for any documents in over mail.
Example when we click on browser the path of the computer has to be opened and by giving the document name attach and the document will be attached. Please tell me the procedure....
ThksTo get the best answers, I think you probably need to break down your post into several different one with a separate question in each, along with the business problem you are trying to solve... but here's a few pointers for you to research...
Textbox - there's plenty of info in SDN on creating a custom control with a textbox e.g. Re: Text Editor on modulepool Screen and sample code in SAP too.
Attachments - If this is for an email, then GUI_UPLOAD might help and the BCS class is the newer way to send messages... check out Re: Offline Approval: RBBP_NOTIFICATION_OFFAPP Vs RSWUWFMLEC for example... if this is an attachment for an SAP object such as an FI Document or Purchase Order, then the Generic Object Services (GOS) could be what you want e.g. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3
Jonathan -
Hello all,
I have no idea how to describe what I am asking besides the term "drop down div". Though I am not sure if that is the correct term.
I have been tasked to create a quiz similar to the one linked below.
Bioenergy Quiz
The two elements of this quiz that have me stumped are below. Any help you can provide will be greatly appreciated. Thank you.
1) How to set up the drop down div functionality?
So when the "Start Quiz" button is clicked, the content for the Question 1 is added to the bottom of the content for the Bioenergy Quiz title.
2) How is the focus changed to the new content?
How is the functionality set up to go down to the bottom of the page to show the new content?Hi Charles,
Here is a case. A drop down list can be created using the select tag.
You can open a new file and copy and paste this code.
1) creationComplete panel:
var optionTags = "<option>Title</option><option value='case1'>first Case</option><option value=case2>second Case</option><option value='case3'>third Case</option>";
sym.$( "<select id='options' title='Please one choice'>"+optionTags+"</select>" ).appendTo( "#Stage" );
sym.$("#options").css({ "cursor":"pointer", "position":"absolute", "top":"20px", "left":"20px","width":"100px"});
2) compositionReady panel:
var userChoice = function(){
switch( sym.$("#options").val() ){
case "case1":
//add code here
console.log("case1 selected");
break;
case "case2":
//add code here
console.log("case2 selected");
break;
case "case3":
//add code here
console.log("case3 selected");
break;
default:
//add code here
} // switch
} // userChoice function
sym.$("#options").change( userChoice );
It returns using Safari 8:
Note: jQuery is required.
Maybe you are looking for
-
Can I use, and how can I use voice control with my iPad 2?
Is it possible to use the voice control with my iPad 2? If so, how can I use it? Since there is no siri for iPad yet, I'd like to use something similar to it and I've seen this built in voice control before but I was not sure if it's possible with th
-
Is there a way to change the transparency setting on the new Yosemite? I really hate it!
I recently downloaded OS X Yosemite, and the only thing I'm having a problem with is the transparency of all the windows. I can't find anywhere to change it in the System Preferences. Any advice?
-
Hi All, Is there any standard report to see the PR to GR details. its actually to Calculate the KPI's for our Buyers. report need to show the PR details,final PR release date,Final PO release date,GR date etc.. I tried to search in the system ,but i
-
Unable to run GTC after importing 11g
Hi Experts, I have a requirement to migrate my GTC from one app server to another I have done the below steps: 1. Imported the UDF's (Validated in SDC and User.xml file) 2. Imported the sandbox 3. Imported the GTC connector Now, when i try to open th
-
Outlook 2010 Data files have reached maximum size and can't delete.
This is the message I get whenever I try to send/rec mail.. it is also the message that I get when I try to delete any messages, whether from inbox, sent items, or deleted... just seems locked up. This is not enterprise or Exchange server this is fro