Routines for File name at External Data in Info Package level.

Hi All,
Can any one give the example codes of how to write the routine for Files at External Data in Info Package level.
Regards
srinivas

Hi Srinivas
Here iam attaching a sample code in the infopackage level this code is used to select the Current version from TVARV table ..based on the version from variable the data is loaded into the ods..
data: l_idx like sy-tabix.
          read table l_t_range with key
               fieldname = 'FISCPER'.
          l_idx = sy-tabix.
tables tvarv.
data: v_prever(6)   type c,
      v_fiscper(7)  type n.
  clear tvarv.
  select single low
   from tvarv
   into v_prever
  where name = 'ZBSK_PREVIOUS_RELEASED_VERSION' and
        type = 'P' and
        numb = '0000'.
concatenate v_prever(4) '0' v_prever+4(2) into v_fiscper.
   concatenate  '0' v_prever+4(2) v_prever(4) into v_fiscper.
        l_t_range-low = v_fiscper .
          modify l_t_range index l_idx.
Hope the above code helps you..
let me know in case of any concerns.. and further help needed..
bye
Shu Moh..

Similar Messages

  • Ver.9.5 The volume for file name cannot be found

    HI,
    My work Mac Book pro was recently upgraded to Mavericks from 10.6.8, with iPhoto 11 (ver. 9.5) also an included upgrade. One album of photos is no longer accesible - clicking on each thumbnail provokes the following window "The volume for <file name> cannot be found. The "Try again" option doesn't work, and the alternative, which is to use the finder to locate the file is useless, as the files are buried in a library spare bundle. When I copy the file name, and search on the volume with the library via finder, it pulls up tiny thumbnail size files.
    I have a primary iphoto library on a dedicated USB external drive, which I back up not everytime I update the library (200 gbs spare bundle over USB2!), but regularly. I fear these recently imported files, have not been backed up before up erasing cards, and upgrading system OS, have gone.
    Is there any way of getting into the library via finder, or elsewhere in iphoto to refind the original master files which are in there somewhere? These files opened perfectly in iphoto before the recent upgrade.

    Thanks for the fast response. I've followed your directions and can't find the file in there, in Masters, Originals, or Modified folders. I found files in Thumbnails folder though. Some of the files from the same event are fine, so its not consistent. I'm also noticing that another file in the event has a totally blurred preview (Its a 24mbs Jpg from a Nikon D800) - not sure if this is at all connected.
    The positive news is that my NeoFinder database of drives indicates I should have the 'missing' files on another computer in the office, but I'm still scratching my head on this.

  • F4 help for file name

    frnds,
    Im using the FM "KD_GET_FILENAME_ON_F4" to get F4 help for file name in presentation server... but it does not seem to work...Y?????????
    and is there any FM to get the file name from the application server..
    points assured to all the answers...
    regrds,
    Madan...

    Try to use WS_FILENAME_GET
      call function 'WS_FILENAME_GET'
        exporting  def_filename     =  space
                  def_path         = 
                    mask             = ',.  ,..'
                    mode             = 'O'
                    title            =  text-038
       importing  filename         =  os_name
                                  RC               =  DUMMY
       exceptions inv_winsys       =  04
                  no_batch         =  08
                                    selection_cancel =  12
                                    selection_error  =  16.
    or
    at selection-screen on value-request for p_file1.
      data wa_file like file_table.
      refresh filetable.
      call method cl_gui_frontend_services=>file_open_dialog
       EXPORTING
       WINDOW_TITLE            =
       DEFAULT_EXTENSION       =
       DEFAULT_FILENAME        =
       FILE_FILTER             =
       INITIAL_DIRECTORY       =
       MULTISELECTION          =
       WITH_ENCODING           =
        changing
          file_table              = filetable
          rc                      = rc
       USER_ACTION             =
       FILE_ENCODING           =
      exceptions
        file_open_dialog_failed = 1
        cntl_error              = 2
        error_no_gui            = 3
        not_supported_by_gui    = 4
        others                  = 5.
      if sy-subrc = 0.
        if rc = 1.
          read table filetable into wa_file index 1.
          move wa_file-filename to p_file1.
        endif.
      endif.
    Max
    Message was edited by: max bianchi

  • Report Script : Parameter for file name?

    hi all,
    I am using a report script to generate a text file with budget data. This works fine in AAS console but I am automating this process by usning an ESSCMD and batch script.
    tha batch script will call the ESSCMD script which in turn executes the follwoing command
    RUNREPT 2 "RepScripName" "c:\Otputfile.txt"
    Now here I am hard coding the Output file name and location.But my requirement is that when I run the script it should prompt for file name and location.
    Any Idea on this
    Thanks

    Another solution I have tried is simply writing a small VB app that has a dialog that allows you to type in a file name or even navigate a file system directory. If I understand you correctly, you just want to be able to output the file anywhere you want. This works well and you can add more features to, just depends on if it is worth the effort. Other wise you can just write MXL and supply your script with position variables. You just need to type it in and hope you type typed it in correctly. Good luck, there are several ways to accomplish this.

  • I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data is not.) but

    I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data does not.)

    HI Dave,
    I'm surprised you get no message when you attempt opening the Excel document in Numbers.
    I'm assuming Numbers 3.1, since you are running Mavericks.
    Does the Numbers file that opens show any content?
    Does it contain a table?
    How large?
    Does it contain more than one tab (indicating more than one sheet)?
    Do those other tabs contain a table?
    Have you checked those tables for data content?
    There have been cases in the past of imported documents opening with white text on a white background, giving the appearance of containing nothing. Check for this by selecting a block of cells, then applying a Fill colour or a Text colour using the Format button (paintbrush).
    I'd also suggest attempting to open the Excel files using LibreOffice, which can be downloaded from the linked website.
    Regards,
    Barry

  • Internationalization support for File Names

    I want to know does it make sense to provide multilingual support for File Names. Say, I have a file called PurchaseOrder.pdf and it will be sent to users as an email attachment. We can localize the file name(for example, in Chinese: &#35746;&#21333;.pdf).
    But I want to know whether it is a standard to localize the file name. If not, should it be given in English, no matter which locale the user is using.
    Thanks in advance
    Edited by: Giritharan on Feb 1, 2010 1:53 AM

    ... hopefully you will not have to send another document to the same deliverer the very same day. Even if you add the minutes, a date tells you nothing about the contents. This is no problem as long as I receive nothing but purchase confirmations from you. But as a customer I will receive both sales confirmations and invoices, and then I think it's nice to see what the document is about.
    By the way, a person working in an international trading company is supposed nowadays to understand the English words "purchase, sale and invoice", isn't it? Maybe in 50 or 100 years from now Chinese will be the lingua franca. So be prepared for a change ;-)

  • " the volume for (file name) cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again."

    I get an error message in iPhoto when I click on thumbnails of pictures in certain albums. It reads 'the volume for "(file name)" cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again.'  What does this mean and how do I fix it?

    It means that you imported the files in Referenced mode and have now remvoed them from the Mac. Put the disk or card back.
    For more on iPhoto and file management see this User Tip:
    https://discussions.apple.com/docs/DOC-6361

  • Please add options for file names on camera or PlayMemories import (ie: 00001 DateTaken DSC)

    Please add options for file names on camera or PlayMemories import (ie: 00001 DateTaken DSC=   00001 2014_10_21 DSC )

    if(!getNewContactsName())
                   createNew();
                   return;
              if(!getNewContactsSurname())
                   createNew();
                   return;
              String checkName = newName;
              String checkSurname = newSurname;
              if(!checkIfDuplicate(checkName,checkSurname))
                   createNew();
                   return;
              if(!getNewContactsHomeNum())
                   createNew();
                   return;
              if(!getNewContactsWorkNum())
                   createNew();
                   return;
              if(!getNewContactsCellNum())
                   createNew();
                   return;
              if(!checkAtLeastOneNumEntered(newHome, newWork, newCell))
                   createNew();
                   return;
              }This can all be done in 1 if statement just use the or operator (||) will save some room
    private void deleteFromList(String nameOfContact, String surnameOfContact)
         {//Start of deleteFromList()
              int confirm = JOptionPane.showConfirmDialog(null,"Are you sure you wish to delete the contact from the phonebook?","Please confirm",JOptionPane.YES_NO_OPTION);
              if(confirm == JOptionPane.NO_OPTION)
                   return;
              elseWhy do you have a return statement in a void method? there's no need for this you can cut out the no part and just keep the yes

  • I have a external hard drive connected, Finder will not let me search for files in the external hard drive how do i search in a hard drive

    i have a external hard drive connected, Finder will not let me search for files in the external hard drive how do i search in a hard drive

    What are you using to search? You should be able to search any drive in from the Finder. If you're having trouble, try "EasyFind" from the App Store (free). You can search any volumes with it.
    Clinton

  • Automator script search document for file name, and rename file to date

    Hi all,
    I'm having a hard time with Automator... and I can't figure out how it's done!
    Searched the web for it a couple of times, spend hours with Automator already, but I guess my need is random!
    The thing is:
    I got a folder with 1066 files, all the files has random names.....
    I got a document (now it's html, but can convert it to PDF or txt or so ever....) with the coressponding random file names in the html.... some words before that there is the date the photo was taken in this format: 08/25/11
    Now I want somehow make automator search that folder each filename... match it in the document with the filename, and rename the files in the folder to the date the photo's were taken.... and that for all 1066 files.....
    anybody a great idea? Some help? I'm a real newby at Automator scrips!
    thanks

    Have you considered A Better Finder Rename 9?
    A Better Finder Rename 9: The Batch File Renamer for Mac OS X
    Otherwise, what you propose seems to be rather like carving the Pieta using a plastic butter knife. But, if you want, here's one example of a rough algorithm to start ...
    * translate the HTML to ASCII text in this format:  filename (date)
    * read one line at a time from the ASCII file
    * for each line, search the folder for the file
    * rename the file according to the (date)
    BTW, you might avoid a strict renaming according to just the date.
    Best luck with this project.
    JJW

  • Implement check for File Names with data into TRG table

    hi,
    I am trying to load the Multiple files names & Autonumber to oracle table T1 which is further loaded the auto-number with data to target table TRG. My problem is when the same name file comes again due to size then load it again. & also don't insert Target (TRG) table rows with same data while insert the only those records/rows which are not in Target Table(TRG) .. Is this standard approach. becoz in this way I thing loading Performance speed will b down??
    Any other or best recommended approach???/
    Thanks
    Regards,
    AMSIII
    Edited by: AMSI on Dec 11, 2012 9:54 PM

    Hey Jason,
    Create a validation of type exists. in expression 1 put:
    SELECT 1
    FROM DUAL
    WHERE UPPER(:P9_FILE) LIKE '%TEST.HTML';
    {code}
    change P9_FILE to your file browse item name and change '%TEST.HTML' to '%YOUR_FILE_NAME'
    Hope this helps,
    Tyson                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Reading from a file. How to ask the user for file name at run time????

    I have the code to read from a file but my problem is how to prompt the user for the file name at run time.
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.util.InputMismatchException;
    import java.util.Scanner;
    public class FileRead {
        public static void main(String args[]) {
            Scanner scan = null;
            File file = new File("Results.txt");
            String number;
            try {
                scan = new Scanner(file);
                while (scan.hasNext()){
                number = scan.next();
                System.out.println(number);}
            catch (FileNotFoundException ex1){
                System.out.println("No such file");
            catch (IllegalStateException ex2){
                System.out.println("Did you close the read by mistake");
            catch (InputMismatchException ex){
                System.out.println("File structure incorrect");
            finally{
                scan.close();}
    }Any hints would be greatly appreciated. Thank you in advance

    I have read through some of the tutorials that you have directed me too and they are very useful, thank you. however there are still a few things that i am not clear about. I am using net beans 5.0 I have placed a text file named Results.txt into the project at the root so the program can view it.
    When I use the code that you provided me with, does it matter where the file is, or will it look through everywhere on the hard drive to find a match?
    This code compiles but at run time it comes up with this error
    run-single:
    java.lang.NoClassDefFoundError: NamedFile
    Exception in thread "main"
    Java Result: 1
    BUILD SUCCESSFUL (total time: 3 seconds)
    import java.util.Scanner;
    import java.io.*;
    class NamedFileInput
      public static void main (String[] args) throws IOException
        int num, square;   
        // this Scanner is used to read what the user enters
        Scanner user = new Scanner( System.in );
        String  fileName;
        System.out.print("File Name: ");
        fileName = user.nextLine().trim();
        File file = new File( fileName );     // create a File object
        // this Scanner is used to read from the file
        Scanner scan = new Scanner( file );     
        while( scan.hasNextInt() )   // is there more data to process?
          num = scan.nextInt();
          square = num * num ;     
          System.out.println("The square of " + num + " is " + square);
    }his is the code that i used. It is the same as the code you posted for me (on chapter 23 I/O using Scanner and PrintStream) Sorry im just really stuck on this!!

  • Get file name and received date & time

    Hello experts,
    We are loading around 10 source files(xml) on regular basis to Target table. I have to capture source filename & received datetime of those files and status of file whether it loaded successfully or not(I can care take care of status of file).  I want to automate this process using BODS and load filename, datetime and status data into one database table.
    For you information: File name looks like QAS_Wareneingang_20140328-190006-438.     ( from file name  ..190006-438 number is random number they are generating) and Date and time is constant for that day eg: 28.03.2014  19:00
    Could you please help me...
    Thanks & regards
    Mohan

    Thank you Arun for your kind help...
    I found a solution to find and move all related filenames with timestamp to  file_names.txt file using the batch script below.
    @echo on
    cd /D G:\BAUR
    dir /n Auslagerung* > G:\Dev_Users\BAUR\file_names.txt
    exit
    After that I used the above file as source and formatted using query transform in BODS.

  • Vaildating File name with the data in the file using sender file adapter

    Hi,
    Below is the scenario
    1)       Pick up files from a FTP server, the file name is dynamic, how do I put dynamic name in sender file adapter?
    2)       Determine if the user correctly named the file based on data in the file.
    a.       File naming structure that we will be concerned with is <company_code><accounting_time_period>.<extension>
    b.      The company code and the time period in the file name have to match the data in the file.
    i.      For example.  If the file name is 1001_200712.csv and the data in the file is for company code 1005, time period 200712, the file is incorrectly named.  Both values must be correct.
    How do we do this?

    Hi Sachin,
                    As Rightly said by Krishna, You can not put Dynamic name in sender File Adapter .You have to provide the name of the file like "*.txt" in Sender Adapter and at runtime you can access this file name by using following UDF:
    DynamicConfiguration conf  = (DynamicConfiguration) container
      .getTransformationParameters()
      .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String valueOld = conf.get(key);
    return (valueOld);
    As now you have picked up the file name at runtime.
    Now concatenate source file fields Company_code and Accounting_timeperiod using "_" as delimiter in properties.Also concat the extension .Now you have required file name.
    So using EQUALS standard function ,compare it with File Name fetched at runtime using above given UDF, and pass result as you desire to process further or not or to raise Alert to resend the file.
    Thanks & Regards,
    Anurag Garg
    You can validate this file name in Mapping itself.

  • File name substitution with Data pump

    Hi,
    I'm experimenting with Oracle data pump export, 10.2 on Windows 2003 Server.
    On my current export scripts, I am able to create the dump file name dynamically.
    This name includes the database name, date, and time such as the
    following : exp_testdb_01192005_1105.dmp.
    When I try to do the same thing with data pump, it doesn't work. Has anyone
    had success with this. Thanks.
    ed lewis

    Hi Ed
    This is an example for your issue:
    [oracle@dbservertest backups]$ expdp gsmtest/gsm directory=dpdir dumpfile=exp_testdb_01192005_1105.dmp tables=ban_banco
    Export: Release 10.2.0.1.0 - Production on Thursday, 19 January, 2006 12:23:55
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Starting "GSMTEST"."SYS_EXPORT_TABLE_01": gsmtest/******** directory=dpdir dumpfile=exp_testdb_01192005_1105.dmp tables=ban_banco
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 64 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/COMMENT
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "GSMTEST"."BAN_BANCO" 7.718 KB 9 rows
    Master table "GSMTEST"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
    Dump file set for GSMTEST.SYS_EXPORT_TABLE_01 is:
    /megadata/clona/exp_testdb_01192005_1105.dmp
    Job "GSMTEST"."SYS_EXPORT_TABLE_01" successfully completed at 12:24:18
    This work OK.
    Regards,
    Wilson

Maybe you are looking for

  • Performance in Standard Report

    HI, is tehre anyway to improve performance in VK12 or VK13.it is taking long time to execute and going to short dump at times.when checked the error analysis.it is saying that the When the program was running, it was established that more memory was

  • IC Booking - Same Account Issue

    Hi, My company is using the same account for both Inter company AR & AP. I tried configuring the BR for IC Booking but it did not work. I am using the seller wins scenario and posting the Debit to a generic Difference account and Credit to this same

  • CAreer in SAP BASIS comaprision with SAP GRC/Security

    Hi Everyone, I am an SAP BASIS consultant with 2 years of experience working in a MNC company, I want to change my career to SAP GRC/SAP Security, i have some basic knowledge on SAP Security, COuld you please advice me, which one to choose,? Does  SA

  • Error message when running a gui

    Hi, When i run my gui i get the following error message: 09-Mar-2006 14:40:24 java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode WARNING: Could not lock System prefs.Unix error code 1685182512. 09-Mar-2006 14:40:24 java.util.prefs.FileSyst

  • How to embed a You Tube into webpage

    Can anyone give some guidance on how to embed a You Tube video into your webpage?