How to set logical filename..
Hi i have to set the logical filename in the output screen in by which my report should pick the files from the specified location
can anybody tell how should i set the logical file name...
thanks.
Hi,
Check this FM,
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
* CLIENT = SY-MANDT
logical_filename =
* OPERATING_SYSTEM = SY-OPSYS
* PARAMETER_1 = ' '
* PARAMETER_2 = ' '
* PARAMETER_3 = ' '
* USE_PRESENTATION_SERVER = ' '
* WITH_FILE_EXTENSION = ' '
* USE_BUFFER = ' '
* ELEMINATE_BLANKS = 'X'
* IMPORTING
* EMERGENCY_FLAG =
* FILE_FORMAT =
* FILE_NAME =
* EXCEPTIONS
* FILE_NOT_FOUND = 1
* OTHERS = 2
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,
Vik
Similar Messages
-
Infospoke - How to single Logical Filename for all infospokes
Hello all,
I want to only have one logical path and logical filename for all of my infospokes.
For example if I have infospokes ZAAA, ZBBB, ZCCC, I want to have only one common setting in the destination properties of TC:RSBO but three different distinguishable files on my OS.
I think with the standard settings, I have to make one logical file for every infospoke I have.
I am aware that I can put <DATE> or <TIME> etc in the logical file settings but that will not distinguish which infospoke the file came from.
I want my file to look more like <INFOSPOKE>_<DATE><TIME>.csv
I've already seen the document "How to Extract Data with OPEN HUB to a Logical Filename" and this is not it because I have BW3.5 and 3.5 already does what this article says.
Any help would be greatly appreciated.
Just in case, I am on BW3.5 SP17 on Windows/SQL.Jasprit,
Thanks for your input.
The functionality of the FM you said is similar to the InfoSpoke functionality...
Is it the same thing?
I wonder if I use this it means it is not part of the InfoSpoke license...
I will have our programer look at it and see what he thinks but in the mean time any other information is greatly appreciated. Especially if I can stick with using the standard InfoSpoke functionality...
Isn't this kind of functionality something that everyone wants?
I wonder why SAP didn't make it like this? -
FtpAdapter How to set the filename
Hi,
I am using FtpAdapter to put files I want to set the custom filename how do I do that. I am storing a filename in a variable and needs to have that name when FtpAdapter puts the file on a Ftp Server.
ThanksWell to dynamically assign file name to the FTP'ed file, need to use the ftpAdapterOutboundHeader.wsdl
Create a variable of OutboundHeader_msg message type which is defined in ftpAdapterOutboundHeader.wsdl
Assign the custom file name to this newly created variable's fileName element.
For example if Variable_File_Name_Obj is the variable created then the code should include
Variable declaration
<variable name="Variable_File_Name_Obj"
messageType="namespace:OutboundHeader_msg"/>
Assign
<assign name="Assign_File_Name">
<copy>
<from some variable>
<to variable="Variable_File_Name_Obj"
part="outboundHeader"
query="/namespace:OutboundFTPHeaderType/namespace:fileName"/>
</copy>
</assign>
Kalidass
http://oraclebpelindepth.blogspot.com/ -
How to set log filename dynamically
Hi all!
Could anybody give me a hint how I can set file name for log4j dynamically.
I have a log4j.properties file:
log4j.rootCategory=debug, stdout, R
#### First appender writes to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %-6p [%c{1}] %m%n
#### Second appender writes to a file
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.DatePattern='.'yyyy-MM-dd
log4j.appender.R.File=Myfilename.log
log4j.appender.R.MaxFileSize=10000KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{ABSOLUTE} %-6p [%c{1}] %m%nand following code in my class:
Logger LOGGER = Logger.getLogger(MyClass.class);
File logFile = new File("newFilename.log");
logFile.createNewFile();
FileAppender r = (FileAppender)LOGGER.getAppender("R");
r.setFile(logFile.getAbsolutePath());
r.activateOptions();Unfortunately it does not work as r is NULL.
It throws java.lang.NullPointerException.
Could anybody help me?I wouldn't try to mess with the file name. I'd use logging the way it is intended - with the correct log file name configured.
Even if you successfully do that, what do you suppose will happen when the log "rolls over"? Do you expect it to honor the fact that you've changed the base file name? I would expect it is going to fail when it closes the log, renames it using the rolling pattern, and creates a new log. -
How to set destination filename at runtime
Hello All ,
I want to set the destination filename at runtime , so that it will include the run date and time in the generated file name .
It should be like this , in the distribution xml file :
<destinations>
<file id="MyFiles" name="v_report_file_name" format="pdf">
<include src="report"/>
</file>
</destinations>
and v_report_file_name will be replaced by the runtime file name.
Any ideas anybody ?
RegardsHi Navneet ,
Thanks for for your input. I tried following solution provided by you . I got the following error :
REP-34304: Expected name instead of <.
REP-0110: Unable to open file 'C:\....\LOCALS~1\Temp\xyz_distribution00202584.xml'.
REP-34304: Distribution failed to complete, please review the distribution lists
I tried creating a user parameter with a default initial value and using the same parameter in the distribution file . I also tried creating a formula column in the data model and referring to it in the distribution xml file .
The distribtion xml file contents are as under :
<destinations>
<!-- Generate file for printing -->
<foreach>
<file id="MyFiles" name="&<p_param_name>.pdf" instance="this">
<include src="mainSection"/>
<include src="trailerSection"/>
</file>
</foreach>
</destinations>
Did I go wrong anywhere ?
Regards
Shripad -
How to set the filename when downloading a file?
I'm working on mvc4. I have generated excel file dynamically using following simple code my hosting is on Azure
I have created a Root path and then try to save that excel file.
Problem is when my Action Result method response comes back it is giving default popup to open a file but file name is having a GUID instead my provided file name
What id wrong any clue?
Excel file generation code:
Microsoft.Office.Interop.Excel.Application xlApp =
new Microsoft.Office.Interop.Excel.Application();
return tempPath;
This method returns something like C:\AppData\Local\dftmp\Resources\11a2435c-998c-4fe8-aa55-8bb42455b4ca\directory\myexcelFILE.xls.
The Download File popup does not give file name as myexcelFILE.xls it gives some GUID why so?
Action
Result method code
public ActionResult DownloadExcel(){
string path = ExcelGenerationCode(fileName);
Stream s = new FileStream(path, FileMode.Open, FileAccess.Read);
return new FileStreamResult(s, "application/vnd.ms-excel");
Ashish Fugat (ashuthinksatgmail.com) SEhttp://forums.asp.net/
The above forum has the MVC section. -
How to set Logical path?
Hi,
Please reply.
Thanks in advance,hi,
at selection-screen on value-request for f_app.
perform get_fname_app.
form get_fname_app.
data: c_fnh_mask type dxfields-filemask value '.',
search_dir type dxfields-longpath value '/sapglobal/users',
file_path like dxfields-longpath.
call function 'F4_DXFILENAME_TOPRECURSION'
exporting
i_location_flag = 'A'
i_server = ' '
i_path = search_dir
filemask = c_fnh_mask
fileoperation = 'R'
importing
o_path = file_path
exceptions
rfc_error = 1
others = 2
if sy-subrc eq 0.
f_app = file_path.
endif.
endform.
regards,
deepthi reddy -
HT202415 How does one set Logic Pro 9 to operate in 64 bit mode?
I would like to know how to set Logic Pro to run 64 bit mode. Thanks for your help.
Hi
Perhaps this will help
Logic Pro and MainStage 64-bit mode FAQ - Apple Support
CCT -
How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B
Hi Friends,
How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
External Trading Partner is sending the EDI 856 via AS2 URL to our Oracle B2B Server.
In the inbound 856 agreement, we have checked the option of Funtional Ack and also Functiona Ack handled by B2B is yes.
We have the outbound agreement which is sending that Functional ack 997 (auto generated by oracle b2b) and we have specified the Outbound AS2 channel of the Partner.
997 doc is being sent to external partner using AS2 channel, but the filename is generating as '40101'.
Please can you let me know how to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
Appreciate your valuable answers!!
Thanks,
AmirineniAmirineni,
AFAIK, there is no option to set the file name when the 997 is generated automatically by B2B.
Alternatively, if this is a must requirement, you can generate the FA from backend and send to B2B with MSG_TYPE =9. In this case, you can set the header with filename (How to set the actionname property in B2B 11g) -
Hi Experts,
i ve developd a HR-ABAP report in that Some part of code will Mon-Fri, Excluding Public holidays and sat & sundays...( i.e no public holidays and no sat & sundays)
and some part of should Run on 1st of everymonth.... but 2 parts of code should be in same report..
How can set the logic to run the report respective times....
Thanks in Advance....
sudeer.you can code this but need some good expertise on fm's , date handling techniques and subroutine call coding.
1.
to make the code run only on 1st of every month
capture the rundate of ur prog .. take value of sy-datum
ex.. 01.xx.yyyy
or date std will be yyyymmdd so check for dd = 01 ..
so per logic first two chars show that its first of any month in any year ..
if yes
execute the logic for the first of every month ..
endif.
2.
where the code needs to be run on mon-fri and not on public holidays / sun / sat ..
first fetch the day based on date .. like mon or tue or wed .. except sat and sun..
second check whether if m-t-w-th-fr if any of them is a holiday or not
u need to check the date in the calender list like tholi thoc and .. to check whether that is a holiday or not ..
coming to sat and sundays .. u need to check the day for date using function modules and build the logic ...
br,
vijay.. -
How to set up headphone mix logic pro x
Trying to figure out how to set up headphone mix in Logic Pro X but cannot get stereo sends.
Maybe this will help, in Logic Pro 9 there was a box under preferences/audio called universal track mode. If you unchecked this box then when settng a send or creating a aux track you had the ability to select mono or stereo busses. Logic Pro X doesn't seem to have this. So when creating a aux channel with output stereo 5-6 I can't select stereo thus I can't create sens to the left or right side of this aux channel for headphone mixes. In Logic Pro 9 I can create a stereo aux channel with bus 1-2 output 5-6 (to headphone amp) I can then use sends to send musical instrument to bus 1 (left side) and vocals to bus 2 (right side). I hope this helps I just want to know if this function is still in Logic Pro x or we have to go back to OLD SCHOOL way of doing this.
Thanks -
Rendering xml-table into logical filename in SAP R/3
Hi,
I am trying to translate an xml-table with bytes into a logical filepath in SAP R3.
Do I have to use the method gui-download or shall I loop the internal xml-table?
When I tried to loop the xml-table into a structure, and then transfering the structure into the logical filename, I get problems with the line breaks in my xml-file. How do I get the lines to break exactly the same as I wrote them in my ABAP-code?
Edited by: Kristina Hellberg on Jan 10, 2008 4:24 PMI believe you posted in the wrong forum.
This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
Ludek -
Extract Data with OPEN HUB to a Logical Filename
Hi Experts,
Can anybody help me in sending the link for How to guide...Extract Data with OPEN HUB to a Logical Filename?
Thanks in advance.
BWUserHi,
check this links...
http://searchcrm.techtarget.com/generic/0,295582,sid21_gci1224995,00.html
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e698aa90-0201-0010-7982-b498e02af76b
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1570a990-0201-0010-1280-bcc9c10c99ee
hope this may help you ..
Regards,
shikha -
InfoSpoke Flat File Extract to Logical Filename
I'm trying to extract data from an ODS to a flat file. So far, I've found that the InfoSpoke must write to the application server for large data volume. Also, in order for the InfoSpoke to transport properly, I must use logical filenames. I've attempted to implement the custom class and append structure as defined in the SAP document "How To... Extract Data with OPEN HUB to a Customer Defined Logical Filename". I'm getting an error when attempting to import the included transports (custom class code). It appears to be a syntax error. Has anyone encountered this, and, if so, how did you fix it?
Hello.
I'm getting a syntax error also. I did not import the transport, but applied the notes thru the appendix. When I modified the method "GET_OBJECT_REF_INT" in class CL_RSB_DEST as below, I get a syntax error on the "create object" statement.
when rsbo_c_desttype_int-file_applsrv.
*{ REPLACE &$&$&$&$ 1
*\ data: l_r_file_applsrv type ref to cl_rsb_file_applsrv.
data: l_r_file_applsrv type ref to zcl_rsb_file_logical.
*} REPLACE
create object l_r_file_applsrv
exporting i_dest = n_dest
i_objvers = i_objvers
Class CL_RSB_DEST,Method GET_OBJECT_REF_INT
The obligatory parameter "I_S_VDEST" had no value assigned to it. -
How to set print option for a Billing document using T-code VF02
Hi All,
Please suggest me the way to set print option for a Billing document for T-code VF02 and please let me know how to get print preview for any particular Billing document?
regards
Anand.Enter the billing documents detail
Goto Goto> Header>Output.
Check the status for your output type in this screen.
If it is green then come back to the VF03 screen.Enter the billing document number.
Click on Billing document-->Issue output to.
Press (CtrlShiftF1) or click on the icon beside "Print options".
Here you can see the print preview.
If the status is red then click on the processing log.Here you will get the error messages.
If the status is in yellow colour,then click on the "Further Data" button
Set "Dispatch time" as "4 Send immediately (when saving the application)"
Before the print preview option you should make sure you have added correct output type to the relevant billing document. To do that, go to transaction VF02.
Enter the billing document no
Go to Menu option -> Go to -> Header -> Output
In that screen you have to add relevant output type. (Standard output type is RD00)
Add that & press enter key
Highlight that line & press "Further Data" button
Set "Dispatch time" as "4 Send immediately (when saving the application)"
Press "Back" Button
again select that line & go to "Communication method" button
Set "Logical destination" as LOCAL"
Don't mark "Print immediately" & "Release after output" ticks. If you mark them, sa soon as you save the billing document, you'll get a print out.
Press "Back" Button
Save
Now form the initial "Change Billing Document" screen, Go to Menu option; Billing Document -> Issue Output to
You can see that output type line appear.
select that line & press "Print Preview" button or (CTRLSHIFTF1)
You can see the print preview.
Alternatively you can use VF31 to print multiple print outs at same time.
If you want to get PDF outputs of billing documents, go to your printer settings in the your computer from Control Panel.
Set PDF Writer as "Default Printer" (Right click & select "Set as Default Printer")
Then normal way, print the billing from SAP.
It'll automatically send to your PDF writer. You can save it to the path you want,
Maybe you are looking for
-
Oracle 9i PE Installation problem on XP
I am using Windows XP Pro on a 1.8GHz PC, with 80G hard drive. I downloaded Oracle 9i, unzipping to 3 folders, and began installation of the Personal Edition. The first disk installed without problems. However, when directed to the folder labeled Dis
-
How to resolve network issue or dns to access web page on snow leopard server?
I have my network setup like as follows: internet > router 1 > ethernet ports > switch > router 2 I have a mac osx snow leopard server connected to "router 1", but it is so slow when accessing a web page hosted on the server from a browser on a works
-
I recently updated my 2010 iMac 21.5 to MAVERICK. Now I have installed new versions of Pages and Keynote. I have been working on a KEYNOTE presentation that I am modifing for a new presentation at month end, and I can not insert new script. The templ
-
Mini dvd stuck in drive - how do I eject it?
I inserted a mini DVD into the dvd drive. The dvd player doesn't show that anything is in there and therefore won't eject it. Please help.
-
Odi_11.1.3 releasenotes
hii Are release notes available for odi 11.1.3. if yes,where can i get the document?