Urgent: scripts

hi to all,
i need a help in scripts,
how to copy script form between two servers.
Thanks& Regards
Kranthi Revuri

Hello Kranthi,
If you want to move the form to other server for instance From development to quality you have to contact your basis team to move the corresponding transports to the other system i.e your target system.
If you have transport path and if you have authorizations
Move transports using
RSTXR3TR EXPORT
and IMPORT tranpsorts
If you want to copy between clients you can follow the steps given by other's in this thread.
Reward if helps.
Thanks,
krishna

Similar Messages

  • Hi urgent script invoice

    bank account value is not printing in output  even i am not finding data in t012k table.i am having doubt
    that i don't have data in database when i checked out the database table.they have written select query like following mine support project
    FORM HARD_CODE_NON_SECURITIZED_BANK.
      IF VBDKR-BUKRS = '4242' AND VBDKR-WAERK = 'EUR'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REC29'.
      ELSEIF VBDKR-BUKRS = '4230' AND VBDKR-WAERK = 'EUR'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REC24'.
      ELSEIF VBDKR-BUKRS = '4230' AND VBDKR-WAERK = 'USD'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REC30'.
      ELSEIF VBDKR-BUKRS = '4220' AND VBDKR-WAERK = 'USD'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REC31'.                        "4
      ELSEIF VBDKR-BUKRS = '4220' AND VBDKR-WAERK = 'EUR'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REC25'.
      ELSEIF VBDKR-BUKRS = '4210' AND VBDKR-WAERK = 'USD'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REC27'.
      ELSEIF VBDKR-BUKRS = '4210' AND VBDKR-WAERK = 'EUR'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REC26'.                         "7
      ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'USD'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REUSD'.
      ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REC28'.
      ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'OPR35'.                          "10
      ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'USD'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'OPR30'.
      ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'GBP'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'OPR31'.
      ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'OPR32'.                          "13
      ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REC21'.
      ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'OPR33'.
      ELSEIF VBDKR-BUKRS = '4202' AND VBDKR-WAERK = 'EUR'.
        SELECT SINGLE * FROM T012K
               WHERE BUKRS = VBDKR-BUKRS
               AND   HBKID = KNB1-HBKID
               AND   HKTID = 'REC23'.                          "16
      ENDIF.

    hi,
    check this it may help you......
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
           EXPORTING
    *    CLIENT                  = 001
            DATE                    = sy-datum
             FOREIGN_CURRENCY        = wa1-WAERS " here you need to declare your foreign currency i.e USD
             LOCAL_CURRENCY          = TCURR-FCURR
             FOREIGN_AMOUNT          = wa1-DMBTR " here you need to declare your amount field.
    *    RATE                    = tcurr-ukurs
            TYPE_OF_RATE            = 'M'        " check this also the average rate
    *    READ_TCURR              = 'X'
          IMPORTING
            EXCHANGE_RATE           = tcurr-UKURS
    *    FOREIGN_FACTOR          =
            LOCAL_AMOUNT            = wa1-TOTAL  " this is the field where the converted amt has to be displayed.
    *    LOCAL_FACTOR            =
    *    EXCHANGE_RATEX          =
    *    FIXED_RATE              =
    *    DERIVED_RATE_TYPE       =
    *  EXCEPTIONS
    *    NO_RATE_FOUND           = 1
    *    OVERFLOW                = 2
    *    NO_FACTORS_FOUND        = 3
    *    NO_SPREAD_FOUND         = 4
    *    DERIVED_2_TIMES         = 5
    *    OTHERS                  = 6
    IF SY-SUBRC <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    rgds
    anver

  • SSIS/Script Task/ VB 2008 Help Urgent...

    Hi Guys, 
    Simple Script Task, just rename Excel tab, here is my code...
    Imports System
    Imports System.Data
    Imports System.Math
    Imports Microsoft.SqlServer.Dts.Runtime
    Imports Microsoft.Office.Interop.Excel
    Imports System.IO
    Imports System.Text
    <System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")> _
    <System.CLSCompliantAttribute(False)> _
    Partial Public Class ScriptMain
    Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    Enum ScriptResults
    Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    End Enum
    Public Sub Main()
    Dts.VariableDispenser.LockForRead("User::FileName") ' File Name Variable
    Dim variablesList As Variables
    Dts.VariableDispenser.GetVariables(variablesList)
    'Dim SFileName As String
    'SFileName = variablesList("User::Filename").Value.ToString
    ' Dim vars As Variables 'New Added For Variable
    Dim oMissing As Object = System.Reflection.Missing.Value
    Dim xl As New Microsoft.Office.Interop.Excel.ApplicationClass()
    Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
    Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
    'Dts.VariableDispenser.LockForRead("Filename") 'New Added For Variable
    'Start For Variable
    'Dim File As String 'New Added For Variable
    'File = CType(vars("Filename").Value, String) 'New Added For Variable
    'MsgBox(Prompt:="Filename")
    'Dim laPath As String = "C:\Excel\ABC_dr_daily_lf_10-07-14.xls" 'My File Name
    Dim lapath As String = variablesList("User::FileName").Value.ToString 'New Added For Variable
    'MsgBox(Prompt:="Filename")
    xlBook = DirectCast(xl.Workbooks.Open(laPath, oMissing, oMissing, oMissing, oMissing, oMissing, _
    oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, _
    oMissing, oMissing, oMissing), Workbook)
    xlSheet = DirectCast(xlBook.Worksheets.Item(1), Worksheet)
    xlSheet.Name = "data"
    xlBook.Save()
    xl.Application.Workbooks.Close()
    Dts.TaskResult = ScriptResults.Success
    End Sub
    End Class
    Finally I intalled MS Excel 2007 on my Dev Server. Here is the error that I am receiving....
    Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: 
    Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application
    '. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}'
    failed due to the following error: Library not registered. 
    Please help me, this is very urgent.
    Thank You.

    No I didn't upgrade my SQL Server. OMG this error making me ehhhhhh. 
    Here I solve my problem. 
    RUN>REGEDIT>  and look for "Office.Interop.Excel" and delete the old version. I am using Excel 2007, 14.0. 
    It solve my Problem. 
    Thanks All.

  • How to Fix the row in sap script, its urgent......

    Hi Experts,
    first i explain my sap script, i have print void check in my script client give readymade format means box are there, lines are there. i have to fix in box and line data form database table. everthing is working fine. i got all data. i have total 6 window in my script .but i have one issue  In my sap script in header window total five rows... like below
    Check voucher no:8888
    check No: 1234
    Date:1/28/2007
    Bank:xyz
    Batch no: 5678
    now sometime check voucher is balnk....
    Check voucher no: BLANK/NULL
    check No: 1234
    Date:1/28/2007
    Bank:xyz
    Batch no: 5678
    because of that all rows are move up side and all window also move up side and so script not fix to the box and line all data are seen not perfectly... so guru`s how to fix the row and window in script....
    its urgent...
    Waiting for ur reply
    Thanks & regards
    Jigar

    Hi,
    Follow the below steps . Definately your issue will bve resolved.
    Let us suppose you are printing following fields
    PH &v_text&
    PH &v_text1&
    PH &v_text2&
    you will get the output as you expected.
    and if you have any conditions  for these fileds
    /: if v_text is not initial.
    PH &v_text&
    /: endif
    PH &v_text1&
    PH &v_text2&
    if you have data in each field then you will get output as expected .
    But when v_text is initial.
    the data will be moved up wnhich is happening in your case.
    so what you need to do is?
    /: if v_text is not initial.
    PH &v_text&
    /: else
    PH  (Here you need to mention empty line with same paragraph format
    /: endif.
    PH &v_text1&
    PH &v_text2&
    Reward points if useful
    Regards,
    Nageswar

  • Calling unix shell script from oracle stored procedure.. urgent!!!!!!!!!!!!

    Hi,
    i havea requirement where in i should be able to call my shell script through oracle stored procedure.i tried the following way..but iam unable to get the result.please find the details below.
    new.sh - my shell script - lctfile (LCTFILE) is the input pa
    v_config_file=`find $FND_TOP -name LCTFILE
    FNDLOAD apps/s0ccer@$dxbs1 0 Y DOWNLOAD $v_config_file /home/bir4163/RPT33/bin/menu.ldt MENU MENU_NAME='AR_NAVIGATE_GUI'
    if [ $? != 0 ];then
    echo "$DATE $0 FNDLOAD DOWNLOAD Failed!" | tee -a $LOG_FILE
    else
    echo "SUCCESS" | tee -a $LOG_FILE
    fi
    CREATE OR REPLACE PROCEDURE test_dbms_scheduler
    AS
    v_text VARCHAR2 (255) := 'AR_NAVIGATE_GUI';
    BEGIN
    DBMS_OUTPUT.put_line ('I am in Procedure');
    DBMS_SCHEDULER.create_job (
    job_name => 'test_dbms_scheduler',
    job_action => '/home/bir4163/RPT33/bin/new.sh',
    number_of_arguments => 1,
    job_type => 'executable',
    start_date => SYSDATE,
    repeat_interval => 'FREQ=SECONDLY; INTERVAL=1',
    enabled => FALSE,
    auto_drop => FALSE,
    comments => 'run shell script'
    DBMS_SCHEDULER.set_job_argument_value (job_name => 'test_dbms_scheduler',
    argument_position => 1,
    argument_value => v_text);
    DBMS_SCHEDULER.enable ('test_dbms_scheduler');
    DBMS_OUTPUT.put_line ('I am back in Procedure');
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line (SQLCODE || SQLERRM);
    END;
    But iam unable to test it as i do not have permissions to access dbms_scheduler.can anybody tell me how to solve this using DBMS_PIPE with a sample code.
    please do help its very urgent
    thanks
    ramya

    Hi,
    Register your Shell Script as a concurrent program, Executable execution method "Host", then use fnd_request.submit_request to submit the program.
    Regards,
    Andries

  • Issue in running eCATT Scripts  - Help required very urgently

    Dear All,
    We are running the eCATT scripts from Solman 7.0 by connecting it to ERP system R/3 4.6C. While running the scripts, we are facing some issue.
    1. If we try to run the scripts then those are getting failed. The same scripts if we run after some time with out changing any code then those are running fine.
    We are frequently facing this probelm.
    Could you please let me know the solution. Your help is really appreciated.
    Thanks,
    Mahendra
    Moderator Message: Urgently word is not allowed in this forum. Open a new thread without the "priority" word.
    Edited by: kishan P on Sep 6, 2010 11:18 AM
    Edited by: kishan P on Sep 6, 2010 11:21 AM

    Dear Ananth,
    Scripting is getting failed at different lines of code at different runs.
    Thanks,
    Mahendra

  • Urgent help in script

    Hi all,
    I have a script with 2 pages first and next
    i have two main windows 00 and 01 per page.
    I have records like
    type mat matdes
    a 1 abc
    b 2 abcd
    a 3 abcde
    b 4 bggu
    I want to display in my script as
    type mat matdes --inside a box
    a 1 abc
    a 3 abcde
    type mat matdes --inside a box.
    b 2 abcd
    b 4 bggu
    my requirement is
    1)i want a box for type mat matdes headings
    2) i wnat to display everything in 1 window i.e main 00 or main 01,
    i.e i dont type mat matdes in mianwindow 00
    and
    b 2 abcd
    b 4 bggu
    in mainwindow 01.
    or
    i dont type mat matdes in mianwindow 01 of page first
    and
    b 2 abcd
    b 4 bggu
    in mainwindow 00 of page next.
    mY CODE IS LIKE
    /E ITEM
    /: PROTECT
    /: IF &TYPE1& NE ' '.
    P TYPE Material Description
    /: ENDIF.
    Q &TYPE1& &MATNR& &MAKTX&
    /: ENDPROTECT
    tHIS IS MY DRIVER PROGRAM.
    LOOP AT ITAB.
    CLEAR TYPE.
    AT NEW TYPE.
    TYPE1 = ITAB-TYPE.
    ENDAT.
    WRITE_FORM
    ITEM
    END LOOP.
    WHAT I SEE IN MY OUTPUT IS,
    1)i DON'T HOW TO WRITE THE CODE FOR BOX, BECAUSE THE YPOS IS DETERMINED BASED ON THE NO OF RECORD FOR EACH TYPE,
    2)i GET THE PROTECT END PROTECT WORKING FOR MAIN WINDOW 00 TO MAIN WINDOW 01 IN FIRST PAGE,
    BUT IT DOESN'T WORK FOR MAIN WINDOW 01 OF FIRST PAGE TO MAIN WINDOW OF WINDOW 00 OF NEXT PAGE AND
    ALSO IT DOESN'T WORK FROM MAIN WINDOW 00 TO MAIN WINDOW 01 OF NEXT PAGE.
    the number of items for type may vary some times type a has 4 and some times 5 .
    so it varies.
    Any help regarding would be greatly appreciated and its bit urgent.
    Thanks in advance.

    Hi all,
    Please read carefully,
    i know how to write box,
    I need box in mainwindow multiple times.
    type  mat mat des  this box
    record1
    record2.
    type mat matdes des again this in box.
    record3
    record4
    record5.
    LET ME KNOW IF IAM NOT CLEAR.
    I DON'T KNOW THE Y POS OF THE BOX BECAUSE OF VARIABLE NO OF RECORDS.
    IS THERE A WAY TO KNOW THE YPOS DURING RUNTIME.
    THANKS

  • Urgent help need on  eCATT script

    Hi
    How to use eCATT script tool with transaction SECATT.
    urgent please help.
    regards,
    R K

    Hello Rao
    If you are using a "normal" transaction without any controls (like ALV lists, trees) then you can use the recording pattern <b>TCD REC</b> <i>(TCD (Record)</i>).
    In transaction SECATT give a name for your test script (e.g. Z_XD01 or Z_CREATE_CUSTOMER). Within the test script choose pattern TCD REC and enter the transaction you want to record (e.g. XD01).
    After finishing the recording you will see the following line in the eCATT editor:
    <b>TCD ( XD01 , XD01_1 ).</b>
    Meaning:
    - TCD = recording pattern
    - XD01 = recorded transaction
    - XD01_1 = eCATT interface for the transaction
    Next double-click on the eCATT interface name (here: XD01_1). Next to the editor you will see the interface displayed as tree and as ALV list. Here you can parameterize your transaction.
    Please note that you should preferably <b>use the highest available SAP release for eCATT recording</b>. If, for example, your business system has release 6.20 and you have a 6.40 system available record the eCATT on the 6.40 system via RFC.
    Regards
      Uwe

  • Command line parameters and Shell Script -- URGENT

    Hi folks,
    I am facing some problem in the Shell script and the command line parameter.
    The scenario is -- I am picking a file from a directory, whose path is <b>/interfaces/xid/receive/filename.dat</b>
    I have to encrypt filename.dat and move it to another folder, whose path is <b>/interfaces/xid/send</b>. So, the encrypted file will reside in the <b>send</b> directory.
    Now, I don't want to hardcode the new path, where the encrypted file has to be moved. Please let me know how to achieve this. Please consider this as urgent.
    Have a look at the command line in the "before message processing"  -- <b>/interfaces/xid/receive/xi_decompress.sh  /interfaces%F</b>
    Have a look at the shell script for the same --
    #!/bin/sh
    Setup environment variables
    COMMPRESS_DIR=/interfaces/software/commpress
    export COMMPRESS_DIR
    LOG_DIR=/interfaces/software/commpress/log/
    export LOG_DIR
    IN_FILE=$1
    export IN_FILE
    Find the directory where the unencrypted file is deposited
    IN_FILE_DIR=`dirname $1`
    export IN_FILE_DIR
    Make sure the working directory is where the unencrypt.key is...
    cd $COMMPRESS_DIR
    encrypt the file
    if [ `uname` = "HP-UX" ]
    then
       find $IN_FILE | $COMMPRESS_DIR/compx $IN_FILE_DIR logpath=$LOG_DIR
    else
       find $IN_FILE | $COMMPRESS_DIR/compx-sun $IN_FILE_DIR logpath=$LOG_DIR
    fi
    Get the result of the encryption
    RET_CODE=$?
    Check decryption result
    If error (retuen code <> 0), create an error log file in the
    same directory as the input file.
    if [ $RET_CODE -ne 0 ]
    then
        PREFIX="Decryption"
        DATE_TIME=$(date +%Y%m%d_%H%M%S%N)
        SUFFIX="err"
        FILENAME=$/$_$.$
        echo "Decryption Error log"        >$FILENAME
        echo "DATE_TIME:  $"   >>$FILENAME
        echo "DIRECTORY:  $" >>$FILENAME
        echo "FILE:       $"     >>$FILENAME
        echo "ERROR CODE: $"    >>$FILENAME
    fi
    exit $RET_CODE
    What else I need to add in this piece of code? Urgent help !!
    Thanks a lot in advance.
    Neetesh

    Hi Satish,
    I was able to figure that out, that we need to hard code the path as the 2nd parameter.
    But I guess there is a way out in Unix where we can handle this situation, where we are not willing to hard code.
    Anyways, thanks a lot for your input .. -:)
    Cheers,
    Neetesh

  • How to enable java script in my Firefox browser? help its urgent.

    how to enable java script in my Firefox browser? help its urgent.

    go to '''about:config''' and search for '''javascript.enabled''' change its value to '''true'''
    *[http://kb.mozillazine.org/About:config about:config]

  • Very Urgent : How to retrieve a SAP Script

    Hi Guys it is very urgent...I over wrote a form using the SCC1 transaction....I copied it from the wrong client into my development client...So it overwrote my Script..Is there any way i can retrieve it...

    go to your quality system download your script by using program RSTXSCRP.
    then upload it into your devlopment system.

  • Script for color space conversion RGB to CMYK - URGENT Help Wanted

    Excuse my ignorance with the basic nature of this question, I don't use InDesign, but I do have a pressing problem regarding it.
    My book publisher has just emailed to say that my photography book has been set for the printers in InDesign and the photographs have AdobeRGB color space (which was what I was aksed to send.) The printer needs the images to be in CMYK. The publisher said that he was "pretty sure Adobe Acrobat converts the InDesign files to CMYK" and that he has sent the printer RGB images in the past and they "came out OK". He said that if this will not work, he needs to convert all of the images separately to CMYK.
    Can you help with the following:
    1. Is he right about the above - can Adobe Acrobat convert the files?
    2. Can anyone offer me a script that will convert all of the images in InDesign to CMYK? or will he need to change them individually?
    Thanks for any suggestions with this urgent request.
    Stephen

    1. Acrobat can convert.
    2. No need for a script, if the printer needs CMYK, you can export a CMYK pdf.
    3. To get the highest quality conversions, you might want to do it in Photoshop.
    4. If the images are color managed and the printer has a modern work-flow a color managed RGB PDFX-4 pdf is probably the best way to go...
    Harbs

  • URGENT: Where are the upgrade scripts for Tier1 ?

    I found the upgrade scripts for 3.0.6/3.0.7 to 3.0.8 for Windows NT and Solaris here on Technet, but where are the upgrade scripts for the Tier 1 platforms ? I urgently need the ugrade script for Tru64. Please help.

    Sorry for the confusion - the page should be updated very
    shortly. In the meantime, you can download the 3.0.6/3.0.7/3.0.8
    to 3.0.9 scripts for NT/2000 at:
    http://download.oracle.com/otn/nt/portal/p1831355_309_WINNT.zip
    and 3.0.6/3.0.7/3.0.8 to 3.0.9 scripts for UNIX at:
    http://download.oracle.com/otn/solaris/portal/p1831348_309_UNIX.z
    ip
    Note that these are the same scripts that are accessible from
    Metalink (NT/2000 - Patch:1831355) and (UNIX - Patch:1831348)

  • Urgent plz how to find the script

    Hi,
    I know the program name:zapp002.
    and how can i find the script from that program.
    thanks,
    srii.

    Hi.
    Please have a look into our rules of engagement. Don't use words like 'urgent' in your subject. And pleased refrain from using 'SMS language'.
    I will lock this thread,
    Jan Stallkamp

  • Pl/sql script needed - Urgent

    Hi All,
    I have one problem. I have to populate a table having rows more than 500000000 $ through PL/SQL.
    For getting the idea...I have created one dummy table " T1 " with column " X " having 9 rows and
    values in source are -
    row 1 = 10
    row 5 = 20
    row 8 = 30
    Other rows(2, 3, 4, 6, 7, 9) are null.
    I want to carry fwd the values so the values in the same table will come like -
    row 1, 2, 3, 4 = 10
    row 5, 6 ,7 = 20
    row 8,9 = 30
    For resolving the problem i have written a procedure :
    DECLARE
    CURSOR cur_adb IS SELECT * FROM t1 ;
    var cur_adb%rowtype ;
    var1 number(10) ;
    BEGIN
    OPEN cur_adb ;
    LOOP
    FETCH cur_adb INTO var ;
    DBMS_OUTPUT.PUT_LINE ( 'x=') ;
    EXIT WHEN cur_adb%ROWCOUNT > 10 ;
    If var is not null
    then update t1
    set x = var ;
    var1 := VAR;
    else update t1
    set x = var1 ;
    exit;
    end if;
    END LOOP;
    CLOSE cur_adb ;
    END ;
    But it is giving me wrong result as it is fetching more rows at a time.
    Pls. send me the correct Pl/SQL script as soon as possible.
    Note: You can directaly send the procedure to [email protected] .
    Thanks & Regs,
    Ashish

    Hello,
    I got the solution by adding on more column in the source table :
    source table : T1 -> x x_id
    10 1
    2
    3
    4
    20 5
    6
    7
    30 8
    9
    The procedure is :
    SQL> DECLARE
    2 CURSOR cur_adb IS SELECT x, x_id FROM t1 ;
    3 var number(10) ;
    4 var1 number(10) ;
    5 var2 number(10) ;
    6 BEGIN
    7 OPEN cur_adb ;
    8 LOOP
    9 FETCH cur_adb INTO var , var2 ;
    10 If var is not null
    11 then var1 := VAR;
    12 elsif var is null
    13 then update t1
    14 set x = var1
    15 where x_id = var2;
    16 end if;
    17 DBMS_OUTPUT.PUT_LINE ('The value of x=' || var) ;
    18 Exit when cur_adb%ROWCOUNT > 9 or cur_adb%NOTFOUND ;
    19 END LOOP;
    20 CLOSE cur_adb ;
    21 END ;
    22 /
    The value of x=10
    The value of x=10
    The value of x=10
    The value of x=10
    The value of x=20
    The value of x=20
    The value of x=20
    The value of x=30
    The value of x=30
    The value of x=30
    PL/SQL procedure successfully completed.
    Thanks everyone for helping me........
    Regards,
    Ashish

Maybe you are looking for

  • IPhone won't show up in iTunes after downloading new software

    So I downloaded some secure server-type crap so I can work from home (Healthcare industry) and every since then I can't use my iTunes, it won't recognize my phone. I need the software to work, obviously, but I need my iTunes to work. Can the two coex

  • Background and float issues

    I have some side nav items that are not showing the background color. Can't figure out why. http://www.aptcoweb.com/dev/aptcoFluid/ Also, 3 divs near the bottom with the class of col are not floating. What's wrong there?

  • Is it possible to save part of a song in Garageband?

    Hello, I am just wondering if there is a way to save part of a song in Garageband. I used some arrangements to a song I'm using. I labeled one part, "Part 1," the next part, "Part 2," the next part, "Part 3," etc. I want to save each part individuall

  • Xorg fails with "/usr/lib/libexpat.so.1: invalid ELF header"

    After upgrade, Xorg fails with the following message: (EE) AIGLX error: dlopen of usr/lib/xorg/modules/dri/i965_dri.so failed (/usr/lib/libexpat.so.1: invalid ELF header) (EE) AIGLX: reverting to software rendering openbox: error while loading shared

  • Reg Geo Services in Webdynpro

    Hi, I want to implement Geo services inWebdynpro. In NWDS Help it is mentioned To be able to use geo services in a Web Dynpro application, you must provide the IGS (Internet Graphics Service) and a GIS server (Graphical Information System). The GIS s