How to pick up a Particular value in a table
Hi all,
I have the output of a query to display in a table.Now i want to pickup some values from the output table and use them to display in a graph.
I wanted to pick the values as below:
i have 6 rows in the table and 10 columns in the table.
How can i pick the values from the intersection of 2nd row and 8th column,and intersection of 3rd row and 6th column,intersection of 4rh row and 5th column....and something like this...
i wanted to store these values in an invisible form and use them when i require.
Thanks
P.Navakanth
Hi all,
Please find additional info
Below is the sample table which is the output of query :
Column 1 Column2 Column3
Row 1 180 130 280
Row 2 260 190 320
Row 3 313 125 639
Row 4 257 367 478
I want to display the 4 values in a form which are to be taken from the above table (which are bold).....i.e
value 1 as 280 which is intersection of row1 and column3
value 2 as 260 which is intersection of row2 and column1
value 3 as 639 which is intersection of row3 and column3
value 4 as 367 which is intersection of row4 and column2
Thanks
P.navakanth
Similar Messages
-
how to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 device using ftp through Ethernet
Hello
For using FTP function in LabVIEW, I recommend you to check this document: FTP Basics
Also, take a look at FTP Browser.vi, which is available at the Example Finder.
To edit a XML file, try to use VIs in XML palette. Maybe Write to XML.vi helps you.
Post your current VI if possible.
Regards
Mondoni -
HOW CAN I PASS A DEFAULT VALUE IN INTERNAL TABLE
HOW CAN I PASS A DEFAULT VALUE IN INTERNAL TABLE.
DATA : BEGIN OF ITAB OCCURS 0,
FIELD1(2) TYPC C DEFAULT '12',
FIELD2 TYPE C ,
END OF ITAB1.
IT'S GIVING ERROR MESSAGE.
PLZ LOOK INTO THIS AND GIVE ME CORRECT SOLUTION.
THANKS
SURIDATA : BEGIN OF ITAB OCCURS 0,
FIELD1(2) TYPC C,
FIELD2 TYPE C ,
END OF ITAB1.
itab-field1 = '12'.
itab-field2 = 'A'.
append itab.
clear itab-field2.
itab-field1 = '12'.
itab-field2 = 'B'.
append itab.
clear itab-field2.
Now everytime u'll have the value for field1 = '12'.
Regards
Vasu -
How can i extract the particular data from Base tables
Hi
I have some Base R/3- Tables . I need to exact the data from these base tables.
But i need to select some type of datarecords(eg: select Material Documents from MSEG and MKPF tables based on movement types 261,262).
Something like that . So how can i select the particular category datarecords from base tables. Anyway im going to create the Custom DataSource.
So please let me know . how can i extarct tha particular data from base tables
kumarHi Venkat
See i have some 5-tables . I need to extarct from these tables.
first i need to extract the data from one table fully.
Then i need to extarct the data from second table based on profict centers, company codes of first table.
Then i need to extract the data from third table based on profict centers of first table and movement type = 2p,2n,2s condition.
So how can i extarct like this data from multiple tables.
Please let me know
kumar -
How to pick up the last value of the input string
Hi there,
I have a requirement in which I have to pick up the last value of the input string.
I don't know the field length, it could be 10 line, it could be 4 line and it could be even 1 line.
Another problem is that the field contains all the alphanumeric values so the sort function is not working.
I believe I need to write a UDF but not sure exact what and how.
Can some body please help me solving this issue.
Input.
1.Abc
2.abc123atxx.com
3.(980)771-2341
4.
5.518VR50V58AD10DSAYBDSAFDSIEGHA:1
In that case I only need to pickup the last value i.e. 518VR50V58AD10DSAYBDSAFDSIEGHA:1
Output
518VR50V58AD10DSAYBDSAFDSIEGHA:1
Note:
1. Length is unknown
2. Alphanumeric data
Thanks,Hi karthick Lakkar,
Thanks for your quick response but unfortunately I am getting mapping exception.
What I did is create a UDF with 2 input
INPUT
a string
b string
and then this code
int Length=Integer.parseInt(a);
int requiredLength=Integer.parseInt(b);
if(Length<=requiredLength)
return(a);
else
return a.substring((Length-requiredLength),Length);
I am wondering about the input as well.
At present I am doing
KTEXT + KTEXT --- UDF
+ does represent concat, means same input will go to the UDF
This is the error which I am getting
Exception:[java.lang.NumberFormatException: For input string: "Kevin Farrar"] in class com.sap.xi.tf._MM_XXXXXXXXXXXXXX_ method calculate[Kevin Farrar, Kevin Farrar, com.sap.aii.mappingtool.tf7.rt.Context@6dbf19db] -
Trigger how to get new and old value for nested table column?
Hi,
I have created a nested table based on the following details:
CREATE TYPE typ_item AS OBJECT --create object
(prodid NUMBER(5),
price NUMBER(7,2) )
CREATE TYPE typ_item_nst -- define nested table type
AS TABLE OF typ_item
CREATE TABLE pOrder ( -- create database table
ordid NUMBER(5),
supplier NUMBER(5),
requester NUMBER(4),
ordered DATE,
items typ_item_nst)
NESTED TABLE items STORE AS item_stor_tab
INSERT INTO pOrder
VALUES (800, 80, 8000, sysdate,
typ_item_nst (typ_item (88, 888)));
Now I would like to create a trigger on table pOrder for after insert or update or delete
and I would like to track the new and old value for the columns inside nested table.
Can anybody direct me how to do it?
I would like to know the sytax for it like:
declare
x number;
begin
x := :new.nestedtablecolumn;--how to get the new and old value from nested table columns
end;
Hope my question is clear.
Thanks,
LavanHi,
Try like this:
CREATE OR REPLACE TRIGGER PORDER_I
BEFORE INSERT
ON PORDER
REFERENCING OLD AS old NEW AS new
FOR EACH ROW
DECLARE
items_new typ_item_nst;
ordid_NEW NUMBER;
BEGIN
FOR i IN :new.items.FIRST .. :new.items.LAST LOOP -- For first to last element
DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').prodid: ' || :new.items(I).prodid );
DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').price: ' || :new.items(I).price );
END LOOP;
END;Regards,
Peter -
How to read the selected row value of a table node
hi
i have a node of table type, displaying few records & with each record a NEXT button is there.
now i want to read the values of the selected row of the table & want to process next with NEXT button.
pls tell me how to read the values of the selected row only.
reds.data : lo_nd type ref to if_wd_context_node,
lo_nd1 type ref to if_wd_context_node,
lt_temp type wdr_context_element_set,
wa_temp type ref to if_wd_context_element,
ls_node1 type sflight,
lt_node1 type STANDARD TABLE OF sflight.
lo_nd = wd_context->get_child_node('CN_MAIN').
CALL METHOD lo_nd->get_selected_elements
RECEIVING
set = lt_temp.
loop at lt_temp INTO wa_temp.
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_node1.
APPEND ls_node1 TO lt_node1.
CLEAR ls_node1.
ENDLOOP.
'CN_MAIN' is the node whose selected values are to be picked and stored in internal table lt_node1.
Other option by Thomas :
DATA lo_nd_cn_main TYPE REF TO if_wd_context_node.
DATA lt_temp TYPE wdr_context_element_set.
FIELD-SYMBOLS <wa_temp> LIKE LINE OF lt_temp.
DATA lt_node1 TYPE wd_this->elements_cn_main.
FIELD-SYMBOLS <ls_node1> LIKE LINE OF lt_node1.
lo_nd_cn_main = wd_context->get_child_node( name = wd_this->wdctx_cn_main ).
lt_temp = lo_nd_cn_main->get_selected_elements( ).
LOOP AT lt_temp ASSIGNING <wa_temp>.
APPEND INITIAL LINE TO lt_node1 ASSIGNING <ls_node1>.
<wa_temp>->get_static_attributes( IMPORTING STATIC_ATTRIBUTES = <ls_node1> ).
ENDLOOP. -
How to get multipe data set values from Decision Table.
Hi All,
I need to use SAP BRM for one of the scenario where based one some Code Group I need to get a set of questions and for each question a set of possible answers.
The structure of Decision Table will be like below :
Table 1 : To get set of questions based on Project Code
Input Output Output
Project Code
Question Id
Question Description
Table 2 : To get set of answers based on question
Input Output Output
Question ID
Answer Id
Answer Description
I already searched in forum to get the multiple values based on some input and that works fine for a single field with multiple outcome.
Handling Selective Multiple Actions in SAP Business Rules Management System
In my scenario I need to get a set of Id and description as multiple outcome.
Can anyone please let me know how this can be achieved in BRM.
Thanks in advance
RavindraCreate an XSD in the BRM project with the desired data structure and import the XSD alias in the 'Project Resources'. Add this XSD alias as input/output of the decision table.
Refer this:
Creating a Simple BRM Ruleset in 30 Easy Steps using NWDS 7.3 (Flow Ruleset with a Decision Table) -
How can i insert new updated values in a table??
Hi ,
Can any one suggest me is there any way to insert the recently added data from one table to another table where both the tables have the same structure.
Suppose i have 10 rows in both table T1 and T2 and now if we add another 4 new rows in the table T2 .Can i update my table T2 w.r.t. T1 with these new row values.
Remember both the 10 rows in the tables T1 and T2 are the same and the strucuture of the tables are also the same.
please advice the way to achieve this and if then explain me how to achieve it?Looking forward for the response
B.r
debashisHi shailendra and all experts,
I thought of a more simple approach instead of going to the concept of stored procedure.But i am unable to do it on a scheduled basis like if i want this query to be run on a periodic basis i need to implement this sql query using a job.
can u suggest how to do it..As far as i know we can include the sql query inside a job to be scheduled on a weekly basis.
And also have a look at the sql i have written below it will insert all the extra row values of t2 into t1.please help me in scheduling it on a periodic basis .
Looking forward for ur response .I am almost near the goal i need ur help ..
reg
debashis
insert into t1 select distinct t2.apinumber,t2.wellname from t1,t2 where t2.apinumber NOT IN (select t1.apinumber from t1); -
How can I auto-number particular rows in a table?
I have a table within a dynamic form. In column 2 there is a drop-down where the user can pick a certain reagent. I would like to set it up so that column 1 auto-populates with a series of numbers when certain reagents are chosen. It needs to be an action/formula as the rows are added as needed to the form.
For example:
Reagent
1
Bottle
2
Bottle
Can
Paper
3
Bottle
Can anyone help me out with a script or other way to accomplish this?
Also, I'm relatively new to LiveCycle and although I have some limited scripting experience, I haven't applied it here yet - so I may need a little extra instruction on how to apply any script fixes...Hi,
Turn on trace for the session, tkprof the trace file and review what indexes were used.
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/ -
How to diasble selection for particular rows in a Table?
im currently working on a multiple select table.. i need to disable the checkbox for some particular rows. How can i get runtime control over that cell??
To disable one or more rows of single or multiple selection in your table, add the following code to your controller processRequest method:
OATableBean tableBean = ...;
tableBean.setSelectionDisabledBindingAttr("Disabled");
In the example above, "Disabled" represents the Boolean view attribute that returns 1/"Y" if one or more rows is (are) to be disabled, otherwise it returns 0/"N". The view attribute "Disabled" must belong to the same view object as the one associated with the table items.
If its an advanced table, use the same method on OAAdvancedTableBean instead. -
How to insert various number of values into a table
Hi
Im devoloping application using swing components..How can i insert values from JTextField to table if the form contains number of textfield(more than 30) and JRadioButtons(Radio Buttons are in button group).
thanks in advance.Hi
i designed a form with 58 Textfields. i want to get data from those fields and i have to store those into a database table. how can i do that .is there any simple way to do that?. do you have any example code? pls give me... -
How to get all the column values from a table source
Hi,
I have created one table source on a employee table and some customized attributes using global settings>search attributes.
Now these customized attributes mapped with the table columns through attribute mapping from the sorce tab.
Using doOracleSearch method i passed last parameter i.e. Integer array of customized attributes.
After execution of doOracleSearch method i am getting the results but customized attributes are not coming.
getCustomAttributes method returns null instead of some values.
Please refer following code for more info:
Integer[] fetchAttr=new Integer[2];
fetchAttr[0]=new Integer(137);
fetchAttr[1]=new Integer(138);
result =
stub.doOracleSearch("BTM",
new Integer(1),
new Integer(10),
Boolean.TRUE,
Boolean.TRUE,
group,
"en",
"en",
Boolean.TRUE,
null,
null,
fetchAttr);
ResultElement[] resElements = result.getResultElements();
for(int i = 0; i < resElements.length; i++)
System.out.println("Title : " + resElements[0].getTitle());
System.out.println("Snippet : " + resElements[0].getSnippet());
System.out.println("URL : " + resElements[0].getUrl());
System.out.println("non default : " + resElements[0].getCustomAttributes()); // it returns null here
}Confirm the attributes you are asking SES for match those on the data source being searched. One thing to try is to simply tell SES to return all custom attributes for your search. Here is a snippet to build a list of all attribute IDs and pass them to your search...
// Create and set SOAP URL
OracleSearchService searchService = new OracleSearchService();
searchService.setSoapURL("http://myserver:7777/search/query/OracleSearch");
// Set attributes to fetch (all)
Attribute[] attributesAll = searchService.getAllAttributes("en");
ArrayList<Integer> attributeIds = new ArrayList<Integer>();
for(Attribute a: attributesAll)
attributeIds.add(a.getId());
Integer attributeIdArrayAll[] = new Integer[attributeIds.size()];
attributeIdArrayAll = attributeIds.toArray(attributeIdArrayAll);
// Query
OracleSearchResult result = searchService.doOracleSearch("some text", ..........[other params], attributeIdArrayAll);
// Print out results
ResultElement[] resElements = result.getResultElements();
for(int i = 0; i < resElements.length; i++)
// Get document
ResultElement doc = resElements;
// Print Title
System.out.println("Title: " + doc.getTitle());
// Print custom attributes
CustomAttribute[] attributes = doc.getCustomAttributes();
for(int j = 0; j < attributes.length; j++)
CustomAttribute attr = attributes[j];
System.out.println("[Custom Attribute] " + attr.getName() + ": " + attr.getValue());
Hope this helps. -
How to Add column with default value in compress table.
Hi ,
while trying to add column to compressed table with default value i am getting error.
Even i tried no compress command on table still its giivg error that add/drop not allowed on compressed table.
Can anyone help me in this .
Thanks.Aman wrote:
while trying to add column to compressed table with default value i am getting error.This is clearly explain in the Oracle doc :
"+You cannot add a column with a default value to a compressed table or to a partitioned table containing any compressed partition, unless you first disable compression for the table or partition+"
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm#sthref5163
Nicolas. -
WebDynpro - How to pass a single field value to BAPI table?
Hello,
I have just come from WebDynpro ABAP training and being a novice hit my first issue right away.
I need to use BAPI - BAPI_CONTRACT_CREATEFROMDATA to create SD contract (I have used this BAPI to create a service call inside Webdynpro). I have two required fields: contract start and end dates. These fields passed in a table called CONTRACT_DATA_IN.
When I use the fields from the structures or individual fields, all I need to do is just put them on the view, and when I hit my submit button they will be passed to the BAPI. They are a part of COMPONENTCONTROLLER context (I have also mapped them in View context), but tables are obviously different.
Is there any way to pass data to tables as seamlessly without any code as for structures? Or do I need to write code to get the values from the input fields and then populate the table manually?
Thanks,
AlexHi,
Single customer contract creation use the struture-
If you want to pass only one record then using the input fields for those 2 fields we can pass them to BAPI and then create the Customer Contract. This will work for only one record of customer contract.
then we can directly read these input fields and pass to BAPI.
Creating many customer contracts -
For example, If you want to provide the group of records at a time and then you want to create the cusotmer contracts for so many records then you fill these fields and pass them to table then pass this table to the tables parameters of that BAPI.
Here we need not create the Table UI element separate input fields would serve the purpose.
Now we can create the batch of contracts for N customers.
these input fields of a customer will be passed to table, then next set of input fields etc.
For this create the Table UI element and fill all the records and then pass it to the Tables of the BAPI.
Regards
Lekha
Maybe you are looking for
-
Wiki Server will not play embedded MP3 files in Windows Browsers
I have a brand new cleanly installed OS X Server running on a Fall 2012 Mac Mini. I have created a Wiki where I am uploading .mp3 recordings of classes for people to listen to online or download. I can access the wiki and "quicklook" the MP3s in Safa
-
Tree component index confusion
Hello, I have a Tree component and need to access some nodes by its index. This is to make a "move up/down" control. My idea, after trying many, is to duplicate the selected (current) node up or down, then replace the content of the original with the
-
Trace the reference Standard movement type from customized movement type
Hi, In my system there are few customized movement type. Can I know which Standard movement type was used as reference to create the customized movement type.
-
I don't recall this happening before. Is it an issue with Mozilla Thunderbird or with Telecom New Zealand ?
-
Transporting form BOX to another BOX to production BOX changes not effect
Hi Expert's, Good Day! I would like some help from on my object from "Transporting form BOX1 to another BOX1 to production BOX changes not effect" ?? The issue is regarding transaction SE51 (screen painter). I was changing the Define Length from 45 t