Global variable in where (flux abap)
Hi
after migration dataservices 11.5 to dataservices 4.2
sqlserver 2008
I have a job compositions a data flow abap which feeds out of target a table of the datawarehouse
i have to declare 2 aggregate variable DATE_DEB and DATE_FIN
and i use these variables in the where on the level of my query
when i carries out my query i have a message error (attache file)
you have an idea
Thank you
(14.2) 05-27-14 13:43:46 (E) (7376:12128) RES-020107: |SESSION __JOB_DS_JIT_VIEWDATA_|DATAFLOW __DF_DS_JIT_VIEWDATA_|STATEMENT <GUID::'d0f4bc2b-654c-440b-b64a-cc39d5e02309' QUERY Query>
Référencement d'une variable non déclarée <$DATE_DEB>. Déclarez la variable dans le contexte en cours d'utilisation.
(14.2) 05-27-14 13:43:46 (E) (7376:12128) RES-020107: |SESSION __JOB_DS_JIT_VIEWDATA_|DATAFLOW __DF_DS_JIT_VIEWDATA_|STATEMENT <GUID::'d0f4bc2b-654c-440b-b64a-cc39d5e02309' QUERY Query>
Référencement d'une variable non déclarée <$DATE_DEB>. Déclarez la variable dans le contexte en cours d'utilisation.
Similar Messages
-
Acrobat javascript global variable
what is the step by step procedure on how to define your global variable and where to declare it?
You can create a global variable anytime you want, so when you do it really depends on when and where it needs to be accessible. If you provide more details about how you intend to use it, we can provide more guidance. Here's the basics:
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_AcrobatForms.76.38.ht ml
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.774.html
The other important issue is whether it needs to be stored so it can be accessed the next time Acrobat is started. That's what the global.setPersistent method is for: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.778.html -
Null global variable in block's WHERE clause - no records?
I'm setting a :GLOBAL.emp_id in certain spots in my form. The EMPLOYEE block's WHERE clause says emp_id = :GLOBAL.emp_id. In the POST-QUERY, it sets that variable back to NULL so the next time they want to run a blind query, it will show all records.
Well when the :GLOBAL.emp_id is NULL, nothing comes up in a blind query. I even changed the WHERE clause to say emp_id = NVL(:GLOBAL.emp_id,'') but that didn't do anything either.
How can I get the WHERE clause to (basically) do nothing when that global variable is null? Or should I be messing with DEFAULT_WHERE instead of these global variables
I'm in 6iI'm sorry - I stumbled on something soon after I posted and changed it to:
emp_id = NVL(:GLOBAL.emp_id,emp_id)
and it worked - duh -
Quick question, where to put global variables
Very quick question:
where is the best place to put global variables,
(e.g. a flag that turns on debug mode)
if they are needed by the entire application?
I'm guessing they should be placed in their own class.
But should I make them public static final constants,
and just do Globals.MYCONSTANT
OR should i do "implements Globals" in all my other classes?
The first way seems simpler and more logical,
but in the examples for JSDT, they use the second technique.
Any thoughts?
thanks! =)I would suggest either creating a properties file for your globals, or adding them to the system properties at startup. Placing items like debugging tags in your code means that you have to change the code, recompile, and rejar before your change is implemented. Using system properties means that you simply have to change your command-line options (i.e., from -Dmyapp.debug=true to -Dmyapp.debug=false).
Shaun -
ABAP Program global variable print at runtime
Hi,
I have an abap program with more than 1000 global variables. I want to run the program and at a specific point show a report with names and runtime values of all the global variables in the program. Is there some system table which stores all the global variable names and source code? Kindly help.
SatyaHello Satya,
You can store all your global variables in one internal table.
let's say your Itab contains 1000 fields. Now, if you want to retrive the name of the itab, you can use the system call.
DATA: IT_COMP LIKE RSTRUCINFO OCCURS 0 WITH HEADER LINE.
*-- Getting fields of internal table
CALL 'AB_STRUC_INFO'
ID 'PROGRAM' FIELD SY-CPROG
ID 'STRUCNAME' FIELD P_ITAB
ID 'STRUCINFO' FIELD IT_COMP-SYS.
After getting all your fields in it_comp table you can use field symbol to get the values of your fields.
Regards,
Reward points, if it is useful...! -
Where can I store global variables.
Hi All,
Where can I store global variables. Requirement is, ability to modify and add to the list of global variables. Any modification should be reflected dynamically. One way to do is to store in Entity Beans. I thought storing in DataBase will impact performance. Any advice.
Appreciate any help.Hi,
If these variables won't changed prgramtically, then store them in Enveroment Variables -
Local and global variables in ABAP Debugger
hi guys.
we have the following support package:
SAP_BASIS 640 0025 SAPKB64025 SAP Basiskomponente
I would like to use in the debugger the local and global variables tab strip, but I can not find it. Is it possible. that our support package is too low for this functionality?
Thanks a lot.
rudit
Edited by: Rudolf Tremmel on Aug 17, 2010 8:35 AMStarting with SAP NetWeaver 6.40, SAP released a new version of the Debugger.
The Debugger available in Release 6.40 was not considered complete (and was
not the default debugger as a result)
The Variable Fast Display tool currently has four tabs . The first
two are provided empty, and you can either type or double click a name in the
source code to add it to the list. The third tab (Locals) shows all local variables
for the current program modularization unit, and the fourth (Globals) shows all
global variables in the current program. -
Where to store "global variable" for a web application
There are some "global" variables in my portal web application. e.g. email server
name, admin email address etc. Will web.xml context-param a good place to store these
kind of information?
If so, how do I retrieve it back from a java class? It is easy in a jsp file: appalication.getAttribute(),
but how about a pipeline component or input processor which are all java file.
Please help!
Thank you very much
EllenI still believe that the information like connectivity parameters to remote
servers in the distributed environments would be best stored in the JNDI
tree. I agree, that it is not a "general storage area", but I am not talking
about storing application run-time data either.
In the clustered environments it would provide additional benefits of
centralizing this kind information across the cluster.
Regards,
Mike
"Subrahmanyam Allamaraju" <[email protected]> wrote in message
news:[email protected]..
>
JNDI is not a general-purpose storage area, although you could bind data
in a JNDI tree. A better (and simpler) way is to store them as context
parameters. You could read the initial values for these variables from a
servlet init parameters.
Subbu
Michael Goldverg wrote:
Ellen,
I would advise to put you global variable in JNDI tree.
You can use jndi.properties file to store name-value pairs, which will
get
loaded into jndi tree at the server startup. Just put this file in your
application class path.
The other method would be to code a startup class to store the global
variable in the jndi tree.
Regards,
Mike
"ellen" <[email protected]> wrote in message
news:[email protected]..
There are some "global" variables in my portal web application. e.g.
email
>>
server
name, admin email address etc. Will web.xml context-param a good place
to
>>
store these
kind of information?
If so, how do I retrieve it back from a java class? It is easy in a jspfile: appalication.getAttribute(),
but how about a pipeline component or input processor which are all javafile.
Please help!
Thank you very much
Ellen -
Use of global variables like g_cnt_transactions_transferred in the LSMW
Hi SapAll.
when i had a look at the some of the LSMW's whic use IDOC as the object of uploading data into SAP from external Files i have found in the coding under the step "Maintain Field Mapping and Conversion Rules" that they use some of the global variables like below
.if p_trfcpt = yes or sy-saprl >= '46A'.
EDI_DC40-DOCNUM = g_cnt_transactions_transferred + 1.
endif.
.EDI_DC40-CIMTYP = g_cimtyp.
.EDI_DC40-MESTYP = g_mestyp.
.EDI_DC40-MESCOD = g_mescod.
.if p_filept = yes.
EDI_DC40-SNDPOR = g_fileport.
elseif p_trfcpt = yes.
EDI_DC40-SNDPOR = g_trfcport.
endif.
my doubt is where i can find these variables 'g_cnt_transactions_transferred ','g_cimtyp','g_mescod','g_fileport','g_trfcport' in the LSMW and what is the use of the variable 'g_cnt_transactions_transferred ' in the LSMW.
I have treid to find out the above listed variables looking in step 'Maintain Field Mapping and Conversion Rules' under global variabels list and the other lists also but i couldnt found.
can any one help me in this ?
regards.
Seetha.Hi Seetha,
In the LSMW Workbench go to the option user menu. And check the option display conversion program.
Now when you execute with the radio button on dislplay conversion program, you ll see the code that got generated in the background while you built your LSMW.
The global variables that you have mentioned are bound to be there in this program generated in the background..
You can put a break point here and see for yourself what the value of these global variables are at runtime.
File port, TRFC port , no. of transactions executed by one run of the LMSW Idoc program , message type are some of the fields that you have asked for .
Regards,
Arun -
How to Use Transient View Objects to Store Session-level Global Variables
hi
Please consider section "40.8.5 How to Use Transient View Objects to Store Session-level Global Variables"
at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcstatemgmt.htm#ADFFD19610
Based on this documentation I created the example application
at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.01.zip
It behaves as show in the screencast at http://screencast.com/t/qDvSQCgpvYdd
Its Application Module has a Transient View Object instance "MyEmployeesContextVOVI", as master for the child View Object instance "EmpInCtxJobVI".
On rollback the Transient View Object instance keeps its row and attribute values.
Also when passivation and activation is forced (using jbo.ampool.doampooling=false ) the Transient View Object instance seems to keep its row and attribute values.
questions:
- (q1) Why does the expression #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty} evaluate as true when a Transient View Object instance attribute value is changed (as shown in screencast at http://screencast.com/t/qDvSQCgpvYdd )?
- (q2) What would be a robust approach to make a Transient View Object instance more self-contained, and manage itself to have only one single row (per instance) at all times (and as such removing the dependency on the Application Module prepareSession() as documented in "5. Create an empty row in the view object when a new user begins using the application module.")?
many thanks
Jan VerveckenThanks for your reply Frank.
q1) Does sample 90 help ? http://blogs.oracle.com/smuenchadf/examples/
Yes, the sample from Steve Muench does help, "90. Avoiding Dirtying the ADF Model Transaction When Transient Attributes are Set [10.1.3] "
at http://blogs.oracle.com/smuenchadf/examples/#90
It does point out a difference in marking transactions dirty by different layers of the framework, "... When any attribute's value is changed through an ADFM binding, the ADFM-layer transaction is marked as dirty. ...".
This can be illustrate with a small change in the example application
at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.02.zip
It now shows the result of both these expressions on the page ...
#{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty}
#{bindings.MyEmployeesContextVOVIIterator.dataControl.dataProvider.transaction.dirty}... where one can be true and the other false respectively.
See also the screencast at http://screencast.com/t/k8vgNqdKgD
Similar to the sample from Steve Muench, another modification to the example application introduces MyCustomADFBCDataControl
at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.03.zip
public class MyCustomADFBCDataControl
extends JUApplication
@Override
public void setTransactionModified()
ApplicationModule vApplicationModule = (ApplicationModule)getDataProvider();
Transaction vTransaction = vApplicationModule.getTransaction();
if (vTransaction.isDirty())
super.setTransactionModified();
}Resulting in what seems to be more consistent/expected transaction (dirty) information,
see also the screencast at http://screencast.com/t/756yCs1L1
Any feedback on why the ADF Model layer is so eager to mark a transaction dirty is always welcome.
Currently, question (q2) remains.
regards
Jan -
How can I pass a value field to a global variable?
I have a doubt,
I wnat to know if is possible to pass a value field to a global variable inside of DataFlow?
That a try to do is at the time to execute a JOB on line (real time), depending of the value field that i receive, only certain DATAFLOWS will be executed depending of the value field.
I hope you can help me.
Kind regards!!!It can be done via various ways, your approach is kind of odd, though.
You are saying you have one kind if Input message, depending on the flag you want to do different transformations. The way you envision that is by loading that flag into a global variable and use different dataflows then.
Can you use different dataflows within one Realtime Job? Yes, usually the first loads an in-memory datastore.
Can you write into a global variable? Yes and No. Not directly, but you can write the value into e.g. a database and using the sql() function read it from there. But why would you. You could write it into the in-memory datastore. And then you run your n dataflows, each has a filter. So only one of these dataflows will actually process the data.
Are there other approaches? I would have a Case transform at the beginning and route the data into different queries depending on the data. So all in one dataflow. Your approach is fine for a batch dataflow where a dataflow is started, does something and then ends. But that's not how it works in Realtime! -
Data manager package log does not show Global variables!!
Hello Experts,
We are using BPC 10 sp14 Microsoft version with SQL Server 2008 R2. We are seeing an issue where datamanager package log does not show the Global variables defined in package script whereas in BPC 7.5 Global variable were visible in package log.
Please let us know is this behavior changed in BPC 10?
Below is the package script having Global variables and Package log not showing any of them.
Thanks & Regards,
Rohit
Package Script:
Package Log:Hi Ergin,
As far as I remember it's by design...
Vadim -
I have one thread that is doing TCPIP Aquisition into a Global variable defined in Teststand. And I have another thread that it supose to read it. All are in the same sequence and execution. The problem is that the aquisition thread got a lot of bytes, while the processing thread is reading always only a few. Do you know what the problem could be?
I will attach also some pictures just to be maybe more clear...
Attachments:
Implementation_pictures.zip 368 KBI wasn't looking at your Sequence, I was looking at Receive_HDL_Block.JPG. What is that VI doing (the one with number 3 on the icon and Size_in_bytes as an input) ?
Where in teststand are you doing any checking?
I don't really understand your sequence.
You have a sequence (running in a new thread) (why), following by another called Receiver Handler (also running in a new thread) then two more sequences which seem to do some with transmitting something (also running as new threads). You are only waiting on one of these threads (the Receiver Handler). There does seem to be any loops in TestStand, you dont seem to be bothered about the other threads that you have running. What happens when this test sequence finally does stop, what is stopping the Threads that you have running.
Your pictures dont really seem to fit in with your Test Sequence, such as where does Test_005.vi fit into everything
The whole thing is a bit of a nightmare.
Maybe your best bet would be to scrap the lot and start again. Only this time have a better understanding of what you what to achieve, what would be best to put into Teststand and what to put into labview. Whether you really need all those new threads running.
Sorry to be so blunt.
Regards
Ray Farmer
Regards
Ray Farmer -
How to modify global variable in a function?
Hello,
I want to modify a globalvariable in a function, at first I did it this way:
class Global_output_class
GlobalDim("Correlation_Status,fail_part,End_Exp")
dim pouet
Correlation_Status = 12
Call Correlation()
pouet = Correlation_Status
Function Correlation()
Dim Global_output_class_sub
Set Global_output_class_sub = new Global_output_class
Correlation_Status = 1
fail_part = 2
End_Exp = 3
Global_output_class_sub.CorrelationStatus = Correlation_Status
Global_output_class_sub.failpart = fail_part
Global_output_class_sub.EndExp = End_Exp
set Correlation = Global_output_class_sub
End function
In this case: correlation_status receive the value 12, then I go to my function correlationn() where it became 1
Then it goes out of the subfunction and takes the previous value from the program(12) ( I dont want that)
To solve the problem I made it this way:
class Global_output_class
public CorrelationStatus
public failpart
public EndExp
end class
GlobalDim("Correlation_Status,fail_part,End_Exp")
Correlation_Status = 12
Set Global_Output = Correlation()
Correlation_Status = Global_Output.CorrelationStatus
fail_part = Global_Output.failpart
End_Exp = Global_Output.EndExp
pouet = Correlation_Status
Function Correlation()
Dim Global_output_class_sub
Set Global_output_class_sub = new Global_output_class
Correlation_Status = 1
fail_part = 2
End_Exp = 3
Global_output_class_sub.CorrelationStatus = Correlation_Status
Global_output_class_sub.failpart = fail_part
Global_output_class_sub.EndExp = End_Exp
set Correlation = Global_output_class_sub
End function
This way my global value are recopied in themselves after leaving the subprogram
I got a lot of variables, is there any easier way so the global variable modified in a function keep the value after leaving the function?
Thanks for help,
Fred
Solved!
Go to Solution.Hi Fred,
it is possible to use a global defined variable but the better way is to use to use a funtion call (or procedure call) with parameters. Please find first the good solution for a funcion call with parameter and the sub-optimal way with an global valiable:
dim oParameter
set oParameter = new cGlobal_output_class
oParameter.Correlation_Status = 12
msgbox "Correlation_Status before Call Correlation: " & oParameter.Correlation_Status
Call Correlation(oParameter)
msgbox "Correlation_Status after Call Correlation: " & oParameter.Correlation_Status
Function Correlation(oPara)
msgbox "Correlation_Status in the FUNCTION before change: " & oPara.Correlation_Status
oPara.Correlation_Status = 1
oPara.fail_part = 2
oPara.End_Exp = 3
msgbox "Correlation_Status in the FUNCTION after change: " & oPara.Correlation_Status
End function
class cGlobal_output_class
dim Correlation_Status,fail_part,End_Exp
end class
call GlobalDim("oPouet")
dim oPouet
set oPouet = new cGlobal_output_class
oPouet.Correlation_Status = 12
msgbox "Correlation_Status before Call Correlation: " & oPouet.Correlation_Status
Call Correlation()
msgbox "Correlation_Status before Call Correlation: " & oPouet.Correlation_Status
Function Correlation()
msgbox "Correlation_Status in the FUNCTION before change: " & oPouet.Correlation_Status
oPouet.Correlation_Status = 1
oPouet.fail_part = 2
oPouet.End_Exp = 3
msgbox "Correlation_Status in the FUNCTION after change: " & oPouet.Correlation_Status
End function
class cGlobal_output_class
dim Correlation_Status,fail_part,End_Exp
end class
Greetings
Walter -
Global Variable in Oracle Forms 6i
Hi,
How & where to define global variable in Oracle form 6i and also let me know how to access it.
Thanks in advance
Regards,
Sankethi
Global variable are forms specifice variable.
it can store character value upto 255 for all usages.
We can initialize it when we declare otherwise give error if we did not assign it any value.
Oracle 10g it can take upto 4000 bytes
GLOBAL.ur_globalvar := TO_CHAR(15);
or
:GLOBAL.ur_globalvar:= '15';
or
Remmber numeric values are implicitly converted by oracle 2 character
:GLOBAL.ur_globalvar:= 15;
-- which can then subsequently be accessed using...
:GLOBAL.ur_globalvar;
-- To destroy a global variable and release its memory, use the ERASE built-in procedure:
Erase('GLOBAL.my_var'); Regards,
Abdetu...
Maybe you are looking for
-
Avoid repeating namespace declaration in xml output
Hi all, I'm trying an IDoc -> XML File (specifically UBL-format) scenario, and it is working fine. But the resulting XML contains repeating namespace declarations for each element, instead of a "common" declaration at the root element. How can I avoi
-
Fnd_date4 is not takeing in my date value set
Hi, I have one Concurrent Program In this Concurrent Program one parameter is used as valueset Fnd_date4,i try just the valueset list of values and try to put what ever ther in previous fnd_date4, it is not working,it is showing Error app-fnd-01086 t
-
Hi There, We need to park documents with Spl GL indicators. In particular example: Downpayments received from customers. However, system does not allow parking with Spl GL. Has anyone found any solution to this? Any user exit or any other option? Tha
-
Any Reason NOT to Upgrade?
I immediately upgraded my mini to Leopard the moment Leopard was released, and am enjoying it. But my primary computer is my 17" 2.16 Intel Core Duo MacBook Pro. I chose NOT to upgrade it to Leopard immediately: I needed it to be "stable" and I give
-
After Effects CS5 is crashing my Mac when I trim a clip
I don't have much to explain this further but After Effects CS5 is crashing my Mac when I trim a clip. It completely turns off my Mac when I trim a clip. The only other similar thing is Photoshop CS5 is also doing crashing my Mac when I resize large