TESTING A PROCEDURE, How to display the result????

my procedure is correct, my test statement processed but I want it to display the desc like 'Cancelled';, or no status available How?????
---below is my procedure--
CREATE OR REPLACE PROCEDURE status_sp
(p_basket IN bb_basket.idbasket%TYPE,
p_date OUT DATE,
p_desc OUT VARCHAR2)
IS
CURSOR cur_status IS
SELECT idstage, dtstage
FROM bb_basketstatus
WHERE idbasket = p_basket
ORDER BY dtstage DESC;
lv_stage_num bb_basketstatus.idstage%TYPE;
BEGIN
OPEN cur_status;
FETCH cur_status INTO lv_stage_num, p_date;
IF lv_stage_num = 1 THEN
p_desc := 'Submitted and received';
ELSIF lv_stage_num = 2 THEN
p_desc := 'confirmed, processed, sent to shipping';
ELSIF lv_stage_num = 3 THEN
p_desc := 'Shipped';
ELSIF lv_stage_num = 4 THEN
p_desc := 'Cancelled';
ELSIF lv_stage_num = 5 THEN
p_desc := 'Backordered';
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('No Status Available');
end;
DECLARE
lv_state DATE;
lv_dt VARCHAR2(20);
lv_txt VARCHAR2(20);
BEGIN
status_sp(5,lv_state,lv_dt);
dbms_output.put_line(lv_txt);
end;
Statement processed.
0.07 seconds

dbms_output.put_line(lv_txt);And where and when did you put a value into lv_txt?
Maybe you want
dbms_output.put_line(to_char(lv_dt, 'dd.mm.rrrr hh24:mi:ss'));
dbms_output.put_line(lv_state);
...and don't forget to turn on serveroutput:
set serverout on

