Validating the logical path
Hi,,
how to validate the logical path entered on the selection screen.
Hi,
check the piece of code..
*--Call the function module to get the physical file name for the
logical file path provided.
DATA: lv_mandt LIKE sy-mandt,
lv_opsys LIKE sy-opsys.
MOVE: sy-mandt TO lv_mandt,
sy-opsys TO lv_opsys.
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
client = lv_mandt
logical_filename = p_lpn
operating_system = lv_opsys
IMPORTING
file_name = v_fname1
EXCEPTIONS
file_not_found = 1
OTHERS = 2.
IF sy-subrc NE 0.
File not found.
MESSAGE i137.
LEAVE LIST-PROCESSING.
ENDIF.
reward if helpful..
Regards,
Nagaraj
Similar Messages
-
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 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 -
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. -
Error4 wen accesing thefilefrom Appln server with the Logical Path
Hi Experts
I'm facing the Problem when accesing the file from the Application server (Unix System) in the Format of ASII File and with the help of the Logical Path which is Specified in the Tcode FILE and getting the ERROR_4 when i try to see the Preview itself
Thanks
RachaHi,
This is Thilak. Actually we will ger ERROR 4 Bcz of arithmetic problems i.e., Flat file format sequence may be differ with the tran.structure(BW). So, Chk that sequence and load the data. -
How to find the logical filename for the given ARCHIVE object.
I want to know the logical file name of FI_FICA object.
Can any one guide me.
Thanks,
ShreeHi Sree,
I don't have SAP system right now to check it.
I think if you know the physical path, logical path can be found.
Please check this thread for further reference.
https://forums.sdn.sap.com/post!reply.jspa?messageID=5726662
Thanks and Regards,
Guru -
Finding of the Logical and Physical filename,Logical and Physical Path
Hello All
Where and how can I find the below details in an SAP server
Logical filename:
Physical filename:
Logical path:
Physical path:
Regards
Kalyanihi
Physical file is what you see from the OS level.
Logical file is what ABAP code can call certain functions to read/write.
Transaction FILE would link them together. Typically the logical path ends with "<FILENAME>", and the logical file refers to the logical path.
To extract the physical path from the logical path name
DATA: lf_mandt TYPE sy-mandt,
lf_opsys TYPE sy-opsys.
lf_mandt = sy-mandt.
lf_opsys = sy-opsys.
To extract the physical path from the logical path name
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
client = lf_mandt
logical_filename = p_unix
operating_system = lf_opsys
IMPORTING
file_name = gwa_input
EXCEPTIONS
file_not_found = 1
OTHERS = 2.
IF sy-subrc EQ 0.
Concatenating the physical path and the input unix file name
CONCATENATE gwa_input p_file INTO gf_file .
ENDIF.
You need to tak ehelp of ABAPer for this
Check the link
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3deb358411d1829f0000e829fbfe/frameset.htm
Regards -
Dear guys,
Support Pls..I am working In 640Basis system.
I have created Logical path ZDIRLOGGING and ZLOGICFILE
using FILE transaction.
I have set my logical path as below in WINDOWS NT environment.
ZDIRLOGGING :C:\usr\sap\RX1\DVEBMGS90\log\<FILENAME>
and
ZLOGICFILE : ZDIRLOGGING.
I used FILE_GET_NAME FM to Access the physical path using Logic file ZLOGICFILE.
My input to FM is
Logical file name :ZLOGICFILE
OS : WINDOWS NT or NT
Parameter_1 : ZTEST
ELEMINATE_BLANKS :X
Export parameter always gives different path
FILE_NAME <i>C:\usr\sap\RX1\SYS\GLobal\ZTEST.</i>
instead of below original path
<b>C:\usr\sap\RX1\DVEBMGS90\log\<FILENAME>.</b>
why it is..where i am wrong here..
could somebody help me..
Message was edited by: ambi chanHey guys,
To my confirmation i think i have done correctly.
I have followed all steps what you people told.
prblem i found often is, while creating Logical file
when i try to select Logical path(using f4) i get shortdump like this below.
So what i am doing still now is just entering the logical path name straight way in Input textbox and save.
DO you think below shortdump relates with this problem.
Also FYI, i tried giving SAP logical path in FM and tried..but still the DEFAULT DIR_GLOBAL path is taking by fm.
Any other solutions would be more great.
Runtime Errors LOAD_PROGRAM_NOT_FOUND
Exceptn CX_SY_PROGRAM_NOT_FOUND
Date and Time 29.06.2005 15:48:46
ShrtText
Program "/1BCF41/FILEPATH " not found.
What happened?
There are several possible reasons for the error:
Error in ABAP application program.
The current ABAP program "SAPLSDSD" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
or
The current ABAP program had to be terminated because the
ABAP processor detected an internal system error.
The current ABAP program "SAPLSDSD" had to be terminated because the ABAP
processor discovered an invalid system state.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_PROGRAM_NOT_FOUND', was
neither
caught nor passed along using a RAISING clause, in the procedure
"GENERATED_PROG_SELECT" "(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
On account of a branch in the program
(CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
or a transaction call, another ABAP/4 program
is to be loaded, namely "/1BCF41/FILEPATH ".
However, program "/1BCF41/FILEPATH " does not exist in the library.
Possible reasons:
a) Wrong program name specified in an external PERFORM or
SUBMIT or, when defining a new transaction, a new
dialog module or a new function module.
b) Transport error
b) Transport error
Missing RAISING Clause in Interface
Program SAPLSDSD
Include LSDSDF15
Row 11
Module type (FORM)
Module Name GENERATED_PROG_SELECT
Trigger Location of Exception
Program SAPLSDSD
Include LSDSDF15
Row 78
Module type (FORM)
Module Name GENERATED_PROG_SELECT
Source Code Extract
Line
SourceCde
48
MSG DH805: Anzeige nicht möglich (Inkonsistenz der Eingabehilfe)
49
MESSAGE i805(dh).
50
EXIT.
51
ENDIF.
52
ENDIF.
53
Die Ausgabe auf die in der Record_tab verwalteten Felder
54
beschränken.
55
select_fields[] = shlp-fielddescr[].
56
delete select_Fields where mask+4(1) = 'X'.
57
In den Selektionsoptionen könnten die Suchhilfe statt des
58
Tabellennamens angegeben sein. Deshalb muß nochmals umgemappt
59
werden.
60
sort shlp-fielddescr by fieldname.
61
selopt_tab[] = shlp-selopt[].
62
LOOP AT selopt_tab ASSIGNING <so>.
63
READ TABLE shlp-fielddescr INTO dfies_wa WITH KEY
64
fieldname = <so>-shlpfield BINARY SEARCH
65
TRANSPORTING tabname.
66
IF sy-subrc <> 0 OR dfies_wa-tabname IS INITIAL.
67
DELETE selopt_tab.
68
ELSE.
69
<so>-shlpname = dfies_wa-tabname.
70
ENDIF.
71
ENDLOOP.
72
PERFORM select_table IN PROGRAM (repid)
73
TABLES value_tab
74
select_Fields
75
selopt_tab
76
USING maxrows sort cursor-with_cursor
77
changing cursor-c.
>>>>>
ENDFORM.
79
80
81
FORM generated_program_validity_check *
82
83
84
85
--> repid *
86
--> valid *
87
88
FORM generated_prog_validity_check
89
USING repid TYPE sy-repid
90
checktable type tabname
91
texttable type tabname
92
CHANGING valid TYPE c.
93
DATA: timestamp TYPE timestamp.
94
data: trdir_wa type trdir.
95
data: rhead_tab type table of rhead.
96
data: rhead_wa type rhead.
97 -
Logical filename and logical path in lsmw
Hi all,
I am doing a lsmw for purchasing info record . i created a logicalpath and assigned a physical path to that . i created a logical filename and assigned the logical path .but when i assign that to the lsmw it is throwing error as 'LOGICAL PATH DOES NOT POINT TO PHYSICAL DIRECTORY' .
can anybody provide a solution for that .
Thanks & regards
Magesh anandanhi ,
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. -
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. -
hi,
Good day guys
Ive created the Logical path for mmi interface. its working fine. but in the logical path ive given the drive is H:
Bcoz in the dev system drive is H: one which is maintain the file.
But for the Quality and Production , Drive is different.. its in D:
How to solve it? can any one plz tell me
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
* CLIENT = SY-MANDT
logical_filename = lv_log_file
* OPERATING_SYSTEM = SY-OPSYS
parameter_1 = lv_log_file
* parameter_2 = sy-uzeit
* parameter_3 = '.txt'
use_presentation_server = 'X'
* WITH_FILE_EXTENSION = ' '
* USE_BUFFER = ' '
* ELEMINATE_BLANKS = 'X'
IMPORTING
* EMERGENCY_FLAG =
* FILE_FORMAT =
file_name = outfile
* EXCEPTIONS
* FILE_NOT_FOUND = 1
* OTHERS = 2
ELSE.
CONCATENATE outfile sy-datum sy-timlo '.txt' INTO outfile.
ENDIF.When you are not in development, you can assign a different physical path to the same logical path in your staging system via the file transaction. As long as you use the logical path name in your code, it will be interpreted correctly with the setup in the system.
-
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 -
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 -
Logical path creation for an InfoSpoke
Hi,
I have an InfoSpoke for which I need to create a Logical Path. All I know is it involves some commands in MSDOS may be. Could anyone please let me know the procedure for the same?
Thanks.Hi Bobs,
Go to File trnx -> drill down the Logical File Path Definition -> Clcik on "Create a logical file path" in middle of the screen ->
Then it will prompt for details of logical path you want to create
EX: you can specify in the same lines as give below
Logical path ZXXXXXXXXXX
Name Description of ZXXXXXXXXX
Syntax group UNIX Unix compatible
Physical path /ABC/XYZ/<FILENAME>
ZXXXXXXXXX is the logical path you want to create
/ABC/XYZ/<FILENAME> -> /ABC/XYZ/ is the physical path in your server where your files will stored. dont forget to give filename within <> as shown above.
Just save after that
Regards
Sunil -
Logical path for getting a Flat file from application server
Hi All,
We have loaded some .csv files to application server, what is the logical path we have to mention in the infopackage scheduler screen? please guide me how to give the path for getting a flat file from application server.
Thanks,
Sairam.Hi Sairam,
I hope you know which location you have saved in the Application server.
Now if you go to the Infopackage and click on the "External Data" tab, there you will see Radio Buttons for
1) Client Workstation
2) Application Server
Choose the second radio button, then in the Field "Name of the File" you will be able to use the F4 help and browse AL11 transaction through this option. You can then choose the File.
Hope this helps
Regards,
Praveen.
Maybe you are looking for
-
Hi Team, I am getting error while tring to Check in any document in Sharepoint 2007. Error - "Unable to validate data. System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength). Anyb
-
HT4847 How do I delete all my information from the I-Cloud?
How do I delete all my information from the I-Cloud?
-
Updated Nvidia Drivers? (W510)
Can I get updated Lenovo approved NVidia driver somewhere for the W510? Basically the installed version is 268.24 and the version on NVidia's web site is 296.70, which is about if not more than an year old... Can someone also tell me, what functional
-
4.0EA1 Entering date values in table editor
Hello out there, I don't know if that has been reported already. So I'm doing it again. I have a table containing a date column and set my NLS_DATE_FORMAT to 'DD.MM.YYYY HH24:MI:SS'. In version 3.2, I could enter date values just by giving a date wit
-
Installing Itunes 7.7, Invalid signature
So on my moms laptop, she can't get itunes 7.7 to download. Shes just updating it, not a first time installation. It says its got an invalid signature. I'm not sure what to do to fix it. She also is trying to download some tv shows(error 8008), and i