How to create logical file name
Could some one tell me how to create logical file names in BW , and when to use the transaction SF01.
Thanks
The following describes the procedure for creating a cross-client definition using the transaction FILE.
You create the client-specific definition in the same way using transaction SF01.
1.Call transaction FILE for cross-client file names.
2.Double click the dialog structure Logical File Name Definition, Cross-Client.
You access the screen Change View "Logical File Name Definition, Cross-Client": Overview
Similar Messages
-
LSMW - Create Logical File Name so that the physical file name is automatic
Hello,
In LSMW, I do not want to create a logical file name for each project. I would like the logical file name to automatically assign the physical file to the *.lsmw.conv of the project being executed. Is there a way of doing that? If so, could someone share?
Regards, Dean.not possible to create the logical file name to physical file name automatiically.
because the logical file name created like PROJECT name + SUB PROJECT name +OBJECT NAME .*.lsmw.conv
if you change the object name the file will be change.... -
How to create Same file names for source and target.
hi
Can any body send Procedure for below requirement.
how to create the dynamic file names for a source and save the file with same name in the Target, because it has to identify that which sender had sent the file and the target file should be again sent back to the customer as a link.
Please help me.
ThanksHi,
See the below link
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - sender file name as receiver file name
Regards
Chilla -
How to create Same File Name in Recever side
Hi Frnds,
1)In my sender side i am having one XML file Name: vendor123.xml
i have to send this file to receiver side with same file name, what are setting i need to do in file adapter.
In receiver side i dont have any file, i have to crete with same file name.
2)
In my scenario my message interface name Vendor123_mt.
In receiver side my file name should be Vendor123_mt, How to do handle this situation.
Regards,
Raja SekharHi Raja,
Regarding you 1st question: It can be easily achieved using the Adapter specific Message Attributes. You can refer the Michal's blog for it.
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regarding your 2nd question:
Here you will need to use Variable Substitution. Use the following link:
http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d03341771b4c0de10000000a1550b0/frameset.htm
Hope it helps.
Regards,
Sanjeev. -
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.
ThanksCheck 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 -
I am getting data from a flat file and want to know how to create a logical file name instead of hard-coding the path.
Please helpHi,
you can create logical file name in transaction SF01..
Hope it helps ,
Ravi -
Error while creating logical file using transaction FILE
Hello there,
I am facing an error while creating Logical File name definition using transaction FILE
This is the input which I'm trying to give
Logical file name: ZTEST
Name : ZTEST
Physical file : ZTEST_1<DATE><TIME>.csv
Data format: ASC
Application area: BW
Logical path:ZTEST_1_DATAOUT
when I tried to save it throws me an error like ASSIGN_SUBSTRING_NOT_ALLOWED
Please help.Hi,
Please check the OSS Notes :
Note 792061 - SP Case Locator: Dump: ASSIGN to a substring isn't allowed.
SAP Note 1297989 - Short dump ASSIGN_SUBSTRING_NOT_ALLOWED
Hope this solves the problem.
-Vikram -
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,
RamkumarHi 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 -
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. -
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 JoshiHi,
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 -
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!
SheilaI 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 -
TCODE SARA and its variant in logical file name
Hi forum,
how can I create a logical file name (FILE tcode) with execution varian of SARA for archiving ?
Regards.
Ganimede Dignan.Hello Ganimede,
Apart from the very good note suggested by Naveen please check this as well;
http://help.sap.com/saphelp_nw2004s/helpdata/en/8d/3e4ec2462a11d189000000e8323d3a/content.htm
You ca get more information from SAP help- data archiving section.
Regards.
Ruchit.
Message was edited by:
Ruchit Khushu -
I have created Logical File Path/Name as -
Logical file ZPATH_MAST
Name file path for BOM upload
Physical file MAST_01.txt
Data format ASC
Applicat.area MM
Logical path ZPATH_MAST
++++++++++++++++++++++++++++++++++++++++++++++++++
Logical path ZPATH_MAST
Name file path for BOM upload
Syntax group WINDOWS NT Microsoft Windows NT
Physical path O:\PHSS Project Olympic\Personal\HEDN\CV00102\<FILENAME>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please let me know what i should assign in "Specify File " step of LSMW .
I'm using Batch input method to upload the BOM.
Thanks
SonalSpecify files
In this step, we define how the layout of the input file is. The input file is a [Tab] delimited with the first row as field names. It is present on my PC (local drive) as C:\XD02.txt.
Create an Excel file with your data and save it as a Tab-delimited text file on your local drive (C:\) and name it XD02.txt. -
How to print the file name in sap
Hi All,
I have requirment like,
there is a folder in my local system, inside that folder there are 10 Excel file like file1.xls,file2.xls..............file10.xls
how to print the file name of all these file in SAp like
file1.xls
file2.xls
file3.xls
file4.xls
file10.xls
Appropriate points will be rewarded.
Thanks in Advance
Arun kumarHi,
Still you are facing any problem with this code expalin the problem with details , otherwise close this thread.
Use Method <b>cl_gui_frontend_services=>directory_list_files</b> to read file names for a given directory
after reading the files then Use FM : <b>RSPO_SX_OUTPUT_TEXTDATA</b> to create spool from internal table data and print the data.
<b>sample code :</b>
data: desktop_dir type string.
data: ifiles type table of string.
data: xfiles type string.
data: count type i.
data: filepath type string.
call method cl_gui_frontend_services=>get_desktop_directory
changing
desktop_directory = desktop_dir .
call method cl_gui_cfw=>flush.
call method cl_gui_frontend_services=>directory_list_files
exporting
directory = desktop_dir
* filter = '*.xls'
files_only = 'X'
* DIRECTORIES_ONLY =
changing
file_table = ifiles
count = count.
DATA : x_name LIKE tsp03d-name,
x_dest LIKE tsp03d-padest VALUE 'LOCL',
x_rows LIKE sxpcklsti1-body_num VALUE 0,
x_startrow LIKE sxpcklsti1-body_start VALUE 1,
x_pages LIKE rspotype-pages VALUE 1,
x_pages_1 TYPE p DECIMALS 2,
x_rqtitle LIKE sxpcklsti1-obj_descr,
x_rqcopies TYPE i VALUE 1,
x_rqowner LIKE trdyse01cm-username,
x_immediate LIKE pri_params-primm VALUE ' ',
x_rqid LIKE tsp01-rqident,
i_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
x_pages = 1.
x_rqowner = sy-uname.
x_dest = 'LOCL'.
x_startrow = 1.
x_rqcopies = 1.
x_immediate = 'X' .
CALL FUNCTION 'RSPO_SX_OUTPUT_TEXTDATA'
EXPORTING
* name = x_name
dest = x_dest
rows = x_rows
startrow = x_startrow
pages = x_pages
rqtitle = x_rqtitle
rqcopies = x_rqcopies
rqowner = x_rqowner
immediately = x_immediate
IMPORTING
rqid = x_rqid
TABLES
text_data = i_contents
EXCEPTIONS
name_missing = 1
name_twice = 2
not_found = 3
illegal_layout = 4
internal_error = 5
size_mismatch = 6
OTHERS = 7.
IF sy-subrc <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Appana
*Reward Points for helpful answers
Message was edited by: L Appana -
Create logical file path and read it in main program
Hello Experts,
My requirement is, I have to read files from application server.
File path/ Directory is different in different system (systid). i have to read all files starting with (xyz*) from mentioned directory.
This path i must define in logical path.
Following are the steps i followed.
1) In FILE (TCODE) i have created a logical path and assigned a physical path to it.
2) I have created logical file ( I am not sure about this, as i dont have to create logical file, i just need to read file from above path starting with xyz*, but FM FILE_GET_NAME requires logical file name so i have created it).
3) I will pass logical file name to FM FILE_GET_NAME and recieve physical file path(with file name which i can ignore).
these all steps i found on SDN. but its not working.
FM FILE_GET_NAME is always returning same file path ( Not even close to what i have defined ).
I can not read data from Table path as it will return physical path as it is, but i need it replaced with system id.
Any suggestion will be really helpful.
Thanks in Advance.
Regards,
AmarHi Amar,
one difficulty defining physical path name is to know the right Syntax group.
For example if you habe OS Linux, you need Syntax Group UNIX here. In Table OPSYSTEM you can see, which OS (OPSYS) needs which FILESYS (Syntax Group).
If you always get a wrong physical path, this may be caused ba a wrong choice of the Syntax Group. Only the correct one will lead to the correct path.
Regards,
Klaus
Maybe you are looking for
-
Creating spaces in PDF form- text is too close together
Thank you in advance for all of your tips. I am a novice to Adobe PDF form creator and I need some assistance. I am creating the forms and I have all my boxes set, but the issue is that I can not find where to space the text boxes from the top line t
-
I can't update to 3.6.16 from Mac OS 10.6.7
firefox 3.6016 security and stability update will not load on my IMac w/ OS 10.6.7
-
HP Pavilion dv7-6c67nr the audio service is not running ... hardware changes might not have been detected...
-
U410 Windows 8.1.1
All my other computers easily updated to 8.1.1 the day it came out through Windows Update. My u410 (2012 model originally Windows 7) won't even find the update and it's been a while now. Is this a Lenovo support thing? Are they not supporting 8.1.
-
Apple supervisor please help, bad iPhone service.
Hi. I have new iPhone 3GS (27.1), from the beginning the iPhone touch screen not worked properly. I contact the call phone company and they told me to reset the iphone. the problem not solved and became harder. yesterday I made full restore to the ip