Add Option of choosing values from list in "Person Responsible" field of Cost Center Master
Dear All,
Could anyone advise me how can I add the option to Choose Values from list to field "Person Responsible",
in Cost Center Master Data ?
The Technical Name of this field is VERAK, and currently it is an open field.
I would like to allow the user to choose values from existing list.
Thank you!
Orly
Hi Orly,
You have take it to your ABAPer, who will have to modify the attributes of CSKSZ-VERAK field in CSKSZ structure. ABAPer will have to define it with foreign key and introduce the name of the table, which will be used for deriving the available values. No standard table exists for it, but you can either create your own Z-table or take it from users table (USR02) if you have the necessary information there. Of course, this action would account for modification of standard SAP structure.
Regards,
Eli
Similar Messages
-
Get column values from list of values programmatically
hi all
how i get column values from list of values programmatically in the
returnPopupDataListener methodIf this answers your question , please close this thread by marking it as answered.
Thanks -
How to get value from list item
Hi all,
How to get value from list item?
I have a problem with the List Item object
in the Oracle forms.
How can I retrieve the selected item from
a list ?
I didn't find any function like 'list.GET_
SELECTED_ITEM()'...
thanks
BalaHello,
You get the value as for any other Forms item:
:value := :block.list_tem ;Francois -
We have to add about 900 email address to cost center master data. Whats th
Hi sap guru's,
We have to add about 900 email address to cost center master data. Whats the best way of achieving this?
pls help me.
Thanks in advance,
RAVIHello Ravi,
I do not see any email ID field in the cost center master. You may insert the ID in one of the available address fields. You may use LSMW or BDC to upload the same or even mass processing transaction KS12.
BR // SG -
Select-options - select multiple values from personal value list
Hi experts,
In my application, I am using select-options. I select the values required from the search help into the personal value list . I want to copy these values from the personal value list into my ranges table. Do I have to copy them one row at a time. Is there any way to select the values directly into the ranges table of the select-options field?
Regards,
Abdullah.Boy, this is something we're struggling with too. So we'd like to hear others' ideas on this also.
thank you,
iggy -
on newform.aspx just above the top of cancel button I want to put 1 hyperlink "Help"
but I want to do this by script/jquery by reading my configuration list where 1 column is TITLE and other is- URL
Configuration List has 2 columns Title and URLValue
Title UrlValue
HelpNewPage
http://url1
HelpEditPage http://url2
so script should read Title and display "Help"--->1st part on NewForm.aspx/EditForm
Script should read UrlValue column and on click of help-(display link) the respective url should be open in new window.-->second part
Please let me know reference code for adding anchor tag dynamically by reading from list
Help/Reference
http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=5
I can see hyperlink near cancel button-
//This block is just placing help link near cancel button-
$(document).ready(function() {
GetHelpLinkFromConfigList();
var HelpLinkhtml ='<a href="#" text="Help">Help</a>';
var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
var HelpLinkhtml ='<a href="#" text="Help" onclick="GetHelpLinkFromConfigList();">Help</a>';
var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
var HelpLinkimageButton ='<IMG SRC="../../Style Library/Help.bmp" style="width:35px;"/>';
var position1 =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkimageButton );
//Rest script
function GetHelpLinkFromConfigList()
//The Web Service method we are calling, to read list items we use 'GetListItems'
var method = "GetListItems";
//The display name of the list we are reading data from
var list = "configurationList";
//We need to identify the fields we want to return. In this instance, we want the Title,Value fields
//from the Configuration List. You can see here that we are using the internal field names.
var fieldsToRead = "<ViewFields>"+"<FieldRef Name='Title' />"+"<FieldRef Name='Value' />"+"</ViewFields>";
//comment
var query = "<Query>" +
"<Where>" +
"<Neq>" +
"<FieldRef Name='Title'/><Value Type='Text'>Help</Value>"
+
"</Neq>" +
"</Where>" +
"<OrderBy>" +
"<FieldRef Name='Title'/>" +
"</OrderBy>" +
"</Query>";
$().SPServices(
operation: method,
async: false,
listName: list,
CAMLViewFields: fieldsToRead,
CAMLQuery: query,
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function() {
var displayname = ($(this).attr("ows_Title"));
var UrlValue = ($(this).attr("ows_Value")).split(",")[0];
AddRowToSharepointTable(displayname,UrlValue)
function AddRowToSharepointTable(displayname,UrlValue)
$("#NDRTable").append("<tr align='Middle'>" +
"<td><a href='" +UrlValue+ "'>+displayname+</a></td>"
+
"</tr>");
<table id="NDRTable"></table>
sudhanshu sharma Do good and cast it into river :)Hi,
From your description, you want to add a help link(read data from other list) into new form page.
The following code for your reference:
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(AddHelpLink, "sp.js");
function AddHelpLink() {
var context = new SP.ClientContext.get_current();
var list= context.get_web().get_lists().getByTitle("configurationList");
var camlQuery= new SP.CamlQuery();
camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>Help</Value></Eq></Where></Query></View>");
this.listItems = list.getItems(camlQuery);
context.load(this.listItems,'Include(Title,URL)');
context.executeQueryAsync(function(){
var ListEnumerator = listItems.getEnumerator();
while(ListEnumerator.moveNext())
var currentItem = ListEnumerator.get_current();
var title=currentItem.get_item("Title");
var url=currentItem.get_item("URL").get_url();
var HelpLinkhtml ='<a href="'+url+'">'+title+'</a>';
$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
},function(sender,args){
alert(args.get_message());
</script>
Result:
Best Regards
Dennis Guo
TechNet Community Support -
i am populating a list box with Id's and names from a database and im trying to get the values from the list box depending what the user chooses, i.e if they choose the first choice in the list box the value i want to put in a variable is 1, etc
here is the code for the list box, please help
<select name="lstFilm" size="1">
<%while (result4.next())
{%>
<option value="<%result4.getInt(1);%>">
<%out.println(result4.getString(2));%>
</option>
<%}%>
</select>String[] lstFilm = request.getParameterValues("lstFilm");
Of course, it'll only return selected values. It'll be whatever the option values are. -
How to select value from list with multiple selections ?
HI,
i have a list with multiple selections where i show email address retrieved from database.
what i want to do is to send the selected email address to the invoiceedit.jsp.
please look at the following code which gives you the better idea.
<td class='smalltext'><select name="email" size="3" multiple="multiple">
<%
Connection conn = null;
Statement stmt = null;
Statement stmt_contactperson = null;
Statement stmt_address = null;
try{
conn = getREConnection();
stmt = conn.createStatement();
ResultSet rs = null;
rs = stmt.executeQuery("SELECT PROPERTYID, VALUE FROM PROPERTIES WHERE ENTITYID="+ g_strGroupID+" AND NAME = 'invoice_default_email'");
int numofrows = 0;
while(rs.next())
%>
<option value="<%= rs.getString("VALUE") %>" selected="selected"> <%= rs.getString("VALUE") %> </option>
<%
}//end of while
%>
</select>
<a href="invoiceedit.jsp?entityid=<%=g_strGroupID%>&add=1"><font color="#000000">Add</font></a>
<a href="invoiceedit.jsp?entityid=<%=g_strGroupID%>&email_to="><font color="#000000"> Edit</font></a> </td>thanksUse a form button instead of a link so that you can send it as a request parameter to the server. In the server side just use HttpServletRequest#getParameterValues() to obtain all values for the given parameter name. If you really need a link rather than a button, then use Javascript to submit the form on click of the link.
That said, your design is bad. Java code belongs in Java classes, not in JSP files. Database access logic belongs in a DAO class. Business and controlling logic belongs in a Servlet class. Only presentation logic belongs in the JSP file. Avoid scriptlets as much as possible and use JSP EL and/or JSTL instead. -
How to access a value from "List of Values" by giving a name?
I have a "List Of Values" defined in my BI Report. It comprises list of label-value pairs.
I have defined a parameter :p_Value for the above "List Of Values" defnition. this parameter is used in datasource sql defnition to filter the query results. I configured a template which has a table that shows all the parameters used for filtering query results. If I give <?$p_Value?> in the template then the parameter value is rendered on it. But I want the "name" of the parameter and not the value. Can anybody tell me how to access name of the parameter which refers to one of value in "List of Value" defnition?option 1:
Can you get the value from the DB in the report sql ?
You have the code, inside the report query, if you can get the decoded value form that
option2:
create another paramater, LOV and query, and make it as hidden, and use the first :param_1_value in the lov query in the second param and decode the value.
Now , you can refer the :PARAM_2_value in template which will have decoded value. -
How can I delete null values from List Item?
Hi Friends,
I used List item for field job_Type, I entered values in List item at design time through property pallet. When I run form I will see null values in this List Item.
How can I remove these null values from the List?
Best regards,
ShahzadDear Shahzad,
It can be removed by adding the following code in the When-new-Form-Instance.
Set_item_property('List name', required, property_true);
:block_name.list_name := <put your default value here>; (If you didn't oput the default value, then you will get some problem and the cursor may not navigate away from the list).
Senthil Alagu .P. -
Dynamic SQL query to get single value from list in a column
I have two tables: tblWorkers and tblSkills. tblWorkers has a
column, Skills, which is populated from a multiple-checkbox form
field with one or more skill_IDs from tblSkills, so each
tblWorkers.Skills consists of a list of one or more comma-delimited
values. For any Skill_ID, I need to generate a listing of all
Workers with the corresponding skill, so I have tried to do
something along the lines of SELECT WorkerName FROM tblWorkers
WHERE Skills IN (Skills, #FORM.Skill_ID#) ... or WHERE Skills IN
(ListFind(Skills, #FORM.Skill_ID#)) ... etc. ??? My results (once I
got data type mismatches out of the way) return all Workers, not
just those with the desired Skill. There must be an easy way to do
this ... How do people with a bit more CF/SQL experience than I
have do this???quote:
Originally posted by:
lucapac
I have two tables: tblWorkers and tblSkills. tblWorkers has a
column, Skills, which is populated from a multiple-checkbox form
field with one or more skill_IDs from tblSkills, so each
tblWorkers.Skills consists of a list of one or more comma-delimited
values. For any Skill_ID, I need to generate a listing of all
Workers with the corresponding skill, so I have tried to do
something along the lines of SELECT WorkerName FROM tblWorkers
WHERE Skills IN (Skills, #FORM.Skill_ID#) ... or WHERE Skills IN
(ListFind(Skills, #FORM.Skill_ID#)) ... etc. ??? My results (once I
got data type mismatches out of the way) return all Workers, not
just those with the desired Skill. There must be an easy way to do
this ... How do people with a bit more CF/SQL experience than I
have do this???
As Kronin implied, we normalize our databases. If you don't
understand that answer, the book "Database Design for Mere Mortals"
is often mentioned on this forum. -
Problem in picking up the value from list box
Hi,
I have created a parameter list box on the selection screen using VRM_SET_VALUES fn module and populating the list box. Now my problem is when i select one value from the list box and executing, it shows null value.
AT SELECTION-SCREEN OUTPUT.
PERFORM f_f4help.
FORM f_f4help .
REFRESH: gt_tvaut,
gs_list.
CLEAR: gs_tvau,
gs_value.
SELECT spras
augru
bezei
FROM tvaut
INTO TABLE gt_tvaut
WHERE spras EQ sy-langu.
IF NOT gt_tvaut[] IS INITIAL.
LOOP AT gt_tvaut INTO gs_tvau.
gs_value-key = sy-tabix.
CONCATENATE gs_tvau-augru
gs_tvau-bezei
INTO gs_value-text
SEPARATED BY space.
APPEND gs_value TO gs_list.
ENDLOOP.
ENDIF.
param = 'P_AUGRU'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = param
values = gs_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.
How to get the value which is selected in the selection screen becoz i'm using p_augru in further selection queries..
i have tried reading gs_list table but its not working.Move the portion of function call 'VRM_SET_VALUES' to event at selection-screen on value-request for P_AUGRU. Rest is OK...
I mean, Your code should be like this.
AT SELECTION-SCREEN OUTPUT.
PERFORM f_f4help_values.
FORM f_f4help_values.
REFRESH: gt_tvaut,
gs_list.
CLEAR: gs_tvau,
gs_value.
SELECT spras
augru
bezei
FROM tvaut
INTO TABLE gt_tvaut
WHERE spras EQ sy-langu.
IF NOT gt_tvaut[] IS INITIAL.
LOOP AT gt_tvaut INTO gs_tvau.
gs_value-key = sy-tabix.
CONCATENATE gs_tvau-augru
gs_tvau-bezei
INTO gs_value-text
SEPARATED BY space.
APPEND gs_value TO gs_list.
ENDLOOP.
ENDIF.
ENDFORM.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_AUGRU.
PERFORM f_f4help.
FORM f_f4help
param = 'P_AUGRU'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = param
values = gs_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.
ENDFORM.
Rgds,
Birendra -
Hi all,
I have a Form which has text_field columns as below , created from table RECEIVED_FORM_15G. This table is blank.
1) CUST_CODE with 1 line item. (Number of Items displayed=1)
2) ACCT_FD_NO with 10 line items. (Number of Items displayed=10)
There are more than 1 ACCT_FD_NO for 1 CUST_CODE.
When i enter the CUST_CODE and press tab, all the values of ACCT_FD_NO must get displayed. I am taking ACCT_FD_NO values from another table called KEC_FDACCT_MSTR
and want to display ACCT_FD_NO, one below other (line item). So i put in the following code:
BEGIN
FIRST_RECORD;
FOR CUR_R IN (SELECT ACCT_FD_NO FROM KEC_FDACCT_MSTR WHERE STAUS='E' AND ACCT_CUST_CODE=:CUST_CODE)
LOOP
NEXT_RECORD;
:ACCT_FD_NO :=CUR_R.ACCT_FD_NO;
END LOOP;
END;
But the problem is i'm not able to display the captured value in next consecutive line items.
It is getting displayed in first & second line item only.
The first value gets displayed in first line item, then the cursor moves from first line item to second line item,
the second value gets displayed in the second line item, (this is because of NEXT_RECORD in my code)
later all the values are getting displayed in the second line item only. (I checked it using message call.)
I want it to display one below the other.
The problem is the cursor is not moving to third line item after the second line item.
So the remaining values gets displayed in the second line item only.
So what is wrong in my code??
Where should i place the next_record to make the cursor move from one line item to next line item i.e from second line item to third line item
& third line item to fourth line item & so on.... Please let me know.
Thank You.
Oracle Forms Builder 6i
Oracle 9i.The above code is right..
The only mistake was In the property palette of CUST_CODE, "required" was not set to "Yes" .
So after setting required to 'YES' , it worked perfectly fine. -
Default value from another table in dummy field on a portal form ..
A form based on a table :
id
name
xx_id
I created a dummyfield on the form in which i would like the
name corresponding to xx_id -> I would like to fetch a value
from another tabel into a dummy field.
thanx
Trine HindsholmI could do this task by creating the form manually - is there anyway I can modify the insert for a form created by the wizard?
-
Hi,
I would like to retrive the data from the table COEP ,based on KOKRS,BELNR fields.
I need the output for Cost centre, cost element, wbs element,net work ,activity.
These values are storing OBJNR ,OBJNAR_1,OBJNR_2,OBJNR_N3.
But here always these field are not giving the correct values.
for example : for one record COST CENTRE vlaue is storing in OBJNR_1 field,
for one record COST CENTRE vlaue is storing in OBJNR_2 field,
for one record COST CENTRE vlaue is storing in OBJNR_3 field.
Here SAP has used a generic approach for this.
How can I dispaly the values in this case ?
Thanks and Regards
Srinivas.NHi,
I am asking, how can we say OBJNR_1 value alwyas belongs to cost center ?
USPOB is not filling always.
Maybe you are looking for
-
HOW TO Delete Unused Media from FINAL CUT PRO
*HOW TO DELETE UNUSED MEDIA FROM HARD DRIVE IN FINAL CUT PRO.* Keywords: disk disc drive space remove compressor SUMMARY: Say your original clip is 10 gigs, you can use only what you need and delete the rest from your hard drive. I know people on the
-
Excel as default...
I have Excel on my Mac, but Numbers always opens by default when I download spreadsheets. I'm not really getting on with Numbers and copying data from Numbers to Excel is a real pain. I love my Mac but I really can't be bothered to learn Numbers wh
-
Help Please!!! Safari, System Preferences and App Store all quit unexpectedly
Process: Safari [583] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 6.0.5 (8536.30.1) Build Info: WebBrowser-7536030001000000~6 Code Type: X86-64 (Native) Parent
-
Files reverting back to random saves
I'm working in Indesign CC. I've worked on a layout over the last several days and have finished several pages on the same document. then suddenly after creating a low-res pdf in acrobat my documnet reverted back to the blank document that it was on
-
Environment multi-instrument frustrations.
I have done an extensive search on this and other forums on setting up a multi-instrument in the environment for the purposes of getting logic to display the patch names of my external synths complete with the ability to change sounds and banks from