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
Similar Messages
-
Tcode BDLS and BDLSS problem with logical system names
Hello!
I have following problem.
During the SAP ECC 6.0 installation we have forgotten to give the clients the logical names.
Now, during the customizing it is necessary to have all the tables with logical names, so I have given for all the systems a logical name.
Now I have problem to convert all the tables that were customized without logical to such with one.
<b>Is there some (semi)-automatical mechanism to do this or should I go to the SE16 and do it there?</b>
Thank you very much indeed
regards
ThomHi,
You need to do it from SE16 or SM30
Regards
Sudheer -
Getting error logical file name not maintained adequtely
Hi,
when i execute a z report and press the download botton getting error logical file name not maintained adequtely,see long text.
Below code i wriien. Please somebody help..
DATA: lt_rows TYPE lvc_t_row.
CASE e_ucomm.
WHEN 'DOWNL'.
Determine and construct OS specific file name *
PERFORM get_file_name_for_os.
in the above perform , i wriien
FORM build_file_name USING pf_os
pf_with_file_extension
pf_param_1
pf_format
pf_fname.
DATA: lf_para1(20) TYPE c.
pf_param_1 hold the materialnr with leading zeros not prefered in *
download file name *
WRITE pf_param_1 TO lf_para1.
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
CLIENT = SY-MANDT
logical_filename = 'Z_MATERIAL_BOM_FILE'
operating_system = pf_os
parameter_1 = lf_para1
PARAMETER_2 = ' '
PARAMETER_3 = ' '
USE_PRESENTATION_SERVER = ' '
with_file_extension = pf_with_file_extension
USE_BUFFER = ' '
IMPORTING
EMERGENCY_FLAG =
file_format = pf_format
file_name = pf_fname
EXCEPTIONS
file_not_found = 1
OTHERS = 2
Error handling.
CASE sy-subrc.
WHEN '1'.
MESSAGE e014(ba) WITH 'Z_MATERIAL_BOM_FILE'. "error message i am getting LEAVE.
WHEN '2'.
MESSAGE e213(ky) WITH 'Z_MATERIAL_BOM_FILE'.
LEAVE.
ENDCASE.Hi.
In file txn,
click on "Logical File Name Definition, Cross-Client" from the left.
Then click position and check for your logical file name.
If you dont get it, it means you need to create it. You can click on New Entries to create.
Thanks
Mani -
InfoSpoke and Logical File Name
We have created an Infospoke to extract data to a logical file. When we define the Logical File Name Definition using the FILE transaction, we have to enter a physical file name. This will require us to create a new Logical File Name Definition for every Infospoke. Instead of hard coding the physical file name in the Logical File Name Definition for each InfoSpoke we would like to dynamically create the file name to include the InfoObject Name (cube, ODS object, etc) in the physical file name.
We have tried to use the <F=CPROG> substitution parameter in the logical file name. When the function module FILENAME_EXIT_CPROG is called we find that we do not have access to any information other then what is available in the system variables (structure SYST)
1. Are there any modification to the class CL_RSB_FILE_LOGICAL and method DETERMINE_FILENAME that we can make to create a logical file name that includes the InfoSpoke name?
2. Is there any way to access any system information from within the FILENAME_EXIT_CPROG function module that would give us the InfoSpoke information?I think you can modify the method 'DETERMINE_FILENAME' for this.
In the call to FILE_GET_NAME_USING_PATH FM, add an additional parameter 'parameter_1', and set its value to O_R_REQUEST-N_OHDEST (this should have the open hub destination name).
call function.....
parameter_1 = O_R_REQUEST-N_OHDEST
If the logical filename contains placeholder (< > ??), it should now be replaced with the destination name.
I am not very familiar with ABAP objects. You might wish to check whethet it is possible without a 'modification' like this, where you create another Z implementation of the class and delegate(?). -
Retain background jobs and its variants before system refresh activity
Hello All,
I am going to perform system refresh activity on quaity system on monday. Customer wants to retain the background jobs and its variants in the quality system. Please guide me and let me know the steps to retain the background jobs and its variants before starting the system refresh activity.
Regards
SubbuDear Subbu,
You have to export the TBT* Tables to retain the jobs. You can do this with R3trans:
1. Make Export file
2. Make Import file
3. Make Export in Q System before Systemcopy
4. Start Database and not SAP
5. Make Import in Q after Systemcopy
6. Start sap
1. Make Export file /tmp/export_cmd
export
file='/tmp/export_Q.dmp'
client=<your client>
delete from TBTCA
delete from TBTCB
delete from TBTCCNTXT
delete from TBTCCTXTT
delete from TBTCCTXTTP
delete from TBTCI
delete from TBTCJCNTXT
delete from TBTCJSTEP
delete from TBTCO
delete from TBTCO_V01
delete from TBTCP
delete from TBTCPV
delete from TBTCR
delete from TBTCS
delete from TBTC_SPOOLID
delete from BTCEVTJOB
select * from TBTCA
select * from TBTCB
select * from TBTCCNTXT
select * from TBTCCTXTT
select * from TBTCCTXTTP
select * from TBTCI
select * from TBTCJCNTXT
select * from TBTCJSTEP
select * from TBTCO
select * from TBTCO_V01
select * from TBTCP
select * from TBTCPV
select * from TBTCR
select * from TBTCS
select * from TBTC_SPOOLID
select * from BTCEVTJOB
2. Make Import file /tmp/import_cmd
import
file='/tmp/export_Q.dmp'
3. Make Export in Q System before Systemcopy
R3trans -w /tmp/Q_export.log /tmp/export_cmd
4. Start Database and not SAP
sqlplus "/as sysdba"
SQL> startup
or
startsap
stopsap r3
5. Make Import in Q after Systemcopy
R3trans -w /tmp/Q_import.log /tmp/import_cmd
If you want to undo this, start the export script in P system and the Import script in Q system.
Don't be afraid of the delete statement but without delete it doesn't work!
6. Start sap
startsap
Best regards
Willi Eimler -
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 -
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 -
Logical file names and Physical file names
Hi Guys...
Can you let me know what is the difference between Logical file names and Physical file names?
Regards,
RohitUsing Logical Files in ABAP Programs http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/content.htm
Creating and Defining Logical Filenames
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3df8358411d1829f0000e829fbfe/content.htm -
Infpackage with logical file name having current year and month
Hello all,
I am using the FILE transaction to maintain the logical file name for infopackage loads in BW.This logicalfile name is to be assigned to physical csv file in AL11 directory.
This csv file would be having the current month and date at the end of the name for e.g for the month of April 2008,the file name would be say xx_200804.csv.I wanted to know if by using the palceholder <YEAR><MONTH> in the physical file name ,would the current month date and month be automatically concatenated at the end of file name ?Has anyone used this option before?yes it does work,i tried out finally and the system picks current month and year
-
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 -
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 anticipationhi,
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 -
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® -
Master database logical file names are different - Please Help!
Today I noticed that one of the server in our environment,
when i run
SELECT *
FROM sys.database_files
i got results
data_space_id name
1 master2
0 master_Log2
Please note logical name of the master database files.
But, in SSMS if i right click and choose properties for master database, it shows logical file names are master, mastlog.
How can this be happened? How can i fix this issue and make it both same names for master database?
Please help!Today I noticed that one of the server in our environment,
when i run
SELECT *
FROM sys.database_files
i got results
data_space_id name
1 master2
0 master_Log2
Please note logical name of the master database files.
But, in SSMS if i right click and choose properties for master database, it shows logical file names are master, mastlog.
How can this be happened? How can i fix this issue and make it both same names for master database?
Please help!
Its nothing to worry about may be master was restored from backup which had logical file name as master2
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
Hoe to logical file name using "FILE" transcation
I want to create a logical file name using "FILE" transaction , i have file path '/xfer/OUT/IDD0230 ' that cureently hard coded in program but i want to avoid hard code .
You need to go to FILE transction, create new entry.
You need to specify Physical name i.e value hardcoded in your program
and corresponding new Logical Path which enduser will be entering.
In code u ned to decode Logical path to physical path as its actual path.
Award points if helpful.
Shital
Maybe you are looking for
-
Does the iPod nano keep changing songs if I keep it in my pocket?
I'm not going to be running or gymming with the iPod nano in my pocket. It is mostly for home use. I just wanted to know that since there is no HOLD/LOCK button, it may keep changing songs if put in a tight pocket while walking or travelling. Is that
-
Hi, as part of university project I have designed a website in a similar mould to tilllate.com and fotoparty.co.uk. I managed to find a freeware flash gallery that i have modified and am quite pleased with but stupidly managed to forget that those vi
-
Compatibility question and syncing
I plan to get a new laptop for work. Seeing as it will come with Mac OS X 10.5 Leopard and my iMac is running OS X 10.4.11 Tiger am I likely to have any issues with compatibility? Or should it work fine? I know that, in theory, it should be fine but
-
ATV1 - Content Streaming Issue
I am able to access all of my Itunes content via AppleTV (ATV1) but for some reason AppleTV is not showing up as a device in iTunes. I have checked software updates, hard reset, restarted iMac, restarted Time Capsule, and all of the other basic steps
-
Hi, I have 2 questions about jdbc-class-ind-value attribute. First it is not clear what are the allowed value types: number, single chars, full strings ? Second, as stated in chapter 7.8.2 of the manual, application should ensure that all the classes