Logical path and syntax groups
WE know that we may define ligical file & logical file path. It is said that if we link a logical path to a logical file the logical file is valid for all syntax groups thgat have been maintained for that logical path?
Could some one explain how to note the syntax groups that haver been maintained for that logical path?
Why is it not that all listed syntax groups are valid?
Hi FedeX,
Did not get exactly what you wanted.
May be you can try this: You can check the varibale values in the table V_PARAMVAL.
Bye
Dinesh
Similar Messages
-
Hi Everybody,
How could I check the actual value of 2 variables which I defined with transaction \nFILE for the Logical Path and the logical file name?
Background to this question is that I am experiencing problems in using them and want to check if the variables have correct values.....
Thanks in advance
FedeX.Hi FedeX,
Did not get exactly what you wanted.
May be you can try this: You can check the varibale values in the table V_PARAMVAL.
Bye
Dinesh -
Hi Experts,
I have created the logical path and filename in FILE tcode.I am trying to upload the pdf file to application server by using this path.But
I am getting message like "Unable to open the file".Even I cannot find the this path in AL11 tcode.Kindly anyone advise how to upload pdf file using
custom path and file created from FILE tcode.
Thanks & Regards,
Anusha.Hi Anusha,
Please give as below.
I forget to say you cannot open the PDF in AL11 and for that you need some configuration, i think it can be done using content server,not sure completely please wait for some more suggestions.
Regards,
Pavan -
LSMW - source file from Logical Path and Files?
Hi,
When specifing the source file (legacy data) you want to use to load from - you can choose a file from the application server.
For the application server file does anyone know is there anyway that you can use a logical path and file to represent this source file?
I do not see this option in LSMW and am surprised at this as it necessitates changing the LSMW in each target system.
Thanks in advance.
Kind regards,
MarkHi,
When specifing the source file (legacy data) you want to use to load from - you can choose a file from the application server.
For the application server file does anyone know is there anyway that you can use a logical path and file to represent this source file?
I do not see this option in LSMW and am surprised at this as it necessitates changing the LSMW in each target system.
Thanks in advance.
Kind regards,
Mark -
Regarding the Logical Path and file name
Hi all ,
I am using LSMW for creating the BOM of a material .
I am getting problem at step 7 , saying the logical path is pointing to physical directory .
Then i did some R & D . I created the logical path and logical file name using transaction FILE . Then i got the physical path using FM file_get_name.
But when i give those logical path and logical file names , still i am getting prob.... at step 7 of lsmw.
Pls let me know . I did my best unti l now ....
RegardsHi Raj,
Can you send the Error which you got at Step 7??
It would be of great help if you can send the File Path and the file names you have used.
Regards,
-Syed. -
Definnig logical path and file names
hallow experts,
i wont to now about definnig logical path and file names,
did some one have something that can help me in that
regardsHi Rodrigo,
Have a look at this link... i guess it explains what you are looking for...
http://help.sap.com/saphelp_47x200/helpdata/en/8d/3e4ec2462a11d189000000e8323d3a/content.htm
regards,
Naveen -
How to Configure logical path and how to retrieve physical path for an IDOC
Hi ,
I want to configure logical path for an IDOC,
and then I need to retrieve Physical path from this logical path
using a FM (eg. FILE_GET_NAME).
How to configure the logical path for an idoc ?
Regards ,
Harshit RungtaUsing Logical Files in ABAP Programs
To create a physical file name from a logical file name in your ABAP programs, use the function module FILE_GET_NAME. To insert the function module call in your program, choose Edit ® Insert statement from the ABAP Editor screen. A dialog box appears. Select Call Function and enter FILE_GET_NAME. The parameters of this function module are listed below.
Import parameters
Parameters
Function
CLIENT
The maintenance tables for the logical files and paths are client-dependent. Therefore, the desired client can be imported. The current client is stored in the system field SY-MANDT.
LOGICAL_FILENAME
Enter the logical file name in upper case letters that you want to convert.
OPERATING_SYSTEM
You can import any operating system that is contained in the list in Transaction SF04 (see Assigning Operating Systems to Syntax Groups). The physical file name will be created according to the syntax group to which the operating system is linked. The default parameter is the value of the system field
SY-OPSYS.
PARAMETER_1
PARAMETER_2
If you specify these import parameters, the reserved words in the physical path names will be replaced by the imported values.
USE_PRESENTATION
_SERVER
With this flag you can decide whether to import the operating system of the presentation server instead of the operating system imported by the parameter OPERATING_SYSTEM.
WITH_FILE_EXTENSION
If you set this flag unequal to SPACE, the file format defined for the logical file name is appended to the physical file name.
Export Parameters
Parameters
Function
EMERGENCY_FLAG
If this parameter is unequal to SPACE, no physical name is defined in the logical path. An emergency physical name was created from table FILENAME and profile parameter DIR_GLOBAL.
FILE_FORMAT
This parameter is the file format defined for the logical file name. You can use this parameter, for example, to decide in which mode the file should be opened.
FILE_NAME
This parameter is the physical file name that you can use with the ABAP statements for working with files.
Exception Parameters
Parameters
Function
FILE_NOT_FOUND
This exception is raised if the logical file is not defined.
OTHERS
This exception is raised if other errors occur.
Suppose the logical file MYTEMP and the logical path TMP_SUB are defined as in the preceding topics and we have the following program:
DATA: FLAG,
FORMAT(3),
FNAME(60).
WRITE SY-OPSYS.
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
LOGICAL_FILENAME = 'MYTEMP'
OPERATING_SYSTEM = SY-OPSYS
PARAMETER_1 = '01'
IMPORTING
EMERGENCY_FLAG = FLAG
FILE_FORMAT = FORMAT
FILE_NAME = FNAME
EXCEPTIONS
FILE_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WRITE: / 'Flag :', FLAG,
/ 'Format :', FORMAT,
/ 'Phys. Name:', FNAME.
ENDIF.
The output appears as follows:
HP-UX
FLAG :
FORMAT : BIN
Phys. Name: /tmp/TEST01
In this example, the R/3 System is running under the operating system HP-UX, which is member of the syntax group UNIX. The logical file name MYTEMP with the logical path TMP_SUB is converted into a physical file name /tmp/TEST01 as defined for the syntax group UNIX. The field FNAME can be used in the further flow of the program to work with file TEST01 in directory /tmp.
Suppose we have a logical file name EMPTY with the physical file name TEST, connected to a logical path that has no specification of a physical path. If you replace the EXPORTING parameter 'MYTEMP' with 'EMPTY' in the above example, the output appears as follows:
HP-UX
FLAG : X
FORMAT :
Phys. Name: /usr/sap/S11/SYS/global/TEST
The system created an emergency file name, whose path depends on the installation of the current R/3 System. -
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 -
Sort+logical database using field group and extract
Hi Folks,
I have a program which is using Logical database concept and creating a file on application server as below.
SORT BY
reguh-zbukr "Zahlender Buchungskreis
reguh-rzawe "Payment method
reguh-ubnks "Bankland unserer Bank
reguh-ubnky "Bankkey zur Übersortierung
reguh-ubnkl "Bankleitzahl unserer Bank
reguh-ubknt "Kontonummer bei unserer Bank
payment_form "Brazil: CC, DOC or OP
regud-xeinz "X - Lastschrift
reguh-zbnks "Bankland Zahlungsempfänger
reguh-zbnky "Bankkey zur Übersortierung
reguh-zbnkl "Bankleitzahl Zahlungsempfänger
reguh-zbnkn "Bank-Ktonummer Zahlungsempfänger
reguh-lifnr "Kreditorennummer
reguh-kunnr "Debitorennummer
reguh-empfg "Zahlungsempfänger CPD
reguh-vblnr "Zahlungsbelegnummer
regup-belnr.
LOOP.
AT NEW reguh-rzawe
PERFORM store_on_file USING j_1bh1.
ENDAT
AT NEW reguh-ubnkl
PERFORM store_on_file USING j_1bh2.
ENDAT
AT NEW reguh-ubnkt
PERFORM store_on_file USING j_1bh2.
ENDAT
AT NEW VBLNR
PERFORM store_on_file USING j_1bh3.
AT DATEN
PERFORM store_on_file USING j_1bh4.
ENDAT.
ENDLOOP.
FORM store_on_file USING daten.
IF hlp_temse CA par_dtyp. "Temse
PERFORM temse_schreiben USING daten.
ELSE.
TRANSFER daten TO g_name.
ENDIF.
ENDFORM.
Is Sorting concept different when it comes to logical databases and field groups ?
I had added a new field in the sort reguh-rzawe.I think due to that it is getting into AT NEW UBNKL and AT NEW UBKNT even though those details are same for the payment methods in the payment run.Even though the house bank number and account number is same for all the payment methods it is getting into AT NEW UBNKL and AT NEW UBKNT for every new payment method in the iteration.
vblnr-1
rzawe- A
ubnkl-12345
ubnkt-45678
vblnr-2
rzawe- A
ubnkl-12345
ubnkt-45678
vblnr-3
rzawe- B
ubnkl-12345
ubnkt-45678
vblnr-4
rzawe- B
ubnkl-12345
ubnkt-45678
Can anyone here throw some light on this.
Thanks,
K.Kiran.Read the documentation for the at-new process. As I recall the at-new considers the field named, and all the fields to the left of that in the table. With that in mind, look at how your logic will work. This could result in more, or fewer, breaks than intended(fewer if, for instance, a field to the left was deleted).
-
I am working on creating LSMW - sample conversion for PIR. I struck up in the u201CSpecify filesu201D step by creating Logical Path.
Step 1 : I have done it thru T.Code : FILE in that first by creating Logical File path.
Step 2 : Assignment of Physical Paths to Logical Path
I have maintained Syntax Group as WINDOWS NT and given the Physical path as C:\TEMP\<FILENAME>
Step 3 : Logical File Name Definition , Cross Client
I have maintained Logical File, Name, Physical File , Data Format ,App Area , Logical Path.
After maintaining I am getting the error message u201C LOGICAL PATH PUR_INFO_RECORD DOES NOT EXISTu201D.
Please help me out to solve this issue.
Thanks & Regards,
Manispecific to LSMW there is OSS note 753511 that describes what to do.
If you have authority for x-client customizing then you can directly type a name for logical path and file name
e.g. LSMWLOGPATH and LSMWLOGFILE, hit enter and LSMW will create the logical path and file name for you.and you dont need to do it with transaction FILE.
Go into the step "Specify files".
place cursor onto line "converted data"
click change button.
you get a pop-up with the logical path.
Just hit enter and LSMW will create the path itself. -
LSMW: Error concerning the logical path in Specify Files step
Hi,
I am trying on an ECC 6.0 EHP6 system to upload (open) POs from an existing SAP ERP system. Since I faced some complications in batch input recording method, I decided to go with the standard batch/direct input method.
I selected object 0085 (Purchase Order) and method 0001 (Purchase Order). The program that is used is RM06EEI0. I followed all the usual steps, but in the "Specify Files" step I get the message:
'****.lsmw.conv' does not exist; edit the logical path using transaction FILE
Being aware of both the FILE and SF01 transactions, I created the logical path and file (through the FILE transaction). However, after the modification, I get the message:
Logical file '****' is not assigned to physical file '****.lsmw.conv'
There is also the related SAP Note 753511 (Logical and physical path and file name in transaction LSMW) that refers to this case.Hi,
Click on specify file radio button>Legacy data-on the PC Front end
where input file location like C:\mydocument\desktop\test.txt
and give input in Name field: mydocument
in delimiter section > select Tabular
File structure section> tick on Field order matches source structure definition
File type: Record end marker(Text file)
then press enter key and other steps as same.
Second thing you said that you have used Batch input recording
after creation and recording finish , scroll the page below on recording and put a cursor unwanted field and remove unwanted input field.
I hope your problem will resolve. you can find the steps pdf on Google search try now.
Thanks
Sanjeet Kumar -
hi friends,
i have been uploading using the direct input method in lsmw.it is requiring the logical path and the logical file to be given.i tried to create them using the transaction FILE.but while using that in LSMW it is giving error stating that logical path doesn't point to the physical directory.can any how let me know how to create a logical file and logical path.
thanks in advance.
-senthilkumarhi ,
goto the tcode file then u find the relation between the logical and physical paths ...and their assignment..
hope it will helps u..
regards,
venkat. -
Logical path using in abap program
hay,
I want to create file in application server directory.
so i want the user to select the Logical path and file name from screen.so that he can create the file and seved in selected logical path.{path used must be from Instance profile DIR_LOGGING,GLOBALPATH directory etc).
could you pls tell me how to do this using parameter for user input selecting FILE PATH.
Do we have Functional module for Retrieving physical path
from logical path?
could you pls help me..
ambichan.hey,
Thanks for your reply.
Instead of using logical file name as input, can we allow the user to select logical path using parameter?
I want user to select Logical path or logical file name from parameter. is it possible?
(I want to avoid user to input insteal want to allow user to select the path)
ambichan
Message was edited by: ambi chan -
LSMW - Logical Path/File - No logical path has been specified
Hello,
I am trying to create a LSMW with the RM06EEI0 direct input program for ME21N transaction.
At the SpecifyFiles step I get the error message "No logical path has been specified".
My dilemmas are:
1. How can I solve this error? Is the FILE transaction only solution? If yes, where and how I must define the logical path/file?
2. Why in the case of the Batch Input Recording LSMW Method this files are created automatically? (I can see them in the AL11 transaction and I didn't define them by myself).
3. Why on other system this error is just an warning message? If you look at this tutorial http://****************/Tutorials/LSMW/PO/Page4.htm at Step7.g. you can see that there is no need of defining the file/path in FILE transaction.
More info about the system I am working in:
SAP ECC 6.0.
LSMW 4.0.0. Version.
Thank you.
DanielaHi
Refer the oss note 753511 released for this kind of error you face in LSMW, I am pasting the content of the note below,
******************Note Content,
Symptom
The system issues an error message for the logical path or file when you perform the "Specify files" step in the Legacy System Migration Workbench (transaction LSMW) although you have made the correct assignment in transaction FILE.
The error messages are as follows:
The logical path <PATH> does not point to the physical directory.
The logical file <FILE> is not assigned to the physical file.
or
A logical path was not specified.
Other terms
Logical path, logical file, transaction FILE, LSM Workbench
Reason and Prerequisites
Some import interfaces that you can also use with transaction LSMW work with logical path and file names.
Transaction LSMW itself, however, works with physical file names. To be able to transfer the LSMW file with the converted data to the import program, you must specify a logical file name for the file with the converted data in addition to the physical file name. In this case, the system displays additional fields in the 'Specify files' step in which you must enter the logical path and file name.
Solution
The error messages may be due to several causes. Check the following:
Have you maintained the logical path and logical file name and have you assigned them to the physical file specified in the "File" input field of transaction LSMW?
These settings are maintained in transaction FILE.
When you use logical file and path names, you must specify the name of the physical file with its path. If you have not specified any directory, you cannot assign any directory to the logical path in transaction FILE. In this case, the system uses the SAP Home directory on the application server by default. Bear in mind that the file name must not exceed the maximum length of 45 characters, including the path.
Up to LSMW version 1.7.2 (*):
If the logical file name specified does not point to the physical file (although it should do), the system adjusts the logical file name, that is, the information in transaction FILE is changed to the entries made in transaction LSMW. This may lead to unwanted side effects if the logical file is also used somewhere else. Therefore, SAP recommend that you always use separate logical paths and file names for transaction LSMW (the problem is corrected as of LSMW version 1.8.0, see below). If the logical file does not exist yet, it will be created upon request.
As of LSMW version 1.8.0 (*):
The settings of the logical file are checked but no longer adjusted automatically as in version 1.7.2 (see above). If there are inconsistencies, the system issues an error message. If the user is authorized to maintain logical paths and file names (as for transaction FILE: "Maintenance authorization for cross-client tables"), transaction LSMW can create the logical path, the file name and the file. Due to this automatic generation, the user no longer needs to make adjustments in transaction FILE. Therefore, we especially recommend this procedure.
To display the version of transaction LSMW, select "Extras" --> "Display LSMW version" in the main menu of the initial screen.
You should also bear in mind that as of Basis Release 6.20, that is, as of LSMW version 4.0, transaction LSMW is no longer an add-on but is delivered with the standard system.
Hope this helps,
Sunil -
LSMW : Unable to Specify Files . Logical path incorrect ?
Hi Guys,
I am trying to upload Goods movement Using the Standard LSMW 0110 program RM07MMBL.
When I try to execute the step Specify Files ,system displays an error message "No Logical Path specified."
The Source File is in my Local PC .
When I click the Converted Data File in the Specify files list
I get a popup which asks me for a Logical path and a Logical File and both these parameters a mandatory.
I tried to maintain the parameters and entries in transaction FILE also.
But it says 'logical path not assigned to the physical directory.'
What is the correct method for this.
What steps should I follow ..
Pls advice
Message was edited by: hao fuHi,
Refer the oss note 753511 released for this kind of error you face in LSMW, I am pasting the content of the note below,
******************Note Content,
Symptom
The system issues an error message for the logical path or file when you perform the "Specify files" step in the Legacy System Migration Workbench (transaction LSMW) although you have made the correct assignment in transaction FILE.
The error messages are as follows:
The logical path <PATH> does not point to the physical directory.
The logical file <FILE> is not assigned to the physical file.
or
A logical path was not specified.
Other terms
Logical path, logical file, transaction FILE, LSM Workbench
Reason and Prerequisites
Some import interfaces that you can also use with transaction LSMW work with logical path and file names.
Transaction LSMW itself, however, works with physical file names. To be able to transfer the LSMW file with the converted data to the import program, you must specify a logical file name for the file with the converted data in addition to the physical file name. In this case, the system displays additional fields in the 'Specify files' step in which you must enter the logical path and file name.
Solution
The error messages may be due to several causes. Check the following:
Have you maintained the logical path and logical file name and have you assigned them to the physical file specified in the "File" input field of transaction LSMW?
These settings are maintained in transaction FILE.
When you use logical file and path names, you must specify the name of the physical file with its path. If you have not specified any directory, you cannot assign any directory to the logical path in transaction FILE. In this case, the system uses the SAP Home directory on the application server by default. Bear in mind that the file name must not exceed the maximum length of 45 characters, including the path.
Up to LSMW version 1.7.2 (*):
If the logical file name specified does not point to the physical file (although it should do), the system adjusts the logical file name, that is, the information in transaction FILE is changed to the entries made in transaction LSMW. This may lead to unwanted side effects if the logical file is also used somewhere else. Therefore, SAP recommend that you always use separate logical paths and file names for transaction LSMW (the problem is corrected as of LSMW version 1.8.0, see below). If the logical file does not exist yet, it will be created upon request.
As of LSMW version 1.8.0 (*):
The settings of the logical file are checked but no longer adjusted automatically as in version 1.7.2 (see above). If there are inconsistencies, the system issues an error message. If the user is authorized to maintain logical paths and file names (as for transaction FILE: "Maintenance authorization for cross-client tables"), transaction LSMW can create the logical path, the file name and the file. Due to this automatic generation, the user no longer needs to make adjustments in transaction FILE. Therefore, we especially recommend this procedure.
To display the version of transaction LSMW, select "Extras" --> "Display LSMW version" in the main menu of the initial screen.
You should also bear in mind that as of Basis Release 6.20, that is, as of LSMW version 4.0, transaction LSMW is no longer an add-on but is delivered with the standard system.
Hope this helps,
Rgds,
Maybe you are looking for
-
How do i find out the DPI of a photo ?
i want to enter a photo in a 'contest' ... the rule is that the photo has to be at least 300 DPI .... how do i determine what DPI my photo is ? i have iPhoto 9.2.3 thank you Donna
-
Integration of OBIEE, Apache 2.0.52, Weblogic10, Webgate 7.0.4 on Windows I installed the following for this integration. 1. OBIEE (10.1.3.4.x) Installed on JAVA OC4J Container (but deployed to Weblogic) 2. Installed Weblogic 10 SSL enable (infrastru
-
Viewing ink on 2 different printers on my laptop when both are connected wirelessly
I have 2 different HP printers (let's call one a 4500 and one a 6500} in different, far-off locations in my home. Both are connected wirelessly to my laptop which runs Windows 7 (64 bit). I have no problem changing from one printer to another on my l
-
Dear Expert, Is it right to create the equipment of subequipment if we do like this,can you explain the advantages and disadvantages for the same.Kindly give some cases where you have to structre this kind of scenerio. RC Edited by: Raju Chauhan on N
-
WHY IS FLASH PLAYER NOT WORKING IN CHROME CNN ?
not sure why , it used to work fine, could setting up my router for XBOX cause a issue?