Passing table to another component.
Hi,
I am a newbie in ABAP Web Dynpro. I have a requirment wherein I need to pass values from 1 table into other table in different components.
Brief:
In my component A I have a table with columns A, B, C, D and an 'Add' button which on clicking opens a new pop up window. In this pop up window, I have a table with just one column and I am inporting .csv file to fill the table (1 column). When I click 'OK' in this pop window after importing values, I want these values to be passed to 'C' column in the table in component A.
Pop up window belongs to component B.
I need step by step help regarding how to transfer values from table in componnet B to a specific column of table in component A.
Hi,
you can achive this by component usage method as well....
in component A create an interface node...which you want to fill the data from component B....
in component B declare the usage of component A...now you have access to component A node which you want to fill using the values from B.....
that is all...
thanks...
AS...
here are the steps:
1) create component A with following context node at componentController level.:
MyNode
---colA
---colB
---colC
---colD
now select this node "MyNode" and you will see at the bottom half of the screen the properties will appear...
look for this property "Interface Node" check this one....this will make sure that your componentB can see this...
2) now create component B....select this component name....you will see on the right side of the screen two tabs:
"Used component" and "implemented interfaces"
select the "used component" tab...and write any name you like under the "component use" column....now go to second column "component" and do F4...and select your "componentA" component.
3) now go to componentController of "componentB"...and under the context tab hit the button "Controller Usage"
you will see that node you created in componentA is sitting on the right side of the window....just drag and drop to your component B context....on the left side.....
that is all....now you can do some logic to fill only "colC" of node "MyNode".....
Similar Messages
-
How to pass selected records from one table to another ?
Hi,
In my view i have designed a table with certain records. I need to pass only specific records of this table to another table which been designed in another view. Can anybody please give sum idea for this.
Rgds
Sudhanshuhi,
Refer the below code:
1. I have selected some data from the table.
2. The selected data is moved to some other internal table.
3. Internal table is further binded to the node in which data is to be shown.
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'). <CN_MAIN is my node>
CALL METHOD lo_nd->get_selected_elements <here selected data is moved to lt_temp>
RECEIVING
set = lt_temp.
loop at lt_temp INTO wa_temp.
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_node1. <Selected data in work area.>
APPEND ls_node1 TO lt_node1. < Data moved to internal Table>
CLEAR ls_node1.
ENDLOOP.
Finally Internal table is binded to the node required.
lo_nd1 = wd_context->get_child_node('CN_MAIN2').
lo_nd1->bind_table( lt_node1 ).
In your case , map this CN_MAIN2 with the Component Controller and from component controller you can access data in your second view also.
I hope it helps.
Thanx.
Saurav. -
PASSING A TABLE TO ANOTHER PROGRAM
HII FRNDS
CAN WE PASS A TABLE TO ANOTHER PROGRAM . I AM CALING THAT PROGRAM USING SUBMIT COMMAND.
tHANKX
ROHITcheck this sample code..
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT report EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.
hope this helps... -
Passing Tables from one method to another method.
Hi All,
I'm creating a Web-Dynpro program in which I wouild like to passing an internal table from one method to another method within the same View.
Is this possible? And if so, how can I set it up.
Thank you.
PaulHi Paul ,
I hope u wud be clear with passing table from one method to another now .U may also wish to see this WIKI
Link: [Passing table parameters|https://wiki.sdn.sap.com/wiki/display/WDABAP/Passingtableparameterfromoneviewtoanotherview+locally]
I hope it wud help u .
regards,
amit -
Passing Parameters to Form Component
Can I pass parameters to a form component through the URL...like PORTAL30.wwa_app_module.new_instance?p_moduleid=1098075940 is the link to get the form ..I want to pass a parameter along with this.This is to pass the parameter to a stored procedure on which the form is based.
nullYes you can pass parameters.. here's a quick tutorial..
There are 2 ways to link to a 3.0 form from another component:
1. "Query links", in this mode user can specify any conditions for the form and when the form
gets these values it will execute the query using passed conditions and if a record found we will bring the form in the update mode so that record can be updated, if multiple records found all set of the records will be returned, and user can use "Next" and "Previous" buttons to navigate in the set.
If none of the records in the table satisfy the criteria, the form will be shown in insert mode with all fields empty.
Parameter | Condition | Static Value | or | Column Name
EMPNO | | >= | | 7900 | | | | | |
ENAME | | | | | | | | | |
JOB | | | | | | | | | |
MGR | | | | | | | | | |
HIREDATE | | | | | | | | | |
SAL | | | | | | | | | |
COMM | | | | | | | | | |
DEPTNO | | | | | | | | | |
showheader | | | | | | | | | |
_rowid | | | | | | | | | |
Resulting Link Example:
portal30.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1060253649
&p_arg_names=_sessionid&p_arg_values=
&p_arg_names=EMPNO&p_arg_values=7900
&p_arg_names=_empno_cond&p_arg_values=%3E%3D
2. "Link-to-fill-the-defaults"
This type of link is similar to WebDB 2.x forms link.
Take the link above and remove all the conditions and you will get the "defaults" link, we just take whatever you put in the value field and put it in the form field as a default value, no query performed. This type of link should be used in case if the users want to create a new record based on some of existing table data. For example to create another employee record in a department with the same job title and reporting to the same manager.
Parameter | Condition | Static Value | or | Column Name
EMPNO | | | | | | | | | |
ENAME | | | | | | | | | |
JOB | | | | | | | | JOB | |
MGR | | | | | | | | MGR | |
HIREDATE | | | | | | | | | |
SAL | | | | | | | | | |
COMM | | | | | | | | | |
DEPTNO | | | | | | | | DEPTNO | |
showheader | | | | | | | | | |
_rowid | | | | | | | | | |
Resulting Link Example:
portal30.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1060253649
&p_arg_names=_sessionid&p_arg_values=
&p_arg_names=JOB&p_arg_values=CLERK
&p_arg_names=MGR&p_arg_values=7902
&p_arg_names=DEPTNO&p_arg_values=20
null -
Not able pass the data from component to other component.
Hello All
I am not able pass the data from component to other component.
I have done like this.
1 Main Component (Parent component ) having below two child components.Embeded as used components.
2) Search Component and Details Component
3) In the Search Component having buttons, Say : Button u201CXu201D on click of button I am navigating to Details component view through FPM.
4) When I am clicking above button u201CXu201D raising the event to call the parent business logic method, there I am getting Structure with values and binded this structure to the node and Mapped this node to the Details component interface node. FYI : I kept the debugging point Structure is having data , I had set static attributes table to node instance.
5) In the Details component node data is not coming mean empty.
Thanks in Advance.
Br-
CW
Edited by: CarlinWilliams on Jul 4, 2011 9:21 AMHi,
When you use input Ext. check that the parent component should not be used as used component in child component.
Only in the parent component the child components should be used as used components and the usage has to be created for the
Child Components and the binding of the Node should be done from comp. controller of parent component to child node
by which you will be able to see double arrow against the node.This should work
Thanks,
Shailaja Ainala. -
Move data from one table to another table
Hi all,
I had a custom table called sales_data in that table there are columns like JAn,FEB,upto DEC including other columns so in each month there is some data total data is 23000 count but each month has has specific data like JAn-2500,FEB-2000 like that it has total 23000 records
My Requirement is i have to move data from one table to another table that too if i will pass jan only jan data should move like that feb,march,.....
in my table there is no month column i had get it from another table called gl_periods and by using cursor and case function i have written the code
well while when i am inserting data am passing year,month as parameters but 23000 data is moving it should get like that.
Please suggest me.its urgent
Thank YouHi hamid,
Please go through the below procedure.
CREATE OR REPLACE PROCEDURE APPS.copy_sales_to_forecast(p_fiscal_year varchar2,p_month number)
IS
CURSOR C1 IS select period_year,period_num,start_date,end_date from apps.gl_periods
where period_set_name='Accounting'
and period_year=p_fiscal_year
and period_num<=p_month;
type type1 is table of xxc_forecast_data%rowtype;
t1 type1;
BEGIN
FOR CREC IN C1 LOOP
BEGIN
DELETE FROM xxc_forecast2
where fiscal_year = crec.period_year
and attribute1='Copied From Sales to Forecast Table of Month '||crec.period_num;
END;
SELECT
product_category ,
product_sub_category ,
product_line ,
product_style ,
item_number ,
item_description ,
customer_name ,
customer_number ,
sales_channel ,
null ,
CASE
WHEN crec.period_num=1 THEN sales_amount_month1
ELSE 0
END Transaction_quantity_period1,
CASE
WHEN crec.period_num=1 THEN sales_cost_month1
ELSE 0
END item_cogs_period1,
CASE
WHEN crec.period_num=1 THEN sales_mtl_cost_month1
ELSE 0
END item_material_cogs_period1 ,
CASE
WHEN crec.period_num=1 THEN sales_mtl_ovhd_cost_month1
ELSE 0
END item_mtl_ovhd_cogs_period1,
CASE
WHEN crec.period_num=1 THEN sales_res_cost_month1
ELSE 0
END item_resource_cogs_period1,
CASE
WHEN crec.period_num=1 THEN sales_op_cost_month1
ELSE 0
END item_op_cogs_period1,
CASE
WHEN crec.period_num=1 THEN sales_ovhd_month1
ELSE 0
END item_ovhd_cogs_period1,
CASE
WHEN crec.period_num=1 THEN sales_units_month1
ELSE 0
END extended_amount_us_period1,
CASE
WHEN crec.period_num=2 THEN sales_amount_month2
ELSE 0
END Transaction_quantity_period2,
CASE
WHEN crec.period_num=2 THEN sales_mtl_cost_month2
ELSE 0
END item_material_cogs_period2,
CASE
WHEN crec.period_num=2 THEN sales_mtl_ovhd_cost_month2
ELSE 0
END item_mtl_ovhd_cogs_period2,
CASE
WHEN crec.period_num=2 THEN sales_res_cost_month2
ELSE 0
END item_resource_cogs_period2,
CASE
WHEN crec.period_num=2 THEN sales_op_cost_month2
ELSE 0
END item_op_cogs_period2,
CASE
WHEN crec.period_num=2 THEN sales_ovhd_month2
ELSE 0
END item_ovhd_cogs_period2,
CASE
WHEN crec.period_num=2 THEN sales_units_month2
ELSE 0
END extended_amount_us_period2,
CASE
WHEN crec.period_num=3 THEN sales_amount_month3
ELSE 0
END Transaction_quantity_period3,
CASE
WHEN crec.period_num=3 THEN sales_mtl_cost_month3
ELSE 0
END item_material_cogs_period3,
CASE
WHEN crec.period_num=3 THEN sales_mtl_ovhd_cost_month3
ELSE 0
END item_mtl_ovhd_cogs_period3,
CASE
WHEN crec.period_num=3 THEN sales_res_cost_month3
ELSE 0
END item_resource_cogs_period3,
CASE
WHEN crec.period_num=3 THEN sales_op_cost_month3
ELSE 0
END item_op_cogs_period3,
CASE
WHEN crec.period_num=3 THEN sales_ovhd_month3
ELSE 0
END item_ovhd_cogs_period3,
CASE
WHEN crec.period_num=3 THEN sales_units_month3
ELSE 0
END extended_amount_us_period3,
CASE
WHEN crec.period_num=4 THEN sales_amount_month4
ELSE 0
END Transaction_quantity_period4,
CASE
WHEN crec.period_num=4 THEN sales_mtl_cost_month4
ELSE 0
END item_material_cogs_period4,
CASE
WHEN crec.period_num=4 THEN sales_mtl_ovhd_cost_month4
ELSE 0
END item_mtl_ovhd_cogs_period4,
CASE
WHEN crec.period_num=4 THEN sales_res_cost_month4
ELSE 0
END item_resource_cogs_period4,
CASE
WHEN crec.period_num=4 THEN sales_op_cost_month4
ELSE 0
END item_op_cogs_period4,
CASE
WHEN crec.period_num=4 THEN sales_ovhd_month4
ELSE 0
END item_ovhd_cogs_period4,
CASE
WHEN crec.period_num=4 THEN sales_units_month4
ELSE 0
END extended_amount_us_period4,
CASE
WHEN crec.period_num=5 THEN sales_amount_month5
ELSE 0
END Transaction_quantity_period5,
CASE
WHEN crec.period_num=5 THEN sales_mtl_cost_month5
ELSE 0
END item_material_cogs_period5,
CASE
WHEN crec.period_num=5 THEN sales_mtl_ovhd_cost_month5
ELSE 0
END item_mtl_ovhd_cogs_period5,
CASE
WHEN crec.period_num=5 THEN sales_res_cost_month5
ELSE 0
END item_resource_cogs_period5,
CASE
WHEN crec.period_num=5 THEN sales_op_cost_month5
ELSE 0
END item_op_cogs_period5,
CASE
WHEN crec.period_num=5 THEN sales_ovhd_month5
ELSE 0
END item_ovhd_cogs_period5,
CASE
WHEN crec.period_num=5 THEN sales_units_month5
ELSE 0
END extended_amount_us_period5,
CASE
WHEN crec.period_num=6 THEN sales_amount_month6
ELSE 0
END Transaction_quantity_period6,
CASE
WHEN crec.period_num=6 THEN sales_mtl_cost_month6
ELSE 0
END item_material_cogs_period6,
CASE
WHEN crec.period_num=6 THEN sales_mtl_ovhd_cost_month6
ELSE 0
END item_mtl_ovhd_cogs_period6,
CASE
WHEN crec.period_num=6 THEN sales_res_cost_month6
ELSE 0
END item_resource_cogs_period6,
CASE
WHEN crec.period_num=6 THEN sales_op_cost_month6
ELSE 0
END item_op_cogs_period6,
CASE
WHEN crec.period_num=6 THEN sales_ovhd_month6
ELSE 0
END item_ovhd_cogs_period6,
CASE
WHEN crec.period_num=6 THEN sales_units_month6
ELSE 0
END extended_amount_us_period6,
CASE
WHEN crec.period_num=7 THEN sales_amount_month7
ELSE 0
END Transaction_quantity_period7,
CASE
WHEN crec.period_num=7 THEN sales_mtl_cost_month7
ELSE 0
END item_material_cogs_period7,
CASE
WHEN crec.period_num=7 THEN sales_mtl_ovhd_cost_month7
ELSE 0
END item_mtl_ovhd_cogs_period7,
CASE
WHEN crec.period_num=7 THEN sales_res_cost_month7
ELSE 0
END item_resource_cogs_period7,
CASE
WHEN crec.period_num=7 THEN sales_op_cost_month7
ELSE 0
END item_op_cogs_period7,
CASE
WHEN crec.period_num=7 THEN sales_ovhd_month7
ELSE 0
END item_ovhd_cogs_period7,
CASE
WHEN crec.period_num=7 THEN sales_units_month7
ELSE 0
END extended_amount_us_period7,
CASE
WHEN crec.period_num=8 THEN sales_amount_month8
ELSE 0
END Transaction_quantity_period8,
CASE
WHEN crec.period_num=8 THEN sales_mtl_cost_month8
ELSE 0
END item_material_cogs_period8,
CASE
WHEN crec.period_num=8 THEN sales_mtl_ovhd_cost_month8
ELSE 0
END item_mtl_ovhd_cogs_period8,
CASE
WHEN crec.period_num=8 THEN sales_res_cost_month8
ELSE 0
END item_resource_cogs_period7,
CASE
WHEN crec.period_num=8 THEN sales_op_cost_month8
ELSE 0
END item_op_cogs_period8,
CASE
WHEN crec.period_num=8 THEN sales_ovhd_month8
ELSE 0
END item_ovhd_cogs_period8,
CASE
WHEN crec.period_num=8 THEN sales_units_month8
ELSE 0
END extended_amount_us_period8,
CASE
WHEN crec.period_num=9 THEN sales_amount_month9
ELSE 0
END Transaction_quantity_period9,
CASE
WHEN crec.period_num=9 THEN sales_mtl_cost_month9
ELSE 0
END item_material_cogs_period9,
CASE
WHEN crec.period_num=9 THEN sales_mtl_ovhd_cost_month9
ELSE 0
END item_mtl_ovhd_cogs_period9,
CASE
WHEN crec.period_num=9 THEN sales_res_cost_month9
ELSE 0
END item_resource_cogs_period7,
CASE
WHEN crec.period_num=9 THEN sales_op_cost_month9
ELSE 0
END item_op_cogs_period9,
CASE
WHEN crec.period_num=9 THEN sales_ovhd_month9
ELSE 0
END item_ovhd_cogs_period9,
CASE
WHEN crec.period_num=9 THEN sales_units_month9
ELSE 0
END extended_amount_us_period9,
CASE
WHEN crec.period_num=10 THEN sales_amount_month10
ELSE 0
END Transaction_quantity_period10,
CASE
WHEN crec.period_num=10 THEN sales_mtl_cost_month10
ELSE 0
END item_material_cogs_period10,
CASE
WHEN crec.period_num=10 THEN sales_mtl_ovhd_cost_month10
ELSE 0
END item_mtl_ovhd_cogs_period10,
CASE
WHEN crec.period_num=10 THEN sales_res_cost_month10
ELSE 0
END item_resource_cogs_period10,
CASE
WHEN crec.period_num=10 THEN sales_op_cost_month10
ELSE 0
END item_op_cogs_period10,
CASE
WHEN crec.period_num=10 THEN sales_ovhd_month10
ELSE 0
END item_ovhd_cogs_period10,
CASE
WHEN crec.period_num=10 THEN sales_units_month10
ELSE 0
END extended_amount_us_period10,
CASE
WHEN crec.period_num=11 THEN sales_amount_month11
ELSE 0
END Transaction_quantity_period11,
CASE
WHEN crec.period_num=11 THEN sales_mtl_cost_month11
ELSE 0
END item_material_cogs_period11,
CASE
WHEN crec.period_num=11 THEN sales_mtl_ovhd_cost_month11
ELSE 0
END item_mtl_ovhd_cogs_period11,
CASE
WHEN crec.period_num=11 THEN sales_res_cost_month11
ELSE 0
END item_resource_cogs_period11,
CASE
WHEN crec.period_num=11 THEN sales_op_cost_month11
ELSE 0
END item_op_cogs_period11,
CASE
WHEN crec.period_num=11 THEN sales_ovhd_month11
ELSE 0
END item_ovhd_cogs_period11,
CASE
WHEN crec.period_num=11 THEN sales_units_month11
ELSE 0
END extended_amount_us_period11,
CASE
WHEN crec.period_num=12 THEN sales_amount_month12
ELSE 0
END Transaction_quantity_period12,
CASE
WHEN crec.period_num=12 THEN sales_mtl_cost_month12
ELSE 0
END item_material_cogs_period12,
CASE
WHEN crec.period_num=12 THEN sales_mtl_ovhd_cost_month12
ELSE 0
END item_mtl_ovhd_cogs_period12,
CASE
WHEN crec.period_num=12 THEN sales_res_cost_month12
ELSE 0
END item_resource_cogs_period12,
CASE
WHEN crec.period_num=12 THEN sales_op_cost_month12
ELSE 0
END item_op_cogs_period12,
CASE
WHEN crec.period_num=12 THEN sales_ovhd_month12
ELSE 0
END item_ovhd_cogs_period12,
CASE
WHEN crec.period_num=12 THEN sales_units_month12
ELSE 0
END extended_amount_us_period12,
CASE
WHEN crec.period_num=2 THEN sales_cost_month2
ELSE 0
END item_cogs_period2,
CASE
WHEN crec.period_num=3 THEN sales_cost_month3
ELSE 0
END item_cogs_period3,
CASE
WHEN crec.period_num=4 THEN sales_cost_month4
ELSE 0
END item_cogs_period4,
CASE
WHEN crec.period_num=5 THEN sales_cost_month5
ELSE 0
END item_cogs_period5,
CASE
WHEN crec.period_num=6 THEN sales_cost_month6
ELSE 0
END item_cogs_period6,
CASE
WHEN crec.period_num=7 THEN sales_cost_month7
ELSE 0
END item_cogs_period7,
CASE
WHEN crec.period_num=8 THEN sales_cost_month8
ELSE 0
END item_cogs_period8,
CASE
WHEN crec.period_num=9 THEN sales_cost_month9
ELSE 0
END item_cogs_period9,
CASE
WHEN crec.period_num=10 THEN sales_cost_month10
ELSE 0
END item_cogs_period10,
CASE
WHEN crec.period_num=11 THEN sales_cost_month11
ELSE 0
END item_cogs_period11,
CASE
WHEN crec.period_num=12 THEN sales_cost_month12
ELSE 0
END item_cogs_period12,
a.fiscal_year ,
a.budget_entity ,
a.organization_code,
a.customer_id ,
a.inventory_item_id ,
NULL,
NULL,
a.created_by ,
a.last_updated_by ,
a.creation_date ,
a.last_update_date ,
'Copied From Sales to Forecast Table of Month '||crec.period_num,
a.attribute2,
a.attribute3 ,
a.attribute4 ,
a.attribute5 ,
a.attribute6 ,
a.attribute7 ,
a.attribute8 ,
a.attribute9 ,
a.attribute10,
a.attribute11,
a.attribute12,
a.attribute13,
a.attribute14,
a.attribute15
bulk collect into t1
FROM xxc_sales_data a
where a.fiscal_year = crec.period_year
having CASE
WHEN crec.period_num=1 THEN sum(sales_amount_month1)
WHEN crec.period_num=2 THEN sum(sales_amount_month2)
WHEN crec.period_num=3 THEN sum(sales_amount_month3)
WHEN crec.period_num=4 THEN sum(sales_amount_month4)
WHEN crec.period_num=5 THEN sum(sales_amount_month5)
WHEN crec.period_num=6 THEN sum(sales_amount_month6)
WHEN crec.period_num=7 THEN sum(sales_amount_month7)
WHEN crec.period_num=8 THEN sum(sales_amount_month8)
WHEN crec.period_num=9 THEN sum(sales_amount_month9)
WHEN crec.period_num=10 THEN sum(sales_amount_month10)
WHEN crec.period_num=11 THEN sum(sales_amount_month11)
WHEN crec.period_num=12 THEN sum(sales_amount_month12)
END !=0;
FORALL i IN t1.first .. t1.last
INSERT INTO xxc_forecast2 VALUES t1(i);
--commit;
END LOOP;
END;
Thank You -
Pass table name as parameter in prepared Statement
Can I pass table name as parameter in prepared Statement
for example
select * from ? where name =?
when i use setString method for passing parameters this method append single colon before and after of this parameter but table name should be send with out colon as SQL Spec.
I have another way to make sql query in programing but i have a case where i have limitation of that thing so please tell me is it possible with prepared Statment SetXXx methods or not ?
Thanks
Haroon Idrees.haroonob wrote:
I know ? is use for data only my question is this way to pass table name as parameterI assume you mean "how can I do it?" As I have already answered "is this the way?" with no.
Well, I would say (ugly as it is) String concatenation, or stored procedures. -
Work with data from a table of another SAP R/3 system
Hi,
I want to work with data from a table of another system. I know there's a function called 'RFC_READ_TABLE' but I don't know really how it works. What I want to do is to get data from that system and pass it to the one where I'm working in order I can continue working with this data in the report.
Besides, I'd like to select only the records that have some conditions.
I'd appreciate if someone could tell how to do it, whether with FM 'RFC_READ_TABLE' or in another way.
Thanks in advance,
Gerard
P.S: The systems are already connected in SM59Yes, you can use RFC_read_table .You can pass the number of columns but I recommend you to bring all results in your internal table after that you can filter the records. Most of the time I have notice when you make RFC call with this FM to another system it works but it may also happen that other system controlling authorization and then it might give you nothing. As I face this problem on my last Project.
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
How to convert data when transferring from one table to another
I have two tables and these are the structure of the tables
create table E1(
ID NUMBER
,NAME VARCHAR2(30)
, DESIGNATION VARCHAR2(30)
,GENDER VARCHAR2(10));
create table E2(
ID NUMBER
,NAME VARCHAR2(30)
, DESIGNATION VARCHAR2(3)
,GENDER NUMBER); Now I want to transfer records from one table to another using a master tables where data are compared because the datatypes in tables are different
The first one is a gender table to match the gender and convert
create table Gender(
E1 varchar2(10),
E2 number);The second is for the designation
create table Designation(
E1 varchar2(30),
E2 varchar2(3);How to match and convert the data so that it can be transfered.Peeyush wrote:
Can we do it with the help of a cursor.
All SQL executed by the database are parsed as cursors and executed as cursors.
I mean I have to insert data in bulk and I want to use cursor for it.The read and write (select and insert) are done by the SQL engine. The read part reads data and passes it to the write part that inserts the data.
Now why would using PL/SQL and bulk processing make this faster? It will reside in-between the read part and the write part being done by the SQL engine.
So the SQL engine reads the data. This then travels all the way to the PL/SQL engine as a bulk collect. PL./SQL then issues an insert (the write part to be done by the SQL engine). And now this very same data travels all the way from the PL/SQL engine to the SQL engine for insertion.
So just how is this approach, where you add extra travel time to data, faster?
and i want to commit the transaction after every 50 recordsWhy? What makes you think this is better? What makes you think you have a problem with not committing every 50 rows? -
Loading components 1 by 1 [passing value from 1st component to other]
Hi all,
can anyone tell that how to load component one after one.
In my application I have created components and placed in
another component. when i load the page each component is loading
the data Asyncronesly. But i want to load 1st component 1st and
then set value to other components from 1st component.
In 1st component i am filling dropdown and setting property
in that component after setting the property i want to pass that
value to other components and based on that property i set the
corresponding data should be populated in ohter component. how can
i achieve this.
like in second component i am filling tje datagrid items
based on selected value from the dropdown in 1st component..
I just want to pass the property which i set in 1st component
to other components and load the other components after the 1st
component is loaded completely with data..
reply asap
GirishHi Tracy,
I am quering / retrieving data from salesforce database using
AsyncResponder method. In each component i have written login
method [logging into salesforce db].
Created all my mxml component separately and drag&dropped
in another mxml component. -
Update table in another SAP system
Hi Guru's
I have requirement, in which the outout of the report should be update Z table in another SAP System.
How we can do this?
Thanks
KarthiHello Karthik ,
added to the above mentioned points , While Calling function you need to call other system FM with Destination with its parameters.
Create a FM in System B with parameter for passing the Source Code from system A. Write your code to update the source code.
call Function 'XYZ' Destination Destination_name
IMPORT
EXPORT
Please refer the below links.
[http://www.sapdev.co.uk/bapirfc/rfcsap.htm] -
How to create navigational links...and connect views of another component
Hi...
I am new to SAP CRM...
I have a requirement where i need to navigate from the main window of a component to the view of a different component.
Scenario:
When i click on edit button after selecting a line item in the assignment block in the BT111H_OPPT/Details ,it should navigate to the details page of the line item which is the view of another component that has been created .say ZRP/PEL.
How can i achieve this using the concept of inbound/outbound plugs and navigational links?
I have got a vague idea on plugs from my search...that these are entry/exit points to views.
But what is the procedure to follow to attain the functionality?
How do we decide on which component needs which all plugs?
Anyhelpful pointers would be rewarded.
Also, an idea on what exactly does the inbound/outbound plugs do and how is the flow happening , how are navigational links working etc would be appreciated.
Thanks..Steps to create navigational link:
1. Create an outbound plug in the component from where you want to navigate. Sometimes
standard navigational links are already there.. you just need to identify it.
2. Create a Component usage in runtime repository for target component.
3. Add this component usage to the main window view in repository.
4. Create navigation link between the transaction type and the target component view.
5. In the outbound plug, use the view manager to navigate to the target component. Ex:
ME->FIRE_OUTBOUND_PLUG( IV_OUTBOUND_PLUG = 'TO_OUTPLUG''
IV_DATA_COLLECTION = LR_COL ).
6. Pass the data through the data collection. -
How i will pass table within procedure
how i will pass table within procedure and call another procedure.
can anybody give some exampleYou are not specific at all. Do you mean you want to pass table_name as parameter to a procedure? Do you want to pass tables_name dynamically while the procedure is running? If so, use dynamic sql. You can directly call another procedure within a procedure.
create or replace procedure sample_proc
as
v_table_name varchar2(10);
begin
select table_name into v_table_name
from user_tables
where table_name = 'EMP';
procedure_2(v_table_name);
end;And the procedure_2 would be
create or replace procedure procedure_2(p_table_name varchar2)
as
begin
execute immediate 'DROP TABLE '||p_table_name;
end;For God's sake please completely describe what you want, otherwise we don't know what on Earth you want!
Cheers
Sarma. -
Adding Data From One Table to Another
Now, this doesn't strike me as a particularly complex problem, but I've either strayed outside the domain of Numbers or I'm just not looking at the problem from the right angle. In any case, I'm sure you guys can offer some insight.
What I'm trying to do is, essentially, move data from one table to another. One table is a calendar, a simple two column 'date/task to be completed' affair, the other is a schedule of jogging workouts, i.e, times, distances. Basically, I'm trying to create a formula that copies data from the second table onto the first but only for odd days of the week, excepting Sundays (and assuming Monday as the start of the week). Now, this isn't the hard part, I can do that. The problem comes when I replicate the formula down the calendar. Even on the days when the 'if' statement identifies it as an 'even day', the cell reference to the appropriate workout on the second table is incremented, so when it comes to the next 'odd day', it has skipped a workout.
I can't seem to see any way of getting it to specifically copy the NEXT line in the second table, and not the corresponding line.
This began as a distraction to try and organise my running so I could see at a glance what I had to do that day and track my progress, but now it's turned into an obsession. SURELY there's a solution?
Cheers.Hi Sealatron,
Welcome to Apple Discussions and the Numbers '09 forum.
Several possible ways to move the data occur to me, but the devil's in the details of how the data is currently arranged.
Is it
• a list of three workouts, one for each of Monday, Wednesday and Friday, then the same three repeated the following week?
• an open-ended list that does not repeat?
• something else?
Regards,
Barry
Maybe you are looking for
-
NullPointerException when trying to load faces application
Hi, I'm new with JSF and I have a NullPointerException when trying to use a JSF tag in my file. My web.xml is defined as follows: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/200
-
Hello i have reset my iphone 4 .3.3 and till now not start again i have the apple on the screen and nothing else what i want to do thank you
-
Hi All, I am facing followed mentioned error at the time of doing pgi..Kindly suggest... Error is Number range for trans/event type WL in year 2011 does not exist.. Rgds, Pavan.
-
Need some help with my Input.as file (error 1013)
Hello, I have just started learning Flash & Actionscript this month and I'm very eager to learn and do new things. I wanted to learn to create some games in Flash and I managed to create a basic side scroller and a top down both with movement and col
-
CS4 migration to new iMac results in fatal error
HI, I have CS4 installed on an older iMac. I just bought a new one (without a disc drive). I migrated all my files across to the new machine. CS4 gives me the following error when I try and open an image. Fatal error - missing component /Library