Passing value to a variable
Hi,
I am using Determine_due_date function module as shown.
Tables: Faede.
CALL FUNCTION 'DETERMINE_DUE_DATE'
EXPORTING
i_faede = faede
IMPORTING
e_faede = faede
EXCEPTIONS
OTHERS = 1.
Function module is working fine but i want to fetch the field FAEDE-NETDT into a variable so that i can pas the
variable to a message can anyone help me with this.
CALL FUNCTION 'DETERMINE_DUE_DATE'
EXPORTING
i_faede = faede
IMPORTING
e_faede = faede
EXCEPTIONS
OTHERS = 1.
w_duedate = FAEDE-NETDT.
MESSAGE s000(zdue_v1) WITH w_duedate.
But message is not displaying in my case where i am going wrong ?
Regards
VEnk@
Hi MAx,
Here is my function module source code where i am using my Determine_due_date.
Tables: FAEDE,
INVFO,
T052.
Structures that are passed to central function module ---
DATA: sklin2 LIKE sklin.
DATA g_status(1). "01: FB60 02: FV60 03: vollst.
STATICS: warning_sent.
DATA: koart LIKE bseg-koart. "Rel. acc. type for screen det.
DATA: old_netdt LIKE faede-netdt. "Note 565953
DATA: W_DUEDATE TYPE FAEDE-NETDT.
DATA: fs_bseg type bseg,
fs_bkpf type bkpf.
New ZTERM or new base line date -
read table t_bseg into fs_bseg index 1.
read table t_bkpf into fs_bkpf index 1.
CALL FUNCTION 'FI_FIND_PAYMENT_CONDITIONS'
EXPORTING
i_zterm = fs_bseg-zterm
i_bldat = fs_bkpf-bldat
i_budat = fs_bkpf-budat
i_cpudt = sy-datum
IMPORTING
e_t052 = t052
e_zfbdt = fs_bseg-zfbdt
e_sklin = sklin2
EXCEPTIONS
terms_incorrect = 1
terms_not_found = 2
no_day_limit_found = 3
OTHERS = 4.
read table t_bseg into fs_bseg index 1.
read table t_bkpf into fs_bkpf index 1.
CHECK NOT bseg-zfbdt IS INITIAL. "P00K009405
faede-shkzg = fs_bseg-shkzg.
faede-koart = koart.
faede-zfbdt = fs_bseg-zfbdt.
faede-zbd1t = fs_bseg-zbd1t.
faede-zbd2t = fs_bseg-zbd2t.
faede-zbd3t = fs_bseg-zbd3t.
faede-rebzg = fs_bseg-rebzg.
faede-rebzt = fs_bseg-rebzt.
faede-bldat = fs_bkpf-bldat.
CALL FUNCTION 'DETERMINE_DUE_DATE'
EXPORTING
i_faede = faede
IMPORTING
e_faede = faede
EXCEPTIONS
OTHERS = 1.
if sy-subrc = 0.
w_duedate = FAEDE-netdt.
MESSAGE s000(zdue_v1) WITH w_duedate.
endif.
Regards
VEnk@
Similar Messages
-
Passing value to bind variable of another table from one table
hi,
I have a multi select table. When one row is selected from this table (no button is clicked, only selection is done), an attribute from that selected row (say userid) should be passed to the bind variable of another table and the corresponding details of that particular userid should be displayed in the other table. When more than one row is selected, the other table should display no rows.
My main problem is what code has to be written to pass value to bind variable and where it should be written.
Please give me a detailed explaination as soon as possible.
Thank you.Sorry, didnot add this. The table is multi select table.
-
Passing values to global variables while running job via management console
Hi All,
I have a requirement, where I have to use HANA view with input parameters as source. I am doing the same by placing the HANA query for view with input parameters, in SQL transform and assigning values to placeholders using global variables. This is working fine at the designer level.
But where I am stuck is, it possible to pass values to global variables while running job in Management console or in a third party scheduler. Should I do any changes in the batch job to achieve the same ?
Please help me with the same and also let me know whether my approach of using Global variables to assign values to input parameter of HANA view is right?
Thanks,
DeepaSelect Batch > Batch Job Configuration > Add Schedule and Expand the Global Variables section in the Schedule Batch Job tab. You can then specify a value for all your global variables.
Alternatively, work with control tables and assign values to the global variables in an initialisation script. -
Passing values to substitution variables in a loop
Hi,
I want to pass values to a procedure in a loop. What I need is; pass new values to each iteration.
begin
for i in 1..10 loop
test (&empno, '&hdate');
end loop;
end;
But it takes values for first time and then the loop goes till end without prompting the new values. I am trying it in PL/SQL.
Can anyone suggest please!
Regards,
ZaafSubstitution variables are a SQL*Plus feature, not a PL/SQL one. The substitution is performed on the text before it is sent to the server for execution as PL/SQL. PL/SQL is not interactive - you would have to write a script or other client-side application to interact with the user and feed commands to the server.
-
Passing values to range variable
Hi,
I am using a range variable in the planning function.
In WAD, I am using two dropdown box for selecting the from and to range.
I am calling the planning function from WAD, on a button click.
In Data binding, i could bind the variable, to only one dropdown box.
How to pass the from and to values to the variable from two dropdown box.
Thanks in advance for your help.
Regards,
Suresh.Hi,
See if this helps
http://wiki.sdn.sap.com/wiki/display/BI/BI-IPPassingVariableValuestoPlanningFunctionsfromBEx+Analyzer
pratyush -
Issue with Dashboard Prompt passing value to Presentation Variable
I have 2 tabular reports that grab 2 variables respectively: @Month and @Year.
The reports work fine.
My issues is that to compute the most recent month & year, so I can pass the values to the 2 variables mentioned above, I have a dashboard prompt on the same page as the 2 reports. In the dashboard prompts (Edit Box types), I have SQL in the "Default" that computes the most recent month & year. This logic also works perfectly when you preview the results of the prompt.
My issue is that when I land on the page, it seems that the month & year prompts are not computing. I have an old value of "Dec" "2009" instead of "May" "2010".
It seems the Default SQL logic is NOT running on its own? As an aside, we do our development in a test environment and the catalog is promoted to production nightly. The "Dec" and "2009" I see is the correct value for the test environment, so it looks as if the defaul values are just being migrated with the catalog, but then the SQL to compute the latest values of the 2 propmts are never executing when the user lands on the page? Thus everyone sees Dec 2009 data instead of May 2010...Help!Hi,
dgerena wrote:
My issues is that to compute the most recent month & year, so I can pass the values to the 2 variables mentioned above, I have a dashboard prompt on the same page as the 2 reports. In the dashboard prompts (Edit Box types), I have SQL in the "Default" that computes the most recent month & year. This logic also works perfectly when you preview the results of the prompt.You are creating the second prompt (edit box) to make the first prompt values, You can use the same sql in the report default to SQL in the first prompt itself.
If I am wrong please clarify.
Thanks,
Vino -
Passing values to session variables from another application
Hi,
From an external application we are passing username and password for accessing the OBIEE Dashboard.In the url call we are passing NQUser and NQPassword. This is working fine.
To setup data level security we need to pass region id list also as request object. Then we can filter the tables by the value in the region id list for that user. If we use external table to pass the home_id list then the application is working fine by setting up row-wise init block. But we need request object from an external application to send the list. How can we accept the list from OBIEE RPD?
In the documentation it mentions about session variables - non system. But it requires an init block. How can we create a variable that accepts the values when user logins just like NQUser and NQPassword.
Please suggest.
Thanks.Try this ...
http://oraclebizint.wordpress.com/2007/07/30/customizing-obi-ee-%E2%80%93-go-url-parameters/
In this blog entry you'll find at the bottom ...
Hello, Can you please explain how to pass parameter values in the url. For example, I want to run an answers query and pass into the url something like this: &Region=West
Venkatakrishnan J Says:
August 22, 2007 at 7:36 am
Yes, this absolutely possible. You can get the details from the Web Services guide since it has all the necessary examples and more explanation. Thats why i did not include it in the blog. You can get it from page 213 of the Docs http://download.oracle.com/docs/cd/B40078_02/doc/bi.1013/b31766.pdf -
Can we pass value of variable in Authorware5.2 to Flash 5
Hi,
I want to pass value of one variable which is in the
Authorware5.2 to Flash 5. Depending on that value i want to
duplicate the Movie clip.
Is it possible and How?
Thanks in advance.I urge you to look at the documentation for the Flash sprite
as it will
answer your question. #property can be a range of values.
Place a Flash sprite, get its properties, click the Options
button,
click Help...
Erik
Jeevan_N_Salunke wrote:
> Hi,
> Using SetSpriteProperty(@"SpriteIconTitle", #property,
value) we can changes
> the properties of Sprite, but I want to pass one value
to Flash 5 i.e. Sprite
> and depending on that value I want to do some
processing.
>
> For Example.
> Suppose Flash file contain Dynamic text box who's
variable name is "my_txt"
> and when i load the Sprite Icon or by clicking on button
displays the Sprite,
> at that time i want to pass some txt to that (my_txt)
variable.
>
> Please suggest me the solution.
>
>
Erik Lord
http://www.capemedia.net
Adobe Community Expert - Authorware
http://www.macromedia.com/support/forums/team_macromedia/
http://www.awaretips.net -
samples, tips, products, faqs, and links!
*Search the A'ware newsgroup archives*
http://groups.google.com/groups?q=macromedia.authorware
*The Blankenship Caveat: Note that direct linking to http
content
through any Authorware icon will likely fail if a proxy
server is present!* -
Issue while Passing Values to Variable Dynamically in ODI
Hi All,
We are trying to pass values to ODI variable dynamically. The value passed is File path. We are successfully able to achieve this when we are passing the relative path i.e. ‘..\demo\xml’ but while we are trying to pass the absolute path i.e. ‘D:\ODI\oracledi\demo\xml\’ we are getting the below given error in the Load step of the interface..
com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)
at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
Googling for the same has yielded the following results :-
• if the file name has : in it then ODI will consider it as a binding variable rather path. .. So try relative path. – Relative Path is working but we need to achieve this by giving absolute path.
• make sure you are using LKM File to SQL rather SQL to SQL. – We have tried by 3 different LKMS—File to SQL, SQL to SQL and SQL to Oracle but the error is same in all.
Any pointers regarding the same will be very helpful.
Thanks In Advance.
Regards,
Abhishek SharmaHi Cezar,
Thanks for the response. The issue here is we are picking this path from a table. We have FILE_PATH column in one database table and in ODI variable we have given SQL query as 'Select FILE_PATH from tablename'. Then we are taking the refresh value of this variable and passing it on to our interface.
If the Path in table is given as relative path it works , else for absolute path it doesnt work. How can we achieve the solution recommended by you in this case. The FILE_PATH value in table may change, so we need to pick the file from whatever path it fetches from the select statement. Hence we cannot hard code it here.
Please suggest.
Thanks Again.
Regards,
Abhishek Sharma -
Pass values to bind variales and execute VO query
Hi All,
I have a requirement to add validation to an appraisal page via OAF.
As a part of testing I need to check, if the values in the query of VO is displayed in the page.
VO - QuestAnsValuesVO
EO - QuestAnswerValueEO, QuestFieldEO
The VO query is
SELECT * FROM (SELECT QuestAnswerValueEO.QUEST_ANSWER_VAL_ID, QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID, QuestAnswerValueEO.FIELD_ID, QuestAnswerValueEO.OBJECT_VERSION_NUMBER, QuestAnswerValueEO.VALUE, QuestFieldEO.FIELD_ID AS QUEST_FIELD_ID, QuestFieldEO.NAME, QuestFieldEO.TYPE, QuestFieldEO.HTML_TEXT, rank() over (partition by QuestFieldEO.NAME order by QuestFieldEO.FIELD_ID) AS RANK, QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID AS QUESTIONNAIRE_ANSWER_ID1 FROM HR_QUEST_ANSWER_VALUES QuestAnswerValueEO, HR_QUEST_FIELDS QuestFieldEO WHERE QuestFieldEO.QUESTIONNAIRE_TEMPLATE_ID(+) = :1 and QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID(+) = :2 AND QuestFieldEO.FIELD_ID = QuestAnswerValueEO.FIELD_ID (+)) QRSLT ORDER BY QUEST_FIELD_ID
I am trying to execute this query in the extended controller class so that i can get the values printed on the page. I am getting SQL exception saying - not all variables are bound.
How do i pass values to bind variables :1 and :2 and execute this query?
Please help.
Thanks
GeethaGeetha,
Instead of :1 and :2 use a named bind variable as part of your VO and then set either a default value or set its value during runtime. See this example on how to create bind variable:
http://formattc.wordpress.com/2010/04/02/custom-java-bind-variable-in-a-where-clause-of-an-adf-view-object/
Once created, you can set its value during runtime either in ApplicationModuleImpl or in ViewObjectImpl class
e.g.,
ViewObjectImpl view = this.getEmpView();
VariableValueManager vm = view.ensureVariableManager();
vm.setVariableValue("empNo", value);
view.executeQuery();regards,
~Krithika -
Sending VALUES of CF variables thru FlashVars
Hey There!
I am testing a simple application where I am trying to send
back to flash (AS3) some variable values from coldfusion. It works
just fine when I assign the value in CF "by hands" i.e.
<cfsetting enablecfoutputonly="YES">
<cfset Return = "&Numbers=456&">
<cfprocessingdirective suppresswhitespace="Yes">
<cfoutput>
#Return #
</cfoutput>
</cfprocessingdirective>
Then flash accepts the value of variable Numbers of 456.
Now I ran into a problem, when I need instead of steady 456
pass the VALUE of CF variable. I was trying the following way:
<cfsetting enablecfoutputonly="YES">
<cfset x = 123>
<cfset Return = "&Balls=&">
<cfprocessingdirective suppresswhitespace="Yes">
<cfoutput>
#Return#=#x#
</cfoutput>
</cfprocessingdirective>
In this case I receive no value in flash assigned to Balls
Can anyone please let me know that is the proper way to pass
VALUES of CF variables using flashvars?
Or maybe you know where to find a tutorial showing how that
was done.
Thank youI don't know what you're trying to do. However, since the
Numbers example works, here are the respective versions that are
similar to it:
<cfset Return = "&Balls=">
<cfprocessingdirective suppresswhitespace="Yes">
<cfoutput>
#Return##x#&
</cfoutput>
</cfprocessingdirective>
<cfprocessingdirective suppresswhitespace="Yes">
<cfoutput>
&Balls=#Tostring(x)#&
</cfoutput>
</cfprocessingdirective> -
Script fails when passing values from pl/sql to unix variable
Script fails when passing values from pl/sql to unix variable
Dear All,
I am Automating STATSPACK reporting by modifying the sprepins.sql script.
Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
From the sprepins.sql script
variable bid number;
variable eid number;
begin
select begin_snap into :bid from db_snap;
select end_snap into :eid from db_snap;
end;
This fails with the following error:
DB Name DB Id Instance Inst Num Release Cluster Host
RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
:ela := ;
ERROR at line 4:
ORA-06550: line 4, column 17:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall merge time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
The symbol "null" was substituted for ";" to continue.
ORA-06550: line 6, column 16:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev su
But when I change the select statements below the report runs successfully.
variable bid number;
variable eid number;
begin
select '46' into :bid from db_snap;
select '47' into :eid from db_snap;
end;
Even changing the select statements to:
select TO_CHAR(begin_snap) into :bid from db_snap;
select TO_CHAR(end_snap) into :eid from db_snap;
Does not help.
Please Help.
TIA,
NischalHi,
could it be the begin_ and end_ Colums of your query?
Seems SQL*PLUS hs parsing problems?
try to fetch another column from that table
and see if the error raises again.
Karl -
Not able to get the value of ODI Variable when i pass thru Option
Hi,
I have ODI variable called prev_etl_run_date which will hold the last successful etl run date. I want to use the value of this variable in one of my KM step.
But i don’t want to use directly in my KM. So I passed the variable name thru KM Option.
I intend to use the variable’s value in the KM step, as shown below:
<%=odiRef.getOption("MY_OPTION_1")%>
Here I am expecting the value of the variable, but here I am only getting the variable name only.
Is there any substitution method available in ODI KM , please help me to solve this issue.
Thanks
nidhiODI options are not intended for run time parameters. They are like design choices or debugging flags or parameters that can be specified in code template. Previous ETL run time stamp is hardly a design choice.
On the other hand, it is really a bad practice to put a variable inside KM directly. That creates a dependency that you can easily avoid by putting a filter using that variable in the interface. -
How i pass table column value to string variable or return to java applete
Hi Master,
How do I pass a table column value into string variable. See my code below:
import java.sql.*;
public class Waheed {
public Waheed() {
public static void main (String args [])
String s = "9 23 45.4 56.7";
System.out.println ("going for connection");
// DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn =
DriverManager.getConnection("jdbc:oracle:thin:@fahim:1521:aamir","muhammad","mfa786");
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery("select accid from accbal");
System.out.println ("going for connection");
while (rset.next())
s= rset.getString("accid"); this line give me error
System.out.println (rset.getString("accid"));
System.out.println (s);
catch(Exception e){
e.printStackTrace();
This line give me an error:
s= rset.getString("accid");
s is string variable
Plese give me an idea how I can pass accid in s variable.
Thanks.
AamirSee the code sample in the following thread (try using upeercase).
JDBC connection
Kuassi -
Passing field symbol value to a variable
Hi All,
I have a value in Field Symbol declared as <FS-STATUS> TYPE STANDARD TABLE.
I want to use the value <fs-status> -low in a case statement.
For this i think i have to pass the <fs-status> -low into a variable and then use in case statement.
Can anyone explain how to pass values in field symbol to variable? Or if this is not possible is there any other solution.
Thanks in advance.Hi ,
I have give some code sample ; just check ..
DATA: BEGIN OF line,
col1(1) TYPE c,
col2(1) TYPE c VALUE 'X',
END OF line.
FIELD-SYMBOLS <fs> LIKE line.
ASSIGN line TO <fs>.
MOVE <fs>-col2 TO <fs>-col1.
WRITE: <fs>-col1, <fs>-col2.
Or u can check this link :
http://www.erpgenie.com/abaptips/content/view/401/62/
Maybe you are looking for
-
Dialog Step Number at SAP Workload Monitor (ST03)
Hi. We want to get a number of today's dialog step from SAP. I know we can get a this number at ST03. If we want to get a number from outside SAP, Which function module at SAP can return this number ? Any idea ? Regards, Arnold.
-
Zstrings in Custom Metadata Panels
I'm trying to create a popup widget in a custom panel that will return a value with an ampersand (&) in it. I do something like this in the item variable "...;Folks{Mom & Pop};..." What gets stored is "Mom Pop" with no ampersand. So I looked at the Z
-
ARD update crashed another Postgres database
A few days ago I updated the remote desktop client on my OS X server to version 3.2.1 and after that a Postgres database that I had no longer works. I cannot connect to it and the Postgres service manager is no longer able to start my Postgres. How d
-
I been ask to ship a compl\ile version of a VI that I been using in my lab to a Company Division located on the United Kingdom, with the new legal rules regarding software distribution I am not sure if I can send a copy without additional paperwork.
-
How to find the job has failed in back ground
Hi All, I have a requirement where i will be running a report online and background. If my job has failed in Background, then i have to trigger a mail to the user stating that the job has been terminated. Now, How will i know the Job has failed a