How to assign a query retrived value to a user defined object in a table
how to assign a query retrived value to a user defined object in a table
Rajeshwar,
If you use the "Search" feature in this forum, you should be able to find helpful links to similar questions. You could also look at the RecordSet and DoQuery documentation in the SAP Business One SDK Help Center documentation to assist you with your question.
HTH,
Eddy
Similar Messages
-
How to assign list of default value for select-option variable???
Hi every one
This is Deepak,
I want to know how to assign list of default value to select-option variable ? please any body tel me solution
for example
select-option matnr for mara-matnr default ..............and here i want to give more than 1 values that will be default value and use can choose any one at the time of input .
Thank you in advance
DeepakHi.
Check the following sample code.
REPORT ztn_test.
" It is example for list populating.
TABLES:knvp.
data: BEGIN OF itab OCCURS 10,
kunnr like knvp-kunnr,
END OF itab.
data: wa_itab like itab.
TYPE-POOLS: vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
PARAMETERS: s_kunnr(20) type c as LISTBOX VISIBLE LENGTH 40 .
AT SELECTION-SCREEN OUTPUT.
SELECT kunnr from knvp into CORRESPONDING FIELDS OF TABLE itab WHERE parvw = 'SP'. " SP for ur requirement
" I have used loop to populate some values from table
loop at itab into wa_itab.
name = 'S_KUNNR'.
value-key = sy-tabix.
value-text = wa_itab-kunnr.
append value to list.
clear wa_itab.
endloop.
" If u want individaully assign the values change the code as
name = 'S_KUNNR'." Select option name
value-key = 1." Index
value-text = 'VAL1'.
append value to list.
name = 'S_KUNNR'." Select option name
value-key = 2." Index
value-text = 'VAL2'.
append value to list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING id = name
values = list.
Edited by: tahir naqqash on Feb 21, 2009 4:38 PM -
How to assign single responsibity to all the applications user?
how to assign single responsibity to all the applications user?
Thanks in advanceUse FND_USER_PKG.AddResp
How to use FND_USER_PKG.AddResp
Re: How to use FND_USER_PKG.AddResp
single responsibility to all users
Re: single responsibility to all users -
How to assign the status profile to that particular user..?*
Hello Everyone..
I have created a status profile for the particulat sales order type so that a particular user can confirm the sales order and the pass it,so that further changes can be avoided.The profile has been assigned to Item category also.
Now My problem is ,How to assign the status profile to that particular user..?
so that only the user is allowed to change the order.
ThanksHi,
Maintain authorization key (authorization code) in status profile.
We do not assign directly to user. We assign to role E.g sales manager / sales employee etc...
We assign T.codes to role and assign role to user.
Goto Role T.code PFCG. Enter role and click on change button.Goto Authorizations tab.
Click on authorization data .
Expand the Cross-application Authorization Objects tree. Expand Status Management: Set/Delete User Status using Transaction.
Click on Authorization key button, assign Authorization key.
Click on status profile. assign status profile.
Regards,
Chandra -
How to get the intersection of two arraylist containing user defined obj??
How to get the intersection of two arraylist containing user defined obj??
I can easily get the intersection of two array list which containing some simple class(Integer, String). But how to get the intersection of two arrayList which contain user defined object?
Here is the sample code..I can not run this out...anybody can help me? thank you very much..
The correct result should be like this:
2
2
but I can only get this:
2
0
import java.util.*;
public class testRetain{
public static void main(String[] args){
ArrayList a = new ArrayList();
ArrayList b = new ArrayList();
a.add( new dog(1,2,2) );
a.add( new dog(1,2,1) );
System.out.println(a.size() );
b.add( new dog(1,2,2) );
a.retainAll(b);
System.out.println(a.size() );
class dog implements Comparable{
int head;
int arms;
int legs;
dog(int head, int arms, int legs){
this.head = head;
this.arms = arms;
this.legs = legs;
public int compareTo(Object o){
if ( ((dog)o).head > this.head )
return -1;
else if ( ((dog)o).head < this.head )
return 1;
else
return 0;
}@Op. Your classes should override equals and hashCode
Kaj -
EJB : How to return user defined object
hi,
i am a newbie in EJB. i have the following simple problem:
public interface MyApp extends EJBObject
public String getResult() throws RemoteException;
}the above code will be ok because it is returning String object.
however, i need to return a user defined object like:
public interface MyApp extends EJBObject
public MyResult getResult() throws RemoteException;
}then i got java.lang.ClassCastException during runtime.
please tell me how to resolve this problem.
thank you very muchsince you are a newbie, let me explain something to you. Ask your question in the proper forum. In case, you still don't understand there is a forum for EJB questions.
-
How to alter user defined objects in oracle
Hi all,
Can any one tell me how to alter user defined objects in oracle .
Thanks,
P Prakashprakash wrote:
Hi all,
Can any one tell me how to alter user defined objects in oracle .
DROP
then
CREATE
Handle: prakash
Email: [email protected]
Status Level: Newbie (80)
Registered: Feb 3, 2011
Total Posts: 185
Total Questions: 67 (65 unresolved)
so many questions & so few answers.
How SAD!
Edited by: sb92075 on Sep 22, 2011 9:22 AM -
Hi,
I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
http://server/pages/Default.aspx?Title=Arup&Title=Ratan
But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
I have followed the
http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
Please suggest me.
Thanks | Arup
THanks! Arup R(MCTS)
SucCeSS DoEs NOT MatTer.Hi DH, sorry for not being clear.
It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
(or a Performance Point Dashboard etc.) and you insert it into your page and add
a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
with multiple values for one parameter. If you have any more questions let me know. See you, Ingo -
How to assign a query and a template to a role
Hi gurus
Considering my little knowledge that i have of BI 7, I just want to confirm is this the way to assign a query to a role.
On the main menu of the query designer at the top left we have query-->Publish--->to Role and subsequently assigning the query to the specific role required and similar steps are followed to assign the template to the same role as well...kindly confirm this.........as i guess it is important to assign the query and the template to a the correct role so as to get the correct data.As our query is created for the manager role....points will be givenHi Anurag,
Check this:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a249a990-0201-0010-e18e-b2f5ed135497
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a101b894-0b01-0010-6c90-e70766b33256
Roles assigned to a BI 7.0 Consultant
Role assigning to a Query in BEX report
Assign points if this is helpful...........
Rgs,
I.R.K -
How to assign cost components to value fields
Hi,
Kindly provide me the path or Tcode to assign cost components to value fields.
thanks
SunithaHi Sunita,
You can go to transaction KE4R. For menu, go to IMG, PA and then valuation, Set up valuation using Material Cost estimate and there you will find 'Assign Vlaue fields'.
Trust this helps much!
Cheers! -
How to provide value to a User Defined field thru java code
I am using OIM 11.1.1.5.
I have a user defined field called Unique-Customer-Number. This field need to be pre-populated during user creation (using OIM Web UI) and the value comes from a java code.
Can any of you tell me the high level steps to implement this.
Thanks!
KabiThanks Rajiv,
I just followed everything on metalink 1262803.1. My console shows the followings during Metadata import.
weblogicImportMetadata.bat :-
Starting import metadata script ....
Please enter your username :weblogic
Please enter your password :
Please enter your server URL [t3://localhost:7001] :t3://10.10.99.99:7001
Connecting to t3://10.10.99.99:7001 with userid weblogic ...
Successfully connected to Admin Server 'adm_server01' that belongs to domain 'server01'.
Warning: An insecure protocol was used to connect to the server. To ensure on-the-wire security, the SSL port or Admin port should be used instead.
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.For more help, use help(domainRuntime)
Disconnected from weblogic server: adm_eimsdv1s01
End of importing metadata script ...
Exiting WebLogic Scripting Tool.
How I will I know that my plugin/ event-Handler is registered successfully. Is there any screen where I can see all registered plugins ? -
Is it possible to assign user-defined data elements to table control?
Hi SDN,
Is it possible to assign a user defined data element other than basic data types in table control column.Hi Suresh,
In Screen layout,In element list tab,i am not able to give the user-defined data types other than basic data types?please tell me how to give other data types -
How can I call a stateful webservice from a user-defined XPath function?
I'm calling a stateful webservice from a BPEL process using a PartnerLink which implements Custom Header Handler classes to handle the session state, storing the cookie as a property of the PartnerLink.
I'd also like to call this same stateful webservice, in the same session, from a user-defined XPath function enabling me to call this from an XSL Transformation.
Is this in any way possible? Can I access the cookie and attach it to the webservice call made by the user-defined XPath function?Actually, as long as the servlet returns valid javascript, you can indeed "call it" from the client. It will initiate a request and return the result to the browser.
This example uses Perl, but it could be easily modified to go to a servlet instead.
Note that it is only supported in DOM browsers (IE6+/NN6+/etc)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title> Test server-side JS </title>
</head>
<body>
<script type="text/javascript">
function checkIt(variable, value)
var newScript = "cgi-bin/validateJS.cgi?"+variable+"="+value;
var body = document.getElementsByTagName('body').item(0)
var scriptTag = document.getElementById('loadScript');
if(scriptTag) body.removeChild(scriptTag);
script = document.createElement('script');
script.src = newScript;
script.type = 'text/javascript';
script.id = 'loadScript';
body.appendChild(script)
</script>
<p>Test.</p>
<form id="f1" action="">
<input type="text" name="t1" id="t1" onChange="checkIt(this.name, this.value)">
</body>
</html>
validateJS.cgi
#!/opt/x11r6/bin/perl
use CGI qw(:all);
my @valArray = split(/=/,$ENV{QUERY_STRING});
print "Content-type: text/javascript\n\n";
# myPass is the password
$myPass = "foobar";
if ("$valArray[1]" eq "$myPass")
print "alert(\"Success!!\")";
else
print "alert(\"Failure!!\")"; -
How to deploy jar file for use within mapping user-defined fcn
Hi all,
I have a java class I'd like to called from a mapping user-defined function.
Here's what I've done (but hasn't worked)
1. Added 'package com.<mycompany>.xi.util.base64 to the source class file and compiled it.
2. Created a sda with a plain provider.xml file, i.e. no references were made to any other library files.
3. Deployed the sda to the xi 3.0 j2ee server successfully using SDM.
4. Under the Visual Admin tool, I see that the library was deployed successfully.
5. In the import text box in the user-defined function (design time), I enter com.<mycompany>.xi.util.base64.*.
A syntax check returns an error indicating the package could not be found.
Can anyone give me pointers as to how I can get this working?
Thanks,
--jtbHey James,
No! That's not the right way!
What you have done is for accessing external JMS & JDBC drivers in their corresponding adapters. For the access inside a mapping user defined function, it's enough if you import the jar files.
Look at this blog and you will be very clear!
/people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi
regards,
Felix -
How to use user defined object with linked button
Hi experts
Can I use user defined table data with linked button. If yes then how. plz give me sample examples.
Regards
GorgeIf you have an UDO in your form, or any other, the FormDataLoad eventhandler should be used.
Take care, it is not inside the eventhandler.
for VB:
Select SBO_APPLICATION in the classes, and select FormDataLoad event
Private Sub SBO_Application_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent
in C#
Add a new eventhandler as
// declaration
SBO_Application.FormDataEvent += new SAPbouiCOM._IApplicationEvents_FormDataEventEventHandler(ref SBO_Application_FormDataEvent);
// eventhandler:
public void SBO_Application_FormDataEvent(ref SAPbouiCOM.BusinessObjectInfo BusinessObjectInfo, out bool BubbleEvent)
Maybe you are looking for
-
"current encoder settings for bit rate and sample rate are invalid" message
I have some files I am working with. Details and what happened: Had some music files where I was doing some trimming/splitting. Files worked fine in itunes. Open the files in Quicktime Pro 7 to trim them. Exported to aif. Opened the files with itunes
-
Bedside mode completely drained fully charged battery
I awoke this morning, waiting for my alarm to go off and low and behold, my brand spanky new Z30 was fully discharged, only the red battery of death symbol would come on. Bedside mode activated, Hotspot turned off, pretty fancy red clock displayed be
-
Folks - I am facing the following situation with which some of you might be able to help me. I am building a report that has exceptions defined in it for a calculated key figure. This CKF can is calculated as % and can have both positive and ne
-
Can't see local computers in network neighborhood anymore
Hello, I bought a WRT610N on Friday to replace my WRT54G and while it is running great I have a small issue. If I go to browse my local network, I don't see a list of computers like I used to with the WRT54G If I type \\computername then I can access
-
OBIEE: Skip separate login for Presentation services
All, I wanted to use my LAN ID login for my BI Presentation services instead of having separate login screen there. Meaning if i click on my BI Presentation services link it shouldn't ask for a separate login id /password it should receive my LAN id/