Need correct sintax

Hello everybody
Im working with CentosOS 5, Oracle DB 10gR1
My database dont start up because have a redo file broken (redo01.log)
I want to copy the redo file redo03.log to redo01.log because redo03 is a mirror of redo01
Im using the next command to do this :
alter database rename file 'redo03.log' to 'redo01.log'
it say me ora-01516 file dont exist.
Any idea how I can resolve this?
or any idea how I can startup this databse?
Thanks in advanced , regards everybody and happy cristmast to all

>
My database dont start up because have a redo file broken (redo01.log)
I want to copy the redo file redo03.log to redo01.log because redo03 is a mirror of redo01
>
1) I don't believe that. If redo03 would be a real mirror of redo01, the instance would start and only record an error message in the alert.log.
>
Im using the next command to do this :
alter database rename file 'redo03.log' to 'redo01.log'
>
2) Above command only modifies the controlfile. It does nothing on the OS Layer. You need to copy/move files there accordingly yourself. Furthermore, you need fully qualified names here.
3) It will not work with the proper syntax and procedure anyway because of 1)
Kind regards
Uwe Hesse
http://uhesse.wordpress.com

Similar Messages

  • Need correct color profile settings in windows....????

    Help!  Just replaced the motherboard and now all the color profiles in photoshop are wrong....  Does anyone know the correct settings to choose in windows or to choose for the graphics card... it's an AMD Phenom II.  I open Adobe Bridge and immediately the previews lose their color which tells me this is not the correct profile the computer is telling photoshop...  can anyone help, please????

    operating system is windows 7 and the monitor is profiled correctly.... and these are raw images, so no, cannot view in another program....  and they look the same in ps as in bridge.  however, i called adobe and they told me it sounds like a graphics card issue, so i'm going to amd's website to update and reinstall drivers.... not sure what else to do.... 
    From: rogleale <[email protected]>
    To: Kelly Ferreira <[email protected]>
    Sent: Friday, June 10, 2011 11:21 AM
    Subject: Need correct color profile settings in windows....????
    Not enugh information.  Which OS?  Is your monitor profiled?  Can you see your images in any other program, eg Windows Picture Viewer?
    What happens if you open your images in PS instead of Bridge?
    Roger

  • IMac can't read usb card, says need correct codec, how do I get correct codec?

    iMac can't read usb card, says need correct codec, how do I get correct codec?

    What Mac OS are you running (from "About this Mac" in your Apple menu).
    Codecs are usually required for viewing videos and should not affect whether the USB drive mounts. Can you tell us what kind of file your are trying to run from the USB drive? The pre-2006 iMacs this forum covers are no longer supported by most modern codecs
    http://en.wikipedia.org/wiki/Codec

  • Need correct Target Id for report logical links

    Dear Experts,
    I have the following requirement where I need to have 5 Trade Funds related reports to be displayed when I click on the 'xyz' workcenter of my business role.
    The standard Group Id (Work Center Link Groups) for the reports is FM-ALL-RE.
    The logical links for the 5 reports included in the above Group Id are:
    FM-MC13-1
    FM-MC13-2
    FM-MC13-3
    FM-MC13-4
    FM-MC14-1
    So I did the following:
    1. Created a custom workcenter e.g. xyz.
    2. In workcenter definition, the Logical Link ID is abc (custom).
    3. In logical link definition, abc is assigned to Target ID TSLSDASHWC.
    4. Group Id FM-ALL-RE is assigned to workcenter xyz.
    5. Workcenter assignment to Navigation Bar Profile and Business Role is done as usual.
    But I am not getting the links for the 5 reports when I login using the business role and click on Workcenter xyz.
    I have analyzed and found that the issue is happening because of step 3, where it seems the wrong Target Id is assigned.
    Can anyone please guide as to which should be the correct Target Id which can solve this issue.
    I tried to go through various standard SAP business roles but none of them had any link to my above 5 reports.
    regards
    Animesh

    Hi Animesh,
    I have got the feeling that you are correct concerning the SWITCH_ID field.
    You have multiple possibilities to check if it is the reason. One would be to:
    Set a breakpoint in method CL_CRM_UI_NAVBAR_SRV->TRAVERSE_WC_DEFINITION() for the following code
    * remove entries with inactive switch id
      IF iv_ignore_switches EQ abap_false.
        LOOP AT lt_wc_infos ASSIGNING <wc_infos> WHERE switch_id_wc_a   IS NOT INITIAL OR
                                                       switch_id_wclg_a IS NOT INITIAL.
          lv_tabix = sy-tabix.
          IF cl_webcuif_switch=>is_switch_active( iv_switch_id = <wc_infos>-switch_id_wc_a ) EQ abap_false OR
             cl_webcuif_switch=>is_switch_active( iv_switch_id = <wc_infos>-switch_id_wclg_a ) EQ abap_false.
            DELETE lt_wc_infos INDEX lv_tabix.
            CONTINUE.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Then either just jump over the LOOP whenever it is hit or check the contents of LT_WC_INFOS
    Now check in WebClient if your links show up
    The solution to your problem is afterwards to activate the switch to ensure correct display and (more important) data content.
    cheers Carsten

  • My Lightroom lens corrections need correcting. Is this normal?

    I have bought myself my 1st DSLR camera (Nikon D3100) as i now want to shoot Raw instead of Jpeg. I've always shot Jpegs in the past with my old cameras. The in-camera Jpegs from my new Nikon don't show any lens distortion. However, when i open the Raw (NEF) files in Lightroom and tick 'enable profile correction' in the Lens corrections section, the distortion correction seems too much and i have to manually adjust it every time.
    The lens profile comes from Lightroom itself (not from other users), & so this doesn't seem quite right to me that the correction is somewhat wrong each time.
    I'm wondering if i'm doing something wrong or that maybe its even normal to have to adjust the correction further yourself each time (and perhaps most users have to do that too)?
    I've included 3 Jpegs of the same image to demonstrate the problem (detailed below):
    1) The export from Lightroom with the lens distortion corrected by Lightroom (note the straight red line).
    2) An exported Jpeg version of the uncorrected Nef from Lightroom  (to show the full original lens distortion)
    3) The original in-camera Jpeg (obviously the distortion corrected by the camera)
    I've  drawn straight red lines on to the images to demonstrate the differences.
    Any ideas?
    ^ above image is a Lightroom exported Jpeg (from NEF) with lens correction ON (note the red line along the top of the roof)
    ^ above image is a Lightroom exported Jpeg (from NEF) with NO lens correction yet, thus showing original distortion.
    ^ above image is the ORIGINAL in-camera JPEG showing no distortion at all (note the red line along the top of the roof).
    P.s i've taken different shots too and the problem is the same for them all (at least at 18mm anyway).
    Additional information:
    The Nikon D3100 has an APS-C sensor (I'm not sure if that's significant or not). Also the lens described in the profile correction matches the one from my camera.

    Rob Cole wrote:
    Hi Paul,
    I'm really not sure exactly what DxO outputs when you choose DNG:
    It's not raw data, yet preserves some ability to do raw things in Lightroom, like white balance and camera profiles.
    I dunno about pulling from highlight/shadow "reserves", but note: it's different than a DNG-wrapped tif or jpeg, it may be able to pull from the highlight/shadow reserves as can be done via the DNG used for smart previews - I just don't know.
    trshaner: do you know for sure that a DxO DNG hard-clips shadows/highlights, or are you just "extrapolating/assuming/educatedly-guessing"?
    Regardless, DxO has some auto shadow/highlight recovery (for those extreme black/white tones) that is quite good - don't sell it short.
    Google 'dxo linear dng highlights.' Here's one that supports what I said:
    http://forums.adobe.com/thread/663428
    I've tried using Canon's DPP for the same purpose with TIFF output AND with DPP's highlight recovery. I can't get the same highlight recovery with the TIFF as compared to the raw inside LR with PV2012.
    Rob Cole wrote:
    I still think about it when Lr's lens corrections are wonky. But my problem with Lr's lens corrections have more to do with vignetting than distortion (because I mostly shoot nature, not buildings...), and I can add manual correction and/or a dab of paint to the automatic corrections, which saves me the complication of front-ending via DxO. If distortion is your primary concern, consider balancing auto with manual distortion corrections (I've not done much of that, so no guarantee...). Also, there's the upright feature in Lr5...
    What's wrong with simply changing the Lens Profile 'Amount' settings from 100 if a specific lens profiles is "over-correcting" or "under-correcting? Don't forget most zoom lenses have a "complex" moustache shaped distortion, which is NOT easily corrected with LR's Manual Distortion control. You can certainly try both, but there's no way to save the Manual Distortion "correction" setting to a specific lens profile's defaults.
    Rob Cole wrote:
    PPS - DxO's purple fringe tool will get the fringe out without the artifacts of Lr's global defringer, however it may also take away real image color sometimes, and can't be done locally, so one may ultimately get better results in Lr if willing to spend a while painting local defringing.
    I've never seen any artifacts caused by the LR Defringe tools (see image posted of Canon 8-15mm Fisheye lens CA), but you do need to be very careful concerning the actually settings used. After using the eyedropper tool to sample a fringe area I fine tune the settings to eliminate desaturation of areas that have similar color as the fringe area. Once you have the correct settings save it to a Develop preset for manual application. For example with my Canon 8-15mm F4L Fisheye zoom I have two (2) Develop presets of 8-12mm (Purple 2, 30/55) and 13-15mm (Purple 4, 30/55). There is no need to use Local controls with Defringe if you follow my suggestions for manually tuning the settings to prevent desaturation in like colored areas. IMHO the LR CA and Defringe tools are darn near perfect when you use them correctly!

  • App Server Download/Extract Instruction for Unix needs Corrected

    On the following page - http://www.oracle.com/technology/software/products/ias/htdocs/1013.html
    the cpio command does not seem to be correct - it needs a -c flag for the checksum. Please correct.

    For which platform and which files?
    If memory serves me, cpio -imd (or imdv) have before worked on Linux and AIX.

  • Crystal Report-Amount in Words Need correction and Delivery date.

    Dear Experts,
    Issue 1
                            In crystal reports i'm converting Amount in to words using the following formula. In that i am getting Every thing in Uppercase with - i.e. RUPEES ONE THOUSAND-FIVE HUNDRED AND .
    I need in Sentence case i.e all First Letters in Capital and also want to Remove '-'
    Amount in Word
    numbervar RmVal:=0;
    numbervar Amt:=0;
    numbervar pAmt:=0;
    stringvar InWords :="Rupees ";
    Amt := {OPOR.DocTotal};
    if Amt > 10000000 then RmVal := truncate(Amt/10000000);
    if Amt = 10000000 then RmVal := 1;
    if RmVal = 1 then
    InWords := InWords + " " + towords(RmVal,0) + " crore"
    else
            if RmVal > 1 then InWords := InWords + " " + towords(RmVal,0) + " crores";
        Amt := Amt - Rmval * 10000000;
        if Amt > 100000 then RmVal := truncate(Amt/100000);
        if Amt = 100000 then RmVal := 1;
        if RmVal = 1 then
            InWords := InWords + " " + towords(RmVal,0) + " lakhs"
        Else
            If RmVal > 1 then InWords := InWords + " " + ToWords(RmVal,0) + "Lakhs";
            Amt := Amt - Rmval * 100000;
            if Amt > 0 then InWords := InWords + " " + towords(truncate(Amt),0);
            pAmt := (Amt - truncate(Amt)) * 100;
            if pAmt > 0 then
                InWords := InWords + " and " + towords(pAmt,0) + " paisa only"
            else
                InWords := InWords + " only";
            UPPERCASE(InWords)
    Issue 2.
    At Delivery terms I'm using the following formula to display the delivery data. If the document date and due date is same it will print Delivery Immediate otherwise it should calculate the Delivery date from document date, but now it's printing DocDue date.
    I need to calculate Delivery Date = DocDuedate - DocDate. 
    If {OPOR.DocDate} = {OPOR.DocDueDate} Then
        "2. Delivery immediate"
    Else
        "2. Delivery on or before " &  {OPOR.DocDueDate}
    Thanks
    Kamal

    Hi
    Try this formula
    numbervar RmVal:=0;
    numbervar Amt:=0;
    numbervar pAmt:=0;
    stringvar InWords :="Rupees ";
    Amt := {@GrandTotal} ;
    if Amt > 10000000 then RmVal := truncate(Amt/10000000);
    if Amt = 10000000 then RmVal := 1;
       if RmVal = 1 then
            InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " crore"
       else
            if RmVal > 1 then InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " crores";
        Amt := Amt - Rmval * 10000000;
        if Amt > 100000 then RmVal := truncate(Amt/100000);
        if Amt = 100000 then RmVal := 1;
        if RmVal = 1 then
            InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " lakhs"
        Else
            If RmVal > 1 then InWords := InWords + " " + ProperCase (ToWords(RmVal,0)) + " Lakhs";
            Amt := Amt - Rmval * 100000;
            if Amt > 0 then InWords := InWords + " " + ProperCase (towords(truncate(Amt),0));
            pAmt := (Amt - truncate(Amt)) * 100;
            if pAmt > 0 then
                InWords := InWords + " and " + ProperCase (towords(pAmt,0)) + " paise only"
            else
                InWords := InWords + " only";
            ProperCase(InWords)
    Regards
    Vivek

  • Need correct syntax to SELECT against  Excell or File

    I'm having problems setting up the correct SQL and JDBC syntax to be able to use JDBC with an Excell spreadsheet or a delimited text file as my data source. I'm able to set up DSNs using the MS Excell or MS Text drivers ok, and can successfully call DriverManger.getConnection. I can then use the implemented connection methods, DatabaseMetaData methods, etc.
    However, I'm missing something to just make a simple "SELECT * FROM <tablename>". For <tablename> I've tried the file name, the name returned from getColumnName(), and the worksheet name. I always get the following error:
    "java.sql.SQLException: [Microsoft][ODBC Excel Driver] The Microsoft Jet database engine could not find the object '<tablename>'. Make sure the object exists and that you spell its name and the path name correctly."
    I obviously am not providing a valid table name that the driver recognizes. But with a delimited file or an Excell spreadsheet what should I use?
    Thanks for any guidance.

    Thank you, Thomas. I got the Excell datasource to work based on your help.
    I had already worked out the table names by calling getTables() on the connection object and examining them. What I hadn't been doing is getting the sql quotations set properly.
    This didn't work when embedded in my code:
    String sql = "SELECT * FROM 'tablename$'";This did work when I passed in the tablename as a command line argument:
    String sql = "SELECT * FROM " + "\"" + args[0] + "\"";The delimited files were another interesting problem, which I had also managed to solve a short time ago. I found that the Microsoft Text Driver treats the directory that holds the files as the catalog (== the database), and as you have pointed out, the files themselves as tables. However, the driver expects you to define the table structure for each file within the driver setup wizard. If you don't then the driver doesn't recognize the files as tables. The wizard isn't that intuitive...you have to click on several buttons to expose the relevant dialog boxes.
    Thanks again. You've been a big help.

  • Problem in retreiving directory structure, code needs correction

    hello there
    I am trying to fetch the directory structure of a particular directory in a way that the structure of subdirectories is also displayed.
    I have the following code:
    CODE:
    import java.io.*;
    public class FetchDir2
    static File dirStruct[][] = new File[300][100]; //stores the directory structure at a particular level
    static Integer pastIndex[] = new Integer[300]; //Stores index upto which a particular level has been scanned
    static String path = "C:/trydir"; //path of user's workspace, change it accordingly
    static int level = 0;
    static int index = 0;
    static int j=0;
    static int i=0;
    public static void main(String s[])
    File fileTry = new File(path);
    for(int i=0;i<300;i++)
         pastIndex=0;
    fetchStr(fileTry);
    public static void fetchStr(File fileTry)
    dirStruct[level] = fileTry.listFiles(); //fetch list of files and directories at this LEVEL
    sort(dirStruct[level]);
    for(i=0;i<dirStruct[level].length;i++) //loop to scan each element at this level
    if(dirStruct[level][i].isFile()) //if file is encountered
    System.out.println("Level:"+level+"\t Index:"+pastIndex[level]+"\t DirStruct.Length:"+dirStruct[level].length);//CHKPOINT
         System.out.println("<file>"+dirStruct[level][i].getName()+"</file>"); //print file element
         pastIndex[level]++; //increase the index at this level by 1
    //     if(dirStruct[level].length==0)
    //     {break;}
    //     else
         if(pastIndex[level]==dirStruct[level].length)
         System.out.println("</directory>");
         pastIndex[level]=0;
    level--;
         if(level==-1)
              break;     
    if(dirStruct[level][i].isDirectory())
    System.out.println("Level:"+level+"\t Index:"+pastIndex[level]+"\t DirStruct.Length:"+dirStruct[level].length);//CHKPOINT
         String path = dirStruct[level][i].getPath();
         File f = new File(path);
         System.out.println("<directory>PATH:"+path);
         pastIndex[level]++;
         if(pastIndex[level]==((dirStruct[level].length)-1))
         pastIndex[level]=0;
         level--;
         System.out.println("</directory>");
         else
         level++;
         //System.out.println("</directory>");
         fetchStr(f);
    public static void sort(File dirStruct[])
    for(i=0;i<dirStruct.length;i++)
    for(j=0;j<i;j++)
         int compare = dirStruct[i].compareTo(dirStruct[j]);
         if(compare>0)
         swap(dirStruct[i],dirStruct[j]);
    public static void swap(File f1,File f2)
    File f3;
    f3=f1;
    f1=f2;
    f2=f3;
    The dirctory structure used for testing is:
    <dir trydir>
    <file>f1</file>
    <file>f2</file>
    <file>f3</file>
    <dir d1>
    <dir d21>
    <file>f</file>
    </dir>
    <dir d22>
    <file>f</file>
    </dir>
    <file> f21</file>
    <file> f22</file>
    </dir>
    OUTPUT:
    Level:0 Index:0 DirStruct.Length:5
    <file>a1.txt</file>
    Level:0 Index:1 DirStruct.Length:5
    <directory>PATH:C:\trydir\d1
    Level:1 Index:0 DirStruct.Length:4
    <directory>PATH:C:\trydir\d1\d21
    Level:2 Index:0 DirStruct.Length:1
    <file>f31.txt</file>
    </directory>
    Level:1 Index:1 DirStruct.Length:4
    <directory>PATH:C:\trydir\d1\d21
    Level:2 Index:0 DirStruct.Length:1
    <file>f31.txt</file>
    </directory>
    Level:1 Index:2 DirStruct.Length:4
    <directory>PATH:C:\trydir\d1\d21
    </directory>
    Level:0 Index:2 DirStruct.Length:1
    <file>f31.txt</file>
    Can some one please correct this code.
    10 dukes are staright yours if you can.

    hi
    here is the code i work for u
    The code is changed and go through it
    import java.io.*;
    public class FetchDir2 {
        final static String path = "C:/web"; //path of user's workspace, change it accordingly
        public static void main(String s[]) {
            File fileTry = new File("c:/web");
            fetchStr(fileTry,0,0);
        public static void fetchStr(File fileTry,int level,int idx) {
            File dirList[]=fileTry.listFiles();
            sort(dirList);
            File f=null;
            System.out.println("Level:" + level+" Index:"+idx +" DirStruct.length:"+dirList.length);
            for(int i=0;i<dirList.length;i++){
                f = dirList;
    System.out.println("Level:"+level+" Index:"+i );
    if(f.isFile()){
    System.out.println("<file>"+ f.getName()+"</file>");
    else{
    System.out.println("<directory> Path:"+fileTry.getPath());
    fetchStr(f,level++,i);
    System.out.println("</directory>");
    public static void sort(File dirStruct[]) {
    int compare=0;
    for(int i=0;i<dirStruct.length-1;i++) {
    for(int j=i+1;j<dirStruct.length;j++) {
    compare= dirStruct[i].compareTo(dirStruct[j]);
    if(compare>0)
    swap(dirStruct[i],dirStruct[j]);
    public static void swap(File f1,File f2) {
    File f3;
    f3=f1;
    f1=f2;
    f2=f3;
    }Hopes it helps you...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Need correct cable to run from iMac to 32 inch Samsung Tv

    Can anyone tell me how I can view Netlix  on my tv after pulling it up on my imac ?  Any links would be appreciated,,,,,,,Thanks--Rick

    You'll need a DisplayPort to HDMI adapter and HDMI cable.

  • Voip(gizmo & truphone) issues...need correct setti...

    have been trying since i had the n95 to connect via voip/internet telephone been using gizmo...recently installed truphone and got the same result....unable to connect...so i figured im doing something incorrectly
    can someone tell me the settings for these services(gizmo and truphone)
    i cant seem to get voip/internet telephone configured no matter what i tried...

    The "Always On" option is not recommended (atleast by me)
    Create Your Sip Settings. (When Needed)
    And Make a New Internet Tel connection
    Choose ur Sip profile
    Use the Internet Telephone applet to connect
    Use the same applet to disconnect
    You can have as many sip profiles and internet tel connections as you prefer.
    I use to connect 7 providers at a time.
    You can use the same Internet Telephone applet to change the active provider (to call)
    You can receive at any of the connections at any time when connected.
    The steps are:
    1. Create a SIP Profile (Tools->Settings->Connection->SIP Settings on N80)
    2. Create a Internet Tel Profile (Tools->Settings->Connection->Internet Tel Settings on N80)
    3. Use Internet Tel applet (Internet->Internet Tel. on N80) for connection and disconnection
    If you add a shortcut of the Internet Tel to your Active Standby, with a single click you can connect and disconnect. But you cannot change the active connection.
    Hope this helps
    N80 IE, E51, E71

  • Need correct Win 7 driver installation order for Satellite P500/01G

    Hi,
    I have a Toshiba Satellite P500 and had to replace HDD after it was dropped by son.
    I dont have the recovery disc so i loaded Win 7 from image on USB.
    I down loaded all the drivers but have been frustrated by a few things.
    The webcam seems to be impossible to get working despite trying every fix i could find online and some devices unkown in device manager.
    The Toshiba site lists multiple audio,display and wireless cards wgich makes it hard to know the correct driver to install.
    I needd a correct driver list and the order they should installed in
    Model is Satellite P500/01G (PSPGSA-01G003)
    windows 7 32 bit
    Cheers

    Hi
    I have Satellite P500 too and Im really satisfied with it. I hope you are also happy with your machine.
    To be honest I think you should use it with original Win7 64bit version.
    As I can see you have an Australian model. I have UK model but I think installation order must be the same. So here it is:
    Windows 7
    Intel Chipset SW Installation Utility
    Intel Management Engine Interface
    Display Driver
    Intel Turbo Boost Technology Driver
    Intel Rapid Storage Technology Driver
    TOSHIBA Supervisor Password Utility
    TOSHIBA HW Setup Utility
    TOSHIBA Value Added Package
    Card Reader Controller
    NVIDIA HD Audio Driver
    Conexant Audio Driver
    Wireless LAN Driver
    Synaptics Touch Pad Driver
    TOSHIBA HDD Protection
    Bluetooth Stack for Windows by Toshiba
    LAN Driver
    YUAN DVB-T/ATSC Tuner Driver
    TOSHIBA USB Sleep and Charge Utility
    TOSHIBA Face Recognition
    TOSHIBA eco Utility
    TOSHIBA HDD/SSD Alert
    TOSHIBA Service Station
    HDMI Control Manager
    TOSHIBA Remote Control Manager
    TOSHIBA Fingerprint Utility
    PatchFiles FixFPService_REG_1.0
    ConfigFree
    TOSHIBA Assist
    TOSHIBA Web Camera Application
    TOSHIBA Extended Tiles for Windows Mobility Center
    TOSHIBA Folder Migrating Utility
    PatchFiles
    If some listed driver is not available for download just continue with next one.
    Good luck

  • Error DF024 stops Dreamweaver CC from installing - needs correct permissions to the spec. File/folder (Win7) How?

    Dreamweaver CC won't install past 82%. It says - Error DF024. Try Setting correct permissions to the specified file/folder or parent folder so that administrator has rights to modify it.(seq170) How do I do this in Windows7?

    Additionally you may also try installing in hidden admin account: http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/.
    Regards,
    Romit Sinha

  • Need correction for dynamic report

    Hi Experts,
    As i have very less experience in SAP , can anyone please help me.
    The report code i attached here generate only 10 columns in the report and all the lines in internal table i am showing in these 10 columns, the problem is if i have more that 10 lines in the tline(script for long material text- MM03) then it leaves those lines, so
    I need to create a dynamic report for this which will create columns depending on the lines in the tline.As i dnt no much about ALV i read so namy things but not able to make it dynamic
    Please, can anyone help me by doing changes in this code and make it dynamic report/ALV
    REPORT  zmm_test_mat_desc.
    TABLES : ekpo,makt, t001w.
    TYPE-POOLS: slis.
    DATA : thread LIKE thead.
    DATA : l_index LIKE sy-tabix.
    DATA : p_index LIKE sy-tabix.
    DATA: BEGIN OF int_out OCCURS 0,
    matnr LIKE makt-matnr,
    maktx LIKE makt-maktx,
    tdline1 LIKE tline-tdline,
    tdline2 LIKE tline-tdline,
    tdline3 LIKE tline-tdline,
    tdline4 LIKE tline-tdline,
    tdline5 LIKE tline-tdline,
    tdline6 LIKE tline-tdline,
    tdline7 LIKE tline-tdline,
    tdline8 LIKE tline-tdline,
    tdline9 LIKE tline-tdline,
    tdline10 LIKE tline-tdline,
    werks LIKE ekpo-werks,
    END OF int_out.
    DATA: BEGIN OF int_out_new OCCURS 0,
    matnr LIKE makt-matnr,
    maktx LIKE makt-maktx,
    tdline1 LIKE tline-tdline,
    tdline2 LIKE tline-tdline,
    tdline3 LIKE tline-tdline,
    tdline4 LIKE tline-tdline,
    tdline5 LIKE tline-tdline,
    tdline6 LIKE tline-tdline,
    tdline7 LIKE tline-tdline,
    tdline8 LIKE tline-tdline,
    tdline9 LIKE tline-tdline,
    tdline10 LIKE tline-tdline,
    tline LIKE tline OCCURS 0,
    werks LIKE ekpo-werks,
    END OF int_out_new.
    DATA: it_tlines LIKE tline OCCURS 10 WITH HEADER LINE.
    ****ALV list definintion
    DATA: ws_cat TYPE slis_fieldcat_alv ,
    int_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DATA: g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',
    g_custom_container TYPE REF TO cl_gui_custom_container.
    DATA : it_heading TYPE slis_t_listheader WITH HEADER LINE.
    *DATA : it_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    DATA : lay TYPE slis_layout_alv.
    DATA : it_sort_subtotal TYPE slis_t_sortinfo_alv WITH HEADER LINE.
    DATA : it_event TYPE slis_t_event WITH HEADER LINE.
    DATA: v_repid LIKE sy-repid.
    *selection-screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_werks FOR ekpo-werks OBLIGATORY .
    SELECT-OPTIONS: s_matnr FOR makt-matnr OBLIGATORY .
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
    AT SELECTION-SCREEN.
      SELECT SINGLE * FROM t001w WHERE werks IN s_werks.
      IF sy-subrc NE 0.
        MESSAGE e001(319) WITH 'Plant does not Exist!'.
      ENDIF.
      SELECT SINGLE * FROM makt WHERE matnr IN s_matnr.
      IF sy-subrc <> 0.
        MESSAGE e001(319) WITH 'Material does not Exist!'.
      ENDIF.
    START-OF-SELECTION.
      BREAK-POINT.
      PERFORM get_data.
    PERFORM field_catalog.
    PERFORM display_data.
    END-OF-SELECTION.
    *FORM GET_DATA.
    FORM get_data.
      DATA: l_index LIKE sy-tabix.
    *To Fetch Data From Makt.
      SELECT b~werks a~matnr a~maktx
      INTO CORRESPONDING FIELDS OF TABLE int_out
      FROM makt AS a INNER JOIN marc AS b ON a~matnr = b~matnr
      WHERE a~matnr IN s_matnr
      AND b~werks IN s_werks.
      LOOP AT int_out.
        l_index = sy-tabix.
    read table int_out_new with key matnr = int_out-matnr.
        int_out_new-werks = int_out-werks.
        int_out_new-matnr = int_out-matnr.
        int_out_new-maktx = int_out-maktx.
        thread-tdname = int_out-matnr.
        CALL FUNCTION 'READ_TEXT'
          EXPORTING
            client                  = sy-mandt
            id                      = 'BEST'
            language                = sy-langu
            name                    = thread-tdname
            object                  = 'MATERIAL'
          TABLES
            lines                   = it_tlines
          EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.
    *Loop on it_tlines where long text is coming .
        LOOP AT it_tlines.
          IF sy-subrc = 0.
            p_index = sy-tabix.
            IF p_index = 1.
              int_out_new-tdline1 = it_tlines-tdline.
            ELSEIF p_index = 2.
              int_out_new-tdline2 = it_tlines-tdline.
            ELSEIF p_index = 3.
              int_out_new-tdline3 = it_tlines-tdline.
            ELSEIF p_index = 4.
              int_out_new-tdline4 = it_tlines-tdline.
            ELSEIF p_index = 5.
              int_out_new-tdline5 = it_tlines-tdline.
            ELSEIF p_index = 6.
              int_out_new-tdline6 = it_tlines-tdline.
            ELSEIF p_index = 7.
              int_out_new-tdline7 = it_tlines-tdline.
            ELSEIF p_index = 8.
              int_out_new-tdline8 = it_tlines-tdline.
            ELSEIF p_index = 9.
              int_out_new-tdline9 = it_tlines-tdline.
            ELSEIF p_index GE 10.
              int_out_new-tdline10 = it_tlines-tdline.
            ENDIF.
          ENDIF.
        ENDLOOP.
        DELETE ADJACENT DUPLICATES FROM int_out .
        APPEND int_out_new.
        CLEAR int_out_new.
      ENDLOOP.
    Field Catalog
    ***MATERIAL NO no
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'WERKS'.
      int_fcat-reptext_ddic = 'Plant'.
      APPEND int_fcat .
    ***MATERIAL NO no
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'MATNR'.
      int_fcat-reptext_ddic = 'Material N0'.
      APPEND int_fcat .
    *material Short Description
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'MAKTX'.
      int_fcat-reptext_ddic = 'Material Short Description'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '45'.
      APPEND int_fcat .
    Material Long Description1
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE1'.
      int_fcat-reptext_ddic = 'Material Long Description1'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description2
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE2'.
      int_fcat-reptext_ddic = 'Material Long Description2'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description3
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE3'.
      int_fcat-reptext_ddic = 'Material Long Description3'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description4
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE4'.
      int_fcat-reptext_ddic = 'Material Long Description4'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description5
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE5'.
      int_fcat-reptext_ddic = 'Material Long Description5'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description5
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE5'.
      int_fcat-reptext_ddic = 'Material Long Description5'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description5
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE5'.
      int_fcat-reptext_ddic = 'Material Long Description5'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description6
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE6'.
      int_fcat-reptext_ddic = 'Material Long Description6'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description7
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE7'.
      int_fcat-reptext_ddic = 'Material Long Description7'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description8
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE8'.
      int_fcat-reptext_ddic = 'Material Long Description8'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description9
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE9'.
      int_fcat-reptext_ddic = 'Material Long Description9'.
      int_fcat-datatype = 'CHAR'.
      int_fcat-outputlen = '75'.
      APPEND int_fcat .
    Material Long Description10
      int_fcat-tabname = 'INT_OUT_NEW'.
      int_fcat-fieldname = 'TDLINE10'.
      int_fcat-reptext_ddic = 'Material Long Description10'.
      int_fcat-datatype = 'CHAR'.
    int_fcat-outputlen = '75'.
      APPEND int_fcat .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program = sy-repid
          it_fieldcat        = int_fcat[]
        TABLES
          t_outtab           = int_out_new
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    ENDFORM. "display_data
    Regards
    Nik.

    Nikhil,
    Instead of declaring 10 lines, please declare a variable of type STRING.
    Then append each line of your material text and concatenate it into the string.
    Then you can comfartably have one long text and have it displayed to the user.
    Please let us know if any further information is required.
    Thanks
    Ganesh.S

  • Premiere Elements 8 not calculating space needed correctly

    Hello, 
    I have a project that I'm doing for our local school, and it's 2hrs and 40min long.  When I go to share it (usually I share to a folder, so I can make changes or double check before burning the DVD) it says I only need 2GB of final space.  I know that a video that long should take much more space than that.  And, of course, when I go to encode the DVD PRE8 crashes.
    Anyone ever seen this before?
    Thanks,
    Shama

    Hi Steve,
    In PRE8, after I click "Share", I choose "Disc".  If I choose the folder option, then un-tick the "Fit Contents to available space" button, it shows how much space you need without altering quality. 
    Any thoughts why it would say 2GB for such a long DVD?  I think this may be a clue as to why it's crashing during the encoding, that's why I'm asking.
    Regards,
    Shama

Maybe you are looking for

  • Adobe Premiere CC/Adobe Media Encoder CC export crashing?

    Hello, I'm experiencing issues with Adobe Premiere/Adobe Encoder during exporting in which the program will crash during the export. What can I do to prevent this issue from occurring so that I can finish a full export? The footage is a mixture of HD

  • Indexing - Out of Sequence and Missing Page Numbers

    I have a 296 page book. This is an on-going project and has been updated many times. Two new sections have been added to this book. I have marked words for indexing. My problem is that many of the page numbers are repeated or out-of-sequence. For exa

  • Creative Cloud Desktop on Mavericks logs out and has a red exclamation point.

    I recently purchased a new MacBook Pro with OS Mavericks on it. Since then, I can log into Creative Cloud desktop with no issues and use the app. But once my laptop goes to sleep and I wake it up, I will have a red exclamation point on the icon in th

  • How can I limit Bridge searches to just image names?

    I'm new to CS5 and use Bridge a lot. The problem I'm having is that it seems very difficult to limit the images to just the artwork I'm looking for. When I type in almost any name, the Mac OS will bring up dozens of related files for every sort of OS

  • Audio sync issues with variable frame rates as well as .ts files

    I'm using Premiere Pro CS6 and CC, in Windows 8. I bought an AverMedia Live Gamer HD card to capture 1080p footage with, and the the videos it produces work perfectly during playback. No sync issues whatsoever. I'm saving them as MP4 at 30fps. The pr