Create a procedure for SAE function by using trigger.
how to create a procedure by using triggers.
we Have a job constant for the SAE function to trigger psuedo code SAE_ENG_DOC description: Engineering Documentation requirement. This should only trigger 1 time per job regardless of how many up issues recosting there may be.
and we have to add 2 hrs for Engineering Documentation .
Please give me response as soon as possible.
Thx & Regards
Sridevi
The response as soon say that shine light on document reflects wording on manual into retina for purpose of consumption by cerebral cortex for the understanding the problem to formulate solution.
Or else you can try plain and simply English saying WHAT the problem is, without making assumptions that we understand your tables, your software, your database, your environment and your requirements.
And drop the "give me response as soon as possible" as no one here owes you a damn thing in terms of how quick to respond to your problem.
Similar Messages
-
Need procedure for the function
Hi
Can any one create a procedure
for the following
Following is a function i need a procedure
which basically Converts the values in the a Column to no of rows
Example : Column Name: USA; Canada; Japan;
in to 3 rows : USA
Canada
Japan
create
or replace function f_get_row_vals(V_column_value VARCHAR2)
return T_LIST_OF_VALS PIPELINED
as
n_str_length NUMBER := 0;
N_START_CHAR NUMBER := 1;
N_END_CHAR NUMBER := 0;
n_counter NUMBER := 1;
v_value VARCHAR2(50) := NULL;
begin
IF V_column_value IS NULL
THEN
RETURN;
END IF;
n_str_length := LENGTH(V_column_value);
LOOP
N_END_CHAR := INSTR(V_column_value,';',1,n_counter);
IF N_END_CHAR = 0
THEN
v_value := SUBSTR(V_column_value, N_START_CHAR, n_str_length - N_START_CHAR + 1);
ELSE
v_value := SUBSTR(V_column_value, N_START_CHAR, N_END_CHAR-N_START_CHAR);
END IF;
n_counter := n_counter + 1;
N_START_CHAR := N_END_CHAR + 1;
pipe row(v_value);
EXIT WHEN N_END_CHAR = 0 ;
END LOOP;
RETURN;
END;
ThanksThis is the procedure they are using previously.
This procedure is calling the above function. I need like this
CREATE
OR REPLACE PROCEDURE P_EXPAND_USER_ACCESS_REV_MART
IS
rec_ODS_USER_ACCESS_REV_MART ODS.ODS_USER_ACCESS_REV_MART%ROWTYPE;
CURSOR c_getrows
IS
select * from ODS.ODS_USER_ACCESS_REV_MART;
BEGIN
OPEN c_getrows;
LOOP
FETCH c_getrows INTO rec_ODS_USER_ACCESS_REV_MART;
EXIT WHEN c_getrows%NOTFOUND;
DBMS_OUTPUT.put_line(rec_ODS_USER_ACCESS_REV_MART.wwfo_area);
DBMS_OUTPUT.put_line(rec_ODS_USER_ACCESS_REV_MART.soln_division);
INSERT INTO DW_USER_ACCESS_REV_MART
user_id,
wwfo_area,
soln_division
SELECT rec_ODS_USER_ACCESS_REV_MART.user_id,
area_tab.column_vaLue,
soln_tab.column_value
FROM TABLE(CAST(f_get_row_vals(rec_ODS_USER_ACCESS_REV_MART.wwfo_area)AS T_LIST_OF_VALS) ) area_tab,
TABLE(CAST(f_get_row_vals(rec_ODS_USER_ACCESS_REV_MART.soln_division)AS T_LIST_OF_VALS)) soln_tab
END LOOP;
CLOSE c_getrows;
COMMIT;
END; -
Creating a Structure for BAPI Function Module
Hi,
I need to create an RFC for a BAPI call. For that I have to create a structure for the function module. Now, do I need to specify both import and export parameters in the same structure or do I need to create two different structures for Import as well as export parameters? If the import and export parameters are specified aleady, Do I need to supply this structures again under "TABLES"?
Thanks,
John.if u have/get more one records , then u have to use tables ?
Regards
Prabhu -
How to create volume slider for flash cs 5 using action script 2.0?
how to create volume slider for flash cs 5 using action script 2.0?the output should like if user want to hear sound in slow pitch,medium pitch or high pitch(slow to high pitch anything).i have attach this sound to button with using this code:
stop();
mySoundBtn.onRelease = function () {
mySoundC = new Sound(this);
mySoundC.attachSound("mySoundClip");
mySoundC.start(0, 10); //10 represents the number of loops
gotoAndPlay(2);
This sound plays till 3-4 scene ahead.
Can anyone help me?Hey thnx Ned.
this sites are really helpful.but,i have used sound through button.so how it is possible to attavh the link with slider.i have created slider also.
Below is my slider code for sound.
onClipEvent (load) {
mySound1 = new Sound();
mySound1.loadSound((myScale)+"/"+(myTanpura)+"/"+(myTanpuraSwar)+"/"+(myTanpuraTempo)+".w av", true);
mySound1.onSoundComplete = function() {
mySound1.start();
mySound1.start(0.058,999);
onClipEvent (enterFrame) {
downloaded = mySound1.getBytesLoaded();
total = mySound1.getBytesTotal();
if (downloaded != total) {
_root.dl = "You have to buy this software...";
} else {
complete = 1;
_root.dl = "";
mySound1.setVolume(ratio * 2);
This code is working for slider.I mean it scrolls the slider.but it dosent make any effect to sound.
Below is my button code.
stop();
mySoundBtn4.onRelease = function () {
mySoundC = new Sound(this);
mySoundC.attachSound("mySoundClip4");
mySoundC.start(0, 300); //10 represents the number of loops
gotoAndPlay("play1");
this is on button's frame.not exactly on button.
Button and Slider both are on diffrent scene.
Can you plese help me out? -
How to create an Invoice for the sales order using the T-Code VF01
Hello Experts,
How to create an Invoice for a sales order using the T-Code VF01?
Thanks in advace,
Sumahi,
Make the following settings-
1. Create sales document and billing type
2. assign billing type in sales document type config VOV8
3. Activate itemcategory as sales order related billing
4. Maintain copy control header and item level between sales order and billing
5. Maintain pricing procedure for sales order and billing
6. Define Output procedure in case to print invoice
Regards
Goutham -
How do i create mailing labels for an avery template using pages
how do i create mailing labels for an avery template using pages.
mcc,
The first topic in the "More LIke This" box to the right of your question is a rather comprehensive address label printing discussion. Does it answer your question?
Jerry -
How do I create a watermark for my website logo using Adobe Photoshop CS4?
Hello! I need help creating a watermark for my website logo using Adobe Photoshop CS4. Thank You!
MFS APPLE PRO wrote:
Hey Don,
This is a pretty straight forward process, in settings on your phone go to general>network>personal hotspot. As SP has said most likely you will have to contact your wireless provider to set it up. I know for at&t you can set up this option through att.com/wireless or dial 611. It will cost you around 45 dollars per month and this gets you the ability to tether up to 4 wireless devices and alots you 4GB per month data. Hope this helps.
Mike
I've heard that it will also cancel your current contract. That isn't such a huge deal unless your current contract is an unlimited one--you can never get it back.
Does anyone know for sure? I've asked AT&T and received a "Yes it will cancel your current contract." and "No, it is a new contract--you keep your old contract if you wish." I suspect it is the former but it would be good to know for sure before ordering the service. -
How do you create a package for a function?
Hello,
Can someone tell me how to create a package for a function? My understanding is to call a function like a beforeReport from the data template, is that the function needs to be in a package.
Thanks,
SusanCreate package my_pack as
my_val varchar2(40);
function before_rep(my_param in varchar2) return boolean;
end my_pack;
create package body my_pack as
function before_rep(my_param in varchar2) return boolean is
begin
my_val := '1=1';
return true;
exception
when others then
return false;
end before_rep;
end my_pack;
hope this helps.
Marcos -
Trouble creating Variant format for ActiveX Function (MintMT Controller)
Hello!
I am creating a VI to control 2-axis motion using the MintMT activeX library and have run into a problem. I was able to easily call and execute functions from Labview until I ran into one (VectorA) that requires an array of variant input. I cannot format my input correctly and have exhausted myself trying different combinations of building this array and converting to variant type (To Variant). I also have wired Labview arrays directly (with no luck). The arrays are very small (only 2 elements). Finally I tried the OpenG library (Cluster to Varray and Array to Array of Vdata) without success. The error code is: LabVIEW: (Hex 0x80070057) One or more arguments are invalid.
Any advice?
Attached is the documentation for the function:
VectorA
Prototype:
VB VectorA(nNumberOfAxes As Integer, nAxesArray As Variant,
fPosArray As Variant)
Delphi VectorA : (nNumberOfAxes: Smallint; nAxesArray: OleVariant;
fPosArray: OleVariant)
C++ void VectorA(short nNumberOfAxes, VARIANT nAxesArray, VARIANT fPosArray);
C void VectorA(__int16 nNumberOfAxes, __int16 *nAxesArray, float *fPosArray);Hi Mr. NiceGuy,
The code from the manufacturer has a To Variant converter between the arrays and the Property Node. I'd recommend converting the arrays to variants in your code. You can find that To Variant VI on the Functions Palette » Programming » Cluster, Class, & Variant »Variant. Let us know if that works.
Hillary
Regards,
Hillary E
National Instruments -
How to start approval procedure for a Document/Draft using DI API
Hi!
My code imports purchase orders from one non-B1 system to SAP B1 using DI API. The problem is that in B1 system there is an approval process configured and I need the newly created purchase order to enter this approval process.
Currently this is not done because approval procedure isn't triggered when creating documents using DI API.
I had an idea to create a draft of PO instead of the PO and then push this draft into approval process somehow. But I can't find a way how to tell DI API to start approval procedure for my draft/document.
Thank you for your replies!
JanUnfortunately there is no way to trigger the approval process for any object added through the DI API.
Your workaround of adding the documents as drafts is as close as you can really come but maybe you could extend it slightly - it will involve a UI API addon:
Make the addon mandatory, and add a UDF to the user table, for example "U_Approver" and a UDF to PO document, like "U_Approval"
- Set this U_Approval to yes when adding through DI and add as draft
- When user opens draft document in the application, check are they an approver (U_Approver = "Y")
- If they are not, and try to view/add a draft which is flagged as needing approval, block them from adding.
You could further expand your DI project to send a mail to the approver whenever a draft PO is added. -
How to create Presentation variable for columns and to use it in Narrative?
Hi All,
Anybody know how to create presentation variable for a column (i.e., i need to create it in edit formula section itself). And then, I should use it in Narrative section to display that column value. Is it possible? Or do i need to use any other variable for this requirement? If so please let me know, how to create it? This is very urgent requirement.
Thanks in Advance
ThenmozhiHi Satya,
I just want to create a table that should horizontally display the values like below:
SUID Tag # :123456 Year Mfg: 2007
Description: computer corporation FA ID#: 4576
Model Number: 4569 hESC: #ert
Serial Number: 78945 Flags: c
Department: Hematology
User: thenmozhi
Database: OLAP
I think we can create this type of report using either Narrative or Static Text. But I am not sure whether it is possible or not? And also another thing is that sectioning is applied for SUID Tag # column. So, depending on the dashboard prompt if the SUID Tag # retrieves two or more values.
Then the first value for example 123456 and the values for the other columns related to this SUID Tag # value should display in the first page (i.e., page 1). And if the next value of the SUID Tag # for example say 678901 then the values should move to second page that is like this:
SUID Tag # :678901 Year Mfg: 2008
Description: Computer Manufacturing FA ID#: 4577
Model Number: 4570 hESC: #eth
Serial Number: 78946 Flags: G
Department: Hematology
User: Rehman
Database: OLAP
Thanks
Thenmozhi -
How to create Approval procedures for various departments
Hi Experts,
I want to create a approval procedures for sales , purchase, production and finance screens.
I am going to the Approval stages , there i am giving name, description and selecting authorizer and finally when i want to select the sales module under department , there i can see only general .
i cldnt see all the departments here. what is the reason? solution for this. PLease.
Thanks & Regards,
DwarakHi Dwarak,
Please specify the department in Administration --> Setup --> General --> Users and find the user code and then map the departments.
In the Approval templates Originator is where the users can be setup and in the select the required documents and map the create th Approval stage ( The user who authorises the document created by the originators)
Regards,
Rakesh N -
How to create desktop application for simple server program using netbeans?
Hi,can anyone help me on this one??
I'm am very new to java,and I already trying different example program to create desktop applications
for simple server program but it's not working.
This is the main program for the simple server.
import java.io.*;
import java.net.*;
public class Server {
* @param args the command line arguments
public static void main(String[] args) {
try{
ServerSocket serverSocket = new ServerSocket(4488);
System.out.println("Server is waiting for an incoming connection on port 4488");
Socket socket = serverSocket.accept();
System.out.println(socket.getInetAddress() + "connected");
PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
BufferedReader in = new BufferedReader( new InputStreamReader(socket.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null){
out.println(inputLine);
System.out.println("Connection will be cut");
out.close();
in.close();
socket.close();
serverSocket.close();
}catch(IOException e){
e.printStackTrace();
// TODO code application logic here
}and this is the Main Processing :
import java.awt.*;
import java.awt.event.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import java.text.*;
import java.util.*;
import java.net.*;
import java.io.*;
public class MainProcessing {
private static final long serialVersionUID = 1L;
static private boolean isApplet_ = true;
static private InetAddress argIp_ = null;
static private int argPort_ = 0;
public TCPIP TCPIP_ = null;
private InetAddress ip_ = null;
private int port_ = 10001;
static private boolean conectFlag = false;
private BufferedWriter bw;
FileOutputStream fos;
OutputStreamWriter osw;
public int[] current = new int[400];
public int[] volt = new int[400];
public int[] revolution = new int[400];
public void init() {
public void start() {
if (isApplet_) {
try {
ip_ = InetAddress.getByName(getCodeBase().getHost());
} catch (UnknownHostException e) {
} else {
ip_ = argIp_;
if (argPort_ != 0) {
port_ = argPort_;
// IPアドレスが不明なら何もしない
if (ip_ != null) {
// コネクションが成立していないなら、接続
if (TCPIP_ == null) {
TCPIP_ = new TCPIP(ip_, port_);
if (TCPIP_.getSocket_() == null) {
System.out.println("ミス1");
// エラーメッセージを表示
return;
if (TCPIP_ == null) {
System.out.println("ミス2");
return;
System.out.println("成功");
conectFlag = true;
try {
TCPIP_.sendF();
} catch (IOException ex) {
Logger.getLogger(MainProcessing.class.getName()).log(Level.SEVERE, null, ex);
System.out.println("" + conectFlag);
return;
public void receive() {
try {
// Calendar cal1 = Calendar.getInstance(); //(1)オブジェクトの生成
// int year = cal1.get(Calendar.YEAR); //(2)現在の年を取得
// int month = cal1.get(Calendar.MONTH) + 1; //(3)現在の月を取得
// int day = cal1.get(Calendar.DATE); //(4)現在の日を取得
// int hour = cal1.get(Calendar.HOUR_OF_DAY); //(5)現在の時を取得
// int min = cal1.get(Calendar.MINUTE); //(6)現在の分を取得
// int sec = cal1.get(Calendar.SECOND); //(7)現在の秒を取得
byte[] rev = TCPIP_.receive();
// System.out.println("受信");
if (rev != null) {
byte[] Change = new byte[1];
int j = 0;
for (int i = 0; i < 1200; i++) {
Change[0] = rev;
current[j] = decimalChange(Change);
i++;
Change[0] = rev[i];
volt[j] = decimalChange(Change);
i++;
Change[0] = rev[i];
revolution[j] = decimalChange(Change);
} catch (NullPointerException e) {
public int decimalChange(byte[] byteData) {
int bit0, bit1, bit2, bit3, bit4, bit5, bit6, bit7;
int bit = 0;
for (int i = 0; i < 8; i++) {
int a = (byteData[0] >> i) & 1;
System.out.print(a);
System.out.println();
return 1;
public void destroy() {
// 切断
if (TCPIP_ != null) {
TCPIP_.disconnect();
if (TCPIP_.getSocket_() != null) {
try {
System.out.println("\ndisconnect:" + TCPIP_.getSocket_().getInetAddress().getHostAddress() + " " + TCPIP_.getSocket_().getPort());
} catch (Exception e) {
TCPIP_ = null;
public boolean conect(int IP) {
conectFlag = false;
String address = "192.168.1." + IP;
System.out.println(address);
try {
argIp_ = InetAddress.getByName(address);
} catch (UnknownHostException e) {
// xp.init();
isApplet_ = false;
start();
return (conectFlag);
public void send(String command, int value, int sendData[][], int i) {
int j = 0;
Integer value_ = new Integer(value);
byte values = value_.byteValue();
Integer progNum = new Integer(i);
byte progNums = progNum.byteValue();
try {
TCPIP_.send(command, values, progNums);
for (j = 1; j <= i; j++) {
Integer time = new Integer(sendData[j][0]);
byte times = time.byteValue();
Integer power = new Integer(sendData[j][1]);
byte powers = power.byteValue();
TCPIP_.send(times, powers);
TCPIP_.flush();
} catch (IOException ex) {
Logger.getLogger(MainProcessing.class.getName()).log(Level.SEVERE, null, ex);
public void file(String name) {
ublic void fileclose(String name, String command, int value, int sendData[][], int i) {
try {
fos = new FileOutputStream("" + name + ".csv");
osw = new OutputStreamWriter(fos, "MS932");
bw = new BufferedWriter(osw);
String msg = "" + command + "," + value + "";
bw.write(msg);
bw.newLine();
for (int j = 1; j <= i; j++) {
msg = "" + j + "," + sendData[i][0] + "," + sendData[i][1];
bw.write(msg);
bw.newLine();
bw.close();
} catch (IOException ex) {
Logger.getLogger(MainProcessing.class.getName()).log(Level.SEVERE, null, ex); -
How to create Store Procedure for export result select in .txt or .csv
Hello,
I'm using MSSQL Server.
How to export results query in .txt or .csv?
But
I can not use bcp or SQLCMD.1) linked server
insert into txtsrv...table1#txt(CustomerNumber,CustomerName,EntryDate)
select orderid, shipname, orderdate
from Northwind..orders
Set up the linked server
Connecting a directory of text files as a linked server is easy. Here’s how:
In Windows, create a new directory for the linked server.
For this article, that directory will be E:\txtsvr.
Add that directory as a linked server with sp_addlinkedserver:
EXEC sp_addlinkedserver txtsrv, 'Jet 4.0',
'Microsoft.Jet.OLEDB.4.0', 'e:\txtsrv', NULL, 'Text'
That’s all that’s required to add the linked server txtsrv
as a connection to the text files in E:\txtsvr, but there are
no tables in txtsvr yet. Also missing is a required file, schema.ini,
which must contain a description of each table’s format.
You can learn more about schema.ini from the Microsoft MSDN Library,
but for now, just use Notepad or your favorite text editor
to create the file e:\txtsrv\schema.ini as shown in Listing 1.
In addition, create an empty text file in e:\txtsrv named table1.txt.
The file e:\txtsrv\table1.txt is now an empty table in the linked server txtsrv.
We can see that if we list information about all the tables in txtserv with
the system stored procedure sp_tables_ex:
EXEC sp_addlinkedsrvlogin txtsrv, FALSE, Admin, NULL
EXEC sp_tables_ex txtsrv
Text files are tables
We can’t issue a CREATE TABLE statement against this linked server,
but we have created a table easily enough. We can, however,
run INSERT and SELECT queries, if we use the four-part naming
convention <server>…<table> (that’s three dots):
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
I have the follwing table is called master table contain the follwing fields,
So here i need to create three Stored procedures
1.Insert operations(1 o/p paramter,and 14 input paramters) - uspInsert
2.Update operations(1 o/p paramter,and 14 input paramters) - uspUpdate
3.Delete Operations(1 o/p paramter,and 14 input paramters)
- uspdelte
The following is the table ,so using this to make the three sp's ,Here we will use Exception machanism also.
Location
Client Name
Owner
ConfigItemID
ConfigItemName
DeploymentID
IncidentID
Package Name
Scope
Stage
Type
Start Date
End Date
Accountable
Comments
So can u pls help me out for this ,bcz i knew to stored procedure's creation.I have the follwing table is called master table contain the follwing fields,
So here i need to create three Stored procedures
1.Insert operations(1 o/p paramter,and 14 input paramters) - uspInsert
2.Update operations(1 o/p paramter,and 14 input paramters) - uspUpdate
3.Delete Operations(1 o/p paramter,and 14 input paramters) - uspdelte
The following is the table ,so using this to make the three sp's ,Here we will use Exception machanism also.
Location
Client Name
Owner
ConfigItemID
ConfigItemName
DeploymentID
IncidentID
Package Name
Scope
Stage
Type
Start Date
End Date
Accountable
Comments
So can u pls help me out for this ,bcz i knew to stored procedure's creation.
Why you have to pass 14 parameters for DELETE and UPDATE? Do you have any Primary Key? If you do NOT have primary key in your table then in case you have duplicate information, SQL will update both or delete them together. You need to provide DDL of
you table. What are the data types of fields?
Best Wishes, Arbi; Please vote if you find this posting was helpful or Mark it as answered.
Maybe you are looking for
-
Folders: One account from another?
I've two accounts on my machine, one with 'reference documents' and a second 'normal' account I use day to day. If I'm working on another machine I can access my 'reference' account by logging in with afp, and supplying my username and password. So f
-
Getting error while installing MSSQL 2005 SP2 Windows Server 2008 Service Pack 1
Hi, We are getting error while we are installing MSSQL 2005 SP2. It gives me the following error No Qualifying Product =================== This machine does not have a product that matches this installation package. I am pretty new to MSQL. Any help
-
My iPhone used to work in iTunes but quit working. I checked my USB portal and it works with other devices. I also uninstalled and re-installed iTunes. I added updates to my phone and re-booted it. I am not sure what else to do. My iPhone also
-
Can We Display Image on Hieararichal Report on Each Line item
Dear Gurus , I have a Strange Requirement from the Client . They want to display Image on each line item of report with regard to Material in Hierarchal Sequential Report . Is there any solution for the same . Thanks in advance r
-
I just set up my Iphone and after doing so set up Icloud. Now I don't have any contacts in my Iphone. What happened to them?