Passing parameter to process chain - logical file name

Hi,
Is there a way to pass a parameter to a process chain? Iu2019m trying to define logical file name (via transaction FILE) allowing to point on physical files name containing a parameter to be defined at run time. Is it possible?
Example, consider receiving file ending by a number representing its source system origin:
Filename_1      (file coming from syst 1)
Filename_2      (file coming from syst 2)
As both file have the same structure I would like to specify a single datasource Filename_n and a single process chain in which I would set the parameter n at run time. Is there a way to implement that?
I first thought about an Abap routine reading parameter in a table but than Filename_n canu2019t be treated in parallel u2026 Any other idea?
Cheers,
Benoit

Hi Benoit,
yes, it is possible to call the file paths with routine at infopackage.
if you have only 2 file and file names are constant, then you can create 2 infopackages and keep thse two in process chain.
Start
I
infopackage 1
I
Infopackage 2
and from applcation sever, these files will be loaded.
if upi have more files, you can write a routine at the selection of file path, in infopackage.
Regards
Daya Sagar

Similar Messages

  • How to use variables in logical file name definition FILE

    Hi Friends,
    How can I use variables in logical file name definition (tcode FILE). The requirement is to pass value in these variables (based on selection criteria), and use it as part of file name. You quick response will be highly appreciated.
    Thanks,
    Kuldeep Joshi

    Hi,
    Thanks for your reply.
    In detail, the scenario is like I have created an Open Hub. Its working fine. Now I am planning to execute this open hub using process chain and for that I have to define the file output on application server along with logical file name (using tcode FILE). The logical file name contains two variables (defined in FILE) i.e. z_dept and z_fiscperiod.
    Filter value in DTP ( I will read these values from Ztable using routine )
    Dept = R&D
    Fisc period = 004/2009
    Variables defined in tcode FILE:
    z_dept for Dept
    z_fiscperiod for Fiscal Period
    Logical file name : <z_dept>_<z_fiscperiod>.csv
    Now the challenge is to populate filter values in these two variables so that the filter value can be used for naming the output file.
    My last option is to read/update SAP standard table used for storing variable values (i.e. PARAMVALUE)
    Please let me know if you can help me in this issue OR is there any standard method/FM to populate value in these variables
    Thanks,
    Kuldeep

  • Process Chain - Transfering Files to Application Server

    Hi guys,
    I have been trying to use BW Process Chain to load data from a flat file (CSV) into an InfoCube.
    I understand for it to work, the file has to reside on the Application Server, and not the local workstation.
    However, can anyone tell me exactly how I can transfer the flat file from my laptop into the Application Server?
    Thanks!
    SJ

    Thanks Edwin!
    The link is a nice introduction. But I'm still facing some issues. Here's a simple scenario:
    I try to upload a file from the path "C:\BW_CSV\Month.csv". I go to transaction FILE and did the following settings.
    1. Logical file path definition:
        a.   Created a new entry called "ZBW_CSV"
    2. Assignments of physical path:
        a.   Syntax Group: Windows NT
        b.  
    Leopard01\BW_CSV\<FILENAME>
    Note: Leopard01 is the server name.
    3. Logical file name definition:
        a.   Created a new entry called "ZBW_CSV"
        b.   Physical file: Month.csv
        c.   Data format: BIN
        d.   Application area: BW
        e.   Logical path: ZBW_CSV
    After all this, when I try to preview the file from the infopackage, I still get an error message -- "Error 8 when compiling the upload program".
    I wonder what settings are not properly configured. Please advise.

  • How to creat the logical file name.

    Hello All,
    I want to create Logical file name in my program, So Please guide me  in this issue.
    Thanks

    Check this out
    http://help.sap.com/saphelp_45b/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
    FU FILE_GET_NAME
    Text
    Assign the Physical File Name Using a Logical File Name
    Functionality
    R/3 applications run on various platforms with various file systems. This function module enables you to use platform-independent logical file names in your application programs.
    Based on definitions maintained in customizing tables for platform-independent file names, the function module converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.
    For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.
    Example
    logical file name: MONTHLY_SALES_FILE
    physical file name: VALUES<PARAM_1>
    logical path: SALES_DATA_PATH
    physical path (UNIX): /usr/<SYSID>/<FILENAME>
    physical path (Windows): C:\SALES\<FILENAME>
    Example 1
    Get file name for UNIX platform
    (current system: K11)
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
    IMPORTING
    FILE_NAME = FILE
    FILE_FORMAT = FORMAT.
    Result:
    FILE = /usr/K11/VALUES
    FORMAT = WK1
    Example 2
    Get file name for UNIX platform, passing a parameter
    (current system: K11)
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
    PARAMETER_1 = '_TST'
    IMPORTING
    FILE_NAME = FILE
    FILE_FORMAT = FORMAT.
    Result:
    FILE = /usr/K11/VALUES_TST
    FORMAT = WK1
    Example 3
    Get file name for WINDOWS platform, with file name extension
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
    WITH_FILE_EXTENSION = 'X'
    IMPORTING
    FILE_NAME = FILE
    FILE_FORMAT = FORMAT.
    Result:
    FILE = C:\SALES\VALUES.WK1
    FORMAT = WK1
    Notes
    All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.
    The following concepts are used in the platform-independent assignment of file names:
    Logical file name
    A descriptive name for a file which is associated with these values:
    physical file name
    file format
    logical file path.
    If no logical file path is specified, the function module returns the physical file name only; placeholders are substituted by current values.
    Physical file name
    The physical file name may contain placeholders.
    Logical file path
    A descriptive name for a path which is associated with these values:
    syntax groups (groups of operating systems)
    physical file paths.
    Physical file path
    The physical file path is defined for a particular syntax group. It must contain the reserved word <FILENAME> as a placeholder for the file name. It may also contain other placeholders.
    Operating system
    Presentation server and application server can run under different operating systems. The current value for the application server can be obtained from the system field SY-OPSYS, the value for the presentation server by calling function module WS_QUERY.
    Both operating systems must be defined and assigned to a syntax group.
    Syntax group
    Group of operating systems with a common syntax for file and path names (e.g. HP-UX and SINIX).
    Placeholder
    Reserved words, set in angle brackets, which can be included in physical file and path names (e.g. <DATE>, <FILENAME>). You can find information on possible reserved words in the online help (F1 help) for the fields physical file name and physical file path when maintaining platform-independent file names with transaction FILE.
    If the logical path associated with a logical file name does not specify a physical path for the current operating system (syntax group), the path stored in the profile parameter DIR_GLOBAL of the current system is used for generating a complete platform-specific file name.
    Parameters
    CLIENT
    LOGICAL_FILENAME
    OPERATING_SYSTEM
    PARAMETER_1
    PARAMETER_2
    PARAMETER_3
    USE_PRESENTATION_SERVER
    WITH_FILE_EXTENSION
    USE_BUFFER
    ELEMINATE_BLANKS
    EMERGENCY_FLAG
    FILE_FORMAT
    FILE_NAME
    Exceptions
    FILE_NOT_FOUND
    Function Group
    SFIL
    Thanks
    mahesh

  • Logical File names for OHS

    Hi all,
    I wanted to create the files names dynamically
    I know we can use transaction file and define a logical name with variables and assign value sto the variables to get the physical name.
    my requirement is to fetch different values for the variables as well. for example : let ssay I have to create two data files using a process chain . both should have same time stamp at the end of the file.
    I 'm planning to store this timestamp in a table. so during run time I want FILEname1_timestamp and Filename2_timestamp.
    wher etimestamp is the same value for both files. but the prefix is different.
    please let me know a optimum way to create this in BI7.0

    I store this as a variable in PARAMVALUE table and us ethis in the logical file name of the File in transaction FILE.

  • Logical file name or logical path name incorrectly defined

    Dear All,
    We are doing archival in our IDES for test purpose before we do it to our Production.
    Steps Performed
    Copied AM_ASSET archive object to ZAM_ASSET
    Logical Path
      Logical path    ZAM_ASSET
      Name            Asset
      Syntax group    UNIX       Unix compatible
      Physical path   /archive/test/<FILENAME>
    Logical File Name
       Logical file    ZAMASSET
       Name            Asset
       Physical file   FI_<MONTH>_<DAY>.txt
       Data format     ASC
       Applicat.area   AM
       Logical path    ZAM_ASSET
    But when we run the WRITE though SARA , in the job log we get the following
    Logical file name or logical path name incorrectly defined
    When generating a file name for an archive file that is to be created, the system determined that the logical file name FIAA_ARCHIVE_DATA_FILE or the logical path name ARCHIVE_GLOBAL_PATH  was defined incorrectly.
    But we have maintained a Logical name  ZAMASSET , so we are unable to change the location of archived file and as well as the format.
    So is there any setting we need to maintain apart from the logical file name and logical file path.
    Suggestions are highly appreciated.
    Thanks in anticipation

    hi,
    follow this steps :
    - transaction SARA
    - enter authorization objects, eg SD_VBAK
    - hit button CUSTOMIZING
    - Archiving Object-Specific Customizing: execute Technical Setting
    - field Logical File Name enter or select ARCHIVE_DATA_FILE
    - leave CONTENT REPOSITORY as blank if you are not using 3rd party for storing (eg. IBM Tivoli)
    - back to customizing
    - from Basis Customizing, execute : Cross-Client File Names/Paths
    - on Logical FIle Path Definition, highlight (select) ARCHIVE_GLOBAL_PATH on the right pane
    - double click on the Assignment of Physical Paths to Logical Path on the left pane
    - double click on OS used, eg. UNIX, define Physical Path where archive file (on WRITE process) will be stored
    - save changes made
    - double click Logical File Definition, Cross Client on the left pane
    - double click ARCHIVE_DATA_FILE on the right pane
    - make sure that logical path is already set to ARCHIVE_GLOBAL_PATH
    - save changes made
    this setting also can be done using transaction FILE
    we have experienced on this case using SAP standard archiving (SARA, SARI) and everything is fine with this setting above.
    hope it help you.
    rgds,
    Alfonsus Guritno

  • To test how can we use the opt  'logical file name' to name the file based

    Hi Sir/Madam,
               to test how can we use the opt  'logical file name' to name the file based on the selection made in the dtp run for extracting data as flat file.

    Hi Vishali,
    In the DTP select the file location as application server and give the logical file path. The actual file and logical path can be created using transaction "FILE" and "AL11".
    Rest of the process is same as that of extraction from local file.
    Regards,
    Durgesh.

  • Logical File name of Transaction File

    Hi All,
    I am using FILE_NAME_GET function module to get the Physical file name based on logical file name.
    But here i am not getting total file name, i maintained Physical File name as ZDM\INTB18\<PARAM_1>.
    Transaction File is stored in application server and it's name is ZDM\INTB18\RMCB18_DATETIME.
    Could you please anybody suggest how to get total file name.
    Thanks,
    Rami Reddy.

    Hi Rami,
    Have you utilised the Parameter WITH_FILE_EXTENSION in the function ... e.g.
    Example
    logical file name: MONTHLY_SALES_FILE
    physical file name: VALUES<PARAM_1>
    logical path: SALES_DATA_PATH
      physical path (Windows): C:\SALES\<FILENAME>
    Get file name for WINDOWS platform, with file name extension
    CALL                                                                                FUNCTION                                                                                'FILE_GET_NAME'
       EXPORTING
          LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
          WITH_FILE_EXTENSION = 'X'
       IMPORTING
          FILE_NAME = FILE
          FILE_FORMAT = FORMAT.
    Result:
    FILE = C:\SALES\VALUES.WK1
    FORMAT = WK1
    Rgds, Derrick

  • FM for getting the logical file name

    Hi,
    is there any FM for getting the logical file name.
    Thanks
    Vikranth

    Hi,
    CONSTANTS: c_mask          TYPE char9      VALUE ',.,..'.
          Pick up the file path from the application server
    FORM f1001_browse_appl_file .
      DATA:  lcl_directory  TYPE char128.
      lcl_directory  = p_direct.
      CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
        EXPORTING
          directory        = lcl_directory
          filemask         = c_mask
        IMPORTING
          serverfile       = p_f2  " Parameter File
        EXCEPTIONS
          canceled_by_user = 1
          OTHERS           = 2.
      IF sy-subrc <> 0.
       MESSAGE e000(zmm) WITH text-039.
       flg_app = 'X'.
      ENDIF.
    Then use  OPEN DATASET for data reading
    Hope this Helps.
    Manish
    Message was edited by:
            Manish Kumar

  • InfoSpoke and Logical File Name

    We have created an Infospoke to extract data to a logical file. When we define the “Logical File Name Definition” using the “FILE” transaction, we have to enter a physical file name. This will require us to create a new Logical File Name Definition for every Infospoke.  Instead of hard coding the physical file name in the “Logical File Name Definition” for each InfoSpoke we would like to dynamically create the file name to include the InfoObject Name (cube, ODS object, etc) in the physical file name.
    We have tried to use the <F=CPROG> substitution parameter in the logical file name. When the function module FILENAME_EXIT_CPROG” is called we find that we do not have access to any information other then what is available in the system variables (structure “SYST”)
    1.     Are there any modification to the class “CL_RSB_FILE_LOGICAL” and method DETERMINE_FILENAME that we can make to create a logical file name that includes the InfoSpoke name?
    2.     Is there any way to access any system information from within the FILENAME_EXIT_CPROG function module that would give us the InfoSpoke information?

    I think you can modify the method 'DETERMINE_FILENAME' for this.
    In the call to FILE_GET_NAME_USING_PATH FM, add an additional parameter 'parameter_1', and set its value to O_R_REQUEST-N_OHDEST (this should have the open hub destination name).
    call function.....
    parameter_1 = O_R_REQUEST-N_OHDEST
    If the logical filename contains placeholder (< > ??), it should now be replaced with the destination name.
    I am not very familiar with ABAP objects. You might wish to check whethet it is possible without a 'modification' like this, where you create another Z implementation of the class and delegate(?).

  • How to create the logical file name

    Hi All,
        I have requirement where i need to post the Inventory Management data. for this i need to execute std. program RM07MMBL which is having logical file name in the selection screen. but i have placed my input file in application server.
       Can any one tell how to create the Logical filename which refers the physical path. I also tried <b>t-code SF01 & Table - FILENAMEC</b>I and found that we need to add an entry in this table but i really dont know how we have to do since this table cannot be maintained in SM30 also..
      Help Me.
      Thanks in Advance!...
    Regards,
    Ramkumar

    Hi Ram,
    Try using FILE transaction code...
    Follow these steps to create:::
    Double click on Logical file Path Definition
    Click on New Entries,
    Give Logical file Path name as Z_LOGICAL PATH and save it
    now choose this path and double click on Assignemt of Physical path to Logical path
    double click on the OS name
    Give some description and give some Physical path name from AL11 transaction and save it
    Now Double click on Logical File Name Definition,
    Click on New Entries,
    Give some logical file name: Z_LOGICAL_FILENAME
    Physical file: test
    Data Format: BIN
    Logical Path: Z_LOGICAL PATH
    Hope this helps
    Regards,
    Phani
    Message was edited by:
            Sivapuram Phani Kumar

  • In LSMW while executing the specify file step logical file name and path.

    Hi ,
    In LSMW , while executing the specify file step, logical file name and path is mandatory field to entry, but in some of other LSMW objects, these fields are not mandatory one, i want to know is it possible for me to do hide the logical file name and path field in specify file step.
    thanks
    Md nisar

    Hi,
    For some Transactions while executing the Specify file step Logical File and Logical Path are mandatory.
    In this case Converted file will be stored in the application server. According to the specified Logical File and Logical path.
    Hope this will help you....
    Regards,
    Tirumala Reddy

  • Information about file Id, Logical file name and Physical file name

    Hi All,
    I am testing one program. Selection screen has 3 parameters, File Id, Logical File Name and Physical file name. In Physical File name, i am giving complete file name with path. But it is giving error. Please tell me, what is File id and what all information i need to enter for logical file name and physical file name.
    Thanks
    Puneet Aggarwal

    hi,
    try using this for filename.
    parameters : p_file like rlgrap-filename.
    Thanks,
    Gaurav

  • Logical file names and Physical file names

    Hi Guys...
         Can you let me know what is the difference between Logical file names and Physical file names?
    Regards,
    Rohit

    Using Logical Files in ABAP Programs http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/content.htm
    Creating and Defining Logical Filenames
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3df8358411d1829f0000e829fbfe/content.htm

  • OHD - Logical File Name

    Hello all,
    I have a question about using a logical file name in an OHD (BI 7.0).  Because we need to transport the OHD to a different server, we cannot use the File option in defining the OHD.  We need to use the option, Logical File.  In t-Code FILE, we cannot seem to create a physical path that the OHD recognizes.
    This is the path in AL11 where we want the file to end up:  /usr/sap/BIP/DVEBMGS17/work/GGLF010.CSV with a server of prdsap01.  We are creating the OHD in a different system with a different server and path.  How should the physical path (mapped to the logical path) be defined.  I know we have to use <FILENAME> to represent the OHD output file (GGLF010).  What variables do we use for the rest of the path?  Do the variables have to be specifically defined or are they delivered by SAP?
    Any help would be greatly appreciated!
    Sheila

    I don't know if this is relevant to this issue, but seems related.
    When using OHD I noticed that two files are produced, the data file and the header file, unfortunatly when writing to the application server the file names output are identical. Therefore the header file overwrites the data file - anyone else experience this???
    It is not possible to do anything about this using FILE settings so as a workaround (becasue I couldn't find/ an OSS note) I modified the standard class to ensure the data and header files names were unique:
    METHOD: DETERMINE_FILENAME of class CL_RSB_FILE_GENERAL
      o_filename_ctrl = l_filename.
    *{   INSERT                                           
    *SAP BUG RENAMING HEADER FILE ELSE DUPLICATE FILES WILL OCCUR!!!
    REPLACE '.CSV' IN o_filename_ctrl with '_HDR.CSV'.
    *}   INSERT
      clear n_requid_current.
    endmethod.
    This assumes that the file output has .CSV as a file extension. This worked and now I get both the header and the data file.
    If anyone could let me know if you have experienced this and how you resolved it would be nice.
    cheers,
    Asep

Maybe you are looking for