Similar Messages

  • How to display the results in order by based on search value

    Hi All,
    how to display the results in the below order.
    CREATE TABLE TEST( SONGID  NUMBER, TITLE   VARCHAR2(200))
    INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK');
    INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA');
    INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA');     
    INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI');
    INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE');
    SELECT *FROM  TEST WHERE INSTR (TITLE, 'MADONNA') > 0
    output:
    SONGID     TITLE
    10     AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
    11     CICCONE, MADONNA (CA)
    12     DALLIN, MADONNA LOUISE/STOCK
    13     MADONNA
    14     MADONNA (A)/ AHMADZAI, MIRWAIS (C)
    15     MADONNA (CA)
    16     MIRWAIS AHMADZAI, MADONNA
    17     MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
    18     MADONNA (CA),CICCONE
    Expected output :
    13     MADONNA
    14     MADONNA (A)/ AHMADZAI, MIRWAIS (C)
    15     MADONNA (CA)
    18     MADONNA (CA),CICCONE
    ...if user searches with 'MADONNA' , I have to display the results like title starts with 'MADONNA' first then rest of the records.
    Please let me know is it possible to display the results in that order.
    Regards,
    Rajasekhar

    This may be a bit more accurate:
    SQL> SELECT *
      2  FROM   TEST
      3  WHERE  INSTR (TITLE, 'MADONNA') > 0
      4  ORDER  BY INSTR (TITLE, 'MADONNA')
      5           ,TITLE
      6  ;
                  SONGID TITLE
                      13 MADONNA
                      14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
                      15 MADONNA (CA)
                      18 MADONNA (CA),CICCONE
                      12 DALLIN, MADONNA LOUISE/STOCK
                      11 CICCONE, MADONNA (CA)
                      17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
                      16 MIRWAIS AHMADZAI, MADONNA
                      10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)

  • How to display the result of  excutions(insert/update/delete rows)

    Hello.
    Does anyone know how to display the result of scenario executions just like a scenario executions tab of package (insert/update/delete rows) in other screen (in the intergated operating platform for operators using http)
    In additional, I also like to show the hierarchy of scenario in the same view.
    So, I need the query using the information of the ODI repository.
    If it is possible, I also like to have the decription of the tables in the ODI repository.
    Can anyone tell me how can I get the information of the counts of excution?
    Thanks in advance.

    Hi,
    You can get that information from the API getPrevStepLog. Does it work for you?
    Download the last API reference manual from:
    http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/1013_support.html#docs

  • How to display the results of the grouping horizontally

    Hello,
    I still cannot understand what am I doing wrong when trying to display the results of the grouping horizontally. Here is the original thread: How to group report vertically
    In the Section expert, for Detail section, I check the box Format with Multiple columns. Under the Layout tab, I check Format groups with multiple columns and set the width of the column at 3.3 in. This should give me 3 columns for Landscape orientation.
    Now if I select Printing direction Down then Across, I just have the regular vertical grouping.
    If I check Across then Down, then I do get 3 columns, but all the records in the Detail section are also spread across first instead of staying in the column.
    There should be something else that I should do to get the display like this:
    Header1    Header2    Header3
    record11   record21   record31
    record12   record22   record32
    record13   record23   record33
    etc.            etc.            etc.
    Thank you.

    I'm not at all sure columns are gonna help here, as there is no way that I am aware of to tell Crystal to start a new column.
    The only way that I can think of to achieve what you are trying to accomplish is to do something like this:
    In your group header's Suppress formula, keep track of the first (/ next) three groups that you want to print, using something like (basic syntax):
    global grouplist(3) as string
    global groupcount as number
    groupcount = groupcount + 1
    grouplist(groupcount) = {db.GroupingField}
    ' The NextIsNull below implies End-of-Data...
    if groupcount = 3 or NextIsNull({db.GroupField}) then
      formula = false  ' print the group header
    else
      formula = true  ' suppress the group header
    end if
    Then, create three formula fields to get each value in grouplist().  The group header format will then show the three formula fields.  Underneath these three formula fields, add subreports, which will show the details for one specific group.  The subreports should have a parameter for which group's details to show.  Use the three formula fields as the link to the three subreports.
    In the group footer, clear out the grouplist() array, and set groupcount to zero.
    This report will take a while to run, because having three subreports next to each other makes it difficult for Crystal to determine page formatting.
    HTH,
    Carl

  • How to display the result in red

    **Report Builder 10.1.2.0.2**
    **ORACLE Server Release 10.1.0.4.2**
    **Oracle Procedure Builder 10.1.2.0.2**
    **Oracle ORACLE PL/SQL V10.1.0.4.2 - Production**
    **Oracle CORE     10.1.0.4.0     Production**
    **Oracle Tools Integration Services 10.1.2.0.2**
    select a.sr_no,to_char(a.sr_date,'DD.MM.YYYY') sr_date,a.sr_time,d.priority,d.location,c.so_no,to_char(c.so_date,'DD.MM.YYYY') so_date,c.so_time,
    regexp_replace(NUMTODSINTERVAL ( ABS ( ( TRUNC (c.so_date)+ TO_DSINTERVAL ('0 ' || c.so_time))- ( TRUNC (a.sr_date)+ TO_DSINTERVAL ('0 ' || a.sr_time)))
         , 'DAY'), '([+|-])0+(\d+)', '\1\2 days ') diff
    from sr_request1 a,so_trade b,so_order c ,service_requests d
    where a.id=b.SR_REQUEST1_ID
    and b.id=c.SO_TRADE_ID
    and a.sr_no=d.SR_NO
    and a.SR_DATE >= to_date(:date_from,'dd.mm.yyyy')
    and a.sr_date <= to_date(:date_to,'dd.mm.yyyy')
    SR NO SR DATE SR TIME LOCATION PRIORITY SO NO SO DATE SO TIME DIFF
    SR058339 28.01.2010 09:14:18 UPTOWN 5 2 SO058894 28.01.2010 09:15:25 +0 days 00:01:07.000000000
    hi iam having a report with the above query and when i generate i get the above result
    now what i have to do is i need to check the above result diff value(+0 days 00:01:07.000000000 ) with the priority_hdr table, the structure looks like this
    PRIORITY_TYPE PRIORITY_NUMBER LOG_LOCATION1
    Service Request 3 30
    Service Request 2 20
    if priority is 2 and diff (+0 days 00:01:07.000000000 ) is greater than 20 mins (LOG_LOCATION1 )than that row should display in red
    if priority is 3 and diff (+0 days 00:01:07.000000000 ) is greater than 30 mins (LOG_LOCATION1 )than that row should display in red
    like that it has to work out. how to do this process,where i need to place formula column for this. pls guide me

    function F_round_ABS_TO_DATE_c_so_time_ return boolean is
    begin
         if <priority is 2 and diff (+0 days 00:01:07.000000000 ) is greater than 20 mins (LOG_LOCATION1)>
    then
    srw.set_foreground_fill_color('red');
    srw.set_fill_pattern('solid');
    end if;
    return (TRUE);
    end;
    when i try this i am getting this error
    Error 103 at line 3, column 5
    Encountered the symbol "<" when expecting one of the following
    [ + - case mod new not null <an identifier>
    < a double quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute for all merge time timestamp interval date
    < a string literal with character set specification>
    <a number><a-single quoted sql string> pipe
    < an alternatively quoted string literal with character set specification>
    <an alternatively quoted sql string>
    function F_round_ABS_TO_DATE_c_so_time_ return boolean is
    begin
    if :priority = 2
         then
    srw.set_foreground_fill_color('red');
    srw.set_fill_pattern('solid');
    end if;
    return (TRUE);
    end;
    when i tried this it's woking out fine for :priority = 2 but i need to check the condition for diff whether it is greater than 20 mins how to write the code for it
    Edited by: user9093689 on Feb 11, 2010 6:06 PM

  • How to display the result of  Intermedia  text in html

    After defining the following statments:
    begin
    ctx_ddl.create_preference('COMMON_DIR','FILE_DATASTORE');
    ctx_ddl.set_attribute('COMMON_DIR','PATH','c:\temp');
    ctx_ddl.create_section_group('XML_GROUP','xml_section_group');
    ctx_ddl.add_zone_section('XML_GROUP', 'Order', 'Order');
    ctx_ddl.add_zone_section('XML_GROUP', 'currencyType', 'currencyType');
    create index myindex on xmltable(xml_text)
    indextype is ctxsys.context
    parameters ('datastore COMMON_DIR section group XML_GROUP');
    end;
    then I run the following SQL statement:
    select id,xmltext from xmltable
    where contains(xmltext,'156 within currencyType')>0;
    by the way the table xmltable is defined as :
    create table xmltable(id number primary key,xmltext CLOB);
    Now I want to display the querying result in html ,what should I do???

    If the query returns all of the information you require and it is (as the data model would suggest) in XML format, the obvious choice is to use an XSLT Style Sheet to render the XML data to a HTML document.
    There is plenty of information on XML and XSLT in the standard Oracle documentation but be warned, whilst XSLT is a reasonably well defined standard, it is a little complex and can take time to get used to. You will find a lot of books available on the subject.
    Dean

  • How to display the search result without reloading the whole page

    HI,
    I have separate fragments for Search Box to enter keyword and Search Result to display the result. Also I have different sections within the page to put these fragments. So how could I display the results without reloading the whole page.
    Also if I have next button in my search result area, how could I display the search results in next page without reloading all other sections present in our page. Please let me know if any service or idoc function present such that result could be shown in search result section without reloading whole page.
    Please let me know how to restrict page reload for every action within a page.
    Thanks,
    Ramesh
    Edited by: Ramesh_Est on May 27, 2010 3:14 AM
    Edited by: Ramesh_Est on May 27, 2010 8:39 PM

    This is default behaviour of the template of your space. You can create a new page template and than you can create a region for the search results.
    Or you can create a custom taskflow were you use the webcenter taskflows to search for the space.
    Take a look at this white paper:
    Extending webcenter spaces: http://www.oracle.com/technology/products/webcenter/pdf/owcs_r11_extend_spaces_wp.pdf
    and this one:
    Customizing site templates: http://www.oracle.com/technology/products/webcenter/pdf/owcs_ps1_site_template_wp.pdf
    Edited by: Yannick.O on 13-Apr-2010 02:32

  • DbGetQuery = How to get the results to display?

    I am using the following
    sqldata <- dbGetQuery(con," select sysdate from dual")
    How do I get the result to display?
    summary(sqldata) displays the values
    if I do dbSendQuery then fetch show the results
    help(dbSendQuery) and help(dbGetQuery) go to the same page! dbSendQuery
    The documentation says dbGetQuery will connect, get the records and clear; maybe the clear happens before the display?!

    Hello Amin,
    Here is the way to display the result from the query you provided:
    Assign the result of the query to object 'sqldata':
    R> sqldata <- dbGetQuery(con," select sysdate from dual")
    Type the object name at the R prompt:
    R> sqldata
                  SYSDATE
    1 2014-04-28 14:45:14
    Sherry

  • How to Read the one Source Column data and Display the Results

    Hi All,
         I have one PR_ProjectType Column in my Mastertable,Based on that Column we need to reed the column data and Display the Results
    Ex:
    Pr_ProjectType
    AD,AM
    AD
    AM
    AD,AM,TS,CS.OT,TS
    AD,AM          
    like that data will come now we need 1. Ad,AM then same we need 2. AD also same we need 3. AM also we need
    4.AD,AM,TS,CS.OT,TS in this string we need AD,AM  only.
    this logic we need we have thousand of data in the table.Please help this is urgent issue
    vasu

    Hi Vasu,
    Based on your description, you want to eliminate the substrings (eliminated by comma) that are not AD or AM in each value of the column. Personally, I don’t think this can be done by just using an expression in the Derived Column. To achieve your goal, here
    are two approaches for your reference:
    Method 1: On the query level. Replace the target substrings with different integer characters, and create a function to eliminate non-numeric characters, then replace the integer characters with the corresponding substrings. The statements
    for the custom function is as follows:
    CREATE FUNCTION dbo.udf_GetNumeric
    (@strAlphaNumeric VARCHAR(256))
    RETURNS VARCHAR(256)
    AS
    BEGIN
    DECLARE @intAlpha INT
    SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric)
    BEGIN
    WHILE @intAlpha > 0
    BEGIN
    SET @strAlphaNumeric = STUFF(@strAlphaNumeric, @intAlpha, 1, '' )
    SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric )
    END
    END
    RETURN ISNULL(@strAlphaNumeric,0)
    END
    GO
    The SQL commands used in the OLE DB Source is like:
    SELECT
    ID, REPLACE(REPLACE(REPLACE(REPLACE(dbo.udf_GetNumeric(REPLACE(REPLACE(REPLACE(REPLACE([ProjectType],'AD,',1),'AM,',2),'AD',3),'AM',4)),4,'AM'),3,'AD'),2,'AM,'),1,'AD,')
    FROM MyTable
    Method 2: Using a Script Component. Add a Derived Column Transform to replace the target substrings as method 1, use Regex in script to remove all non-numeric characters from the string, add another Derived Column to replace the integer
    characters to the corresponding substring. The script is as follows:
    using System.Text.RegularExpressions;
    Row.OutProjectType= Regex.Replace(Row.ProjectType, "[^.0-9]", "");
    References:
    http://blog.sqlauthority.com/2008/10/14/sql-server-get-numeric-value-from-alpha-numeric-string-udf-for-get-numeric-numbers-only/ 
    http://labs.kaliko.com/2009/09/c-remove-all-non-numeric-characters.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • How to access oracle in javabeans and display the result in jsp

    In my project ,i use the javabean to access the database and do the calculations and i display the result in the jsp page,,,
    any body can help me with your precious codes
    kodi...

    any body can help me with your precious codesStepped in the wrong place, try reading something on JDBC.

  • How to display the proxy settings for a specific group of servers in an OU ?

    Hi,
    Can anyone here please assist me in how to display the value of Proxy server settings from the computers in a specific OU member ?
    $Computers = Get-ADComputer -Filter * -SearchBase "OU=Terminal Servers,OU=Servers,DC=domain,DC=com" | Where-Object { Test-Connection $_.Name -Count 1 -Quiet }
    ForEach ($Computer in $Computers) {
    | Export-csv "C:\Proxy-Setting-Results.csv" -Append -NoTypeInformation -UseCulture
    I've done similar script for some other task but not sure how to do this for Proxy setting.
    Thanks.
    /* Server Support Specialist */

    Proxy settings are not set in Active Directory
    The below code works for 2003 servers and Win XP
    $colItems = get-wmiobject -class "Win32_Proxy" -namespace "root\CIMV2" `
    -computername $env:computername
    foreach ($objItem in $colItems) {
    write-host "Caption: " $objItem.Caption
    write-host "Description: " $objItem.Description
    write-host "Proxy Port Number: " $objItem.ProxyPortNumber
    write-host "Proxy Server: " $objItem.ProxyServer
    write-host "Server Name: " $objItem.ServerName
    write-host "Setting ID: " $objItem.SettingID
    write-host
    You can try checking the registry values- Works in 2008 + and Windows 7
    Get-Item 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'
    or use netsh
    netsh winhttp show proxy -r <remotemachinename>
    Regards Chen V [MCTS SharePoint 2010]

  • How to display sqlplus result in java?

    I want to call sqlplus to execute some sql commands in java,but how can i print the result of sqlplus?
    In java code ,i call sqlplus like:
    Process p;
    //execute the command
    p = Runtime.getRuntime().exec(commandString);
    //print return result of the command
    InputStream inputStream = p.getInputStream();
    How to display the execution result?
    Edited by: Yi on Feb 26, 2012 11:41 PM

    You can use ProcessBuilder. This code launches sql*plus and runs the script in the 'filename' variable. It displays the results in NetBeans console.
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.File;
    import java.util.Map;
    public class test1 {
        public static void main (String args []) {
            test_script();
        public static void test_script () {
            String fileName = "@test_table.sql";
            String sqlPath = "E:\\";
            String sqlCmd = "sqlplus";
            String arg1   = "user/password@sid"; -- plug in your user, password and db name
            String arg2   = fileName;
            try {
                String line;
                ProcessBuilder pb = new ProcessBuilder(sqlCmd, arg1, arg2);
                Map<String, String> env = pb.environment();
                env.put("VAR1", arg1);
                env.put("VAR2", arg2);
                pb.directory(new File(sqlPath));
                pb.redirectErrorStream(true);
                Process p = pb.start();
              BufferedReader bri = new BufferedReader
                (new InputStreamReader(p.getInputStream()));
              BufferedReader bre = new BufferedReader
                (new InputStreamReader(p.getErrorStream()));
              while ((line = bri.readLine()) != null) {
                System.out.println(line);
              bri.close();
              while ((line = bre.readLine()) != null) {
                System.out.println(line);
              bre.close();
              System.out.println("Done.");
            catch (Exception err) {
              err.printStackTrace();
    }Here is the contents of the script placed at E:\\test_table.sql
    Prompt drop TABLE ANOTHER_TEST;
    DROP TABLE ANOTHER_TEST CASCADE CONSTRAINTS
    Prompt Table ANOTHER_TEST;
    CREATE TABLE ANOTHER_TEST
      BATCH_SEQ             NUMBER,
      BATCH_GROUP_ID        NUMBER,
      STATUS_FLAG           VARCHAR2(30 BYTE),
      OBJ_BEING_PROCESSED   VARCHAR2(80 BYTE),
      BATCH_RUN_START_DTTM  DATE,
      BATCH_RUN_END_DTTM    DATE,
      CREATE_DTTM           DATE,
      CREATE_USER           VARCHAR2(30 BYTE),
      UPDATE_DTTM           DATE,
      UPDATE_USER           VARCHAR2(30 BYTE)
    LOGGING
    NOCOMPRESS
    NOCACHE
    PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT )
    MONITORING
    COMMENT ON TABLE ANOTHER_TEST IS 'This is a test table.'
    EXIT
    /

  • How to see the result

    hi every body...
    i want to get the result of any table..
    for ex: select * from dept;
    the o/p should be like(10~Accounts~new york)
    for this i wrote this code.... it run sucessfully;
    my prob is how to see the Result..
    declare
    tn varchar2(35);
    sqlstmt varchar2(2000);
    rc sys_refcursor;
    begin
    tn := '&tn';
    sqlstmt := 'select * from '||tn;
    open rc for sqlstmt;
    end;
    post u r comments,Hints and suggestion...

    post u r comments,Hints and suggestion...
    SQL> var rc refcursor
    SQL> begin
      2     open :rc for  'select * from &tn';
      3  end;
      4  /
    Enter value for tn: emp
    old   2:    open :rc for  'select * from &tn';
    new   2:    open :rc for  'select * from emp';
    PL/SQL procedure successfully completed.
    SQL> print rc
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SPENCER    CLERK           7902 17-DEC-80        800                    20
          7499 VERREYNNE  SALESMAN        7698 20-FEB-81       1600        300         30
          7521 VAN WIJK   SALESMAN        7698 22-FEB-81       1250        500         30
          7566 MAINGUY    MANAGER         7839 02-APR-81       2975                    20
          7654 KISHORE    SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BARRY      MANAGER         7839 01-MAY-81       2850                    30
          7782 BOEHMER    MANAGER         7839 09-JUN-81       2695                    10
          7788 PADFIELD   ANALYST         7566 09-DEC-82       3000                    20
          7839 SCHNEIDER  PRESIDENT            17-NOV-81       5500                    10
          7844 GASPAROTTO SALESMAN        7698 08-SEP-81       1500          0         30
          7876 CAVE       CLERK           7788 12-JAN-83       1100                    20
          7900 CLARKE     CLERK           7698 03-DEC-81        950                    30
          7902 JAFFAR     ANALYST         7566 03-DEC-81       3000                    20
          7934 ROBERTSON  CLERK           7782 23-JAN-82       1430                    10
           109 JOMAR                                                                   30
          8800 VISWARAYAR INTERN          7934 03-OCT-82          0                    10
    16 rows selected.
    SQL> Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Custom Search portlet : how to sort the result in sequence (Portal 10.1.4)

    With a Custom Search portlet how to Sort the Result By Sequence. i.e. by respecting arrangements of the items in the page of contents?
    Actually the Results Options "Order By" are : Create Date, Author, Creator, Date Updated, Display Name, Last Update by, Publish Date, Score.
    Is there an action to add the "Sequence" Order By result Option?
    Great thanks for your kind help.
    Best regards

    No, I agree that it is functionality that should be added to the product, but it
    is not a bug because it was not written to do this.
    It is a short coming of the product.
    Cheers,
    Ersan

  • How to access the Result of an fileReference request ?

    Hello,
    I have adjusted this example ( http://cookbooks.adobe.com/post_Uploading_files_from_Flex_using_PHP-5241.html ) of uploading an Image to an Server.
    But the Problem i have is that i wanted to return from the php file some informations for example if the image is really uploaded.
    Does someone know how to read the result that comes in an xml format in actionscript ?
    PHP file:
    $tempFile = $_FILES['file']['tmp_name'];
    $fileName = $_FILES['file']['name'];
    $fileSize = $_FILES['file']['size'];
    $upload = move_uploaded_file($tempFile, "./" . $fileName);
    if(!$upload) {
    echo "<failure>"."upload failed"."</failure>";
    Thank you,
    Zombiecook

    Hi,
      if you schedule the job then you can create the spool..
      But if you want to create a spool while executing in foreground...
      Then use this code..before calling the ALV FM..
      DATA: DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    DATA: PARAMS LIKE PRI_PARAMS.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LOCL'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'First NEW-PAGE PRINT ON'
                RELEASE               = 'X'
                IMMEDIATELY           = ' '
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
      WRITE / 'First Spool'.
    ENDIF.
    Thanks,
    Naren

Maybe you are looking for

  • WebADI: How to find out which integrator executed the upload PL/SQL program

    Hi, I understand that we can create a integrator to upload data to EBS and execute a PL/SQL program. Is there any way to find out which INTEGRATOR executed this PL/SQL program? Thanks. Regards

  • Go to a specific byte in a field ?

    I know how to go to a specific field on a Form by doing go_item. My question is, can I go to a specific byte in the field? Say I want to go to the place in the field where the value entered in it ends. Is there a way to do this? Thanks

  • Custom Order of Pictures not accepted

    Hi to all! It happen to me now on a regular basis. After ordering and pre-editing of newly imported files in my first 'neutral' project I drag them in groups into other existing projects. Now I would expect that the new pictures will than appear at t

  • NW CE7.1 can't start,who can help me?

    CE7.1 Setup on Microsoft Visual PC2007, and allocate memery 2.5G. OS:windows2003 server SP1 SAP CE: SDN_Preview_SR_5_CE71 trc file: "E:\usr\sap\CE4\J00\work\dev_server0", trc file: "E:\usr\sap\CE4\J00\work\dev_server0", trc level: 1, release: "710" s

  • I can't find Premiere Pro at the Creative Cloud

    I downloaded the Creative Cloud and i have the option to download the limited apps, but i can't find premiere. why is that so? please help!