How to programmatically read ATC Findings ?
ABAP Test Cockpit (ATC) results (findings) are extremely relevant and even if the online transactions SE80 and ATC provide great enjoy transaction with interactive ALV, it would be useful to access the data programmatically for example to create an history, to publish to an analytic component, to create a dashboard, to distribute them daily via abap2xlsx ans so on so forth.
ATC underlining tables are well structured but also very complex.
Header (1st level) is quite simple.
Results (2nd level) is instead complex; it contains Check title and Check message derived from the involved ABAP class dynamically.Message text (3rd level) is stored in encoded format as well as the related program line number containing the statement to be analyzed.
Do you know an hi-level API or any good extraction example ?
thanks a lot,
Sergio
Hi Sergio,
please use the func /SDF/CC_ATC_RESULTS or the corresponding sequence of functions inside.
regards
Björn
Similar Messages
-
How to programmatically read/write the range of a fieldpoint AI channel using LV
Is there a way to programmatically read/write the range of a fieldpoint AI channel using LV ? The example on NI site only permit you to have the name of the device and channels, not the actual set of the range of measure. Anybody has a VI (LV5.1 please)to share?
Thank you very muchIf you are using the FieldPoint VI's (Open, Create Tag, Read, Write, Advise), you do not have the ability to change the range of a channel. If you have a FP-1000 or FP-1001, you can use the Optomux commands as described in the FP-1000/1001 Programmers Reference Manual (FieldPoint Optomux VI's are available at ftp://ftp.ni.com/support/fieldpoint/LVFPOpto/ ).
Alternatively, if you have an ethernet network module and LabVIEW 6i or later, you can use the ethernet configuration VI's that ship with FieldPoint Explorer 3.0.1.
Regards,
Aaron -
How to programmatically read the SequenceFile currently open (front most) ?
I have open in TS few sequences, they can be sequences or subsequences, but the one is currently open in TS. I would like to know from the ActiveX libs the one sequence file that is front most in teststand. I know I can enumerate on all open sequence files but I don't know how they are sorted and how to get the one that is open front most.
The reason for that is i want to run from the TS custom menu my own sequence that will do some action on the sequence currently open in TS.
I attached my example VI to get the Sequence references of all open sequences in TS.
Thx in adv...
Solved!
Go to Solution.
Attachments:
TS.File.GetSequence.vi 29 KBHelp says the following about the InitialSelection property.
Contains references to properties, steps, sequences, sequence files, and executions that are selected or active when you start an execution. If the active window is a Sequence File window, the InitialSelection property contains non-execution versions of the selected objects. If the active window is an Execution window, the InitialSelection property contains execution versions of the selected steps, properties, and sequences as well as non-execution versions of the selected sequence file.
Are you going to run a sequence called from your Tools menu? If that is the case you should be able to use the RunState.InitialSelection.SelectedFile properties.
I have done the following from a tools menu sequence to obtain a sequence.
If ( PropertyExists("RunState.InitialSelection.SelectedFile.Path"))
IF ( RunState.InitialSelection.SelectedFile.Path == "" || RunState.InitialSelection.SelectedFile.Path == RunState.SequenceFile.Path )
/*Checks if there is a valid file open or you are just running the sequence in the Tools menu */
Display File Dialog to locate Sequence File.
Else Locals.Path = RunState.InitialSelection.SelectedFile.Path
Plus what did you mean by 'front-most' sequence file?
Thanks,
PH -
How to programmatically add rectangle to a pdf file ?
How to programmatically add rectangle to a pdf file ?
There is several page pdfs, non-vector, black and white.
Users are color blind and have disabilities.
To train them, one adds a rectangle at a certain lower-left point and width,height specified for a page.
The idea is to give the script the page and coordinates and size of rectangle to be added programmatically. Green rectangles are acceptable as the cones are most sensitive there.
Also, additional feature to add bookmarks on the left in the order these rectangle data is provided to the script.
The script could be "hard-wired" by a list of the rectangle coodinates, and page number, pasted inside acrobat and run or entered into acrobat in some way.
Your script would help many disabled people who are distributed through out the world.
Feel free to contact me by email if you wish.
Dying VetsP.S.
This rectangle does not have to be a full annotation rectangle which needs user,date and a lot of info.
Something minimal like this would suffice
1 0 0 RG % red for stroke color
200 300 50 75 re
As you can see that the native unit of the pdf file is the "point" having 72 in an inch.
The file dpi would be given. However, one could assume that pixel for the rectangle lower-left and width/height are given.
From the pixels and dpi, the points could be calculated if desired. -
How to programmatically place the field in the canvas.
Hello!
Can you please tell, how to programmatically place the field BLOCK1.FIELD1 in the canvas CANVAS1.
At the moment on the field value CANVAS = NULL.
And when opening the form error "FRM-41014 Cannot set attribute of null canvas item..."
Thank youYoucannot assign a canvas at runtime. Yu have to specify int at designtime and it cannot be changed at runtime. if you need an item in more than one canvas, use a mirror-item (duplcate the item and set the property Synchronize with)
-
How to programmatically copy a OneNote page from one section to another
How to programmatically copy a OneNote page from one section to another.
I don't find any interface in OneNote
2010 Developer Reference which will let me do this.
any help?
Regards,
Umar
OneNote 2010Hi Umarinam,
Thank you for posting in the MSDN Forum.
In the page OneNote 2010 Developer Reference, you can see an Application Interface which includes methods
help retrieve, manipulate, and update OneNote information and content.
The below are some basic samples
Retrieving Section Metadata in OneNote 2010
Programmatically Opening and Closing a Notebook in OneNote 2010
Hope it helps.
Best regards,
Quist Zhang [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
How to programmatically mimic the user action of selecting a button ?
I am using JAVA Swings to build a desktop application. The application has many buttons, lists and text boxes etc. I have created actionPerformed methods that monitor the source for user action. I am able to execute the code whenever an action is performed by user manually.
I also require to save the choices, and texts entered by a user during his active run with the application. This is to avoid user to re-enter all the information once again.
The problem is to programmatically select those buttons and lists which were saved during users earlier session. How can I perform the action event of selecting a radio button from my java code.Kiran,
Your approach is missing the whole idea of Model-View-Controller. I suspect that somewhere you are saving the data of the user's choices. For example, if you have a checkbox, I suspect you have a java bean somewhere containing a boolean value that is set to true when the checkbox is selected, and false when the checkbox is unselected. This process is mediated by a controller, which has a references to the model (the data) and the view (the UI). The controller sets up as a listener to the actions within the UI, and, when notified, sets the appropriate properties of the data, usually into one or more java beans.
So, on the reverse side of things, the data is read into the java bean(s), and the controller uses that data to set the state of the UI elements. So, your controller can do something like this:
uiThing.initUI(yourBean);And in the initUI method you have:
public void initUI(DataBean data) {
cbxBlue.setSelected(data.isBlue());
txtLastName.setText(data.getLastName());
// etc...
}If you take that general approach, you'll find you don't need to simulate user actions.
In the few cases within the UI where you think you do, you really don't. An ActionListener is just a receiver of when something like a button is pressed. If your program needs to do the same thing as when the button is clicked, create a method to perform the processing, and invoke it directly, rather than trying to figure out how to programmatically press a button.
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand().equals("BlueButton"))
this.setBlue();
//... etc.
private void setBlue() {
// whatever
// somewhere else in the code
private void someProcess() {
// other work
// other work
if (someCondition) this.setBlue(); // rather than forcing an action event
// other work
// other work
} -
How to programmatically move the cursor to the "To" field of a new AppointmentItem?
I need to move the cursor to the "To" field of all new AppointmentItems which are created through my Outlook Addin. How I can achieve this?
Thanks in advance.
Thanks PrasadHello Prasad,
The Outlook object model doesn't provide anything for that. You need to use Windows API functions or use
Accessibility API to set the cursor programmatically. -
How to programmatically add af:setPropertyListener to CommandImageLink
Hi All,
My Requirement: programmatically add af:setPropertyListener to CommandButton
I referred this post how to programmatically add af:setPropertyListener to CommandButton and followed the following code.
Code:
// create a value expression
ValueExpression vx =
elFactory.createValueExpression(elContext, "#{pageFlowScope.clockNo}",
String.class);
// set a default value if desired
vx.setValue(elContext, clockNo);
SetPropertyListener spl =
new SetPropertyListener(ActionEvent.class.getName());
spl.setFrom(clockNo);
spl.setValueExpression("to", vx);
// add the listener to the button
newOpButton.addActionListener(spl);
My Code:
<af:commandImageLink id="editInsuraceDetLink"
icon="/resources/images/Edit.jpg"
iconPosition="trailing"
rendered="#{not row.deleted}"
action="addEndorsement"
useWindow="true"
inlineStyle="vertical-align:bottom;"
partialSubmit="true"
shortDesc="Edit"
*actionListener="#{pageFlowScope.GetEndorsementTypeListener.execute}"*
returnListener="#{GetEndorsementDetailsListener.execute}"
windowEmbedStyle="window"
windowModalityType="applicationModal"
windowHeight="650" windowWidth="740">
</af:commandImageLink>
Action Listener - .GetEndorsementTypeListener.execute code:
RichCommandImageLink a_button = (RichCommandImageLink) a_component.findComponent("editInsuraceDetLink");
FacesContext fctx = FacesContext.getCurrentInstance();
Application application = fctx.getApplication();
ELContext elContext = fctx.getELContext();
ExpressionFactory elFactory = application.getExpressionFactory();
ValueExpression vx = elFactory.createValueExpression(elContext, "#{pageFlowScope.controlFlowName}", String.class);
// set a default value if desired
//vx.setValue(elContext, clockNo);
SetPropertyListener spl = new SetPropertyListener(ActionEvent.class.getName());
spl.setFrom(a_target.getEndorsementFor().toString());
spl.setValueExpression("to", vx);
System.out.println("From= "+spl.getFrom());
System.out.println("To= "+spl.getValueExpression("to"));
// add the listener to the button
a_button.addActionListener(spl);
I got the following output.
From= Nominee / Appointee
To= ValueExpression[#{pageFlowScope.controlFlowName}]
Now my Problem is: the pageFlowScope variable ControlFlowName is not set.
And also I got a *link*: https://blogs.oracle.com/vijaymohan/entry/usage_of_setpropertylistener_and_setactionlistener
Whats wrong with my code. Is my problem related with above *link*.
Please suggest me how to add SetPropertyListener programmatically.
-Thanks
MohanrajFrank,
This works:
// create a value expression
ValueExpression vx =
elFactory.createValueExpression(elContext, "#{pageFlowScope.clockNo}",
String.class);
// set a default value if desired
vx.setValue(elContext, clockNo);
SetPropertyListener spl =
new SetPropertyListener(ActionEvent.class.getName());
spl.setFrom(clockNo);
spl.setValueExpression("to", vx);
// add the listener to the button
newOpButton.addActionListener(spl);But, I am thinking you would have known about it before I posted it. I don't really know how it works, but it does.
Can you help me reconcile between this, and what you said. Because what you said makes sense too. -
How to programmatically click on cross button X c#
i searched google lot to know how can i programmatically click on cross button X using c#. i got the below code which is used for different purpose.
private void Form1_FormClosing(object sender, FormClosingEventArgs e) {
if (string.Equals((sender as Button).Name, @"CloseButton"))
// Do something proper to CloseButton.
else
// Then assume that X has been clicked and act accordingly.
so anyone can tell me How to programmatically click on cross button for closing form. thanksthis is the code which i was looking for to close any sdi window programmatically.
Question
Vote as helpful
0
Vote
Hi MM2,
After I tested all of the following WM_XXX messages, I found one that works.
Code Snippet
public partial class Form1 : Form
private int WM_IME_NOTIFY = 0x0282;
private int WM_DESTROY = 0x0002;
private int WM_NCDESTROY = 0x0082;
private int WM_CLOSE = 0x0010;
private int IMN_CLOSESTATUSWINDOW = 0x0001;
private int WM_KILLFOCUS = 0x0008;
private int WM_COMMAND = 0x0011;
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
private void closeYesNoMBButton_Click(object sender, EventArgs e)
IntPtr handle = FindWindow(null, "YesNoMessageBox");
SendMessage(handle, WM_KILLFOCUS, 0, 0);
SendMessage(handle, WM_IME_NOTIFY, IMN_CLOSESTATUSWINDOW, 0);
SendMessage(handle, WM_COMMAND, 0, 0);
SendMessage(handle, WM_DESTROY, 0, 0);
SendMessage(handle, WM_NCDESTROY, 0, 0); -
How to programmatically enable extension?
How to programmatically enable extension? Without manually clicking the Enable button in the extension screen.
-ThanksSee:
*http://mike.kaply.com/2012/02/09/integrating-add-ons-into-firefox/ -
How can I read my email from my aol account from my iphone and keep it as "unread" on my computer at home? At home I can read an email and if I want to get back to it at a later date I can mark it as "keep as new". I tend to forget it if it goes to "read" mail. Right now, when I read an email from my phone it goes automatically to "read" mail.
On the iPad, using the mail app, there is no way to do what you are asking without tapping the flag icon and marking the item as unread. Have you tried the OWA app for the iPad? It may have that functionality, but I haven't tested it as you need an Office 365 subscription with Exchange support to use the app.
-
How to download / read text attachment in Sender Mail Adapter IN XI
Hi
I would like to know how to download / read text attachment in sender mail Adapter & sent same attachment to target system using file adapter.
Please help how to design / resolve this concept.
Regards
DSRI would like to know how to download / read text attachment in sender mail Adapter & sent same
attachment to target system using file adapter.
Take help from this blog:
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
From the blog:
However in most cases
our message will not be a part of the e-mail's payload but will be sent as a file attachment.
Can XI's mail adapter handle such scenarios? Sure it can but with a little help
from the PayloadSwapBean adapter module
Once your message (attachment) is read by the sender CC, you can perform the basic mapping requirement (if any) to convert the mail message fromat to the file format.....configure a receiver FILE CC and send the message...this should be the design...
Regards,
Abhishek. -
I am confused about something. How do I read a book on my MacBook Pro? I can't find the iBook app anywhere, which is what I use on my iPad. The book I want to read is in my iTunes but I can't click on it. Some of my iBooks show up in my iTunes but they are "grayed" out. The only books that respond in iTunes are audiobooks and that's not what I'm looking for. Is this a stupid question?
Nevermind - I answered my own question, which is I CAN"T READ ANY BOOKS I purchased in iBooks on my MacBook Pro. If I want to read on my mac I have to use Kindle or Nook. Which means any book I've already purchased through iBooks has to be read on my iPad. Kind of a drag because there are times when it's more convenient for me to read while I'm sitting with my Mac.
-
How can I read a column of numbers saved as .txt and display as a wave?
Hi Tiano
LabVIEW General
Ask:
Please enter a one-line summary of your question
Resources
• Technical Support
• Development Library
• Measurement Encyclopedia
"data/time reading into chart"
"In the attached file, I am trying to read the first column of data, and the next column is the value on the x-axis I want it plotted at. How do I read two columns of different data? I have looked in the books I have access to and the help within Labview but am still having trouble.
Thank you,
Ellie"
data_set (Plain Text, 3K)
-posted by Ellie on 9/11/2001
markwysong on 9/11/2001 answered:
"Ellie,
The first thing you need to do is to read your file in as a spreadsheet file. Then, you display it in a chart.
That sounds simple, but looking at your dataset, there's a few things you should know. First, the "read from spreadsheet VI" is looking for data in columns, like your data set, but columns separated by tabs. Therefore, your data must be saved that way; currently, it doesn't seem that it is. Another thing; you must skip the header portion (labels) of your file when reading.
Next, it would be easier if your time was first, and your data was second in your columns, but that can be overcome. In the VI I am including, I have copied your data set into a file called data.txt, and I've removed the header and separated the columns with a tab. Then, I read in the data, and I break out each column so I can put the time first, and then I combine them again into a cluster so it can be displayed on an XY chart.
Take a look!
Mark"
Graph data from file (Binary Executable, 20K)
data.txt (Plain Text, 3K)
This answer has not yet been rated.
Rate this answer:
Mikael Garcia on 9/11/2001 answered:
"Ellie,
Here is one way of doing it. Take a look at this example (compatible with LabVIEW 4.1 and up) and post comments if you need further help. Basically, I read your file as text; split it; and make use of the Spread sheet string to Array function before I plot your data. Hope this helps./ Mikael"
ExtractAndPlot.vi (Binary Executable, 36K)
This answer has not yet been rated.
Rate this answer:
Ellie on 9/12/2001 commented:
"Thank you. I am trying to get the data from the text file into a string and am having some trouble. I am reading the file from a spreadsheet, and sending the output array to "Array to Spreadsheet String", but I'm not sure this is what I want to do. Is there another way to make an array into a string? Do I need to reformat my data?
Can you offer me any advice?
Thank you."
data_1 (Plain Text, 3K)
Mikael Garcia on 9/12/2001 commented:
"I noticed that you changed your file format according to what was said here. Yes, this new file of yours is easier to use but your original file does not have to be changed. Take a look at this example. I now added the file-read part. It will give you a dialog to locate your data file (use this VI with your original file with the header since this VI includes a string split function). Hope this helps. /Mikael"
ReadExtractandPlot.vi (Binary Executable, 35K)
Niko on 9/12/2001 answered:
"If you read this file with the "read from spreadsheet file.vi" you get you
data in a 2-D-array. Now it is easy with array- and cluster-functions to
handle the data the way you want.
hope that helps, Niko"
This answer has not yet been rated.
Rate this answer:
I intend to read from a .txt file that contains a column of numbers. After reading I want to display it as a waveform. In fact the numbers represent points along a waveform/graph of Flow vs. time. Thus I want to have this info in the chart or graph with flow in the y0axis and time in the x-axis. Can someone give me some detailed help please? Thank you in advance.
Attachments:
The_file.txt 18 KBAll you have to do is use Read From Spreadsheet File.vi that's on the File I/O palette. For your example .txt, set the Transpose input to true and wire the First Row output to a waveform graph. The only problem I see is that since your file doesn't contain any sampling info, the time axis will be relative. If have that information elsewhere, then you can put a build waveform function between the read and the graph. Wire the First Row output to the Y input Build Waveform and add t0 and dt values. I've attached an example.
Attachments:
Graph_from_text.vi 29 KB
Maybe you are looking for
-
Forgot password and wanted to do a recovery. I followed the recommended steps but download of restore/recovery stops before completion,saying it is password protected.
-
When I type t3config , I see a couple of class paths and I'm confused which one is which and what are the diffrences between them, there is classpath, javaclasspath, serverclasspath, weblogic.class.path and JVM class path, Server's class path on the
-
Hey, I'm having two issues with the Show-Hide Layers behaviour in Dreamweaver and was wondering if someone else has had the same problems and has a solution. My test page is http://www.petermcphee.com/dreamweaver/popup-layer.html 1) What I would like
-
Documents remain in GenWWW status and conversion error message says success
Hi, I have instaled UCM 11.1.1.4 and the situation is that documents remains in GenWWW status, the conversion error message says success . In Ibr logs says everything went perfect, in UCM logs isn't recorded any error. Anyone have a clue to solve thi
-
IPhone will not retain wrt54g password
Hi all. I have a iphone that will not retain the password for a WRT54g. Each time I leave the house, I have to renter the wifi password on my phone. It remembers other networks, just not the house. I'm clueless on modems, so if you suggest that I do