TO get all values in survey data
Hi abapers,
I have a problem when i am trying to fetch the data of CRM transaction. This is used in (Questionnaire of CRMD_ORDER) transaction. The Questionnaire answer is usually more than 255 characters. But the FM im using is returning only 255 characters and rest other characters are discarded.
CALL FUNCTION 'CRM_SVY_VALUES_READ'
EXPORTING
VALUEGUID = L_VALUEGUID
VALUEVERSION = L_VALUEVERSION
STATUS = 'C'
IMPORTING
* SURVEY_ID =
* SURVEY_VERSION =
* CREATED_AT =
* CREATED_BY =
* MODIFIED_AT =
* MODIFIED_BY =
* VALUE_XML =
X_VALUE_XML = l_string
* ERROR =
* VALUEVERSION =
i read in a forum to use the above fm and the o/p will be given in l_string but what to do with the xml string im confused.the fm had said to use the below part of code after doing the above fm.
create object l_survey exporting I_APPLICATION_ID = l_appid
I_SURVEY_ID = l_surveyid
I_SURVEY_VERSION = l_surveyversion
I_LANGUAGE = 'E'
I_VALUEGUID = L_VALUEGUID
I_VALUEVERSION = L_VALUEVERSION .
data: ls_all_values type table of survy_s_all_values.
data: ls_texts TYPE TABLE OF CRM_SVY_API_SURVEY_TEXT.
call method l_survey->GET_ALL_VALUES
importing
E_ALL_VALUES = ls_all_values.
call method l_survey->GET_ALL_TEXTS
importing
ET_TEXTS = ls_texts.
The ls_texts-text and ls_all_values-value still returns max only the 255 characters .
The answer has supposed 800 characters it returns only first 255 characters rest characters are rest are removed.
What should i do to return all the values in questionnaires-> answer.
hi sam,
i checked it.the ls_all_values is defined as follows
types: begin of survy_s_all_values,
question_id type string,
answer_id type string,
value type string,
end of survy_s_all_values.
data: ls_all_values type table of survy_s_all_values.
simliarly ls_texts is defined as ...
data: ls_texts TYPE TABLE OF CRM_SVY_API_SURVEY_TEXT.
Componnet Component type
LEVEL
TYPE
ANSWER_ID
ID
TEXT
SELECTED BOOLEAN.
It returns only 255 char..
What is the size of string?
to my observation its 255 char is it right...?
Regards,
Navin Chettiar
Similar Messages
-
How can i get all values from jtable with out selecting?
i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
thanks in advance.
rajaYou could set the table's data model to be the same:
output2.setModel( output1.getModel() ); -
How to get maximal value from the data/class for show in Map legend
I make WAD report that using Map Web Item.
I devide to four (4) classes for legend (Generate_Breaks).
I want to change default value for the class by javascript and for this,
I need to get maximal value from the class.
How to get maximal value from the data/class.
please give me solution for my problem.
Many Thx
Eddy Utomouse this to get the following End_date
<?following-sibling::../END_DATE?>
Try this
<?for-each:/ROOT/ROW?>
==================
Current StartDate <?START_DATE?>
Current End Date <?END_DATE?>
Next Start Date <?following-sibling::ROW/END_DATE?>
Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
================
<?end for-each?>
o/p
==================
Current StartDate 01-01-1980
Current End Date 01-01-1988
Next Start Date 01-01-1990
Previous End Date
================
==================
Current StartDate 01-01-1988
Current End Date 01-01-1990
Next Start Date 01-01-2005
Previous End Date 01-01-1988
================
==================
Current StartDate 01-01-2000
Current End Date 01-01-2005
Next Start Date
Previous End Date 01 -
How to add get Day value in a Date object?
Hi,
I am writing a sql statement that has two date values. One I am getting it from the database. The format in the database is MM/DD/YYYY. My first question is how do I convert the format into the java date format, YYYY-MM-DD. The second question is I need to find out what the day is and add 1 to it. How do I get Day value in a Date object?
Thanks.Look at "SimpleDateFormat" and "parse" in the archives.
-
Get cell value in Planning Data form and using it in a business rule
Hi Everybody,
if i set the data type of an Account Member as text, is there a way to get the value inserted by the user in a dataform, turning it as dimensional member and using it in a business rule?
So, if the user insert the value "USA" in a cell, can i use any functions to tell essbase that "USA" is a dimensional member and then using it in a business rule, for example in a cross-dimension like Period1->FY12->USA?
I tried to use the function @Member and it doesn't work, but i'm wondering if there is a way that can let me get the value inserted and use it just like a dimensional member. What are the ways that can let user input value that can be used in a business rule? I think one is by using SmartList, is there any other ways? Maybe using variables?? As an alternative i tried to use Prompt Variable but there are too many members on which the rule must run.
Please help me, i wanna know if i can or not let the user input the member on which the rule must run...
Thank all guys
Bye
MaurizioThanks EW for your answer,
YesI could use SmartList even if i think it's very tough to handle. My experience on using SmartList in caclc script is not so good. I try to enter in details of my requirement:
I have 500 account members.
For each one, I have to calculate the monthly budget by sharing the amount among the months. The user wants to calculate it on the basis of the actual flow(over the months) of an unspecified account of the prior year. The unspecified account must be inserted in a data form.
So, i could use a Smart List but it colud be of 500 elements and then i should make a rule with as many IF as how many are the accounts. Or im wrong? The only way to use smart list dynamically in a business rule is by referring its values in a IF condition. Or i'm wrong.
I tried to use execution variable ma it seems don't work. In this case the user must pay attention to write the account correctly, otherwise as you say the rule doesn't work.
The value in PD0A020 is "PD0A000" (that is a dimensional member). The value in PD0A000 is "hello". In PD0A040 the rule returns "PD0A000" and not "hello" as i would. The function @Member appears to be not able to catch the dimensional member by the value in PD0A000.
{Example}="test"->"Input"->"Scenario_test"->"FY12"->"PD0A020";
Fix("test1","Input","Scenario_test","FY12")
"PD0A040"=@Member({Example});
endfix
So, my doubt is: is it possible for Essbase/Planning to use the value inserted in a data form and to turn it in a dimensional member? What are the practicable ways to let the user input/choose the member on which makes the rule run?
Thank you Ew, thank you guys
Maurizio -
Getting selected values from a data table
My data table gets values directly from a result set.
I went through http://balusc.blogspot.com/2006/06/using-datatables.html#top ,
however, the data table shown in this example takes values from a simple list. I have trouble in getting selected values.
Can anyone suggest how to select multiple values. here is a small code sample of what I have
SessionBean
ResultSet rs= db.retrieve_draft();
datamodel = new ResultSetDataModel();
datamodel.setWrappedData(rs);This is the JSF
<h:dataTable binding="#{Engineer.dataTable1}" headerClass="list-header" id="dataTable1"
rowClasses="list-row-even,list-row-odd" style="left: 144px; top: 192px; position: absolute"
value="#{SessionBean1.datamodel}" var="currentRow">
<h:column id="column1">
<h:outputText id="outputText77" value="#{currentRow['report_number']}"/>
<f:facet name="header">
<h:outputText id="outputText78" value="Report Number"/>
</f:facet>
</h:column>Edited by: ktip on Jul 29, 2008 11:04 AMHere is what I was doing :
This is my Session Bean (viz. SessionBean1)
private CachedRowSetDataProvider draft_infoDataProvider;
private CachedRowSetXImpl draft_RowSet;
public CachedRowSetDataProvider getDraft_info() {
return draft_infoDataProvider;
public void setDraft_info(CachedRowSetDataProvider draft_info) {
this.draft_info = draft_infoDataProvider;
public CachedRowSetXImpl getDraft_RowSet() {
return draft_RowSet;
public void setDraft_row(CachedRowSetXImpl draft_row) {
this.draft_row = draft_RowSet;
public void get_drafts()
Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://localhost:3308/test";
String dbUser = "root";
String dbPassword = "adminadmin";
con = DriverManager.getConnection(url, dbUser, dbPassword);
String sql="SELECT report_id from reports WHERE status='Draft' ";
ResultSet rs=null;
try
Statement stmt1=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
rs=stmt1.executeQuery(sql);
draft_RowSet=new CachedRowSetXImpl();
draft_RowSet.populate(rs);
draft_infoDataProvider=new CachedRowSetDataProvider(draft_RowSet);
result="ok";
catch(SQLException e)
System.out.println(e);
result="fail";
Here is my jsp page (developed in Netbeans 6.1) showing the data table
<webuijsf:table augmentTitle="false" binding="#{Engineer.table1}" clearSortButton="true" deselectMultipleButton="true"
id="table1" selectMultipleButton="true" sortPanelToggleButton="true"
style="left: 48px; top: 144px; position: absolute; width: 450px" title="Table" width="0">
<webuijsf:tableRowGroup id="tableRowGroup1" rows="10" sourceData="#{SessionBean1.draft_infoDataProvider}" sourceVar="currentRow">
<webuijsf:tableColumn headerText="report_number" id="tableColumn1" sort="test_report.report_number">
<webuijsf:staticText id="staticText1" text="#{currentRow.value['reports.report_id]}"/>
</webuijsf:tableColumn>
</webuijsf:tableRowGroup>
</webuijsf:table>Doing all this just resulted in a javax.Naming.Exception : Data Source is null
I tested this piece of code to give me the number of rows in the underlying rowset and it worked well. But somehow I could not get to display the data. Am I missing something?
Edited by: ktip on Jul 31, 2008 1:21 PM -
How to get previous values based on date filters
Hi
i have two fields gldate and startdate
gldate values are like 1/31/2011,2/28/2011,3/31/2011,4/30/2011,5/31/2011 ...
startdate values 1/1/2011,2/1/2011,3/1/2011,4/1/2011,5/1/2011 ...
i need a condition like gldate<startdate
if startdate is 11/1/2011 then i get all the values before 11/1/2011 values
im using filter for date filed
let us filter values is startdate--11/1/2011 and gldate is 11/30/2011 but that cond falls
how to get this condition
plz its urgent to meHi
i have two fields gldate and startdate
gldate values are like 1/31/2011,2/28/2011,3/31/2011,4/30/2011,5/31/2011 ...
startdate values 1/1/2011,2/1/2011,3/1/2011,4/1/2011,5/1/2011 ...
i need a condition like gldate<startdate
if startdate is 11/1/2011 then i get all the values before 11/1/2011 values
im using filter for date filed
let us filter values is startdate--11/1/2011 and gldate is 11/30/2011 but that cond falls
how to get this condition
plz its urgent to me -
Getting a value of a data member that is in a subclass only
Hi
i have one superclass called membership and it has the data members name, password, readingPoints.
i have two subclasses of the membership class called silver and gold.
the gold subclass has an extra data member called statusPoints.
i have no idea how to retrieve the statusPoints in my main program.
in my main program, i created a few gold and silver members and put them into an array.
this is how i have been trying to retrieve just the statusPoints.
System.out.println (members[0].statusPoints);
System.out.println (members[0].GoldMembership.statusPoints);
System.out.println (members[0].(GoldMembership).statusPoints);
none of them work =(. i have no idea how to specifically call that subclass from my main program to get that statusPoint value.
i hope some one knows the answer to my problem
thanks in advance! =)xiarcel: i've heard of the term casting before but i
don't think i've ever used it, or i have used it but
not know that i have :p(GoldMembership)members[0]
That is casting (well, onversion of it. Another would have been
Membership[] members ...
members[0] = new GoldMembership()...)
warnerja: ohh! ill make a note of that, in my gold
subclass case, is it even possible to even get that
value without casting it into a string using a getter
method?Well, the idea is probably you are doing something outside of the class that might be best handled inside the class. For instance, if you are calculating a price of something that depends on readingPoints, then creating an abstract Membership method:
public abstract double calculateMemberPrice(double origPrice);
In which most Memberships will calculate the price based solely on readingPoints
// example in SilverMembership
public double calculateMemberPrice(double origPrice)
double price = origPrice - (origprice * (readingPoints/1000));
return price;
}but for which GoldMembership would calculate using both statusPoints and readingPoints:
public double calculateMemberPrice(double origPrice)
double price = origPrice - (origprice * ((readingPoints+statusPoint)/1000));
return price;
}Then the you don't need to cast, you can just do
members[0].getMemberPrice(double originalPrice);
I hope that makes half a sense.
>
my main program has a members array where it stores
gold and silver members, but yeah i just made position
0 gold to try to get the statusPoint out of it =).
stevejluke: indeed i was =)
im so happy its working now, and its all thanks to you
guys!! its so great to have a place like this where i
can get help so fast! me and my gf were trying to
figure it out for hours and hours with no luck!
thanks again guys/girls =) you're the best!! :p -
Checkbox item: How to get all values checked?
See http://htmldb.oracle.com/pls/otn/f?p=24317:46
The report query is simply
select
'One' one,
'Two' two,
'Three' three,
'Four' four
from dualThe checkbox item is a named static LOV with STATIC2:ONE,TWO,THREE,FOUR and a Source value of ONE:TWO:THREE:FOUR so that all boxes appear checked when the page is first rendered.
All the 4 columns have a column condition like
instr(':'||:P46_COLS||':',':ONE:') > 0to ensure that column is rendered only if the corresponding checkbox is checked.
The report has Dynamic column headings with the following PL/SQL function body
return 'ONE:TWO:THREE:FOUR';To my (pleasant) surprise, this works very nicely. When column TWO is conditionally not rendered, its corresponding column heading is also skipped with no effort on my part. Nice.
Question:
Instead of "hard-coding" that string ONE:TWO:THREE:FOUR in the 2 places I mentioned above (checkbox item source and report heading), is there a way to access the "all values checked" version of that LOV item so that it will dynamically pick up the latest LOV changes? The way I have done it currently, if I change the named LOV, I need to also change those 2 places where I have hardcoded the values.
Any ideas? ThanksScott:
I thought about that but the LOV has dozens of values, each with a verbose display value and a return value of the column name (upto 30 characters) and the display values are still being "worked on" by the users.
So, the "all columns" string would be a big, unweildy string that would be hard to edit.
It is much easier to edit, resequence and generally work with a Shared Component LOV defined as a Static LOV because you get that nice page (4000:4111) where you can read everything nicely formatted instead of a STATIC2:<big long string>!
Can I have my cake and eat it too?!
Thanks -
Getting all values from a queue
Hi all,
I have a queue as follows:
[123] - intital Context
[sollinger Str]
[123] - CC
[Solinger Str]
[123] - Final context
An image of the queue looks as follows:
[http://i42.tinypic.com/hsj052.jpg]
Iam getting this queue in a userdefined function. I want to get or copy all the values from this queue to a new array as follows without any contexts.
That is, I want to have a queue as follows from the above queue.
[123]
[sollinger Str]
[123]
[Solinger Str]
[123]
How could that be done...
Thanks
PHi guys...thanks 1 more thing
If My inbound queue "a" is as follows:
SUPRESS
AP
YG
LF
contextChange
YG
LF
Final Context
In my Queue "b" which is as follows
SUPRESS
123
sollinger...
123
Sollinger...
123
FinalContext
My requirement is in my "b" queue , I want to put a CC as follows by using a standard node function if possible
SUPRESS
123
sollinger...
123
contextChange
Sollinger...
123
FinalContext
IF THAT dont work Inside my UDF I want to put thE CC for the b queue.
How will the loop behave then?
What will be passed to my input queue "a" and "b" when execute "all values on context" is set.
"a" has a context and "b" doent have one.
My UDF
public static void Test(String[] a,
String[] b,
ResultList result,
Container container){
//Contains no context change
String b[] = {ResultList.SUPPRESS,"12","sollinger","12","sollinger","12",
ResultList.CC};
I make the following steps
copy to an arraylist. add a context change in between.
copy back to string b. -
Get All Values From NewForm.aspx using Event Receiver Item Adding
HI All,
I have conditions to check before the insertion of "Calendar Event".For this I am using Item Adding Event Receiver ,When Click on Save button I need to get all the values of Items filled in NewForm.aspx and check
the condition,If condition satisfies make them insert else show alert info as"Not Valid",Below is code and error message
public override void ItemAdding(SPItemEventProperties properties)
base.ItemAdding(properties);
string StartTime = properties.AfterProperties["Start Time"].ToString();
string EndTime = properties.AfterProperties["End Time"].ToString();
Error
Object reference not set to an instance of an object.
Use the New "Keyword to create an object instance
Can any one help me how can I do it.
Thanks,
Quality Communication Provides
Quality Work.
http://siddiq-sharepoint2010.blogspot.in/
Siddiqali Mohammad .Hi,
Have you tried with the code snippet as mentioned below
string EndDate = Convert.ToString(properties.AfterProperties["EndDate"]);
string StartDate = Convert.ToString(properties.AfterProperties["EventDate"]);
If my post is helpful - please click on the green arrow to mark it as answer -
Tachometer in WAD 3.5x - to show Avg of all values in the Data provider
Hi All,
I am creating a tachometer in WAD 3.5x.
Actually the requirement for the tachometer i want to design is that it should display the Average value of the data column that is displayed in the dataprovider(which is a view in this case).
My view (Data Provider for tachometer) contains only one data column, and its Result row contains the Average value for the data column. But when I run WAD, the tachometer doesnot read the result row, instead it reads each of the individual rows and creates a pointer for each record. Whereas as per my requirement, the tachometer should display only a single pointer depicting the average value of all records.
I am trying to suppress all the single value rows and display only the result row in my view, am unable to do so.
Any help would be much appreciated
Thanks
Shikha VermaHi Shikha Varma
Just quick thought just try with the swap axis and do the table cross verification..
[Chart Types and its functions_Spedo meter|http://help.sap.com/saphelp_nw04/helpdata/en/c9/08533b97037963e10000000a114084/frameset.htm]
As per the help in my RnD it is working but it is 7.X Wad just try it in 3.5 hope fully it will works for you..if not please excuse..
Hope its clear a little..!
Thanks
K M R
>
shikha.v3 wrote:
> Hi All,
> I am creating a tachometer in WAD 3.5x.
> Actually the requirement for the tachometer i want to design is that it should display the Average value of the data column that is displayed in the dataprovider(which is a view in this case).
> My view (Data Provider for tachometer) contains only one data column, and its Result row contains the Average value for the data column. But when I run WAD, the tachometer doesnot read the result row, instead it reads each of the individual rows and creates a pointer for each record. Whereas as per my requirement, the tachometer should display only a single pointer depicting the average value of all records.
>
> I am trying to suppress all the single value rows and display only the result row in my view, am unable to do so.
>
> Any help would be much appreciated
>
> Thanks
> Shikha Verma -
How to Get Default Value of a Data Type in SQL Query.
Hi all,
I am creating a procedure which will take input the table name and Column Name.
In the Output i would like to have the data type and default value of that data type which will be used by a another procedure to blank the selected column in the database.
I tried with SET NULL on the column but as the database is of navision the table have property set to NOT NULL.
Here is what i have done till now.
Create Procedure Get_Column_type
@parm_table_name nvarchar(200),
@parm_column_name nvarchar(20),
@parm_result nvarchar(20)OUTPUT
AS
BEGIN
select @parm_result =
DATA_TYPE from INFORMATION_SCHEMA.COLUMNS IC
where TABLE_NAME = '[' + @parm_table_name +']' and COLUMN_NAME = '[' + @parm_column_name + ']'
END
GO
Now instead on write a case statement for so many data types in SQL, i was thinking is it possible someway that above procedure also returns the default value which i can set in another procedure.
Let me know if its possible or not? Thanks in advance.Do you looking for something like this?
create table t10 ( c int default 1)
SELECT so.name AS table_name,
sc.name AS column_name,
sm.text AS default_value
FROM sys.sysobjects so
JOIN sys.syscolumns sc ON sc.id = so.id
LEFT JOIN sys.syscomments SM ON sm.id = sc.cdefault
WHERE so.xtype = 'U'
AND SO.name = 't10'
ORDER BY so.[name], sc.colid
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Get all values from request.getParameter
In ASP, I can do something like that...
For each item in Request.Form
Response.write "Name is:" & item & " value is:" & Request(item)
Next
How about in JSP? How do i get the names and values of the form using a loop?You can use request.getParameterNames() which will return an enumeration, then you can iterate through the enumeration and use request.getParameterValue(String paramName) method to get the values.
-
How to get all values from an interval using select statement
Hi,
Is it possible to write a select statement that returns all values from an interval? Interval boundaries are variable.
something like this:
select (for x in 1,1024 loop x end loop) from dual
(this, of course, doesn't work)
The result in this example should be 1024 rows of numbers from 1 to 1024. These numbers are parameters, so it is not possible to create a table with predefined values.
Thanks in advance for your help,
Mia.For your simple case, with a lower boundary of 1, you can use:
SELECT rownum
FROM all_objects
WHERE rownum <= 1024For a set of number between say 50 - 100, you can use something like:
SELECT rownum + (50 - 1)
FROM all_objects
WHERE rownum <= (100 - 50 + 1)Note, that all_objects was used only because it generally has a lot of rows. Any table with at least the number of rows in your range will work.
TTFN
John
Maybe you are looking for
-
A few questions about my new A720
Hi everyone, I just got myself an IdeaCentre A720 (VDT8UGE) because I love the idea of a touchscreen combined with a 27" screen and the special hinge. For the most part it works fine and it simplified my home setup a lot (much less cables now). Howev
-
Hi XI Friends in my Idoc to file scenario, XI have to fetch the records from the SAP database tables by calling exit and include - ZXWOCU13 and creating an outbound idoc IORDE01. Only work orders with PM8 type and released system status will be sel
-
Mouse suggestions for FCP Studio2
Hello, What is the best mouse to use with FCP Studio2 that is compatible with Leopard? Thanks for any and all help.
-
How to make use of *progress bar*?
I have a progress bar requirement in my swings project, i.e on clicking a button, some task should be executed and in parallel to this progress should run on progress bar in the same frame and soon after this task gets completed the progress on progr
-
Sender HTTP Adapter working intermittently
HI , My scenarios is HTTP->XI.>ECC, Sender HTTP Adapter is working intermittently some times data is not reaching to XI though it sent successfully from Source. We are unable to find the logs in XI where this data went. This interface is working fine