doc-exports/docs/dws/tool/dws_mt_0306.html
Lu, Huayi 346ac31da9 DWS TG 8.1.3.200 VERSION
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-08-28 09:20:17 +00:00

108 lines
6.7 KiB
HTML

<a name="EN-US_TOPIC_0000001188681074"></a><a name="EN-US_TOPIC_0000001188681074"></a>
<h1 class="topictitle1">Data Type</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p15849231204415"><strong id="EN-US_TOPIC_0000001188681074__en-us_topic_0237712306_b6506143954417">Subtype</strong></p>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p13294124915443">The customized type in the package cannot be converted.</p>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p7294194904414">SUBTYPE error_msg IS sad_products_t.exception_description%TYPE;</p>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p1329424912444">SUBTYPE AR_FLAG IS SAD_RA_LINES_TI.AR_FLAG%TYPE;</p>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p12943495446">SUBTYPE LOCK_FLAG IS SAD_SHIPMENT_BATCHES_T.LOCK_FLAG%TYPE;</p>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p13294144924417">bas_subtype_pkg.error_msg</p>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p630735318442"><strong id="EN-US_TOPIC_0000001188681074__en-us_topic_0237712306_b4191185815443">Input</strong>:</p>
<pre class="screen" id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_screen822674154513">CREATE OR REPLACE PACKAGE SAD.bas_subtype_pkg IS
SUBTYPE func_name IS sad_products_t.func_name%TYPE;
END bas_subtype_pkg;
/
CREATE OR REPLACE PACKAGE BODY SAD.bas_subtype_pkg IS
BEGIN
NULL;
END bas_subtype_pkg;
/</pre>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p169492401411"><strong id="EN-US_TOPIC_0000001188681074__en-us_topic_0237712306_b1425679154212">Output</strong>:</p>
<pre class="screen" id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_screen1254503319418">CREATE OR REPLACE PACKAGE BODY SAD.bas_dml_lookup_pkg IS
g_pkg_name CONSTANT VARCHAR2(30) := 'bas_dml_ic_price_rule_pkg' ;
g_func_name VARCHAR2(100);
FUNCTION func_name
RETURN VARCHAR2
IS
l_func_name bas_subtype_pkg.func_name;;
BEGIN
l_func_name := g_pkg_name || '.' || g_func_name ;
RETURN l_func_name ;
END func_name;
END bas_dml_lookup_pkg;
/</pre>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p9135041204113"></p>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p643715011452"><strong id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_b117961218452">%ROWTYPE</strong></p>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p5523117456">The package procdure/function contains %ROWTYPE attribute in IN/OUT parameter and this is not supported</p>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p1551431134514">Scripts: BAS_DML_SERVIECE_PKG.sql, BAS_LOOKUP_MISC_PKG.sql</p>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p20513194511"><strong id="EN-US_TOPIC_0000001188681074__en-us_topic_0237712306_b75931017434">INPUT</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_screen15114133911144">CREATE OR REPLACE PACKAGE BODY "SAD"."BAS_DML_SERVIECE_PKG" IS
PROCEDURE save_split_ou(pi_split_ou IN split_ou%ROWTYPE,
po_error_msg OUT VARCHAR2) IS
---
BEGIN
---
end save_split_ou;
end BAS_DML_SERVIECE_PKG;</pre>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p76103113456"><strong id="EN-US_TOPIC_0000001188681074__en-us_topic_0237712306_b107118204319">OUTPUT</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_screen172196496144">CREATE
OR REPLACE PROCEDURE SAD.BAS_DML_SERVIECE_PKG#save_split_ou ( pi_split_ou IN split_ou%ROWTYPE
,po_error_msg OUT VARCHAR2 ) IS MIG_PV_VAL_DUMMY_G_FUNC_NAME VARCHAR2 ( 30 ) := MIG_ORA_EXT.MIG_FN_GET_PKG_VARIABLE ( current_schema ( )
,'BAS_DML_SERVIECE_PKG'
,'g_func_name' ) ::VARCHAR2 ( 30 ) ;
ex_data_error
EXCEPTION ;
ex_prog_error
EXCEPTION ;
---
BEGIN
---
END;</pre>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p15718173294515"><strong id="EN-US_TOPIC_0000001188681074__en-us_topic_0237712306_b11440169462">Input</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_screen2038913206464">CREATE OR REPLACE PACKAGE BODY SAD.BAS_DML_SERVIECE_PKG IS
PROCEDURE save_split_ou(pi_split_ou IN split_ou%ROWTYPE,
po_error_msg OUT VARCHAR2) IS
BEGIN
UPDATE split_ou so
SET so.auto_balance_flag = pi_split_ou.auto_balance_flag,
so.balance_start_date = pi_split_ou.balance_start_date,
so.balance_source = pi_split_ou.balance_source
WHERE so.dept_code = pi_split_ou.dept_code;
EXCEPTION
WHEN OTHERS THEN
po_error_msg := 'Others Exception raise in ' || g_func_name || ',' ||
SQLERRM;
END save_split_ou;
END bas_dml_serviece_pkg;
/</pre>
<p id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_p125892019453"><strong id="EN-US_TOPIC_0000001188681074__en-us_topic_0237712306_b76931617476">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001188681074__en-us_topic_0238518413_en-us_topic_0237362312_en-us_topic_0202727273_screen172435454617">CREATE TYPE mig_typ_split_ou AS ...;
CREATE OR REPLACE PROCEDURE SAD.BAS_DML_SERVIECE_PKG#save_split_ou
( pi_split_ou IN mig_typ_split_ou
,po_error_msg OUT VARCHAR2 )
PACKAGE
IS
BEGIN
UPDATE split_ou so
SET so.auto_balance_flag = pi_split_ou.auto_balance_flag
,so.balance_start_date = pi_split_ou.balance_start_date
,so.balance_source = pi_split_ou.balance_source
WHERE so.dept_code = pi_split_ou.dept_code ;
EXCEPTION
WHEN OTHERS THEN
po_error_msg := 'Others Exception raise in ' || g_func_name || ',' || SQLERRM ;
END ;
/</pre>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_mt_0104.html">Oracle Syntax Migration</a></div>
</div>
</div>