Chnage table in existing Method
hi,
i build a Z Global class last month that bring data in table (from method)and i use it for many programs,
now i want to add to the table one more line that can help help me in sort ,
what is the best way to do that?
Regards
Hi,
please check this link for step by step process
http://help.sap.com/saphelp_nw04s/helpdata/EN/90/8d7310b1af11d194f600a0c929b3c3/content.htm
Reagrds,
anirban
Similar Messages
-
Hi,
How can i import table in methods ,in FM i use the tab tables and in method i had the returning tab
but it just for export.
BR
RicardosHi,
In tables parameter use
my_tab LIKE your_db_table_name
or via importing/exporting/changing parameters:
- go to se11, select Data type
- type in new table type in Z_MY_TABLE_TYPE and Create
- select Table type
- Pass description and as Line type type in your DB table name
- activate
- pass this table type to one of FM / method parameter
my_tab TYPE my_new_table_type.
Regards
Marcin -
Upload an excelfile to a table using BAPI method
Hi,
I would like to upload an excel file having three coulumns of data to a table using BAPI methods.
Anybody with a solution?
Thanks in advance.Hi,
You will find many posts regarding upload data from excel file. e.g. take a look at below thread.
Link: UPLOAD DATA FROM EXCEL FILE
change the given sample code in above thread with BAPI table name and pass this table to your BAPI FM.
Hope this will solve your problem.
Regards
Ahsan -
Check in Function if optional table is existing
Dear all
I have a function module where I have a table as optional parameter.
No I should be able to check if this table is existing or not. How can this be done?
I tried several things like try + catch but nothing worked. All lead in an exception when it is not given to the function.
Thank you
HerbertHello Herbert,
I assume you get a dump information like this:
>
> This error may occur if
> - you address a typed field symbol before it has been set with
> ASSIGN or
> - if you address a global function interface partameter, even
> though the relevent function module is not active,
> i.e. it is not in the list of active calls. You can get the list
> of active calls from the this short dump.
>
Thus access to optional parameters is not possible in case the function module has not been called. Sounds like you need to know which module is calling your exit. If there is no obvious way to do so possibly it would make sense to check for notes in the customer service system.
Best Regards
Klaus -
DAC, ETL failed due to Post-Etl Script not exist and table not exist.
When execute the ETL in DAC, it failed when execute the "Change Capture For Siebel OLTP"
encounterred the following two type errors.
how to fix these errors?
The first is the table not exist:
======================================================================
MESSAGE:::Could not truncate table 'S_ETL_I_IMG_38' because this table does not exist in database 'OLTP_SIA'.
EXCEPTION CLASS::: com.microsoft.sqlserver.jdbc.SQLServerException
com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
======================================================================
The second is the Post-Etl not exist.
I have copied the Copy Source Files and Lookup Files. What else should I do? What script it not find? have no idea.
======================================================================
Jan 20, 2009 4:11:06 PM com.siebel.etl.etlmanager.EtlExecutionManager finishEtl
SEVERE: Incorrectly specified Post-Etl Script/Executable. The file either does n
ot exist, or is not readable
UNREGISTERING: com.siebel.etl.engine.bore.FixedFailedNodesFacility
686 SEVERE Tue Jan 20 16:11:06 CST 2009
END OF ETL
687 SEVERE Tue Jan 20 16:11:06 CST 2009 Incorrectly specified Post-Etl Script
/Executable. The file either does not exist, or is not readable
UNREGISTERING: com.siebel.etl.engine.core.SessionHandler
UNREGISTERING: com.siebel.etl.engine.bore.ServerTokenPool
UNREGISTERING: com.siebel.etl.engine.core.TableIndexHandler
UNREGISTERING: com.siebel.etl.engine.bore.NewDispatcher
Stopping EtlParameters 9550256
UNREGISTERING: com.siebel.etl.engine.bore.EtlParameters
UNREGISTERING: com.siebel.etl.engine.bore.ExternalTaskTokenPool
UNREGISTERING: com.siebel.analytics.etl.execution.RefreshDateHandlerHi tigger,
ad scripts:
http://download.oracle.com/docs/cd/E12102_01/books/AnyInstAdm784/AnyInstAdmFunctionalRef9.html#wp1005877
http://download.oracle.com/docs/cd/E12102_01/books/AnyInstAdm784/AnyInstAdmFunctionalRef8.html
ad tables:
Without data change capture tables nothing will work. Have you looked at the actual documentaiotn? It contains everythign step by step.
http://www.oracle.com/technology/documentation/bi_apps.html
--> Oracle Business Intelligence Applications Fusion Edition Installation and Configuration Guide -> 4.15.3 How to Update Siebel Transactional Database Schema Definitions -
Export field symbol table out of method
Hi,
i have a report, that takes any xml and converts it into a table structure. In a method I generate the table structure using method cl_alv_table_create=>create_dynamic_table. Later in the same method I have filled the content of the XML file into a table typed as: FIELD-SYMBOLS: <outtab> type standard table
Now I need to export this <outtab> out of my method. Because it is a unspecific field symbol table, I can not do this, by normal exporting.
In the PAI, where my method is called, I have deffined the table to return into as:
FIELD-SYMBOLS: <itab_message> type standard table.
Any help will be greatly appreciated.
Kind regards
MikkelHi,
Please check this:
REPORT zmaschl_create_data_dynamic .
TYPE-POOLS: slis.
DATA: it_fcat TYPE slis_t_fieldcat_alv,
is_fcat LIKE LINE OF it_fcat.
DATA: it_fieldcat TYPE lvc_t_fcat,
is_fieldcat LIKE LINE OF it_fieldcat.
DATA: new_table TYPE REF TO data.
DATA: new_line TYPE REF TO data.
FIELD-SYMBOLS: <l_table> TYPE ANY TABLE,
<l_line> TYPE ANY,
<l_field> TYPE ANY.
Build fieldcat
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'SYST'
CHANGING
ct_fieldcat = it_fcat[].
LOOP AT it_fcat INTO is_fcat WHERE NOT reptext_ddic IS initial.
MOVE-CORRESPONDING is_fcat TO is_fieldcat.
is_fieldcat-fieldname = is_fcat-fieldname.
is_fieldcat-ref_field = is_fcat-fieldname.
is_fieldcat-ref_table = is_fcat-ref_tabname.
APPEND is_fieldcat TO it_fieldcat.
ENDLOOP.
Create a new Table
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fieldcat
IMPORTING
ep_table = new_table.
Create a new Line with the same structure of the table.
ASSIGN new_table->* TO <l_table>.
CREATE DATA new_line LIKE LINE OF <l_table>.
ASSIGN new_line->* TO <l_line>.
Test it...
DO 30 TIMES.
ASSIGN COMPONENT 'SUBRC' OF STRUCTURE <l_line> TO <l_field>.
<l_field> = sy-index.
INSERT <l_line> INTO TABLE <l_table>.
ENDDO.
LOOP AT <l_table> ASSIGNING <l_line>.
ASSIGN COMPONENT 'SUBRC' OF STRUCTURE <l_line> TO <l_field>.
WRITE <l_field>.
ENDLOOP.
Regards,
Shiva Kumar -
Question on using table types in methods
Hi
I have a simple question involving passing table types in method
I want to pass an internal table by reference - to a method and within the method populate the internal table (t1) using a select * into the internal table and then sort t1 by f1 and f2. t1 is an internal table based on a ABAP dictionary table ( at1 )
Question is : If I use a generic type TABLE declaration , it does not allow sort operation specifically by fields. If I use type at1 as in
the METHODS M1 exporting t1 type at1statement, syntax error is - t1 is not an internal table.
How do I achieve the above using the method implementation ?
Sample code that I try
CLASS C1 DEFINITION
PUBLIC SECTION
METHODS M1 exporting t1 type table
ENDMETHOD
ENDCLASS
CLASS C1 IMPLEMENTATION
METHOD M1
select * from at1 into t1.
sort t1 field f1 f2
ENDCLASSYou should define a TABLE TYPE based upon the data dictionary type (at1) either in the data dictionary using SE11 or in the TYPES section of the class.
Then define the parameter of this new type.
Cheers
Graham Robbo -
Java Dictionary Project with Tables already Existing
Hi@all,
is there a possibility to define a Dictionary Project in Developer Studio with Database Tables already existing? I tried to rebuild them manually in a project though there is no import possibility.
But it doesen't seem to work with the frameworks requiring Java Dictioniary such as CMPs and SQLJ
Best
UweI forgott to mention the AppServer: it is a WebAS with J2EE (4)
Developer Studio 7.0.11
WebAS 7.00 -
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 -
Drop the Rules of one table from existing bi directional replication setup
Hi All,
I have one small question on bi directional replication setup, Its regarding table add in existing replication setup.
What happened ,When we add a new table to existing replication setup if any reason table is not replicating between two database even we are not getting
any error in dba_apply_error ,then we have to remove the rules for that particular table and setup again. Some time what happened we got error "queue has
errors" i dont know the ORA number. But in that case what happened Apply process ABORETED and when we try to start the process it gives same error
("Queue has errors" ) and ABORTED again.
then on metalink for doc id 203225.1 .we have remove the whole replication Manually and setup again. It's horriable....
Could you please help that before drop the rules for particular table from exisitng bi directional replication setup then wht should we do ?
Do we need to unscheduled the propagation process and then drop the rules becuase i read on metalink that reason behind the error ,queue has errors
"negative rules drops while propagation process using the same rule set" .
Please Suggest!!!!!!!!!!
Many ThanksHow huge those tables?. If those are small tables use Oracle MINUS function to get the defference records.
-
*ExceptionCondition ' Table Not Exists' raised.*
Dear Gurus,
We are facing a problem in lot of our queries after EHP1 SP4 upgrade.
ExceptionCondition ' Table Not Exists' raised.
If somebody has any vague idea on how to resovle this. Kindly help.
Regards,
DennisHi Dennis,
We ran into the same error.
You need to run the program called SAP_DROP_TMPTABLES. Click on the parameters called Temporary Tables and Temporary Hierarchy.
If the query is still getting this message, then you need to regenerate the query in RSRT.
Good Luck! Bill -
Create a new table from another table that exists ussing a stored procedure
Hi,
I want to know if is posibble to create a new table from another table that exists ussing a stored procedure. This new table is created from other table that exists in the DB.
(in the next code the table tbl1 exist into the schema of the DB, but temp_tbl1 does not exist, it must be created by the procedure)
create or replace procedute temp is
temp_tbl1 tbl1%TYPE; //the temp_tbl1 will have the same type of tbl1
begin
create table temp_tbl1 as (select * from tbl1);
end temp;
thanks very muchcat wrote:
Hello,
I think my problem is not about this grant, because if I execute this as an "anonymous procedure":
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE TABLE Abonus (id NUMBER, amt NUMBER)';
END;
It runs ok
But if I do:
CREATE OR REPLACE procedure temp as
BEGIN
EXECUTE IMMEDIATE 'CREATE TABLE Abonus (id NUMBER, amt NUMBER)';
END;
I have the error
ORA-01031: Insufficient privileges
ORA-06512: at "temp", line 3Anonymous blocks are treated as "Invoker's Rights" from a privilege perspective whereas stored programs by default are treated as "Definer's Rights". Therefore using anonymous blocks is not a valid test to check this.
The simplest form of checking this issue is by executing
SET ROLE NONE;and then to run your statement/code block in question interactively. Using this approach you get in your session the effective rights of a "Definer's Rights" stored program, i.e. only privileges that you got granted directly to your user.
You can revert to the default setting by issuing
SET ROLE ALL;For more information regarding this topic, read e.g. the documentation:
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/subprograms.htm#LNPLS00809
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
Is it possible to add a single table to existing CDC setup ?
We have Asynchronous Change Data Capture setup.
Database A : Source Database
Database B : Staging Database
Redo Log shipping is b/w A --> B and Capture/Apply is running on B.
Total 32 tables outof 300 are part of these CDC setup. I'm wondering if we can add a table to existing setup, As per the documentation, We can't user streams API to add a table in capture/apply, and CDC doesn't have its owe API. So is there really no way except to rebuild entire setup?
Thank you,
MaheshYou need to follow steps below:
1. @destination database : stop capture process
2. @source database add supplemental logging for new tables
3. @source database :prepares table instantiation (exec DBMS_CAPTURE_ADM.PREPARE_TABLE_INSTANTIATION(table_name => 'owner.table_name');)
4. @destination database :create change table for additional tables
5. @destination database: drop subscriber
6. @destination database: start capture process ,create subscriber,recreate subscriber views and then activate subscriber then extend window
All steps are action plan that I have done in my CDC system.
Good luck!
Chaiya Rakdee -
How to check table have exists any views in oracle
hi,
how to check table have exists any views in oracleSELECT * FROM user_dependencies
WHERE type='VIEW'
AND referenced_type='TABLE'
AND referenced_name ='Your_Table_Name' You may use dba_dependencies to find views in different schema. -
I am passing range table from the method of ODATA Service to FM but In FM range table is becoming initial.What would be the reason for the same?
Vinod, Can you share detail on how are you sending and how are you reading.
Maybe you are looking for
-
After renting a movie I had to format my hard drive. My backup file which included the Movie was restore to the computer after it was rebuilt. When I try to play the movie it says this movie is authorized to play on another computer. I use a PC with
-
Premiere Pro re-writes my permissions inside my computer and causes premiere to crash, run slow, restarts my computer in the middle of rendering, and freezes my whole computer. I have a brand new 2013 Mac Pro with 12core, 16 GB of ram, and 6GB of GP
-
I use current version of Firefox on a Windows XP desktop machine. I normally use Yahoo as my home page and Firefox as my browser. Starting a few weeks ago, when I clicked on a link on the main Yahoo page, I would get about one second of whatever it w
-
Oracle ADF with Mapviewer - POINT THEME not visible ( Urgent Please)
Hi All, I am new to oracle adf and mapviewer and I am configuring a application to display a base map ( with some tables) and point theme ( different table) which can be selectable. I have created a base map using oracle map builder and created tile
-
How can I reduce the size of the jvm?
I would like to decrease the size of a jvm; I've found a program that makes it, but you don't know how does it works (and you have to pay for it), I'm talking about VM Optimizer 2.0, from Invirtus. Can anyone tell me how can I reduce the size of the