Pls help me about oytput types URGEEEEEEEEEENT
hi friends,
i devoloped a Z smartform and attatched in NACE to output type ZUS3 in V3 application
that above form is modified to standard from.
but i am getting the output for VF02 tcode it is generating one spool request properly with some hard code missing that i given in SF.
but the issue is if i attatch the same form to other output type in NACE like YPFI iam getting the correct output.
i kept break point in my SF both output types picking the same form (mine only)
what could be the mistake.
thanks in Advance.
VENUMADHAV -SATYAM
hi
try this
hi
try this
SQL> conn tom
Enter password:
Connected.
SQL> select count(*) from smitemout;
COUNT(*)
1326661
SQL> disconnect
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Pr
oduction
With the Partitioning, OLAP and Data Mining options
SQL> conn / as sysdba
Connected.
SQL> select DBMS_LOB.substr(sql_text, 4000)
2 from v$session s, v$sqlarea where address = sql_address and
3 Hash_value= sql_hash_value and s.sid = 149;
DBMS_LOB.SUBSTR(SQL_TEXT,4000)
SELECT COUNT(*) FROM SMITEMOUT
SQL>
regards
Mohammadi52
Similar Messages
-
Pls help me: about log in
Dear all,
I have a created a dynamic page (PHP and mysql) with log in
(server vehaviour) page. and after user had enter their username
and password, if succeed they go to new page. in this new page ,
they can submit news. and my big problem is (sorry iam new bie) how
i can get their username in this new page that they had entered in
log in page, i want to search id_user in tabel1( field: id_user,
username, password) with their username and after got it , i want
to insert this id_user into table2 (filed: id_user, no_news,
date_news, news ). I hope my explaination will be understood. tks 4
any help....I don't need the code, you do. :O) Read the instructions
below. Replace
the parts of the code that are bad with parts of the code
thar are good.
Let's look at the tutorial/post, posted below in it's
entirety from
http://friendsofed.infopop.net/2/OpenTopic?a=tpc&s=989094322&f=8033053165&m=324102421&r=32 4102421#324102421.
1. Log In User needs changes in two places, plus the removal
of three
lines. Find the following lines of code
$GLOBALS['PrevUrl'] = $accesscheck;
session_register('PrevUrl');Replace them with
$_SESSION['PrevUrl'] = $accesscheck;2. Then find
$GLOBALS['MM_Username'] = $loginUsername;
$GLOBALS['MM_UserGroup'] = $loginStrGroup;Change them to
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
3. Finally, DELETE the following lines
//register the session variables
session_register("MM_Username");
session_register("MM_UserGroup");That's it. You're done with
your Login
form. You know need to replace a few lines in your logout,
but we'll wait
on
that.===========================Article========================I
have
discovered there is a serious bug with the Dreamweaver MX
2004 User
Authentication server behaviors when used in conjunction with
PHP5.
Basically, the problem is that the DW server behaviors use
obsolete code
that appears to work with PHP4, but breaks once deployed on
PHP5 (with
register_globals set to the default off setting).
I have notified Macromedia of the problem, and they have
logged it as a high
severity bug, but have given no indication as to when a patch
will be
issued. Fortunately, the solution is easily fixed by hand.
The server
behaviors affected are Log In User and Log Out User.
Log In User needs changes in two places, plus the removal of
three lines.
Find the following lines of code
$GLOBALS['PrevUrl'] = $accesscheck;
session_register('PrevUrl');Replace them with
$_SESSION['PrevUrl'] = $accesscheck;Then find
$GLOBALS['MM_Username'] = $loginUsername;
$GLOBALS['MM_UserGroup'] = $loginStrGroup;Change them to
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;Finally, DELETE
the following
lines
//register the session variables
session_register("MM_Username");
session_register("MM_UserGroup");
In Log Out User, locate these two lines
session_unregister('MM_Username');
session_unregister('MM_UserGroup');Replace them with
unset($_SESSION['MM_Username']);
unset($_SESSION['MM_UserGroup']);
NOTE: There is NO need to do this if you are still using
PHP4, and not
experiencing any difficulties with User Authentication.
However, it does
affect the instructions for Chapters 14 and 15 of Foundation
Dreamweaver MX
2004 for anyone switching to PHP5.
David Powers
Co-author: Foundation Dreamweaver MX 2004
"jangade" <[email protected]> wrote in
message
news:[email protected]...
> Sorry, i still don't understand about that tutorial, can
u explain me more
> detail pls ( i am using php triad: php 4, mysql 1.3 and
apache 1.3 ). i
> give u
> the code :
>
> login page code:
> <?php require_once('Connections/koneksi.php'); ?>
> <?php
> // *** Validate request to login to this site.
> session_start();
>
> $loginFormAction = $_SERVER['PHP_SELF'];
> if (isset($accesscheck)) {
> $GLOBALS['PrevUrl'] = $accesscheck;
> session_register('PrevUrl');
> }
> login page :
>
> if (isset($_POST['pemakai'])) {
> $loginUsername=$_POST['pemakai'];
> $password=$_POST['sandi'];
> $MM_fldUserAuthorization = "";
> $MM_redirectLoginSuccess = "sukses_login.php";
> $MM_redirectLoginFailed = "tmbhdtteknisi.php";
> $MM_redirecttoReferrer = false;
> mysql_select_db($database_koneksi, $koneksi);
>
> $LoginRS__query=sprintf("SELECT username, password FROM
tblteknisi WHERE
> username='%s' AND password='%s'",
> get_magic_quotes_gpc() ? $loginUsername :
addslashes($loginUsername),
> get_magic_quotes_gpc() ? $password :
addslashes($password));
>
> $LoginRS = mysql_query($LoginRS__query, $koneksi) or
die(mysql_error());
> $loginFoundUser = mysql_num_rows($LoginRS);
> if ($loginFoundUser) {
> $loginStrGroup = "";
>
> //declare two session variables and assign them
> $GLOBALS['MM_Username'] = $loginUsername;
> $GLOBALS['MM_UserGroup'] = $loginStrGroup;
>
> //register the session variables
> session_register("MM_Username");
> session_register("MM_UserGroup");
>
> if (isset($_SESSION['PrevUrl']) && false) {
> $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
> }
> header("Location: " . $MM_redirectLoginSuccess );
> }
> else {
> header("Location: ". $MM_redirectLoginFailed );
> }
> }
> ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN"
> "
http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
> <title>Selamat Datang</title>
> .......
>
>
>
> and new page :
> <?php
> //initialize the session
> session_start();
>
> // ** Logout the current user. **
> $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
> if ((isset($_SERVER['QUERY_STRING'])) &&
($_SERVER['QUERY_STRING'] !=
> "")){
> $logoutAction .="&".
htmlentities($_SERVER['QUERY_STRING']);
> }
>
> if ((isset($_GET['doLogout']))
&&($_GET['doLogout']=="true")){
> //to fully log out a visitor we need to clear the
session varialbles
> session_unregister('MM_Username');
> session_unregister('MM_UserGroup');
>
> $logoutGoTo = "index.php";
> if ($logoutGoTo) {
> header("Location: $logoutGoTo");
> exit;
> }
> }
> ?>
> <?php
> session_start();
> $MM_authorizedUsers = "";
> $MM_donotCheckaccess = "true";
>
> // *** Restrict Access To Page: Grant or deny access to
this page
> function isAuthorized($strUsers, $strGroups, $UserName,
$UserGroup) {
> // For security, start by assuming the visitor is NOT
authorized.
> $isValid = False;
>
> // When a visitor has logged into this site, the Session
variable
> MM_Username set equal to their username.
> // Therefore, we know that a user is NOT logged in if
that Session
> variable
> is blank.
> if (!empty($UserName)) {
> // Besides being logged in, you may restrict access to
only certain
> users
> based on an ID established when they login.
> // Parse the strings into arrays.
> $arrUsers = Explode(",", $strUsers);
> $arrGroups = Explode(",", $strGroups);
> if (in_array($UserName, $arrUsers)) {
> $isValid = true;
> }
> // Or, you may restrict access to only certain users
based on their
> username.
> if (in_array($UserGroup, $arrGroups)) {
> $isValid = true;
> }
> if (($strUsers == "") && true) {
> $isValid = true;
> }
> }
> return $isValid;
> }
>
> $MM_restrictGoTo = "index.php";
> if (!((isset($_SESSION['MM_Username'])) &&
> (isAuthorized("",$MM_authorizedUsers,
$_SESSION['MM_Username'],
> $_SESSION['MM_UserGroup'])))) {
> $MM_qsChar = "?";
> $MM_referrer = $_SERVER['PHP_SELF'];
> if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
> if (isset($QUERY_STRING) &&
strlen($QUERY_STRING) > 0)
> $MM_referrer .= "?" . $QUERY_STRING;
> $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar .
"accesscheck=" .
> urlencode($MM_referrer);
> header("Location: ". $MM_restrictGoTo);
> exit;
> }
> ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN"
> "
http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
> <title>Registrasi</title>
> <link href="css/stylesnew.css" type="text/css"
media="screen"
> rel="stylesheet">
> <!--[if gte IE 5]>
> <style>
> #LeftMNav ul a {height: 1em;}
> #LeftMNav li {float: left; clear: both; width: 100%;}
> </style>
> <![endif]-->
> <style type="text/
> ........
>
> how i can get username that user entered(login page) in
new page ?
> pls help me i'm just new bie....
> tks 4 kind attentions,
>
> regds
>
>
>
>
>
> -
Very Urgent Pls help : Change of payload type to user-defined types
Hello Experts
I was using sys.xml_type as payload type in my queue table creation.
consider xml message
<order>
<id>1</id>
<load rerer="mq" erere='gg" > </load>
</order>
This i inserted into queue table using enqueue process.
this is done.
BUT NOW My manager wants to change the payload type.
he created a type
create or replace type systype as object (msg varchar2(4000));
Now payload type of queue table is changed to
PayloadType==>aq.systype.
Pls help me how can i insert xml messages into this queue table.
This is very urgent. Pls help me
SI've just read this thread three times and I have absolutely no idea what you are doing, in what version, and what you are asking for help with.
Do you want to change the message type? If you do you MUST drop the queue and start over again from the beginning.
Do you want to enqueue messages?
Post your DDL and other relevant information or you are on your own. We can not guess at your issue. -
I have two applications. One is Client, the other is Platform.
In the Platform, there are source files packaged into a library named ZtConfig.jar used by Client. If run Client and Platform, two applications can execute normally.
But if Client is started by user from platform, there is something wrong.
I noticed the error difficultly with finally catching exception.
I was puzzled. It is so strange. Pls help me. I list some codes here.
In Client where finally exception catched:
import zt.config;
try {
xmlFileUrl = new java.net.URL(
"file:///e:/Client/src/config/nsr1000.xml");
catch (IOException ex1) {
FileLogger.error(ex1.getMessage());
FileLogger.info("NSR1000Document.setIEDContent", xmlFileUrl.toString());
try {
xmlLoader = new XMLConfigLoader(xmlFileUrl);
finally {
FileLogger.error("NSR1000Document.setIEDContent",
"cannot new XMLConfigLoader object");
return; // the following codes cannot execute, so have to return here.
In the XMLConfigLoader, the constructor is
public XMLConfigLoader(java.net.URL xmlFileUrl) {
this.xmlFileUrl = xmlFileUrl;
configDoc = null;
builder = null;
xmlDoc = null;
Platform start Client application using the following code
Runtime.getRuntime().exec(
"java -jar e:/Client/Client.jar");I've got it!
Briefly, it is because classpath setting was overwritten by JBuilder.
Firstly, I start Platform from JBuilder. In its messages window. The command is
d:\j2sdk1.4.2_06\bin\javaw -classpath "JBPATH" zt.client.nsr1000.NSR1000App
Now, classpath environment variable was changed to be JBPATH. While I start
Client use Runtime.getRuntime().exec("java -jar Client.jar"), it will not run for classpath changed.
Then, I configured all packages used by Client into JBuilder libraries, including
Client.jar. And changed codes Runtime.getRuntime().exec("java -jar Client.jar") to be Runtime.getRuntime().exec("java -Xmx128m zt.client.nsr1000.NSR1000App")
I also changed CLASSPATH windows system environment variable.
I found this from command console, it can display exceptions. But from JBuilder, there is no exception that can be captured. So debug is difficult. -
Pls help me about two java virtual machine
have two applications. One is Client, the other is Platform.
In the Platform, there are source files packaged into a library named ZtConfig.jar used by Client. If run Client and Platform, two applications can execute normally.
But if Client is started by user from platform, there is something wrong.
I noticed the error difficultly with finally catching exception.
I was puzzled. It is so strange. Pls help me. I list some codes here.
In Client where finally exception catched:
import zt.config;
try {
xmlFileUrl = new java.net.URL(
"file:///e:/Client/src/config/nsr1000.xml");
catch (IOException ex1) {
FileLogger.error(ex1.getMessage());
FileLogger.info("NSR1000Document.setIEDContent", xmlFileUrl.toString());
try {
xmlLoader = new XMLConfigLoader(xmlFileUrl);
finally {
FileLogger.error("NSR1000Document.setIEDContent",
"cannot new XMLConfigLoader object");
return; // the following codes cannot execute, so have to return here.
}In the XMLConfigLoader, the constructor is
public XMLConfigLoader(java.net.URL xmlFileUrl) {
this.xmlFileUrl = xmlFileUrl;
configDoc = null;
builder = null;
xmlDoc = null;
}Platform start Client application using the following code
Runtime.getRuntime().exec(
"java -jar e:/Client/Client.jar");I've got it!
Briefly, it is because classpath setting was overwritten by JBuilder.
Firstly, I start Platform from JBuilder. In its messages window. The command is
d:\j2sdk1.4.2_06\bin\javaw -classpath "JBPATH" zt.client.nsr1000.NSR1000App
Now, classpath environment variable was changed to be JBPATH. While I start
Client use Runtime.getRuntime().exec("java -jar Client.jar"), it will not run for classpath changed.
Then, I configured all packages used by Client into JBuilder libraries, including
Client.jar. And changed codes Runtime.getRuntime().exec("java -jar Client.jar") to be Runtime.getRuntime().exec("java -Xmx128m zt.client.nsr1000.NSR1000App")
I also changed CLASSPATH windows system environment variable.
I found this from command console, it can display exceptions. But from JBuilder, there is no exception that can be captured. So debug is difficult. -
PLS help me about file access!!
now the file struct is like the bellow:
<root>/db
db.db
<root>/server
RemoteDataImp.java
how to write the code in RemoteDataImp.java to access file db.db??
the code writen bellow is wrong!
dataWrapper = new Data("../db/db.db");first if this is a file for your database then you need to connected to
the machine and then you make the code that can access this file
if you use windows then all you have to do is go to control panel
and then open Data Sources (ODBC)in User DSN click on Add button
there choose the database driver if you use Access then double click on
that then anther box will popup there in Data Source Name write the name
of the file or any name let say in your case the name is db.db
then down there you will see a button calls Select click on that
button to select the file you have saved you database in
I will give you an idea about how to call you database files if you use Access
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class RemoteDataImp {
private static final String DEFAULT_DRIVER = "sun.jdbc.odbc.JdbcOdbcDriver";
private static final String DEFUALT_CONNECTION_INFO = "jdbc:odbc:db.db";
private PreparedStatement setUserNames,removeUserNames;
private static Connection connection;
public RemoteDataImp(String driver,String info)throws Exception{
if (driver == null) driver = DEFAULT_DRIVER;
if (info == null) info = DEFUALT_CONNECTION_INFO;
Class.forName(driver).newInstance();
connection = DriverManager.getConnection(info);
connection.setAutoCommit(true);
public PreparedStatement prepareConnection(String sql) throws Exception{
return connection.prepareStatement(sql);
public RemoteDataImp()throws Exception {
this(DEFAULT_DRIVER,DEFUALT_CONNECTION_INFO);
public void saveToDB(/*the user calss which is containing the set and get */ user) throws Exception{
RemoteDataImp r = new RemoteDataImp();
if (setUserNames == null) {
setUserNames = r.prepareConnection("INSERT INTO userTable (USER_ID,NAME,E_MAIL) VALUES(?,?,?)");
setUserNames.setString(1,user.getUserId());
setUserNames.setString(2,user.getName());
setUserNames.setString(3,user.getEmail());
setUserNames.execute();
ublic void removeFromDB(/*the user calss which is containing the set and get */ user) throws Exception {
DatabaseConnection d = new DatabaseConnection()
if (removeUserNames == null) {
removeUserNames = d.prepareConnection("DELETE FROM userTable WHERE USER_ID =?");
removeUserNames.setString(1,user.getUserId());
removeUserNames.execute();
public void finalize() throws Throwable {
try {
connection.close();
catch (Exception ex) {
} -
Pls help ? about snapshot,urgent!
first i create a database link remote_connect,and test it,it's active;
then i create a snapshot log on remote master table:table_one, table_one has it's primary key(id), and last i create snapshot in local like this:
create snapshot local_table_one
storage(initial 100k next 100k pctincrease 0)
tablespace snaps
refresh fast
as
select * from table_one@remote_connect;
but the errors occur:
ORA-12014: 1m'TABLE_ONE'2;0|:,Vw9X<|WVT<JxLu<~(table 'table_one' not include primary key check condition);
my question is:
how can i do for this,i want use primary key not rowid:
thanks first!This problem occurs when you try to create a snapshot with using WITH PRIMARY KEY option, and the Master table either doesn't have primary key or the primary key is disabled.
If you don't want to use WITH ROWID option, you'll have to check your master table.
Either create a primary key or enable it if already exists on the Master table.
Hope this will help
Faheem -
Pls help! about formatted output.
for example, I want to print "double a = 2.33, b =45.123" like:
###2.330
# 45.123 (# should be blank, in fact. )
with fixed width, precision and right alignment. But it seems there are no class can do this like printf function in C.
BTW:I tried DecimalFormat("00.000") but got 02.330.
Thanks in advance!or perhaps try_1d could try reading the java docs...
###.### is exactly the same as the following
I could come up with an infinite number of possibilities so I will stop now. -
pls. help me about find my iphone lock. because i buy a second hand iphone 4s but still lock to the previous owner when i restore factory settings still searching for the previous owner of this phone still now i cant use this phone
Hello jimmy ii
The only option is to contact that person to have them remove Activation Lock from the iPhone. They can do it online and do not have to come to you. Check out the article below for more information.
Find My iPhone Activation Lock: Removing a device from a previous owner’s account
http://support.apple.com/kb/TS4515
Regards,
-Norm G. -
Item on the listbox cant be selected. PLS HELP.
hello! i am a newbie to ABAP development.
I followed the listbox steps stated on the RSDEMO_DROPDOWN_LISTBOX because I want to populate my listbox (I created from the screen painter) with the data from a table. It was successful and I can see the data now. Problem is when I am selecting an item of the listbox, it wont be selected. the only thing always selected is the first item on the listbox? what is happening? I do not understand. PLS HELP.
big thanks.
TYPE-POOLS: VRM.
DATA: VALUE TYPE VRM_VALUES WITH HEADER LINE.
DATA: DD1(20).
DATA: INT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
SELECT * FROM SPFLI INTO TABLE INT_SPFLI.
START-OF-SELECTION.
SET SCREEN 100.
MODULE PBO OUTPUT.
LOOP AT INT_SPFLI.
VALUE-TEXT = INT_SPFLI-CITYFROM.
APPEND VALUE.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'DD1'
VALUES = VALUE[].
ENDMODULE.
MODULE PAI INPUT.
CASE SY-UCOMM.
WHEN 'BTNEXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.<b>THIS IS A FOLLOW UP QUESTION.</b>
I have listbox DD1 and I populated that with SPFLI-CITYFROM data. I used SELECT DISTINCT statement so that it will not repeat same entry on my list box. It was successful but then on the 2nd time and on the succeeding times you click on the listbox (trying to select other item), the listbox shows all the city entries from the SPFLI-CITYFROM. The SELECT DISTINCT takes effect only at first because as I have said on the 2nd and succeeding times you click the listbox, it will show you all entries of SPFLI-CITYFROM. why is that? i dont understand.
im sorry if i sound so dumb. im a newbie.<b> big thanks to all. </b>
TYPE-POOLS: VRM.
DATA: VALUE TYPE VRM_VALUES WITH HEADER LINE.
DATA: DD1(20).
DATA: INT_SPFLI TYPE STANDARD TABLE OF SPFLI WITH HEADER LINE.
SELECT DISTINCT CITYFROM FROM SPFLI INTO CORRESPONDING FIELDS OF TABLE INT_SPFLI.
START-OF-SELECTION.
SET SCREEN 100.
MODULE PBO OUTPUT.
LOOP AT INT_SPFLI.
VALUE-KEY = INT_SPFLI-CITYFROM.
APPEND VALUE.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'DD1'
VALUES = VALUE[].
ENDMODULE.
MODULE PAI INPUT.
CASE SY-UCOMM.
WHEN 'BTNEXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. -
What to do for activate wi fi in iphone 5 pls help
in my iphone 5 no wi fi function is getting on off pls help me about to turn on wi fi pls
Hi there ramesh272,
I would recommend taking a look at the troubleshooting steps found in the article below is you are unable to turn on Wi-Fi on your device.
iOS: Wi-Fi settings grayed out or dim
-Griff W. -
Query-Automatic assignment of Record type to Book of Business-Pls help me
I have a query about Automatic assignment of record in Book of Business.
Using 5 record types & 50 regions as a part of Book of Business. You can say 50 sub-books.
I want to assign these 5 record type to particular Book when to create & modify.
Eg. When I create new account it should be automatically assigned to Book 1 & later I modify this account for reassignment to new user then it should be automatically added to the new user’s book.
I need to create workflow for this as Assign to book criteria for both when new record saved & when modified record saved.
I have tried this & its working; however problem is with the creation of two many workflows.
50 region (Books) x 5 record types * 2 - Create/modify flow = 500 workflows for one country!
If I am right then I can assign 1 record type with action as create or modify in 1 book only.
How to reduce these no. of workflows?
Pls help me out in this regard.
Regards
MangeshMangesh,
I am sorry to tell you that there is no quick answer to this but i will say that maybe you need to rethink your book structure and their requirements here.
I have 4 types and 7 regions so you need to create books to allocate all these on create and also modify. Customers have raised concerns with this to Oracle and they are looking into it but they are along way from completing this. Sorry to spoil your day but i would strongly ask you to consider your books structure before you complete this.
Otherwise if you are using webservices you could assisgn the book when the record is piped into the CRM and then you only need to complete the modify workflows. -
I can't unlock my ipad 2-the screen is frozenand I can't type in my password, can't shut it off and can't connect to itunes because I need to unlock it-which I can't..PLS. help! Thanks!
Try this.
Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. -
Hi, i forgot my macbook pro(snow leopard) password and i tried to reset it through single user mode, but whenever i type, everything comes out in CAPs instead of lower case. Each time i press the minus(-), it always comes out as an underscore(_).Pls help.
Well, you can try easing the shift key up with something thin but flexible (credit card sort of thing) but if the contacts below are stuck you may need to get it seen to by an authorised repairer.
If you can borrow a keyboard (a PC one will probably work as long as the password is alpha-numeric with no special characters) you can at least get in to backup your HD before going for repair. -
Pl. help debug - PLS-00306: wrong number or types of arguments in call
Hi,
I am trying to create a wrapper function to all a procedure in Oracle EBusiness Suite 11i.
When I compile the following code
==========
CREATE OR REPLACE PROCEDURE gme.KIL_ProcessAlloc IS
vFileName VARCHAR2(30) := '1006251.csv';
vLoc VARCHAR2(20) := '/u041/applmgr/opm/opmappl/utllog';
v_InHandle utl_file.file_type;
vNewLine VARCHAR2(1000);
vLineNo PLS_INTEGER;
c1 PLS_INTEGER;
c2 PLS_INTEGER;
c3 PLS_INTEGER;
c4 PLS_INTEGER;
c5 PLS_INTEGER;
c6 PLS_INTEGER;
c7 PLS_INTEGER;
c8 PLS_INTEGER;
c9 PLS_INTEGER;
c10 PLS_INTEGER;
c11 PLS_INTEGER;
c12 PLS_INTEGER;
c13 PLS_INTEGER;
c14 PLS_INTEGER;
c15 PLS_INTEGER;
c16 PLS_INTEGER;
c17 PLS_INTEGER;
c18 PLS_INTEGER;
c19 PLS_INTEGER;
c20 PLS_INTEGER;
c21 PLS_INTEGER;
c22 PLS_INTEGER;
c23 PLS_INTEGER;
c24 PLS_INTEGER;
c25 PLS_INTEGER;
c26 PLS_INTEGER;
c27 PLS_INTEGER;
c28 PLS_INTEGER;
c29 PLS_INTEGER;
c30 PLS_INTEGER;
c31 PLS_INTEGER;
c32 PLS_INTEGER;
c33 PLS_INTEGER;
c34 PLS_INTEGER;
TYPE AllocArray IS TABLE OF GME_INVENTORY_TXNS_GTMP%ROWTYPE
INDEX BY BINARY_INTEGER;
l_Allocdata AllocArray;
TYPE MtlDetailArray IS TABLE OF gme_material_details%ROWTYPE
INDEX BY BINARY_INTEGER;
l_MtlDetaildata MtlDetailArray;
TYPE xTranArray IS TABLE OF GME_INVENTORY_TXNS_GTMP%ROWTYPE
INDEX BY BINARY_INTEGER;
l_xtrandata xTranArray;
TYPE defTranArray IS TABLE OF GME_INVENTORY_TXNS_GTMP%ROWTYPE
INDEX BY BINARY_INTEGER;
l_deftrandata defTranArray;
t_messagecount number;
t_messagelist varchar2(10000);
t_returnstatus varchar2(1);
BEGIN
v_InHandle := utl_file.fopen(vLoc, vFileName, 'r');
vLineNo := 1;
LOOP
BEGIN
utl_file.get_line(v_InHandle, vNewLine);
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXIT;
END;
vNewLine := TRANSLATE(vNewLine, 'A''', 'A');
c1 := INSTR(vNewLine, ',', 1,1);
c2 := INSTR(vNewLine, ',', 1,2);
c3 := INSTR(vNewLine, ',', 1,3);
c4 := INSTR(vNewLine, ',', 1,4);
c5 := INSTR(vNewLine, ',', 1,5);
c6 := INSTR(vNewLine, ',', 1,6);
c7 := INSTR(vNewLine, ',', 1,7);
c8 := INSTR(vNewLine, ',', 1,8);
c9 := INSTR(vNewLine, ',', 1,9);
c10 := INSTR(vNewLine, ',', 1,10);
c11 := INSTR(vNewLine, ',', 1,11);
c12 := INSTR(vNewLine, ',', 1,12);
c13 := INSTR(vNewLine, ',', 1,13);
c14 := INSTR(vNewLine, ',', 1,14);
c15 := INSTR(vNewLine, ',', 1,15);
c16 := INSTR(vNewLine, ',', 1,16);
c17 := INSTR(vNewLine, ',', 1,17);
c18 := INSTR(vNewLine, ',', 1,18);
c19 := INSTR(vNewLine, ',', 1,19);
c20 := INSTR(vNewLine, ',', 1,20);
c21 := INSTR(vNewLine, ',', 1,21);
c22 := INSTR(vNewLine, ',', 1,22);
c23 := INSTR(vNewLine, ',', 1,23);
c24 := INSTR(vNewLine, ',', 1,24);
c25 := INSTR(vNewLine, ',', 1,25);
c26 := INSTR(vNewLine, ',', 1,26);
c27 := INSTR(vNewLine, ',', 1,27);
c28 := INSTR(vNewLine, ',', 1,28);
c29 := INSTR(vNewLine, ',', 1,29);
c30 := INSTR(vNewLine, ',', 1,30);
c31 := INSTR(vNewLine, ',', 1,31);
c32 := INSTR(vNewLine, ',', 1,32);
c33 := INSTR(vNewLine, ',', 1,33);
c34 := INSTR(vNewLine, ',', 1,34);
-- l_allocdata(vLineNo).sourceno := SUBSTR(vNewLine,1,c1-1);
-- l_allocdata(vLineNo).sizeno := SUBSTR(vNewLine,c1+1,c2-c1-1);
-- l_allocdata(vLineNo).status := SUBSTR(vNewLine,c2+1,c3-c2-1);
-- l_allocdata(vLineNo).latitude := SUBSTR(vNewLine,c3+1,c4-c3-1);
-- l_allocdata(vLineNo).longitude := SUBSTR(vNewLine,c4+1,c5-c4-1);
-- l_allocdata(vLineNo).testfor := SUBSTR(vNewLine,c5+1);
l_allocdata(vLineNo).trans_id := SUBSTR(vNewLine,1,c1-1);
l_allocdata(vLineNo).item_id := SUBSTR(vNewLine,c1+1,c2-c1-1);
l_allocdata(vLineNo).co_code := SUBSTR(vNewLine,c2+1,c3-c2-1);
l_allocdata(vLineNo).orgn_code := SUBSTR(vNewLine,c3+1,c4-c3-1);
l_allocdata(vLineNo).whse_code := SUBSTR(vNewLine,c4+1,c5-c4-1);
l_allocdata(vLineNo).lot_id := SUBSTR(vNewLine,c5+1,c6-c5-1);
l_allocdata(vLineNo).location := SUBSTR(vNewLine,c6+1,c7-c6-1);
l_allocdata(vLineNo).doc_id := SUBSTR(vNewLine,c7+1,c8-c7-1);
l_allocdata(vLineNo).doc_type := SUBSTR(vNewLine,c8+1,c9-c8-1);
l_allocdata(vLineNo).doc_line := SUBSTR(vNewLine,c9+1,c10-c9-1);
l_allocdata(vLineNo).line_type := SUBSTR(vNewLine,c10+1,c11-c10-1);
l_allocdata(vLineNo).reason_code := SUBSTR(vNewLine,c11+1,c12-c11-1);
l_allocdata(vLineNo).trans_date := SUBSTR(vNewLine,c12+1,c13-c12-1);
l_allocdata(vLineNo).trans_qty := SUBSTR(vNewLine,c13+1,c14-c13-1);
l_allocdata(vLineNo).trans_qty2 := SUBSTR(vNewLine,c14+1,c15-c14-1);
l_allocdata(vLineNo).qc_grade := SUBSTR(vNewLine,c15+1,c16-c15-1);
l_allocdata(vLineNo).lot_status := SUBSTR(vNewLine,c16+1,c17-c16-1);
l_allocdata(vLineNo).trans_stat := SUBSTR(vNewLine,c17+1,c18-c17-1);
l_allocdata(vLineNo).trans_um := SUBSTR(vNewLine,c18+1,c19-c18-1);
l_allocdata(vLineNo).trans_um2 := SUBSTR(vNewLine,c19+1,c20-c19-1);
l_allocdata(vLineNo).completed_ind := SUBSTR(vNewLine,c20+1,c21-c20-1);
l_allocdata(vLineNo).staged_ind := SUBSTR(vNewLine,c21+1,c22-c21-1);
l_allocdata(vLineNo).gl_posted_ind := SUBSTR(vNewLine,c22+1,c23-c22-1);
l_allocdata(vLineNo).event_id := SUBSTR(vNewLine,c23+1,c24-c23-1);
l_allocdata(vLineNo).text_code := SUBSTR(vNewLine,c24+1,c25-c24-1);
l_allocdata(vLineNo).transaction_no := SUBSTR(vNewLine,c25+1,c26-c25-1);
l_allocdata(vLineNo).action_code := SUBSTR(vNewLine,c26+1,c27-c26-1);
l_allocdata(vLineNo).material_detail_id := SUBSTR(vNewLine,c27+1,c28-c27-1);
l_allocdata(vLineNo).organization_id := SUBSTR(vNewLine,c28+1,c29-c28-1);
l_allocdata(vLineNo).locator_id := SUBSTR(vNewLine,c29+1,c30-c29-1);
l_allocdata(vLineNo).subinventory := SUBSTR(vNewLine,c30+1,c31-c30-1);
l_allocdata(vLineNo).alloc_um := SUBSTR(vNewLine,c31+1,c32-c31-1);
l_allocdata(vLineNo).alloc_qty := SUBSTR(vNewLine,c32+1,c33-c32-1);
l_allocdata(vLineNo).def_trans_ind := SUBSTR(vNewLine,c33+1,c34-c33-1);
vLineNo := vLineNo+1;
END LOOP;
utl_file.fclose(v_InHandle);
FOR i IN 1..vLineNo-1 loop
GME_API_PUB.insert_line_allocation (
1,
100,
FALSE,
True,
l_allocdata(i),
null,
null,
false,
false,
false,
l_MtlDetailData,
l_xtrandata,
l_deftrandata,
t_messagecount,
t_messagelist,
t_returnstatus);
end loop;
IF (t_returnstatus <> 'S') THEN
for i IN 1 .. t_messagecount LOOP
dbms_output.put_line('The text is '||FND_MSG_PUB.get(i,t_messagelist));
END LOOP;
END IF;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END KIL_ProcessAlloc;
===============
I get this
Warning: Procedure created with compilation errors.
SQL> sho err
Errors for PROCEDURE GME.KIL_PROCESSALLOC:
LINE/COL ERROR
145/8 PLS-00306: wrong number or types of arguments in call to
'INSERT_LINE_ALLOCATION'
145/8 PL/SQL: Statement ignored
=================
The package specs of GME_API_PU is under:
===============
PROCEDURE insert_line_allocation (
p_api_version IN NUMBER := gme_api_pub.api_version
,p_validation_level IN NUMBER := gme_api_pub.max_errors
,p_init_msg_list IN BOOLEAN := FALSE
,p_commit IN BOOLEAN := FALSE
,p_tran_row IN gme_inventory_txns_gtmp%ROWTYPE
,p_lot_no IN VARCHAR2 DEFAULT NULL
,p_sublot_no IN VARCHAR2 DEFAULT NULL
,p_create_lot IN BOOLEAN DEFAULT FALSE
,p_ignore_shortage IN BOOLEAN DEFAULT FALSE
,p_scale_phantom IN BOOLEAN DEFAULT FALSE
,x_material_detail OUT gme_material_details%ROWTYPE
,x_tran_row OUT gme_inventory_txns_gtmp%ROWTYPE
,x_def_tran_row OUT gme_inventory_txns_gtmp%ROWTYPE
,x_message_count OUT NUMBER
,x_message_list OUT VARCHAR2
,x_return_status OUT VARCHAR2);
GME_API_PUB.insert_line_allocation
===========
What am I doing wrong...why am I getting PLS-00306.
Can someone help?
Thank you
Sundar
[email protected]Hi John,
Thanks a ton - a nice Christmas gift. Thank you for being a Santa :-).
I used the same subscript as the one used for in parameter and the procedure compiled without errors.
A corollary: If (any of the) Out parameter is null (all columns of the row/array), will the array row element still be stored ? May be I cross the bridge when I come to it.
Merry Christmas.
Sundar
Maybe you are looking for
-
Firmware update N80 with Vodafone
Well finally last night I got to upgrade my N80 to 4.0623.0.41 of the firmwear. I was so happy........... ..until I started to use my phone, pronlems and lots of em. Themes that I have used before on my N80 and have functioned/looked as they should.
-
Are HDV tapes really necessary? (Last question for now, I promise)
Do you really need to use them to shoot HD footage? Is there an obvious benefit to them or is this another marketing thing?
-
Muse 7 Beta 3 available for download... Where?!
I've opted in to the Beta program a week or two ago and it says that that the beta version is not available for download yet, but this forum says it is? Do I have to wait to be accepted into the program to get the download? If yes (as I'm assuming is
-
White noise in video problem - Adobe premiere pro 4
Sometimes i face this issue when making projects with Adobe Premiere Pro 4. Original movie file played with VLC player looks good - like "converted" (just converted using external program, codec H.264/Mpeg4) in Premiere. But original movie from camer
-
Windows 7 Driver for Apple Imagewriter Select 360 Printer
Does anyone know where I can get a Windows 7 driver for my Apple Imagewriter Select 360 Printer? Thank you.