Create Parameter in Smartforms Interface table tab signed as local type
Error Message:
Form Interface Only table types may be used as the reference type for a table parameter
What I did:
I have created a table in <i>tables tab</i> of <b>Form Interface</b> like this:
Parameter Name: IT_1
Type Assignemnt: TYPE
Associate Type: TYT
**TYT is defined in <i>Types</i> tab under <b>Global Definition</b> like this:
TYPES: BEGIN OF tys,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-vbeln,
END OF tys.
TYPES: tyt TYPE TABLE OF tys.
I understand that if I create these two structure in data dictionary then It will work.
But my question is :
Can I create tables parameter with locally declared type. If no, I will appreciate if you can explain the reason
Hi
Yes u can create a local type and use it to define IMPORT/EXPORT parameters, but you can't use a table type to be used for TABLE parameters.
Anyway I think it would be better to use the local types only to define local variable.
But the interface of SM is the gate to link the smartform to external enviroment so I believe it doesn't make a sense to create a parameter as local type because only sf can use that type and so it should re-define it in every program where the sf has to be used.
Max
Similar Messages
-
Interface tables bug?? Hyp 11.1.1.2 with EPMA patched
HI,
I am facing one issue. When loading metadata from interface tables to dimension library, not all my member properties make their way into dimension library.
This happens when i am performing load of all dimensions in one profile:
E.g. Account dimension. In interface tables i set up 'account type' as Expense and 'Variance reporting' as Expense. After I import dimensions i still see for a member these properties as 'Revenue' and 'NonExpense'. So it does not take into account my changes.
But when I load dimension account alone, these changes are being transformed to dimension library. Problem arises when i have e.g. 1 associated table with account dimension (mostly Alias dimension). Without selecting this dimension the log gives me an error (alias must be also selected) but changes will go through. When i add alias or more dimensions I will get no error which is right but changes will not go through.
Can you please help with this issue?Is this an essbase only application? It seems like the property is defaulting to stored and then flipping the initial stored member to shared because Essbase isn't interpreting the deployment correctly. I would try using ShareData as the datastorage property (I think that is the correct spelling). Also, I believe the correct way to set IsPrimary is Y/N and not 0/1.
If that did not work I would try the following in this order:
1 - I would first extract the dimension in question using the file generator and confirm that the properties are indeed correct.
2 - If they were correct. I would toggle the dimension from shared->local->shared. EPMA is still a little nutty and this will fix a fair amount of issues as it will 'refresh' the application's version of the dimension. I would then deploy
3 - deploy from EPMA->Planning only (no essbase creation), then deploy to essbase separately after ensuring the property represents itself in planning. If it is essbase only - create the outlnie instead of refresh.
4 - create a duplicate app in EPMA and deploy the copy of the app - and see if it has the same problem
Try that and see how it goes. -
Dimension load thru Interface tables
Hi,
I have a generic type dimension with its members in interface tables (member, property, propertyarray and hierarchy). All the three dimensions im_load_info, im_dimension and im_dimension_association have relevant data and i_Load_ID in im_Load_info table has a value say 1. This 1 has been mentioned in the rest 2 tables also.
Now, while I am creating a profile for interface table, it is asking for interface load id but in the right side "find" icon, I cannot see any load_id and in fact, I am getting an error message that no load_id is present in the interface tables.
Please suggest if anything else needs to be done to view the load id during creation of the profile.
I am using 11.1.1.3.
Thanks.Hey Guys,
Is there any update on this?
Thanks. -
SMARTFORMS - Change an import parameter in form interface
Hello everyone,
I don't know if it's possible, but I put some program lines in my smartform to clear some fields if the last page is not reached. The problem is that these fields are from a table that's stated as an import parameter in form interface, which means that data is taken from the program, right?
Am I able to clear these fields anyway? If so, which way?
In my code I'm comparing the systems fields sfsy-page and sfsy-formpages, if they're different I clear the fields, otherwise I don't, actually I did it because the conditions don't get the result as I wish. If I check "only after the end of main window" the whole table doesn't appear in my form and I don't want that.
PS: I didn't set this condition on table, I set it in the text.
Any ideas?
Thanks in Advance.Hi,
You can do one thing.....create an internal table in the smartform itself....transport those values in this table and display the fields using this table only.
Now if the last page is reached u can use the main table (that is imported from the program). This way the original data is not cleared.
I hope it helps.
Regards,
Shraddha -
Hi experts,
I'm facing this problem and really hope you'll be able to help me !
I'm trying to add an internal table to my smartform interface in order to import datas from the calling program.
The structure of this table is defined in the calling program and not in the DDIC so SAP don't accept the type.
I tried to declare the type of my table under "Global Definition=>Types" :
types : begin of ty_cmde ,
bstnk like vbak-vbeln,
poids like lips-brgew,
unite like lips-gewei,
end of ty_cmde.
...but it is still incorrect. Do i have to declare my Type in the DDIC ?
Regards,
--Yohann
Edited by: Yohann Camp on Aug 10, 2010 11:01 AMHi..
Please create a structure similar to the one used in the calling program. Now using this structure create a table type.
Use this table type to declare the internal table in the FORM INTERFACE-> TABLES. You can use the structure to declare the work area for this internal table in Global Definitions.
Additionally, it would be better to use the same table type and structure to declare your internal table and work area in your calling program as well in order to avoid any kind of inconsistency.
Regards,
Karthik
Edited by: Karthik S on Aug 10, 2010 2:48 PM -
Can someone explain the tables tab under function parameter declaration ?
Hello,
when declaring a function, part of its parameter interface is the tables tab. So if in FUNCTION1 i declare a table: tdraw like draw (optional)
what does that mean ? does this mean that tdraw will be a table of type draw and at the same time it will be filled up with the same contents as draw has ?
then how can other function (func2) use FUNCTION1 and its table ?
so if inside func2 i also have an internal table AA like draw :
so inside func2 i say:
call function1
tables:tdraw = AA
does this mean that it will assign the result tdraw table of function1 to AA ?
can someone explain details of internal tables and passing them as parameters ?
and which table is assigned to which ?
thank youHi hassan,
If you are talking about the tables parameter in SE37, when you declare a table tdraw like draw it only means you are declaring an internal table of type draw but the contents are not filled into it.
In the source code of the program you have to write the code to fetch the data to tdraw and do the manipulations accordingly.
Also, the tables you are declaring can be like the input table or can be used for output table.
suppose u have 2 tables tab1 and tab2, tab1 you are going to input the values to it and the calculated values have to be in another table, you can use tab2 as the result table.
hope it helps.
award points if it helps. -
How to create Payment against the invoices in R12 using API/Interface table
Hi Experts,
I need your help.
As per my requirement , we need to create the payments against the invoices using the payment information provided.
Earlier the Payments against the invoice is done by (3rd party system) in 11i.
But, as a part of R12 implementation,
The requirement is like now they are going to provide us and flat file(having below payment information) and we need to create the payment with these information.
COLUMNS PROVIDED
SOURCE
INVOICE INTERNAL NUMBER #
ACCOUNTING SEGMENTS
DEBIT/CREDIT
AMOUNT
CURRENCY
BANK ACCOUNT
PAYMENT DATE
DUE DATE
PAYMENT METHOD
PAYMENT TERMS
BATCH ID
We need to create an inbound interface to achieve the below requirement.
1. Create the payments in oracle R12 with the above payment information. (unable to find the way please suggest).
2. Creating the Journal entries. -> We are having GL_INTERFACE & Journal Import program to import the journals.
3. Finally we have to posting the same into GL.-- Interface & Import programs available.
Is there any api or interface tables can be used to create the payment against the invoices in r12?
Could you please help me to achive my above requirements.
Any sample code or reference will be a great help for me.
Waiting for your response.
Thanks,
Thiru.Hi Thiru,
Perhaps these links can help:
http://ccchuanblog.blogspot.in/2010/12/oracle-ap-payment-api.html
http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/ap-invoice-payment-need-help-4037407
See "Understanding Oracle Payments APIs" here:
http://docs.oracle.com/cd/B40089_10/current/acrobat/120ibyig.pdf
If this answers your question, please mark the post. Thanks.
Kristofer Cruz
Edited by: Kristofer Cruz on Sep 5, 2012 2:41 PM -
API or interface table to create releases for a blanket purchase agreement
Hi
I need to know if Oracle provides a standard API or interface table to create releases for a blanket purchase agreement.
I tried using the release_num field in PO_HEADERS_INTERFACE, PO_LINES_INTERFACE. But this is not working.
I'm able to create the blanket purchase agreement using the open interfaces, but not the releases.
Regards,
AlisterHi Alister,
You can't create a release of a BPA through API, there is no such APIs provided by oracle.
Where as you can create a BPA by using API. You need to dump/poplulate data in PO_headers_interface & PO_Lines_intreface table.. Then use Purchasing Documents Open Interface API to create a BPA.
Regards,
S.P DASH -
How to populate PO Open Interface table to create encumbrances?
We want to bring in our POs from an external system, and we want them in an "approved" status. Is there any way to bring in the data, and "batch approve" them, and do the funds checking/encumbrance piece as well? There are some fields in the interface staging tables that appear to be encumbrance-related, but I can find no reference anywhere as to how these should be populated.
Thanks for any help you can provide.Sorry to be confusing!
My last post was based on some documentation we found stating that Standard PO's could now be imported in an Approved status. When you enter a PO, the Approval screen has the checkbox that asks the user if they want to create encumbering entries. The user either checks it (for yes) or not (for no). If you import the PO's as already approved, then how is that handled? Is there some flag in the interface tables that we are supposed to populate? There is no documentation that provides any details on this...at all. At least not that we have found. -
How to create a Row in a table in SMARTFORMS
Dear All,
I'm working with SAP 4.6C.
I have created a table under the Main Window. After that I have activated the Heade and Footer Check Box in the EVENT TAB of the TABLE. But, Main Area option is not there.
Because of that it is displaying the TABLE Node like
TABLE
Header
Footer
Not Like
TABLE
Header
Main Area
Footer
Under the Header I want to create a row. After creating the row only I can create the cells.
I have defined the line type as %LTYPE1. Even though it is not dispalying the ROW under Header
It should display
TABLE
Header
Row
Cell1
Text1
Cell2
Text2
Main Area
Footer
But, it is not displaying the ROW after creating the line type .
How to overcome this problem...
<<Text removed by moderator>>
Regards,
Bhaskar
Edited by: Matt on Feb 28, 2009 7:02 PM - Please do not offer rewards or pointsHello,
u have posted this question 2 times
When you work on a table node in your form, the node is marked with the table icon . In the
maintenance frame, you get a new type of tab, the Table tab. See below.
On this tab, you can define the table characteristics, and turn on the Table Painter to help lay out
the rows and columns. Turn on the Table Painter by choosing-> Table Painter.
May this link helps u
http://www.scribd.com/doc/7375795/Smart-Form
Thank u,
santhosh -
Epma 11.1..2.0 Interface tables created but could not find the dimension
Epma gurus, interface tables (4) for Dimension account are copied to Account1 (4) tables, after copying in the Datasource,
creating a new profileIn 11.1.2.3 the data source configuration should be available in Workspace, have a read of Configuring Interface Data Sources
Cheers
John
http://john-goodwin.blogspot.com/ -
Creating RMA Order through OE Interface Tables
Hi,
We are needing the ability to create RMA orders using the OE interface tables but we are running into an issue. The SOURCE_DOCUMENT_ID that is populated in Oracle Apps to link the RMA back to the original order does not get populated and there is no source_document_id column in the interface tables to populate manually. Does anyone know how we can get the SOURCE_DOCUMENT_ID populated for RMAs?
Thanks in advance for your assistance,
TroyHi Nagamohan,
I entered the reference_type, reference_header_id and the reference_line_id in the OE_LINES_IFACE_ALL (and a record in the headers iface, of course) and ran the Order Import. I set the reference_type to 'ORDER' but it didn't populate that on the new line record in oe_order_lines_all. And the source_document_id still is not populated. It did populate the referehcen_header_id and reference_line_id on the line, but we don't use those fields. We use the 'source' fields.
I also noticed that the source_document_type_id is populated on RMA order headers and lines that are copied and created in Oracle Apps but there is no place to pass this column to the interface. Do you know how this value and the source_document_id and source_document_line_id can be populated when creating the RMA through the interface?
Thanks
Troy -
Create profile for interface table
Hi Gurus,
I am using Hyperion Planning 11.1.1.3 .I have made a new generic interface table and try loading it in planning by making a new profile with the datasource link b ut everytime it is throwing some error that followimg table have invalid names. hs_function_member, hs_function_hierarchy,hs_function_property etc.
But as I am finding it in the same schema it is not there .Any idea from where dis error is coming from?
ThanksDid you add those 4 tables in IM_Dimension table ? If not that is the reason.
-
TIPS(18) : CREATING SCRIPTS TO RECREATE A TABLE STRUCTURE
제품 : SQL*PLUS
작성날짜 : 1996-11-12
TIPS(18) : Creating Scripts to Recreate a Table Structure
=========================================================
The script creates scripts that can be used to recreate a table structure.
For example, this script can be used when a table has become fragmented or to
get a defintion that can be run on another database.
CREATES SCRIPT TO RECREATE A TABLE-STRUCTURE
INCL. STORAGE, CONSTRAINTS, TRIGGERS ETC.
This script creates scripts to recreate a table structure.
Use the script to reorganise a table that has become fragmented,
to get a definition that can be run on another database/schema or
as a basis for altering the table structure (eg. drop a column!).
IMPORTANT: Running the script is safe as it only creates two new scripts and
does not do anything to your database! To get anything done you have to run the
scripts created.
The created scripts does the following:
1. save the content of the table
2. drop any foreign key constraints referencing the table
3. drop the table
4. creates the table with an Initial storage parameter that
will accomodate the entire content of the table. The Next
parameter is 25% of the initial.
The storage parameters are picked from the following list:
64K, 128K, 256K, 512K, multiples of 1M.
5. create table and column comments
6. fill the table with the original content
7. create all the indexes incl storage parameters as above.
8. add primary, unique key and check constraints.
9. add foreign key constraints for the table and for referencing
tables.
10.Create the table's triggers.
11.Compile any depending objects (cascading).
12.Grant table and column privileges.
13.Create synonyms.
This script must be run as the owner of the table.
If your table contains a LONG-column, use the COPY
command in SQL*Plus to store/restore the data.
USAGE
from SQL*Plus:
start reorgtb
This will create the scripts REORGS1.SQL and REORGS2.SQL
REORGS1.SQL contains code to save the current content of the table.
REORGS2.SQL contains code to rebuild the table structure.
undef tab;
set echo off
column a1 new_val stor
column b1 new_val nxt
select
decode(sign(1024-sum(bytes)/1024),-1,to_char((round(sum(bytes)/(1024*1
024))+1))||'M', /* > 1M new rounded up to nearest Megabyte */
decode(sign(512-sum(bytes)/1024), -1,'1M',
decode(sign(256-sum(bytes)/1024), -1,'512K',
decode(sign(128-sum(bytes)/1024), -1,'256K',
decode(sign(64-sum(bytes)/1024) , -1,'128K',
'64K'
a1,
decode(sign(1024-sum(bytes)/4096),-1,to_char((round(sum(bytes)/(4096*1
024))+1))||'M', /* > 1M new rounded up to nearest Megabyte */
decode(sign(512-sum(bytes)/4096), -1,'1M',
decode(sign(256-sum(bytes)/4096), -1,'512K',
decode(sign(128-sum(bytes)/4096), -1,'256K',
decode(sign(64-sum(bytes)/4096) , -1,'128K',
'64K'
b1
from user_extents
where segment_name=upper('&1');
set pages 0 feed off verify off lines 150
col c1 format a80
spool reorgs1.sql
PROMPT drop table bk_&1
prompt /
PROMPT create table bk_&1 storage (initial &stor) as select * from &1
prompt /
spool off
spool reorgs2.sql
PROMPT spool reorgs2
select 'alter table '||table_name||' drop constraint
'||constraint_name||';'
from user_constraints where r_constraint_name
in (select constraint_name from user_constraints where
table_name=upper('&1')
and constraint_type in ('P','U'));
PROMPT drop table &1
prompt /
prompt create table &1
select decode(column_id,1,'(',',')
||rpad(column_name,40)
||decode(data_type,'DATE' ,'DATE '
,'LONG' ,'LONG '
,'LONG RAW','LONG RAW '
,'RAW' ,'RAW '
,'CHAR' ,'CHAR '
,'VARCHAR' ,'VARCHAR '
,'VARCHAR2','VARCHAR2 '
,'NUMBER' ,'NUMBER '
,'unknown')
||rpad(
decode(data_type,'DATE' ,null
,'LONG' ,null
,'LONG RAW',null
,'RAW' ,decode(data_length,null,null
,'('||data_length||')')
,'CHAR' ,decode(data_length,null,null
,'('||data_length||')')
,'VARCHAR' ,decode(data_length,null,null
,'('||data_length||')')
,'VARCHAR2',decode(data_length,null,null
,'('||data_length||')')
,'NUMBER' ,decode(data_precision,null,' '
,'('||data_precision||
decode(data_scale,null,null
,','||data_scale)||')')
,'unknown'),8,' ')
||decode(nullable,'Y','NULL','NOT NULL') c1
from user_tab_columns
where table_name = upper('&1')
order by column_id
prompt )
select 'pctfree '||t.pct_free c1
,'pctused '||t.pct_used c1
,'initrans '||t.ini_trans c1
,'maxtrans '||t.max_trans c1
,'tablespace '||s.tablespace_name c1
,'storage (initial '||'&stor' c1
,' next '||'&stor' c1
,' minextents '||t.min_extents c1
,' maxextents '||t.max_extents c1
,' pctincrease '||t.pct_increase||')' c1
from user_Segments s, user_tables t
where s.segment_name = upper('&1') and
t.table_name = upper('&1')
and s.segment_type = 'TABLE'
prompt /
select 'comment on table &1 is '''||comments||''';' c1 from
user_tab_comments
where table_name=upper('&1');
select 'comment on column &1..'||column_name||
' is '''||comments||''';' c1 from user_col_comments
where table_name=upper('&1');
prompt insert into &1 select * from bk_&1
prompt /
set serveroutput on
declare
cursor c1 is select index_name,decode(uniqueness,'UNIQUE','UNIQUE')
unq
from user_indexes where
table_name = upper('&1');
indname varchar2(50);
cursor c2 is select
decode(column_position,1,'(',',')||rpad(column_name,40) cl
from user_ind_columns where table_name = upper('&1') and
index_name = indname
order by column_position;
l1 varchar2(100);
l2 varchar2(100);
l3 varchar2(100);
l4 varchar2(100);
l5 varchar2(100);
l6 varchar2(100);
l7 varchar2(100);
l8 varchar2(100);
l9 varchar2(100);
begin
dbms_output.enable(100000);
for c in c1 loop
dbms_output.put_line('create '||c.unq||' index '||c.index_name||' on
&1');
indname := c.index_name;
for q in c2 loop
dbms_output.put_line(q.cl);
end loop;
dbms_output.put_line(')');
select 'pctfree '||i.pct_free ,
'initrans '||i.ini_trans ,
'maxtrans '||i.max_trans ,
'tablespace '||i.tablespace_name ,
'storage (initial '||
decode(sign(1024-sum(e.bytes)/1024),-1,
to_char((round(sum(e.bytes)/(1024*1024))+1))||'M',
decode(sign(512-sum(e.bytes)/1024), -1,'1M',
decode(sign(256-sum(e.bytes)/1024), -1,'512K',
decode(sign(128-sum(e.bytes)/1024), -1,'256K',
decode(sign(64-sum(e.bytes)/1024) , -1,'128K',
'64K'))))) ,
' next '||
decode(sign(1024-sum(e.bytes)/4096),-1,
to_char((round(sum(e.bytes)/(4096*1024))+1))||'M',
decode(sign(512-sum(e.bytes)/4096), -1,'1M',
decode(sign(256-sum(e.bytes)/4096), -1,'512K',
decode(sign(128-sum(e.bytes)/4096), -1,'256K',
decode(sign(64-sum(e.bytes)/4096) , -1,'128K',
'64K'))))) ,
' minextents '||s.min_extents ,
' maxextents '||s.max_extents ,
' pctincrease '||s.pct_increase||')'
into l1,l2,l3,l4,l5,l6,l7,l8,l9
from user_extents e,user_segments s, user_indexes i
where s.segment_name = c.index_name
and s.segment_type = 'INDEX'
and i.index_name = c.index_name
and e.segment_name=s.segment_name
group by s.min_extents,s.max_extents,s.pct_increase,
i.pct_free,i.ini_trans,i.max_trans,i.tablespace_name ;
dbms_output.put_line(l1);
dbms_output.put_line(l2);
dbms_output.put_line(l3);
dbms_output.put_line(l4);
dbms_output.put_line(l5);
dbms_output.put_line(l6);
dbms_output.put_line(l7);
dbms_output.put_line(l8);
dbms_output.put_line(l9);
dbms_output.put_line('/');
end loop;
end;
declare
cursor c1 is
select constraint_name, decode(constraint_type,'U',' UNIQUE',' PRIMARY
KEY') typ,
decode(status,'DISABLED','DISABLE',' ') status from user_constraints
where table_name = upper('&1')
and constraint_type in ('U','P');
cname varchar2(100);
cursor c2 is
select decode(position,1,'(',',')||rpad(column_name,40) coln
from user_cons_columns
where table_name = upper('&1')
and constraint_name = cname
order by position;
begin
for q1 in c1 loop
cname := q1.constraint_name;
dbms_output.put_line('alter table &1');
dbms_output.put_line('add constraint '||cname||q1.typ);
for q2 in c2 loop
dbms_output.put_line(q2.coln);
end loop;
dbms_output.put_line(')' ||q1.status);
dbms_output.put_line('/');
end loop;
end;
declare
cursor c1 is
select c.constraint_name,c.r_constraint_name cname2,
c.table_name table1, r.table_name table2,
decode(c.status,'DISABLED','DISABLE',' ') status,
decode(c.delete_rule,'CASCADE',' on delete cascade ',' ')
delete_rule
from user_constraints c,
user_constraints r
where c.constraint_type='R' and
c.r_constraint_name = r.constraint_name and
c.table_name = upper('&1')
union
select c.constraint_name,c.r_constraint_name cname2,
c.table_name table1, r.table_name table2,
decode(c.status,'DISABLED','DISABLE',' ') status,
decode(c.delete_rule,'CASCADE',' on delete cascade ',' ')
delete_rule
from user_constraints c,
user_constraints r
where c.constraint_type='R' and
c.r_constraint_name = r.constraint_name and
r.table_name = upper('&1');
cname varchar2(50);
cname2 varchar2(50);
cursor c2 is
select decode(position,1,'(',',')||rpad(column_name,40) colname
from user_cons_columns
where constraint_name = cname
order by position;
cursor c3 is
select decode(position,1,'(',',')||rpad(column_name,40) refcol
from user_cons_columns
where constraint_name = cname2
order by position;
begin
dbms_output.enable(100000);
for q1 in c1 loop
cname := q1.constraint_name;
cname2 := q1.cname2;
dbms_output.put_line('alter table '||q1.table1||' add constraint ');
dbms_output.put_line(cname||' foreign key');
for q2 in c2 loop
dbms_output.put_line(q2.colname);
end loop;
dbms_output.put_line(') references '||q1.table2);
for q3 in c3 loop
dbms_output.put_line(q3.refcol);
end loop;
dbms_output.put_line(') '||q1.delete_rule||q1.status);
dbms_output.put_line('/');
end loop;
end;
col c1 format a79 word_wrap
set long 32000
set arraysize 1
select 'create or replace trigger ' c1,
description c1,
'WHEN ('||when_clause||')' c1,
trigger_body ,
'/' c1
from user_triggers
where table_name = upper('&1') and when_clause is not null
select 'create or replace trigger ' c1,
description c1,
trigger_body ,
'/' c1
from user_triggers
where table_name = upper('&1') and when_clause is null
select 'alter trigger '||trigger_name||decode(status,'DISABLED','
DISABLE',' ENABLE')
from user_Triggers where table_name='&1';
set serveroutput on
declare
cursor c1 is
select 'alter table
'||'&1'||decode(substr(constraint_name,1,4),'SYS_',' ',
' add constraint ') a1,
decode(substr(constraint_name,1,4),'SYS_','
',constraint_name)||' check (' a2,
search_condition a3,
') '||decode(status,'DISABLED','DISABLE','') a4,
'/' a5
from user_constraints
where table_name = upper('&1') and
constraint_type='C';
b1 varchar2(100);
b2 varchar2(100);
b3 varchar2(32000);
b4 varchar2(100);
b5 varchar2(100);
fl number;
begin
open c1;
loop
fetch c1 into b1,b2,b3,b4,b5;
exit when c1%NOTFOUND;
select count(*) into fl from user_tab_columns where table_name =
upper('&1') and
upper(column_name)||' IS NOT NULL' = upper(b3);
if fl = 0 then
dbms_output.put_line(b1);
dbms_output.put_line(b2);
dbms_output.put_line(b3);
dbms_output.put_line(b4);
dbms_output.put_line(b5);
end if;
end loop;
end;
create or replace procedure dumzxcvreorg_dep(nam varchar2,typ
varchar2) as
cursor cur is
select type,decode(type,'PACKAGE BODY','PACKAGE',type) type1,
name from user_dependencies
where referenced_name=upper(nam) and referenced_type=upper(typ);
begin
dbms_output.enable(500000);
for c in cur loop
dbms_output.put_line('alter '||c.type1||' '||c.name||' compile;');
dumzxcvreorg_dep(c.name,c.type);
end loop;
end;
exec dumzxcvreorg_dep('&1','TABLE');
drop procedure dumzxcvreorg_Dep;
select 'grant '||privilege||' on '||table_name||' to '||grantee||
decode(grantable,'YES',' with grant option;',';') from
user_tab_privs where table_name = upper('&1');
select 'grant '||privilege||' ('||column_name||') on &1 to
'||grantee||
decode(grantable,'YES',' with grant option;',';')
from user_col_privs where grantor=user and
table_name=upper('&1')
order by grantee, privilege;
select 'create synonym '||synonym_name||' for
'||table_owner||'.'||table_name||';'
from user_synonyms where table_name=upper('&1');
PROMPT REM
PROMPT REM YOU MAY HAVE TO LOG ON AS SYSTEM TO BE
PROMPT REM ABLE TO CREATE ANY OF THE PUBLIC SYNONYMS!
PROMPT REM
select 'create public synonym '||synonym_name||' for
'||table_owner||'.'||table_name||';'
from all_synonyms where owner='PUBLIC' and table_name=upper('&1') and
table_owner=user;
prompt spool off
spool off
set echo on feed on verify on
The scripts REORGS1.SQL and REORGS2.SQL have been
created. Alter these script as necesarry.
To recreate the table-structure, first run REORGS1.SQL.
This script saves the content of your table in a table
called bk_.
If this script runs successfully run REORGS2.SQL.
The result is spooled to REORGTB.LST.
Check this file before dropping the bk_ table.
*/Please do NOT cross-postings: create a deep structure for dynamic internal table
Regards
Uwe -
Printing Smartform with Table data from PrintProgram
Hi,
Can any one explain the steps involved in printing the Smartform with the data from the Print Program table. How to fit table in the Smartform i.e, while designing the Smartforms layout for the table.
Thanks & RegardsHi,
As data is coming from the print program in the table. Do the following procedure
1. In the form interface ---> Declare the internal table as same structure as in the print program. for ex: you r passing MARA table data then declare it as itab type table of mara.
2. In the window you want to create the table, right click > create> table.
3. Go to data tab give the internal table name and work area .
4. Now go to General tab-->Details.
5. Declare the line types.
6. Right click on header/main area/footer -->create table line.
7. Now give the line type which you want to use.
8. In the displayed columns>right click> create text node.
9. In the text node &mara-matnr&.
Procedure to create line type:
1. Double click on table
2. Go to table tab --> details
3. Give the table width (width you want to display on the screen should be less than or equal to the window width).
4. Line type --> Divide this into no of column you want to have in header/item.
Note: total length of all columns should be equal to the table width.
5.save.
Br,
Laxmi
Maybe you are looking for
-
Is there a way to display frame numbers of a .mov in an overlay or equiv
I have a .mov that I would like to add it's frame numbers as an overlay on every frame in quicktime (or other program). Has anyone ever done this? Anyone have any clue how?
-
Hello Team, I am using vsts 2012 for coded ui automation. I have created coded ui test project and added many coded ui classes- e.g [CodedUITest] public class A [CodedUITest] public class b CodedUITest] public class c So how can i set class o
-
when updating a Purchase Order using DTW, the linenum field in the lines is not linked to the linenum generated from SQL. for example : SAP puchase Order 123 LINE NUM Item 4 ABC 5
-
Adobe Premiere 4 Elements 4 performance issue
Hi I am a new user of Premiere 4 Elements and I completed my first project to get myself through the learning curve. However I experience a serious performance issue on my computer with this product. Sorry about the long post, I tried to give as comp
-
How to test NI PXIe-1085 Soft front panel?
Hello Everyone, I am unable to test NI RFSG and NI RFSA Soft front panels of NI PXIe-1085. http://www.ni.com/white-paper/13953/en/ .I am not getting the peaks like in the above link. I have attached the NI chassis front diagram. Please help me in th