Drop down selection for a column in Table Control
Hello,
I have a table control where data is displayed. The user can fill data in one of the column and save. We want to have a drop down in that column where user can select a value. This column is a qunatity field.
Please guide how it can be done.
RR
In SE51 screen editor, double-click on the editable field and set the dropdown listbox at listbox. As I don't think that you have domain value or table value for this field, set the field value list to "A" from program.
Then in the PBO use the FM VRM_SET_VALUES to fill the list of allowed values. do this in a module called in the LOOP AT WITH CONTROL which fills the table control from the program data. (use a name like TC_XXXX_CHANGE_FIELD_ATTR)
I'm not sure SE51 will allow you to use a quantity field in a listbox, so use a character field (check also right justified box on dynpro field attrinutes window), in VRM_SET_VALIUES parameters and in initial filling of the screen field use a WRITE xx UNIT yy to fill the screen field. Then a MOVE should perfect correctly when filling actual database/abap field by a move statement.
Regards,
Raymond
Similar Messages
-
Drop Down appearance for writeback column field
How to display drop down appearance for writeback column field(set of values in drop down for that field in the Report UI)? Currently Writeback feature in 10g provides only text Box for writeback field.
Not possible. Writeback is explicitely meant for specific updates and inserts and not for massive arbitrary record creation (official Oracle statement).
-
Default value for a column in Table Control
Hi friends, can i set dinamcally a default value for a column in table control?, this column is check type. This default value must appear in empty rows,
thanksADD A MODULE AS Module yyyy In ur PAI.
as
In PAI.
LOOP at itab.
Module YYYY
ENDLOOP.
Module YYYY.
LOOP AT SCREEN.
IF SCREEN-NAME = 'ITAB-VAL.
ITAB-VAL = 'XXXXXXXX' "(DEFAULT VALUE)
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
End module.
*note
make this event work only if the previous column is filled okay.
the display will be in display mode on the screen as screen-input = 0.
see that in the table control u can get the table field for all the rows even though you are processing on some fields .
so what u do is make that particular filed masked(no i/p field and populate the field that will be better instead of populating all the columns okay.
hope this helps you out ,
regards,
vijay. -
Drop down list for a field in table maintainance
Hi,
I have created a table maintainance for ztable. I need a drop down list for field so that user can select values present in the list while giving entries.
I can not use fixed values in domain, because feild length is more and it wont fit into fixed values.
I am trying to use VRM_SET_VALUES FM but not getting output. Can any one help me on this.
Thank you,
Regards,
Kusuma K.TYPE-POOLS: vrm. Include this in your program
DATA: l_name TYPE vrm_id,
l_list TYPE vrm_values,
l_value LIKE LINE OF l_list.
LOOP AT it_paym INTO w_paym.
l_value-key = w_paym-pay_method.
l_value-text = w_paym-text.
APPEND l_value TO l_list.
ENDLOOP.
l_name = 'Table-field'. change it as per your requirement this has to be perfect
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = l_name
values = l_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Hope it helps you,
Abhijit G. Borkar -
In the previous versions of Firefox, in any open tab that had multiple windows open, i. e. from a search where you would go to many different windows, there was a drop down selection to the right of the "back/forward" button that would let you select prior windows ... and always the first one. That is no longer there. It was extremely helpful and I used frequently. Can you add it?
You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker -
Not setting selected value in column of table control
Hi,
I have MATNR field in table control.
In PAI code is as follow.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
MODULE VALIDATE.
LOOP WITH CONTROL TC_FORMV.
FIELD /SISLEMCU/CNVADTL-MATNR SELECT *
FROM /SISLEMCU/CNVA01
WHERE WERKS = TXT_PLANT
AND CHARG =
/SISLEMCU/CNVADTL-CHARG.
INTO /SISLEMCU/CNVADTL.
MODULE read_table_control.
ENDLOOP.
MODULE USER_COMMAND_0500.
When i take the help in MATNR column the above query works fine but when i select the entry from help MATNR is not gets set in column in table control.
Plz help me regarding this.
Thankx in adv.
Regards,
Deepak.When you select a value, PBO as well as PAI gets triggered. When PAI gets triggered, your query gets executed which gives sy-subrc <> 0 and due to this it might not filling the data selected..
-
Contolling drop down for a field in table controll.
Can we controll the drop down of a field in a table controll ..which will vary from one row to another.
Like for one row that field shud have add, delete in drop down, and for another row it shud hav only replace in the drop downIn the screen field attributes of that particular field ( i think the option will be in the third row of the attribute ),
there change it as list box with key or listbox.
Sorry i just answered looking at the thread subject.
Do you want it in drop down or whether you want to correct the error ????
Edited by: Keshav.T on Jan 7, 2010 2:28 PM -
Drop down values for table in a view not getting populated dynamically
Hi Experts,
The problem which i am facing is as follows
In an existing web dynpro component , i already have a view and it consists of table which has 3 columns.All the three columns are non editable
MATERIAL MAT_DESC MAT_DEL_FLAG
ABC
EFG
HIJ
Now i need to add 2 more columns after the MAT_DEL_FLAG.These two PLANt and STORAGE LOCATION columns must have drop down values
The context refers to a standard Database ZTABLE to which these two fields are added.
MATERIAL MAT_DESC MAT_DEL_FLAG PLANT STORAGE_LOCATION
ABC
EFG
HIJ
The Plant column must have the drop down values based on Material .
If we select some value for Plant , then based on the value of plant the storage location drop down values must be populated.
So as per this logic , the drop down values for plant for each row must be different.
Please let me know how to achieve this.
This is a normal table and not an ALV table.
Also please let me know whether the drop down field must be drop down by key or drop down by index.
This is very urgent.
Thanks in advance
SindhuRefreshing things again for you -
1. As I have already pointed, create 2 context attributes for VALUESETS for both plant and St.loc.
2. Create dropdown by indexes for both of them, assign valusets to respective attributes using node information.
3. Go to the plant dropdown and create the action for it ONSELECT event - when you chagne the dropdown of plant then populate the respective storage loc.
4.Now, As you are selecting a row (leadselect) you have populated the plant and loc details....write the code for lead selection event of the table
You will get the lead selection index right using node interface (IF_WD_CONTEXT_NODE)
LOOP AT ITAB INTO WA_ITAB.
if sy-tabix eq lv_lead_index.
clear wa_valuset.
wa_valueset-key = 'X'. "plant
wa_valueset-value = 'X'.
append wa_valueset to it_valueset1.
* popultae the storage location valuset based on the plant selected (bydefault it is 1 right in dropdown)
clear wa_valuset.
wa_valueset-key = 'XX'. "storage loc
wa_valueset-value = 'XY'.
append wa_valueset to it_valueset2.
else.
* Fill the valusets for all other rows as different or as per your requirement.
endif.
wa_itab-valuset1 = lt_valueset1.
wa_itab-valuset2 = lt_valueset2.
modify itab from wa_itab transporting valuset1 valuset2.
clear wa_itab.
ENDLOOP.
lo_node->bind_table ( it_tab).
Now for that Row, if a plant value is changed, respective storgae loc has to be filled right...then in that ONSELECT of plnat drodpwon again you need to write a piece of code...using the same code with a little modifications.
Hope this is clear.
Check this article on the same - but here ALV is used...the concept is same use it for your table -
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cbdde3-fe58-2c10-fcbc-8db18e693877?QuickLink=index&overridelayout=true
the above code you hvae pasted - i think it fills only for the 1st time....
Regards,
Lekha.
Edited by: Lekha on Dec 20, 2011 12:00 PM -
Web Service with Drop Down Lists for database selections
Hello,
I want to define a Web Service with the JDeveloper which can do the following.
I´ve got a database table with several columns which represents a customer adress and name.
On a WebSite I like to have three Drop Down Lists to search in that table. The first list should include the field "name". When I select a name there the second list should show all streets (field "street") where people with the selected name live. When I select the street the third list should show me the house numbers (field "hn") of the customers with the selected name and street.
What have I to do to define a application, a project and so on?
Many Thanks!Hello,
This question is not directly related to Web Services, since in this case you can consider that the Web Service is your "model" providing data to your view (JSP). One of the question I would like to ask you is: why do you want to use a Web Service to do that? and how you want to deploy this?
In a general manner, if you use Web Service it is to be able to reuse the business logic in other projects, so based on this statement I would create a specific project that will contain you "model" so all your services.
The to consume it from your JSP you have different ways:
- create a Java proxy, or use @WebServiceRef to call the client
- use Javascript to call the service directly from the HTML page, take a look to the Oracle Web Service endpoint page, where you can see some Javascript stub links.
Please give more details about your project and needs and I will try to give you a proper answer.
Regards
Tugdual Grall -
Drop down required for select-options
drop down required for select-options as displayed in VT01N 'shipment type'.
Hi
Check out..this example
data: i_value TYPE vrm_values,
wa_value LIKE LINE OF i_value.
PARAMETERS : p_field TYPE dd03l-fieldname AS LISTBOX
VISIBLE LENGTH 80 OBLIGATORY.
INITIALIZATION.
*-- Populate List Box
*-- TEMKSV - Legacy Value
wa_value-key = 'TEMKSV'.
wa_value-text = 'Legacy Key'.
APPEND wa_value TO i_value.
CLEAR: wa_value.
*-- Installation
wa_value-key = 'INSTLN'.
wa_value-text = 'Installation'.
APPEND wa_value TO i_value.
CLEAR: wa_value.
Setting the selection
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_FIELD'
values = i_value.
Patil -
What is forwarded when " as in-line text" is selected in the drop-down box for forwarding a message. i.e. are attachments forwarded with the message or not?
Some websites require a special client certficate for access. If you don't have that certficate, you'll have to contact the site operator to find out how to get one.
Sometimes the problem is caused by a web server that is configured to request an optional client certificate. Safari treats the request as mandatory. In that case, other browsers such as Firefox and Chrome may be able to connect to the site, because they ignore the request.
The first time you were prompted for a certificate, you may have clicked through a dialog that requested access to the Apple certificate in your keychain that is used to secure the iMessage service. In that case, you may be able to regain access to the site in Safari by doing as follows.
Back up all data.
Double-click anywhere in the line below on this page to select it:
com.apple.idms.appleid.prd
Copy the selected text to the Clipboard by pressing the key combination command-C.
Launch the Keychain Access application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
Paste into the search field in the Keychain Access window by clicking in it and pressing the key combination command-V. An item may appear in the list of keychain items. The Name will begin with string you searched for, and the Kind will be "certificate."
Delete the item by selecting it and pressing the delete key. It will be recreated automatically the next time you launch the Messages or FaceTime application.
The next time you visit a site that prompts for an optional client certificate, cancel out of the prompt. You may have to do this several times before the server stops asking.
Credit for this idea to Christian Braukmueller of SAP. -
Drop down selection is not refreshing the page data correctly
I have a drop down menu for a CREATE DATE. The record is based on a Identification ID. This identification ID can be in our system for multiple CREATE DATES. The CREATE DATE drop down is populated by checking how many different CREATE DATES there are for a particular identification ID.
The last identification ID looks great. It populates all the fields. However if you select an older CREATE DATE, the page does not get populated with that CREATE DATES data. The whole page even looks different. It looks like an older version of the page before I added all the new fields.
What is causing the older CREATE DATES not to look like the current create date.
Please let me know if you need any additional information. Thank you!!
PattibzThank you for your reply. Here are some details. Please let me know if I am not giving the information you need.
One page item called CREATE_DATE displayed as a Select LIST with submit. The source type is a database column called ID_IDENT. The ID_IDENT is just a
The List of Values is: Named LOV is the Select Named LOV. The list of values definition is a query against a table in our database:
select CRE_DT, ID_IDENT from IDENT_TABLE where UNIQ_ID = :P3_UNIQ_ID
ORDER BY CRE_DT DESC
This is the date on which the ID_IDENT data was created. The date is displayed in a pull down menu, which allows you to select from a list of available "as of" dates when viewing the data. Only data on the most recent ID_IDENT record may be manually altered.
I have a UNIQ_ID = '34587443'. It acutally has records in the database with that UNIQ_ID. The only difference is the create date. On record of 345778 was done on 10/1/2008 and the current date 10/13/2008.
I see these two dates in the CREATE_DATE pull down menu. This is fine. The drop down orders the dates by DESC so I have the lastest date on top fo the pull down.
If I want to pick the date of 10/1/2008, I need go into the web page, open the Create Date pull down and select the older date.
When I pick the older date 10/1/2008, the page does not look the same as the defaul tor oldest time date and numbers.
The page is different and most of the data on the webpage is there.
What should have happened is that I choice the newer date from the drop down, the page refreshes with the data from 10/1/2008
and all the parameters are displayed from the date of 10/1/2008. It isn't only part of the fields are being populated and the page itself doesn't refresh to the look of the original page. Thank you.
Edited by: pattibz on Sep 12, 2008 11:15 AM -
How to add drop down list for query manager report in sap business one
Hi Every one,
I need drop down list for parameter selection in sap business one Query Manager.I have two Parameters 'Sales Order','Invoice'.
Please suggest.
Thanks and Regards
DEVHi,
you need to use this :
/*select from [dbo].[OINV] T2*/
DECLARE @Invoice varchar(100)
/*where*/
set @Invoice =/* T2.DocNum */N'[%2]'
you can change the tables and the parameter number but you have to write it exactly that way.
when you run the query within the SBO you will get list of objects ( in this case list of invoices)
hope it was helpful
Shachar -
I manage a ton of accounts for different customers suing the same login pages (GoDaddy, WordPress, etc.) I use the Master Password Feature to help keep track of the many variants in logins and passwords.
After some unknown period of time, even closing the page tab so a new page session is started at the remote server, Firefox does not provide me with the usual drop-down selection list of the previously used login names. However, if I open a new FF window (file/new window) from the menu bar, the drop down becomes available.
How can I refresh the original window session in FF or change the timeout length?Well, you said LOV...that might mean you are using JDev 11g. Are you? If so what technology stack are you using?
Assuming you are using JSF (?) you might be "backing" your list component in the application scope...but that is not likely.
If you are using ADF/BC on your business component level, you can clear your view object from which you are querying the possible values of this list...unless your you have made a method to compile this list...in which case you know what you are doing...so that is probably not the case.
Essentially you want to requery the VO upon which your LOV is based...unless you are using JPA or something...and then I know "requery" is not the right word...is it? -
Performing Calculation based on drop down selection
I need help with simple calculation. Im building an estimate form, and have the fields:
"Total" (manually entered total amount)
"GrandTotal" (automatically calculates Total*1.07 to add 7% NJ sales tax)
Next I have 3 drop down boxes with payment options, and then text fields to receive $$ amounts based on drop-down selection:
"1st Payment Option" (options: 50% down, 100% paid in full, custom entry)
"2nd Payment Option" (options: 50% at completion, 25% in 14 days, custom entry)
"3rd payment Option" (options: 25% completion, custom entry)
For whichever options are selected in the drop-downs, i'd like the text fields to auto-fill.
(Text fields are titled "1st Payment", "2nd Payment", "Final Payment".
So how do I take the value from "GrandTotal" and get it to automatically be calculated by 50%, 25% or whatever and be filled into separate text fields?It can be done with proper form design. You can use the any of the 3 calculation options but some may require some extra form fields and you can specify a numeric value to a drop down option that is different from the displayed text.
Maybe you are looking for
-
How to create a template for a Workflow
I have created a workflow that has couple of dataflows inside it. Now, I need to create another 20 workflows which have the similar logic to that of the first workflow, except for couple of changes such as the source file, etc. Instead of creating th
-
I hava an Apple ID which I set up for my daughter when she received her I Pod, I now have an I pod and want to set it up to purchase music, How do I add this to My Apple ID when I already have an I pod associated with my e-mail address?
-
Help me to search on calendar for more than one year
I desparately need to be able to search on calendar for more than one year., which was taken away on the new operating system. I have kept personal memories of my husband on there in the notes sections on days when we did things. ( I have also kept
-
Get VLC to do fullscreen float in Xmonad
Hi, Short background: I have started to use XBMC for watching and organizing videos. Everything works great except playing the videos. I have a constant stutter about every 3-4 seconds and from time to time the picture freeze but the movie running in
-
KB2918614: Error 997.Overlapped I/O operation is in progress.
During the installation of some programs we suddenly get the error 'Error 997.Overlapped I/O operation is in progress.'. These programs always installed without any problems. After searching the internet we found several references to KB2918614 and t