You are on page 1of 12
Applies to: ‘SAP BW (3.5)/ SAP BI(7.0) For more information , visit Business Intelligence Homepage. Summary ‘These documents describe step by step procedure to create logical file path and logical file name, Author: Jamin Soni Company: Infosys Technologies Limited Created on: 10" May 2010 Author Bio Jaimin Soni is working with Infosys Technologies Limited. He has got rich experience in implementation of various project in both SAP BW 3.5 and SAP Bi 7.0. SAP COMMUNITY NETWORK SSDN--sdn.sap com | BPX -bpx-sap.com | BOC - boc sap.com | UAC - vac sap com ‘©2010 SAP AG 1 ‘Step By Step Procedure to Create Logical Fle Path and Logical Fite Name Table of Contents Scenario : Procedure. Creating Logical Path namé Creating logical fle name: Related Content. Disclaimer and Liability Notice.. [SAP COMMUNITY NETWORK. SDN. sdn.sap com | BPX -bpx-sap.com | BOC boc sep com | UAC - uac sap com ‘©2010 SAP AG 2 =p By Step Procedr cal Fle Path and Logical Fle Name ‘Scenario: Many a times we have a situation whee we have a requirement to extract query’s output to a .CSV file on Application Server. For eg., we have a query, which has 5 characteristics and 2 key figures in the report. But we need to load only 3 characteristics and 2 key figures in the file. Also we need to do the some formatting with the data before loading itto file. Like changing the lenath of the material from 18 to 8 characters, There two possible ways to generate .CSV file from a Query 1. RSCRM_BAPI 2. APD RSCRM BAPI generates a file which is an exact copy of the report. It will contain all the fields present in the report, and we won't be able to do any kind of formatting before loading this data to file, Where as, if we go for Analysis process designer, then both of these problems will be solved. Analysis process designer consist of three items. Data source, formatting and a data target. Hore report will be the data source and data target willbe the file, and in the formatting section we can do all this formatting on the data, and we can filter only those fields which we need in the file, Now, if we are using the APD to generate the file on application server, then first we need to create the logical file name and logical file path. Procedure Archive files are stored in the file system under a physical path and file name that is derived from a user- definable logical path or file name. The definition can be divided into the following steps: 1. Definition of the logical path name 2. Definition of the logical file name Here logical file path name is nothing but a path where you want to create the file on application server. Logical file name is the name of the file. SAP COMMUNITY NETWORK SDN. sdn.sap com | BPX -bpx-sap.com | BOC -boe sep com | UAC - uae sap com ©2010 SAP AG 3 ‘Step By Step Procedure to Create Logical Fle Path and Logical File Name Creating Logical Path name: Here are the steps to create a Logical Path name: 4. Call transaction FILE You will find this screen, [SAP COMMUNITY NETWORK. ‘©2010 SAP AG SDN. sdn.sap com | BPX -bpx-sap.com | BOC boc sep.com | UAC - uac sap com 4 ‘Step By Step Procedure to Create Logical Fle Path and Logical File Name 2. Select logical file Path Definition from the right side menu and then click on new entries. New Entries: Overview of Added Entries SAT Ts 5) [er beso ‘As shown in the screenshot write the name of the path and its description. Then save it. 3. now choose this path and double click on Assignment of Physical path to Logical path fessoncc ace | lori acne Fee —— Fens —— =| ae ie Ee a DT Esaitenrond on aay et pan T sina com oa wie ee ote Eestanateesleawercn MEA ee sateen naneear cme are wie ae 3 a) ry Now select the Syntax group, as shown in the below screenshot, SDN. sdn.sap com | BPX -bpx-sap.com | BOC boc sep com | UAC - uac sap com [SAP COMMUNITY NETWORK. 5 ‘©2010 SAP AG Step By Step Procedure (o Creste Logical File Path and Logical Fle Name ‘Change View “ Assignment of Physical Paths to Logical Path": Details 4. Now assign a physical path name to the logical path name. Change View" Assignment of Physica Paths to Logical Pat’ etals ilagaiaPat dentin Logline Deft, Ose Coovtiton artes {spac Grup Detten Pht ah Cssprentpeng tn tac Giup Physical path is the path where your fle will be stored on the application server. When dynamically ‘generating the file SYSID will be the ID of the system you are working, like DO3 or POS. When assigning path names, the symbol must appear at the end. This symbol is replaced at runtime by the physical file (or path) name. No part of the physical file name in the path name must be defined. ‘And then save this new entry SAP COMMUNITY NETWORK SDN. sdn.sap com | BPX -bpx-sap.com | BOC -boc sep com | UAC - uac sap com ‘©2010 SAP AG 6 Step By Step Procedure fo Create Logical File Path and Logical Fle Name Creating logical file name: Logical fle names can be defined as client-specifc (transaction SFO1) or cross-client (transaction FILE). A client-specific definition always overrides a cross-client definition. Ensure, therefore, that in every olient any unnecessary ciient-specific definitions are deleted. The following describes the procedure for creating a cross-client definition using the transaction FILE. You create the ciient-specific definition in the same way using transaction SFO1. 4. Call transaction FILE. Change View “Logical File Name Definition, Cross-Client”: Overview eta Fy (Cioetrton avanaties Foe | fice sor caceee Wer Grek Tel (Gaxsigament foperatng tents Syreac oro} pot BU CHEER SNE ou Grek Tone rah haeries varigenh 008 0 Gea CHINES ARNOTATION STARE ae sag crt [RCH ins_qutOTAION-STA-WIREOIS jc sagen CATLIN BELINITER orn pata Beveen ah a CHLYELIN_POCUNENTIPE_TOXT UIE x05 vv wat ale fron vens_socUNeUT¥PE_TeX_AIAEOWE jo vane ftatle curve ins_vIEVEn. GENERAL CUSTOVTZE_O ctLnk ewer cstmra hoor even ag Duss pre ove lee eng spoke as Toile er shng aeons (5) Double click on “Logical File Name Definition, Cross-Client. And then select New Entries. 2. Give the name of the file, which should reflect its function, New Entries: Details of Added Entries ratasarNae estes at SinunoneDeioncmeecion Jems) Gooeteton ovaries at ta ‘Ci3miax Croup Detidon Pooketaee ‘Gotssignment ot perting Syste o Stax Gr Lon path 1 SAP COMMUNITY NETWORK SSDN-sdn.sap com | BPX--bpx-sep.com | BOC -bocsep.com | UAC -uac sap con ‘©2010 SAP AG 7 ‘Step By Step Procedure to Create Logical Fle Path and Logical File Name ‘New Entries: Details of Added Entries oesnton vse asmtaxcreup Denton opicataea——) aassinman of Operating Sytem Qniacoro| Lopialpan [SS When this fle will be generated in the application server, it will have the name that you have given in the PHYSICAL FILE. New Entries: Details of Added Entries ooiaine _ ene suesienmernce fname eC SaireBat [rnecsiie —eocemmacrioaife, Datiomat ‘estestwes | opiate }& CLageal Fie Path Oatniton G Assignment otPnysicalPans to LopeatP Daoetniton ovaries (syria Group Denton Giassicrmert or oesina System io sor} If we give physical name as following, “__PPO.csv" When file is generated, these parameters will be replaced according to current system date and current time, For Example, the fle is generated on 20/11/2008 at 9.53.22 a.m., then the fle name will be [SAP COMMUNITY NETWORK. SDN sdn.sap com | BPX -bpx-sap.com | BOC boc sep.com | UAC - uac sap com ‘©2010 SAP AG 3 Step By Step Procedure to Create Logical File Path and Logic File Name "20081120_095322_PPO.csv’ Specify the data format whether il is ASC or Binary. Fallowing formals are available. Transfer Format for Data ‘Short Description ASC ‘ASCH BIN Binary DBF DBASE Format iBM ‘ASCII with IBM code page conversion(DOS) WKi Spreadsheet format DAT ‘ASCII data table with column tab Enter the application area. Application Area ‘Short Description XF Non-application-dependent from Financial Accounting view AM ‘Asset Accounting BC SAP NetWeaver CO Controlling fi Financial Accounting GL. General Ledger HR Human Resources is Industry Solutions MC Logistics Controling MM. Materials Management ‘Oc Office & Communication PM. Plant Maintenance PP Production planning PS Project System ‘OM ‘Quality Management SD Sales and Distribution EC, Enterprise Controling TR Treasury cA General cfoss-applcation CR Customer Relationship Management (CRM) ew Business Information Warehouse (BW) EB EBP (Enterprise Buyer Professional) ‘And enter the lagical path where you want to store the generated file. Select the name of the logical path name. ‘New Entries: Details of Added Entries > Cltopea Fie Pt Deaton (Gi ssignet of Physi Pate Logical GLopialFieame Denton, crss-Cent 02 Sis Group Detaton a Assignment of Operating System to SymtaxOra| Logealpah —2.BOE SMES ErTRMCT {BDCEXTRACT.DALcor 3. Now save this new entry. By doing this, we have specified the platform-specific physical path and name under which the archive files wore stored, SAP COMMUNITY NETWORK SDN. sdn.sap com | BPX -bpx-sap.com | BOC boc sep com | UAC - uac sap com ‘©2010 SAP AG ° 2? By Step Procedir col Fle Path and Logical File Name Now for example, if your requirement is to fetch data in a logical fle on application server using Analysis Process Designer, then in the target file name , specify the name of the file that you have written in the “Logical file’ field while creating it. On scheduling this APD a file will be generated on application server with the name, which you have specified in the “Physical File’ fel. SAP COMMUNITY NETWORK SDN sdnsap com BBPX.-bpx-sap.com | BOC -boe sep com | UAC -uac sap com ©2010 SAP AG 0 ‘Step By Step Procedure to Create Logical Fle Path and Logical File Name Related Content htto:/help.sap.com/saphelp_nw04/helpdata/en/2c/4a0d408542056e 100000000155 106/frameset htm For more information, visit the Business Intelligence homepage. [SAP COMMUNITY NETWORK. SDN. sdn.sap com | BPX -bpx-sap.com | BOC boc sep com | UAC - uac sap com ‘©2010 SAP AG 1 Step By Step Procedure (o Creste Logical File Path and Logical Fle Name Disclaimer and Liability Notice This document may discuss sample coding or other information that does notinclude SAP offical interfaces and tharcfore isnot supported by SAP. Changes made based on fis information ere not supported and can be overwritten during an uparede. ‘SAP uill not be held liable for ary damages caused by using or misusing the formation, code or methods suggested inthis document, tnd anyone using these methods does 60 at hister own risk. ‘SAP offers no guarantees and assumes no responsibly or tabity of any ype With respect to the content of ts technical artic or code sample, including any labily resulting from incompatibity betwen the content vat ts document and the materials and services offered by SAP. You agree that you mil rot hol, oF seek hod, SAP responsible or lable wih respect fo the content of ths ‘eocument SAP COMMUNITY NETWORK SDN. sdn.sap com | BPX -bpx-sap.com | BOC -boc sep com | UAC - uac sap com ‘©2010 SAP AG 2

You might also like