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
Similar Messages
-
Logical File creation in Logical path
Hi all,
I am after an info, how to create different logical file name in the same physical path.
Suppose I have physical path: X/claims/interface/outbound which is assigned to logical path LP
Now under this path I want to store some logical file say 1, 2, and 3
What would be the naming convention? & how to do it?
Any help would be highly appreciated.
Regards,
Kironmoy Banerjee.Hi,
Use FM u2018FILE_GET_NAMEu2019 to assign the physical file name using a logical file name.
Remember you need to create u2018logical file nameu2019 using transaction u2013 FILE.
R/3 applications run on various platforms with various file systems. Hence we use platform-independent logical file names in our application programs.
Function module u2018FILE_GET_NAMEu2019 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>.
Santosh
Edited by: Santhosh Nagaraj on Sep 30, 2009 2:45 PM -
How to use P=name for Physical path name via t-cd:file
Hello experts,
I want to define physical path name using <P=name> for add-on programs.
It is desirable to save files on another drive from SAP installed drive.
I don't know which profile parameter can be changed.
I'm afraid if standard logic wouldn't work when I change a parameter.
I'm not sure, but DIR_TEMP doesn't seem to affect standard logic.
What parameter should I use for add-on?
Or can I create own profile parameter?
Regards,
Fukuhara YoheiIn my detail block I have 10 rows displaying that may or may not have data after querying. To set the default value in the detail block, you have to set the index value of p_session.set_value. Since I don't know how many rows are already populated, I'm setting the default value to all 10 rows. Is there a better approach?
Here's my code example, which I've placed in the additional PL/SQL section before displaying the form...
DECLARE
l_district_id VARCHAR2(7);
BEGIN
l_district_id := p_session.get_value_as_varchar2
(p_block_name => 'MASTER_BLOCK',
p_attribute_name => 'A_DISTRICT_ID');
FOR i in 1 .. 10 LOOP
p_session.set_value
(p_block_name => 'DETAIL_BLOCK',
p_attribute_name => 'A_DISTRICT_ID',
p_value => TO_CHAR(l_district_id), p_index => i);
END LOOP;
END; -
How can I give logic files to another logic user?
I want to give this person all of the tracks to a song. I took the icon that looks like a mini arrange window from the logic or song folder and put it on a zip drive and was able to drag it into their arrange window and all the tracks that were software tracks showed up, but the live audio or guitar track didn't show up. Is there another way I should be making this transfer?
This person needs to work on the tune just the way I would work on it in my computer, but only do the work in theirs. Sorry for my lack of technical terms.
ThanksHey Bob,
Might be best to just copy your entire project folder onto the zip disc. The project folder usually contains all the audio files used in the song. -
Assigning physical file to logical file.
How to configure application server file with logical file.( I don't have full idea about this . what I know is using /nfile tcode we assign logical file name to application server path and
using 'FILE_GET_NAME' function module, by supplying logical file we get the path of our application server
My lead doesn't have idea about this. How to convey him about logical file using which assiging physical file path. Can you explain clearly, so that I will work with my lead and get work done.
Your help will be appreciated highlyFILE Transaction Code
FILE transaction - How to use.
FILE transaction -
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 nisarHi,
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 -
Function module for logical file path and name
Hello all,
I am wondering is there any function module available to translate a logical file path to a physical file path and a logical file name to a physical file name? Thanks a lot!
Regards,
AnyiPlease check the FM FILE_NAME_GET.
CALL FUNCTION <b>'FILE_GET_NAME'</b>
EXPORTING
logical_filename = 'ZDELCHKREP'
parameter_1 = it_cntry-cntry
IMPORTING
file_name = l_file
EXCEPTIONS
file_not_found = 08.
CALL FUNCTION <b>'FILE_GET_NAME_USING_PATH'</b> EXPORTING
logical_path = 'ZDELCHKREP'
file_name = l_file
IMPORTING
file_name_with_path = l_file.
Message was edited by: Anurag Bankley
Message was edited by: Anurag Bankley -
LOGICAL FILE PATH AND LIGICAL FILE NAME
1 I have one file(saritha.txt) on
Presentation sever and I want to create logical file and logical file path to application server?
please explain with example.Hi,
u can create with the following one
CONCATENATE '/' sysid 'abap/if/monthly/fi/' INTO directory.
file name as combination of sys-uzeit and sy-udate. -
Archiving : Change of Logical File Name & physical path
Hello friends,
We are doing archiving for a Z* archiving object.
We run a write job(not delete job till now) for this archiving object and it created archive files in .../SYS/GLOBAL directory as was expected from settings of Logical File Name and hence physical path corresponding to it. So far no problem..
Now, requirement is to change this path and for this i created a new Logical File Name with a different physical path.
My concern is, about already archived data in older path. Should i only run delete job for that session ?
Or should i copy the archive files to new path and then start delete job OR do a write job once again..
please suggest.
thanks
ashishHello Juan,
Ok, i can copy the files, those are not too many as we did it only for 2 months selection.
Can i go for write job again for same selection ? If yes, probably it will create a new session.. correct ? and then i will go for deletion for new session.
If this is also correct way, i want to do this.. as till now this has been one for only 2 months and we are going to do for 8 yrs.
One more question, will the be any problem for having 2 sessions for same selection.. means 2 write or archive job for same selection.
thanks
ashish -
Regarding assignment of physical path to logical file name
Hi All,
We have created one logical file name and assigned physical path to it in FILE tcode.
IN PATH table also these details got updated with correct logical file name & physical path.
But in my program when i have used FILE_GET_NAME F.M to retrieve physical path from logical file.
Here this F.M is not returning anything.
What is the issue over here.
We are working in ECC 6.0
Can anybody resolve this issue!
Thanks,
Deep.do one thing i give my report so according to do this
*& Report ZMIO_MANU_VENDOR_EXTR
report zmio_manu_vendor_extr.
DATA BASE TABLES
tables: lfa1 ,eina, lfm1 .
STRUCTURES
*---structure for the vendor details.
data: begin of ws_lfa1 ,
lifnr type lfa1-lifnr,
name1 type lfa1-name1,
end of ws_lfa1 .
*---structure for the pur org details.
data: begin of ws_lfm1 ,
lifnr type lfm1-lifnr,
kalsk type lfm1-kalsk,
minbw type lfm1-minbw,
end of ws_lfm1 .
*---structure for the pur inf rec.
data: begin of ws_eina,
lifnr type eina-lifnr,
relif type eina-relif,
end of ws_eina .
*--structure for the output file
data: begin of ws_final,
lifnr(10) type c,
name1(35) type c,
kalsk(1) type c,
minbw(13) type c,
eoln(1) type c,
end of ws_final .
INTERNAL TABLES
*---internal table for vendor details
data:i_lfa1 like ws_lfa1 occurs 0.
*---internal table for pur org details
data:i_lfm1 like ws_lfm1 occurs 0.
*---internal table for pur inf details
data:i_eina like ws_eina occurs 0.
*---internal table for final file output
data:i_final like ws_final occurs 0.
*DATA : P_FLAG(1) TYPE C.
CONSTANTS
*-- Default file name
constants: c_filename_default(40) type c
value 'VOLSAP/MAXVRLIB/manu_retail_vendor',
c_kalsk(2) type c value '05'.
SELECTION SCREEN
selection-screen begin of block b1 with frame.
selection-screen: begin of block b2 with frame title text-001 .
select-options:s$lifnr for lfa1-lifnr .
parameters:p$relif as checkbox.
selection-screen end of block b2.
selection-screen: begin of block b3 with frame title text-002 .
parameters: p$file(128) obligatory default c_filename_default.
selection-screen end of block b3.
selection-screen end of block b1 .
START OF SELECTION
start-of-selection.
if not s$lifnr is initial.
perform get_vendor_data .
endif.
perform build_file .
perform display_file .
END OF SELECTION
end-of-selection .
*& Form GET_VENDOR_DATA
form get_vendor_data .
select lifnr
name1
from lfa1
into table i_lfa1
where lifnr in s$lifnr .
if not i_lfa1[] is initial.
sort i_lfa1 by lifnr .
select lifnr
kalsk
minbw
from lfm1
into table i_lfm1
for all entries in i_lfa1
where lifnr = i_lfa1-lifnr .
select lifnr
relif
from eina
into table i_eina
for all entries in i_lfa1
where lifnr = i_lfa1-lifnr
and relif = 'X'.
endif.
endform. " GET_VENDOR_DATA
*& Form BUILD_FILE
form build_file .
loop at i_lfa1 into ws_lfa1 .
ws_final-lifnr = ws_lfa1-lifnr .
ws_final-name1 = ws_lfa1-name1 .
read table i_lfm1 into ws_lfm1 with key lifnr = ws_lfa1-lifnr .
if ws_lfm1-kalsk = c_kalsk .
ws_final-kalsk = 'X'.
endif.
ws_final-minbw = ws_lfm1-minbw .
ws_final-eoln = 'X'.
if p$relif = 'X'.
CLEAR P_FLAG.
LOOP AT I_EINA INTO WS_EINA
WHERE LIFNR = WS_LFA1-LIFNR
AND RELIF = 'X'.
P_FLAG = 'X'.
EXIT.
ENDLOOP.
IF P_FLAG = 'X'.
APPEND WS_FINAL TO I_FINAL .
CLEAR WS_FINAL.
ENDIF
read table i_eina into ws_eina with key lifnr = ws_lfa1-lifnr
relif = 'X'.
if sy-subrc = 0.
append ws_final to i_final .
clear ws_final.
endif.
else.
append ws_final to i_final .
clear ws_final.
endif.
endloop .
endform. " BUILD_FILE
*& Form DISPLAY_FILE
form display_file .
data: l_lines type i.
describe table i_final lines l_lines.
if l_lines > 0.
perform open_file using p$file.
loop at i_final into ws_final.
transfer ws_final to p$file.
endloop.
close dataset p$file.
else.
write: / 'no data found'.
endif.
endform. " DISPLAY_FILE
*& Form open_file
Open an output file, customizing default name to include
vendor number and job completion timestamp.
form open_file using file_nm.
data: l_vendor like eina-lifnr,
l_timestamp(12) type c.
Get correct path/filename for the system we're running on
call function 'FILE_GET_NAME'
exporting
logical_filename = 'ZVOL'
parameter_1 = file_nm
importing
file_name = file_nm.
Open file for output
open dataset file_nm for output in text mode encoding default.
if sy-subrc ne 0.
message e368(00) with 'Error opening output file:' file_nm.
endif.
endform. "open_file
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.
Edited by: krupa jani on Aug 20, 2008 6:55 AM -
Assign Logical file name for the physical file path through Program
Hi all,
I am having a physical file which is getting generated dynamically. It is having the date and time stamp in its name which is added at runtime.
Now I need to assign a logical file name for the physical file path through the program.
Is there any FM or any other method to assign the same.
GauravI think it is not possible. becuase the date & time added at runtime. so if you check the table PATH you can find filename and their definitions
a® -
Usage of logical name, logical path name, physical name of a file
Hi all,
I have to write to a file on the application server. I had been given the logical name, logical path name and physical name. Suggest how to use these parameters and get the path where to store the file.
Thanks & Regards,
Kasinath.Open Dataset
catch system-exceptions DATASET_CANT_OPEN = 8.
open dataset UNIX_FILE for output in text mode encoding default.
endcatch.
Write to Dataset
loop at IT_STR into IS_STR.
catch system-exceptions DATASET_NOT_OPEN = 0 .
transfer IS_STR-STR to UNIX_FILE.
endcatch.
endloop.
if SY-SUBRC eq 0.
message S138(ZSM) with 'Data Downloaded to Unix File'.
endif.
Close Dataset
close dataset UNIX_FILE.
Regards
- Gopi -
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 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 -
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 Aggarwalhi,
try using this for filename.
parameters : p_file like rlgrap-filename.
Thanks,
Gaurav
Maybe you are looking for
-
I had one confusion about the network carrier of which one to chose. Actually I do not know the difference between them. Are they related to some sort of sim cards? I would be grateful if anyone could help me to get away this confusion.
-
How to connect Apple TV to DVD blu-ray home theatre
Hi guys, I am planning to buy Apple TV2 and I was wondering is there setup guide for connecting to HDTV and home theatre system. I currently have LG HDTV and LG DVD Blu-ray Home Theatre. They are connected with HDMI 1.3 cable and I had to get optical
-
How do I open PS4 without having to delete my preferences?
I have been using CS3 Web Prem, but just updated to CS4 Web Prem. I installed the suite, registered, downloaded all updates, and downloaded the most recent driver for my graphics card (GeForce 9800T). I have 4 GB RAM and use Vista Home Premium for
-
Mac OS X 10.5.6 Fast User Switching Freezes Screen
The past two Mac OS X versions (10.5.5 and 10.5.6) result in the screen freezing after initiating Fast User Switching. Version 10.5.4 worked as designed, but 10.5.3 had the same issue. Seems to be video display related. Using a 20" display does not r
-
Where to find the log on the failure of Infosource activation?
Hi, While trying to activate an infosource, (from the infosource maintenance screen, there was a message see log for warnings but I dont see any log on the inforsource maintenance screen. Where do I see this log on the infosource? Thanks