Dump when writing a file to application server
Hi,
I am developing a customer statement report and putting the data into application server.
if the data is less - the file is getting created in application server.
if there is huge amount of data - the back job gets cancelled
The error description/dump is as follows :
Runtime Errors DATASET_WRITE_ERROR
Except. CX_SY_FILE_IO
The current program "ZCUST_STMT" had to be terminated because
a capacity limit has been reached.
The dump points in the line at TRANSFER STATEMENT
>>>>> TRANSFER lv_string TO v_file.
Is there any memeory space (Max limit ) specified for application server for a single file ?
How can we solve this issue ?
Thanks
Senthil
Hello Senthil,
Is the program terminating in the DEV box or in another subsequent system?
If in DEV, you can try to catch the exception & get the exception text. Something like this:
DATA: lx_file_err TYPE REF TO cx_root, "File Exceptions
lv_msg_txt TYPE string.
TRY.
TRANSFER x_data TO x_filepath.
CATCH cx_sy_file_io INTO lx_file_err.
lv_msg_txt = lx_file_err->get_text( ). "Get the error text
ENDTRY.
BR,
Suhas
Similar Messages
-
Problem in French translation while writing a file on application server
I am writing some text symbols to a file on application server using Transfer statement. But for some french characters the data is not transleted correctly. I have maintained the french translation for these text symbols.
Hi,
Make sure you use the correct encoding while writing your file.
Regards. -
Short Dump when writing the file to Unix.
ST22 Dump Log.
Short text Error when writing to the file "/appl/data/backlog/outbound/bop_bwfcstngall_erp
What happened? Resource bottleneck
The current program "ZPS_BACKLOG_NEW_READ" had to be terminated because
a capacity limit has been reached.
_Error analysis
An error occurred when writing to the file
"/appl/data/outbound/bop_bwfcstngall_erp_20110919_151220.dat".
Error text: "A file, file system or message queue is no longer available."
Error code: 52ask your basis collegues, the dump says that the file system was not available, so it is clear that your writing to Unix could not happen.
have a look into OSS Note 1100926 - FAQ: Network performance -
Error when deploying war file into application server
I wrote a web service in java using RAD and managed to check it using a web service client with no errors.
However, after creating a war file and tried to deploy this into the Sun application server, the following can be seen at the application server console:
Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception ; requested operation cannot be completed Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
In the server.log file, the following appears:
loyment|_ThreadID=13;|DPL5035:Error while running ejbc
com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- j axrpc compilation exception
at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:206 )
at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1101 )
at com.sun.enterprise.deployment.Application.visit(Application.java:1346)
at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:103)
at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:785)
at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:42 7)
at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:213)
at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:967)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java :193)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.j ava:140)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.ja va:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentS ervice.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:188)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:520)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:172)
|#]
[#|2007-11-14T11:21:10.083+0930|INFO|sun-appserver-ee8.1_02|javax.enterprise.system.tools.deploy ment|_ThreadID=13;|Total Deployment Time: 14145 msec, Total EJB Compiler Module Time: 0 msec, Po rtion spent EJB Compiling: 0%|#]
[#|2007-11-14T11:21:10.116+0930|SEVERE|sun-appserver-ee8.1_02|javax.enterprise.system.tools.depl oyment|_ThreadID=13;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:206 )
at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1101 )
at com.sun.enterprise.deployment.Application.visit(Application.java:1346)
at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:103)
at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:785)
at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:42 7)
at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:213)
at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:967)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java :193)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.j ava:140)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.ja va:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentS ervice.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:188)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService. java:520)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:172)
|#]I got a similar error deploying to Weblogic with JBuilder 6 and it proved to be
the Manifest.mf file inside war, which is very sensitive to CLASSPATH entry. Finally
I used the file generated by JBuilder and it worked ...
Stefan
Frank Sun <[email protected]> wrote:
Hi, this is Frank.
I have a war file and want to deploy it. but somehow I got java.lang.StringIndexOutOfBoundsException:
String index out of range: -1
error
Would anyone please help me?
This war file is able to be deplyed using Tomcat 4.0.3.
Please help. -
How to Raise alert in XI when a new file reaches application server
Hey guys
i have a requirement in which i need to trigger a piece of ABAP code whenever a new file reaches a specific directory of Application server.
i m using File adapter on receiver side and i want to raise a trigger so that the ABAP code is executed automatically whenever some new file reaches the directory
we are running Win server
thanx
ahmad
Message was edited by:
AhmadHI,
It is possible to write a ABAP program to raise alert.and schedule it , In ABAP program we can check the file is existed or not in a specified folder if existes then we can raise Alert.Actually Alerts are maintained by SAP Alert Management only.
So , but not clear , you said you are using the File receiver adapter .
-- onoption is -this can bepossible with OS command .
-- also we can raise alert from Payload itself , why becz i understand whenever you are going to write a file with file adapter then you need to raise an alert right?
so if message is existed i mean data existed then from raise alert and store the file onoption
-- Also you can try calling an ABAP program as the auto-reaction method of the MTE in CCMS
Regards
Chilla
See the below links
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/434fa590-0201-0010-1e9a-c27e6283a0fe
SMS through SAP ABAP program
XI Alert from BPM with Follow-Up Activity
ABAP programming BAPI To XML
How to send qRFC Alert to Internet Email from AP0 3.1 running 4.6D BASIS
/people/gregor.wolf3/blog/2005/03/05/create-users-in-an-abap-system-with-bapi-ostermiler-java-utilities -
Creating a file on application server that exceeds 10 Million charecters
Hello All,
We have custom IDocs which carry Strings of 1062 characters in each of their segments.
Now the requirement is to create a single string file out of these idocs data.
It is expected that each of these IDocs can go up to having more than 70,000 segments.
So, now when this is concatenated into one single string it can go upto 7 Million charecters.
My questions are:
1. Can we create a text file with so many charecters in a single line or is there any limitation for this ?
2. I have found a datatype CHAR30000, using which i'm currently concatnating around 30 segment data and then writing onto the file. Now once I wrote a single line, how can I set the pointer to End of line ?
3. Is there any limitation in ABAP to create such a long string text file using method mentioned above ?
Thanks for responding back!!
-SriNo, It should be something like below.. for writing the file onto application server , which aint working though...
*Writing output data into the file.
lw_endofline = 30000.
OPEN DATASET p_fileop FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT int_output INTO wa_output.
TRANSFER wa_output-sdata TO p_fileop.
"SET DATASET p_fileop POSITION lw_endofline.
SET DATASET p_fileop POSITION lw_endofline.
lw_endofline = lw_endofline + 30000.
ENDLOOP.
CLOSE DATASET p_fileop. -
Create Excel file in application server but the field value is incorrect
Hi Experts,
i am facing a problem when create excel file in application server using OPEN DATASET command.
the internal table have 4 field and one of those field contains 19 digit number --> ICCID.
the code running well, successfully create EXCELfile in application server but the problem is SAP only copy exactly first 15 digit numeric only and the rest became zero 0
Example :
the field value in internal table is 8962118800000447654 but when i opened in the excel file the value became 8962118800000440000.
and if i add alphabet like a8962118800000447654 then it is correct.
is there is anything wrong with my code?
here is my code
CONSTANTS: c_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab. "Tab Char
Data : begin of lt_zdsdmmdt00005 occurs 0,
SERNR (18) type c,
MSISDNl(20) type c,
BOX1 (20) type c,
ICCID(30) type c,
end of lt_zdsdmmdt00005.
data : ld_temp(100) type c.
i_file = '/usr/sap/DM/test_excel.xls'.
open dataset i_file for output in legacy text mode.
loop at lt_zdsdmmdt00005.
move lt_zdsdmmdt00005-ICCID to ld_iccid .
concatenate lt_zdsdmmdt00005-sernr lt_zdsdmmdt00005-MSISDN lt_zdsdmmdt00005-BOX1 ld_iccid
into ld_temp separated by c_tab.
transfer ld_temp to i_file.
endloop.
close dataset i_file.
Best Regard,
Akbar.Hi Naveen,
thanks for your reply,
i already tried and the result still the same. any idea?
Best Regard,
Akbar. -
Open hub error when generating file in application server
Hi, everyone.
I'm trying to execute an open hub destination that save the result as a file in the application server.
The issue is: in production environment we have two application servers, XYZ is the database server, and A01 is the application server. When I direct the open hub to save file in A01 all is working fine. But when I change to save to XYZ I´m getting the following error:
>>> Exception in Substep Start Update...
Message detail: Could not open file "path and file" on application server
Message no. RSBO214
When I use transaction AL11, I can see the file there in XYZ filesystem (with data and time correspondent to execution), but I can´t view the content and size looks like be zero.
Possible causes I already checked: authorization, disk space, SM21 logs.
We are in SAP BW 7.31 support package 6.
Any idea what could be the issue or where to look better?
Thanks and regards.
Henrique TeodoroHi, there.
Posting the resolution for this issue.
SAP support give directions that solved the problem. No matter in which server (XYZ or A01) I logon or start a process chains, the DTP job always runs in A01 server, and it causes an error since the directory doesn´t exist in server XYZ.
This occurs because DTP settings for background job was left blank. I follows these steps to solve the problem:
- open DTP
- go to "Settings for Batch Manager"
- in "Server/Host/Group on Which Additional Processes Should Run" I picked the desired server
- save
After that, no matter from where I start the open hub extraction, it always runs in specified server and saves the file accordingly.
Regards.
Henrique Teodoro -
Error when loading a flat file from Application server.
Hi,
I am trying to load a flatfile from the application server, and I am getting the message
Error while accessing the application server file
Message no. RSDS_ACCESS002
I checked for notes and found only one:
Note 1033978 - Correction: Loading Unicode files from application server
but we have 19 SP level, and the note says it needs 13 SP level, so I think it would not be of any help.
does anybodie know what to do??
thanks for the help.
MauricioError in accessing while application server file..
when i am trying load the data to psa
when i am taking the file name: text-type file from app server
plz reslove me for this problem??
another question
when i am saving the file with using * in the filename in .CSV file its not saving,
whats the reason????
ASHOK -
Error in Downloading the Text file on Application Server
Hi All,
I am working on ECC6.0. I have written a program in whcih I am downloading the text file on
application server in UTF-8 format. However when I am opening this file in Excel I am getting
garbage value for some characters(as Excel does not support UTF-8 format). So now I
want to download the data on application server in text file in non unicode format(Like ANSI or
other non unicode format) which is supported by excel. When I am writing the code as
OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT MODE it is giving me dump saying
CHARACTER CONVERSION FROM CODE PAGE '4102' to CODEPAGE '1100' NOT POSSIBLE.
Same in case if I add the code OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT
MODE CODE PAGE '8000' is also giving dump.
So please let me know how can I download the file in non unicode format ?
Any help would be greatly appricated.
Thanks & Regards
Jitendra Gujarathi.OPEN DATASET l_filename FOR INPUT IN TEXT MODE ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
CHECK sy-subrc EQ 0.
DO.
CLEAR wa_file_content.
READ DATASET l_filename INTO wa_file_content.
IF sy-subrc EQ 0.
APPEND wa_file_content TO it_file_content.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET l_filename.
t_filedata[] = it_file_content[].
can you use like this. -
How to delete the Generated files from application server(open hub)?
hi experts,
when i try to execute process chain the DTP it is giving below dump. Exception CX_RSBK_REQUEST_LOCKED logged.
when i execute the DTP manually and trying to delete the previous request, it is giving for dump ITAB_DUPLICATE_KEY.
so to delete the generated file from application server, how to delete it for specific dates?
Information on where terminated
Termination occurred in the ABAP program "GPD6S3OE0BCVGC6L9DBNVYQARZM" - in
"START_ROUTINE".
The main program was "RSBATCH_EXECUTE_PROZESS ".
In the source code you have the termination point in line 2874
of the (Include) program "GPD6S3OE0BCVGC6L9DBNVYQARZM".
The program "GPD6S3OE0BCVGC6L9DBNVYQARZM" was started as a background job.
and when i check the dump it is point out at below code
" Populate the lookup table for 0STOR_LOC
SELECT * from /BI0/TSTOR_LOC
into CORRESPONDING FIELDS OF table L_0STOR_LOC_TEXT
FOR ALL ENTRIES IN SOURCE_PACKAGE WHERE
STOR_LOC = SOURCE_PACKAGE-STOR_LOC.
but the programme is syntactically correct only.
how to rectify the issue.
regards
venuscm
Edited by: venugopal vadlamudi on Sep 28, 2010 1:59 PMhi experts,
We have written start routine to get the storage location text and sending to File located at Application server through OPEN HUB.
here is the code written in the Transformations
In the global section
Text for 0STOR_LOC
DATA: l_0stor_loc_text TYPE HASHED TABLE OF /bi0/tstor_loc
WITH UNIQUE KEY stor_loc.
DATA: l_0stor_loc_text_wa TYPE /bi0/tstor_loc.
and in the code to get the text
" Populate the lookup table for 0STOR_LOC
*SELECT * from /BI0/TSTOR_LOC*
into CORRESPONDING FIELDS OF table L_0STOR_LOC_TEXT
FOR ALL ENTRIES IN SOURCE_PACKAGE WHERE
STOR_LOC = SOURCE_PACKAGE-STOR_LOC.
im sure there is problem with the Routine only. i think i need to change the code if so please provide me the modified one.
thanks
venuscm
Edited by: venugopal vadlamudi on Sep 29, 2010 9:37 AM -
Writing error file from app server to windows serevr in background job
Hi Gurus!
I have a program that runs in the background and updates or uploads or inserts the tables with data in background and generates an error log . I would like to write this file on the windows serevr from the application serevr during the run of the program itself automatically. I tried running several jobs with my program but its not writing to the windows serevr , it writes on the application and then stops . Is theer a fault in my coding above.
form write_err_file .
IF v_zss = 1.
case p_as.
when 'X'. "X is application server
case sy-sysid.
when 'DEV' or 'SBX'.
ltp_dir = '\\nal.local\application\SAP\ERP\ZWELL\wmigdc\error_log\uwi_error'.
concatenate ltp_dir sy-datum '.txt' into ltp_dir.
when 'QAT'.
ltp_dir = '\\nal.local\application\SAP\ERP\ZWELL\wmigdc\error_log\uwi_error'.
concatenate ltp_dir sy-datum '.txt' into ltp_dir.
when 'PRD'.
ltp_dir = '\\nal.local\application\SAP\ERP\ZWELL\wmigdc\error_log\uwi_error'.
concatenate ltp_dir sy-datum '.txt' into ltp_dir.
endcase.
open dataset p_err2 for output in text mode encoding default message ltp_mess.
if sy-subrc = 0.
loop at t_err into s_dls.
transfer s_dls to p_err2.
if sy-subrc ne 0.
message i010(ad) with p_err2 'Download Failed'.
endif.
endloop.
close dataset p_err2.
else.
message i010(ad) with p_err2 'dataset could not be found'.
sy-subrc = -1. "Maintain error condition
endif.
open dataset p_err2 for input in text mode encoding default message ltp_mess.
if sy-subrc = 0.
do.
read dataset p_err2 into fs.
if sy-subrc = 0.
append fs to itab.
else.
exit.
endif.
enddo.
close dataset p_err2.
endif.
OPEN DATASET ltp_dir FOR OUTPUT IN TEXT MODE ENCODING DEFAULT MESSAGE ltp_mess.
if sy-subrc = 0.
loop at itab into fs.
transfer fs to ltp_dir.
endloop.
close dataset ltp_dir.
else.
message i010(ad) with ltp_dir 'dataset could not be found'.
sy-subrc = -1. "Maintain error condition
endif.
Please advice.
RegardsThere are lot of posts on the same issue: [please check this|https://www.sdn.sap.com/irj/scn/advancedsearch?query=localfilesbackground&cat=sdn_all]
-
OPEN DATA SET to write files in application server folder - some of the files are missing
Hi,
I'm using OPEN DATASET statement in batch job to write the files in application server. what i'm experiencing is when i schedule the batch job all the files are not writing into the folder.
If i run the report again to write the missed files, the files are writing into the application server folder.
after opening the dataset, i'm closing it. do we need to give any delay between creation of the files? or until the first write operation is done, 2nd one can't start ..how can we achieve this.
Thanks for your help in advance.
Thanks,
Adi.Hello Bathineni,
Are you using the sy-subrc check after the OPEN DATASET statement.
If not use a sy-subrc check and transfer the contents to file only when the OPEN DATASET returns value sy-subrc = 0.
if sy-subrc is 8 repeat the same loop say for 3 attempts until the OPEN DATASET becomes 0.
DO 3 TIMES. <---- put any number of attempts as you need
OPEN DATASET.
IF sy-subrc = 0.
TRANSFER contents to file.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET.
Regards,
Thanga -
Infopackage-Load Many Files from Application Server and later Archive/Move
Hi All..
I have a doubt, I have a requirement of take many files to load into BI 7.0.. I used the infopackage before with option:
Load Binary File From Application server
I load information successfully... only with one file ...but If I can load many files (with different names) like the next list.. I think it's not a good idea modify the file name (path) on infopackage each time).. :
*All of this files will be on one server that itu2019s map into AL11.. Like
Infopfw
BW_LOAD_20090120.txt
BW_LOAD_20090125.txt
BW_LOAD_OTHER_1.txt
u2026.
Etc..
This directory it's not in BW server.. It's other server..but I can load form this location (one file by one)
Could you help me with this questions:
- How can I Use an infopackage with routine that take all the files..one by oneu2026 in order of creation dateu2026and load into Target? Is it possible?.. I have some knowledge of ABAP.. but I don´t know exactly how I can say to system this logicu2026
- In addition is it possible move this files to other locationu2026 like into Infopfwarchive u2026 just to have an history of files loaded.
I saw that in infopackage you have an option to create a routine.. in ABAP codeu2026 Iu2019m a little bit confused because I donu2019t know how I can specify all the path..
I try with:
Infopfw
InfopfwFile.csv
Infopfw
This is the abap code that automatically you see and you need to modifyu2026
Create a routine for file name
This routine will be called by the adapter,
when the infopackage is executed.
p_filename =
p_subrc = 0.
Thank you for your ideas or recommendations.
AlHi Reddy, thank you for your answer
I have some doubuts.. when you explain me the option:
All the above files are appending dates at the end of the file....
You can load the files through infopackage by using Routines and pick the files based on date at the end of the file..***
I need to ask you if you think that when you know the date of the file and the infopackage pick each file... thi can work for many files??... or how it's possible control this process?
About this option, I want to ask you If when you menction Unix code... where it's programed this code?.. in the routine of BW Infopackage??
****Or
Create two folders in your BW in Application server level, in AL11 (ask Basis team)
I call it is F1 and F2 folders.
First dump the files into F1 I assume that the file name in F1 is "BW_LOAD_20090120.txt", using Unix code you rename the file and then keep in the same foleder F1 or move to F2.
Then create InfoPackage and fix the file name (i.e. you renamed), so you don't need to change everyday your file name at infopackage level.Because in AL11 everyday the file are overwrite.
To I get BW_LOAD_20090120.txt file in F1, then I renamed to BW_LOAD.txt and loaded into BW, then tomorrow I get BW_LOAD_20090125.txt in F1, then I renamed to BW_LOAD.txt....
so in this way it will work.You need to schedule the Ubix script in AL11.
This is the way how to handle the application server...I'm using the same logic.
Thank you soo much.
Al -
Regarding downloading file on application server ?
i am using open data set and close data set to create file on application server.
the program is compiling fine, but when i execute it, it throws a dump saying
DATASET_NOT_OPEN , it says that the file is not open.
when i check value of sy-sub-rc it is 8. no file on server.
i want to create a dynamic file name, like i want to append the sy-cdate to the file name, so that when i schedule my program every day, i will create a new file.
what is the t-code to look at directories on app server. i tried al11, but couldnt find mine..but the basis said they had already created a folder for me there.
- Points will be awarded for inputs.
Message was edited by:
ravi aHi,
May be you don't have write permission for the corresponding folder on the application server. thats why you could not create file on that folder.so ask you basis people for read/write permission on the that destination folder..
For creating dynamic file , you can use logical file and physical file concept..
for each interface maintain a logical file name in a ztable and ask your basis people to maintain a physical file path on application server for each logical file name.(using FILE Txn).
first get the logical file name from ztable then get corresponding physical path onapplication server using FM 'FILE_GET_NAME' and finally concatenate the sydatun to physical file name...
DATA: l_file_folder TYPE string,
l_logical_file TYPE fileintern,
CLEAR: file1.
*<b> First get the logical file name from table zabc021</b>
SELECT SINGLE log_file " Actual file location
INTO l_logical_file
FROM zabc021
WHERE interface = p_interface
AND inorout = 'O'. "outbound interface
<b>* Get the physical file name from the logical file name</b>
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
CLIENT = SY-MANDT
logical_filename = l_logical_file
IMPORTING
file_name = l_file_folder
EXCEPTIONS
file_not_found = 1
OTHERS = 2
IF sy-subrc = 0.
<b>* In actual situation the file name should come from FILE txn</b>
CONCATENATE l_file_folder
p_interface '_' sydatum4(2) sydatum6(2) '.DAT' INTO file1.
ELSE.
CLEAR file1.
MESSAGE s999 WITH 'No logical file maintained with name ' l_logical_file.
EXIT.
ENDIF.
now file1 is the file name.
I hope this info is useful to you...
Reward if needful
Maybe you are looking for
-
To display the output of a FM inside a tree
Hi all, 'REUSE_ALV_POPUP_TO_SELECT' is a FM for displaying or selecting table entries in internal tables in a popup . I need to display the output if this FM inside a tree. That is when i expand the tree , the output of the FM shoul be displayed .
-
iPhoto is appearing as free on MAC store and it is also featured as one of the top 10 free apps, when i downloaded it, my credit card got charged for 790 rupees. I am using the latest OSX Maverick.
-
MatchCode for 100.000 rows = dump
Hi! I use FM F4IF_INT_TABLE_VALUE_REQUEST for a personal matchcode in a dynpro field. But if the internal table has got 100.000 rows, the system dump. How can I do for display the match code without dump? Thanks very much!
-
Convert and merge pdf's. Automator?
I'm looking once again to see if Automator can help me with a project: Ongoing task: 1) Convert Contracts in Word to PDF 2) Merge each contract with signature page Either with some version of Acrobat, or some software specific to the task. I envision
-
How to copy music on ipad mini in windows format to a mac?
Is is possible to copy music from my ipod mini in windows format to my new mac?