Flat file Background Job.
Hi,
I want to load flat file data in SAP BI through background job. so what is the process to save the flat file in the application server home directory(DIR_HOME) (trans-AL11). ???
Regards,
Viraj.
Hi,
See this link
Flatfile loading into Application Server:-
Uploading and Downloading Excel file from application server.
Regards
Tg
Similar Messages
-
Background job finished but flat file not created in the Background
Dear all,
ZHR_CSD program is scheduled to run daily at 00:01:00. This program is generating the flat file in the folder CSD/HR.
when i schedule this program to run immediately it is generating the flat file.
But when i schedule this program in Background it is not generating flat file .
RegardsHi,
As suggested by Eric, your Z Program is probably using GUI_DOWNLOAD Function Module.
GUI_DOWNLOAD or any other GUI function modules (FM) will only run in foreground, not in Background.
Ask your developer to code that Z Program with OPEN DATASET logic, if its possible.
The Reverse situation is well described in [this thread|Background Job assigment with variant in SM37 , for Textfile uploading], please refer it to get some relative information for the same.
Regards,
Bhavik G. Shroff -
Background Job : To download file to windows server
Hi Gurus,
Here we have to develop a program thats creates a csv file in a network shared folder( a windows folder), We have to schedule it as a background process. We cant use gui_upload function module, since it doesnt support background jobs.
Please share your ideas.
Any idea about ftp?
Thanks in advance,
Anuroophi,
I think you can have a network shared folder on application server.
you said that it is a comma separated file.
1) Using TCODE CG3Z, upload the flat file to application server , remember to copy the path (it contains file path aswellas name).
2) Using DATASET read the filepath along with the name and read each line into workarea and split at ',' into fields.
3) Then append those fields to internal table.
using the FMs job_open, job_submit and job_close you can go for background scheduling.
Please go through the following link for sample code on FTP.
http://abap4.tripod.com/FTP_Using_SAP_Functions.html
Reward points if helpful.
Thanks and regards -
Upload an excel file in the server with a background job
I am trying to upload an excel file in the server, but i only can upload flat files, i can upload files in local with the function ALSM_EXCEL_TO_INTERNAL_TABLE, can i use this function reading an excel file in the server, or is there another possibility of uploadinging an excel file in the server with a background job ?
thanks in advanceHi
First read the file from the server to some temporary place at presentation layer and then open it. And if required, save it to the server afterwards. To read/write files to application server you can use:
1. Statements "OPEN DATASET/CLOSE DATASET".
2. There are some FMs for server file operations, like "C13Z_FILE_UPLOAD_BINARY" and "C13Z_FILE_DOWNLOAD_BINARY".
*--Serdar -
System exception while deleting the file from app server in background job
Hi All,
I have a issue while the deleting the file from application server.
I am using the statement DELETE DATASET in my program to delete the file from app server.
I am able to delete the file from the app server when i run the program from app server.
When i run the same report from background job i am getting the message called System exception.
Is there any secuirity which i need to get the issue.
Thank You,
TaraginiHi All,
I get all the authorization sto delete the file from application serever.
Thing is i am able to run the program sucessfully in foreground but not in the background .
It i snot giving any short dump also just JOB is cancelled with the exception 'Job cancelled after system exception ERROR_MESSAGE'.
Can anybody please give me suggestion
Thanks,
Taragini -
Can we run in Background job which can pick a file from front end ?
Hi All,
I would like to run a report in Background job , for this i need to pick a file from front end services(Local drive or share folder)
Is there any alternate FM=>GUI_UPLOAD to upload data from front end services or any other solution for this?
I am getting error=> "No batch" and " Cannot perform frontend function in batch input mode"
Could you please help on this ?
Thanks for your help in advance.
Regards,
Prasad.Hello Prasad,
IF you keep your file on a shared folder on your front end, you can access it via OPEN DATASET if your application server has access to that path.
You can test it out by asking Basis to try and access your front end file from the app server itself. -
Ctrl-c in bash kill openbox started from rc file as background job
Hi,
Ctrl-c in bash kill openbox started from rc file as background job.
strange, isn't it ?I want to have openbox in the job list of a bash. as if my xinitrc was "exec xterm" and I manualy enter the "openbox &" commande in the xterm window. I suppose this is a common wish : telling bash to read from file then from keyboard, but that not exactly what bashrc do.
"ps j" for openbox started in bashrc
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
1769 1773 1773 845 pts/0 1752 S 1000 0:00 xterm -e bash --rcfile ~/bin/xsession.sh
1 1780 1773 845 pts/0 1752 S 1000 0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
1773 1783 1783 1783 pts/2 1805 Ss 1000 0:00 bash --rcfile ~/bin/xsession.sh
1783 1795 1783 1783 pts/2 1805 S 1000 0:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX
1783 1805 1805 1783 pts/2 1805 R+ 1000 0:00 ps j
"ps j" for openbox started by keyboard or PROMPT_COMMAND
1718 1722 1722 845 pts/0 1701 S 1000 0:00 xterm -title Login -e bash --rcfile ~/bin/xsession.sh
1 1729 1722 845 pts/0 1701 S 1000 0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
1722 1732 1732 1732 pts/2 1747 Ss 1000 0:00 bash --rcfile ~/bin/xsession.sh
1732 1744 1744 1732 pts/2 1747 S 1000 0:00 openbox
1732 1747 1747 1732 pts/2 1747 R+ 1000 0:00 ps j
ps have PGID equal to the bash TPGID, so it is foreground. openbox from PROMPT_COMMAND have his own PGID, so it is background. openbox from bashrc share PGID wish bash ... so if bash do not consume Ctrl-c signal openbox receive it ? I assume it is some things like this, but why ? INVOCATION and JOB CONTROL sections in bash manpage do not seems describe this, so that's a strange behaviour. -
Can ABAP proxy to consume WSDL file be run as background job for every10min
Hi all,
I have a requirement where I need to build an interface which gatheru2019s the purchase order details and send to external third party software in their required format (as an XML file).
So I should be the first point of contact and should trigger the interface each time a purchase order is generated.
So I am thinking that I should develop a background job for every 10 minutes which will look for new purchase orders and gathers the information of the purchase orders and send them to external third party software in their required format.
I have gone through all the SAP forums and e-Learning but still I have confusion in regards to how is it possible technically? Can some one guide me with some information on the same.
I have a little bit of confusion and want to know few things.
1) Should I create a web service or should I consume a web service?
2) If I need to consume a web service, then can I write an ABAP proxy to be run in background fro evry 10 minutes? I mean can we run ABAP proxy as a batch job in the background?
3) Is there a difference between consuming an XML file and WSDL File?
Any Help will be highly appreciated.
Regards,
Jessica.There are two options (as I know) to generate XML file.
1. Use XML TRANSFORMATION to get the XML string based your TRANSFORMATION. You can input your data and get back the XML string. Download this string to a file
Test XML generation program is:
types: begin of ty_data,
num type i,
end of ty_data.
DATA: itab TYPE standard table of ty_Data,
la_data like line of itab,
xmlstr TYPE string.
DO 3 TIMES.
la_data-num = sy-index.
APPEND la_data TO itab.
ENDDO.
CALL TRANSFORMATION ztest_np1
SOURCE table = itab
RESULT XML xmlstr.
CALL FUNCTION 'DISPLAY_XML_STRING'
EXPORTING xml_string = xmlstr.
My ZTEST_NP1 transformation. To create a transformation, click on the transformation in the "CALL TRANSFORMATION ztest_np1" statement. Select Simple transformation type.
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="table"/>
<tt:template>
<table>
<tt:loop ref=".table">
<item>
<tt:value ref="NUM"/>
</item>
</tt:loop>
</table>
</tt:template>
</tt:transform>
XML string is like:
<?xml version="1.0" encoding="utf-8" ?>
<table>
<item>1</item>
<item>2</item>
<item>3</item>
</table>
To use this option, you have to create a transformation and than use it to generate the XML string.
Check this SAP Help
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm
2. You can concatenate and create an XML string and download that string into a file.
Regards,
Naimesh Patel -
Update table form local file as background Job
Hi Expert,
I have a requirement to update a database table through Text file in a background. I am trying to do through OPEN Database to upload the file to Application server and then triggerind a event for background job. please provide method to update the table in background job.
Regards,
Kapil.hi,
if i have understood you can try this:
1) create a custom event with transaction SM62.
2) schedule the update job ( with the update program in its step ) trigging the event set in (1) .
3) execute the program that upload the local file from presentation server to application server . The last istruction of this program has to be the call ot the custom event using BP_event raise fn module in the uplaoad is ok..
4) if the event has been raised, the background job has been executed.
Regards, luigi. -
Create a Excel File in a Background Job
Hi SAP Gurus,
I am trying to create an Excel file using a background job but it is not possible.
In foreground mode i get a file.
Can someone give an explanation for that? Or someone have a workaround ??
Best Regards
João FernandesJoão,
If you have successfully demonstrated that SAP can write an output to an excel file, then it can do this in background as well as foreground. The problem is probably not with the fact that it is 'Excel', but that it is trying to write a file in the background to a destination file location that is unknown to the system.
Generally, without special setup, SAP software is unaware of most file locations that are outside of the SAP system itself. When you log on through the SAP Gui, the SAP back end can "learn" about certain additional file locations through your PC setup and the SAPGUI session. This 'knowledge' is lost as soon as you commit your program to a background process.
Talk to your Basis person, and tell him what you wish to do. This functionality is possible to do, but probably not in the way you are expecting.
Best Regards,
DB49 -
Regarding Background Job scheduling for file to file scenario
Hi Guru's
Good morining all of u
I have one doubt on ...
can we do background job scheduling for file to file scenario?
Please give me response as early as possible.
thanks and regards
saibackground jobscheduling for file adapter...
you can schedule the file adapter according to your requirement as follows:
In the Communication Channel Monitoring Locate the link Availability Time Planning, In Availability Time Planning, choose the Availability time as daily and say create, give the time details, select the communication channel in your case file adapter , goto the Communication Channels tab and filter and add the respective channel, save it
/people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19- -
How to schedule the background job if report have Presentation server files
Hi All,
I have searched the forums and found , the way for the scheduling the background job if report selection screen have the presentation server file input.
1. Using the Open data set method.
And my client is not OK with Open dataset way, it there any other way to do this, As we are using the EXCEL file.
Thanks and Regards,
BharaniHi,
As said above it is generally not possible. Since your client most obviously doesn't like graphical background I would recomend storing data as till now, but show it with your own report in more userfriendly way. For example:
- as ALV Grid
- in excel with use of OLE either as embedded in SAP or new window (check transaction OLE for example)
- with use of webdynpro
BR
Marcin Cholewczuk -
Error while opening the file in Background job in Virsa.
We are using Virsa 5.2
I click on the result tab to view the job results.(informer->Background job) I am getting this message.
Mar 3, 2008 1:49:15 PM com.virsa.cc.comp.GenericRAReportView wdDoModifyView
WARNING: .\virsa\bgJobSpool\16.i (The system cannot find the file specified)java.io.FileNotFoundException: .\virsa\bgJobSpool\16.i (The system cannot find the file specified)
Can you please let me know?
Nothing has been changed including my user profile.
From,
PT.Hi,
Here are number of notes that I have listed out to sort some issues on SAP GRC 5.2 .
There is a note for background daemon issue as well
Installation
Note 1009509 - VIRSANH 5.2 Support Packages for BASIS 700
Note 1022187 - Compliance Calibrator 5.2 Support Pack
Post Installation
Note 1022187 - Compliance Calibrator 5.2 Support Pack
Note 1008500 - VIRSA 4.0 Support Packages for Basis 700
Note 1060673 - Configuration of SAP Adapter in CC 5.2
Note 709140 - Recommended JDK and VM Settings for the WebAS630/640/7.0
Note 1044173 - Recomended Netweaver Setting for Access Control 5.x
Note 1044174 - Recommendation for CC 5.x running on Oracle 10G Database
Note 1121978 - Recommended settings to improve peformance in CC 5x analysis
Note 978536 - Language Configuration for Virsa Compliance Calibrator 5.2
Issues
Note 1008500 - VIRSA 4.0 Support Packages for Basis 700
Note 999785 - CC Background Daemon will not Start
Note 987386 - Graphics Rendering Issue in SAP Compliance Calibrator
Note 1009267 - System ID is not available in drop down menu-CC5.1
Note 1052455 - Error-No relevant language message available in database
Note 1062037 - java.lang.NullPointerException error in Adapter activation
Note 1088378 - CC 5.2 - Undeployment of ccappcomp from SDM fails
Thanks,
Uday -
File path problem in background job spool
Hello ,
i have probelm in file path of the background job in spool.
i have selection screen
Radiobutton : p_local
parameter: path1.
Radibutton: p_applicatioserver
parameter: path2.
if i keep program in background job, it will alwas take second option.
Now user selected first option and executed job in abckground. File stored in the spplication server with corect file path name. (path2)
But when i go to sm37 entered job name and checked the spool, it gives me the file path name path1. but i need the file path1 in the background spool. my question whether i need to change the file path name in program or whether i have to change the setting
Regards,
zubFirst of all, local is not an option in background job; you can only save to the apps server, and your program should take that into consideration by checking for sy-batch = 'X', for example. You should be checking in your at selection-screen to be sure the user has not chosen local path and file and background job.
-
Background Job spool / output file in different app server
We are working with 2 ECC app servers, A and B.
I've defined in app server A a background job to run an abap report and this report creates and submit 4 other background jobs.
Each of these 4 jobs is regarding an abap report which outputs a text file in the server.
The question is, why are the jobs generating the files in different app servers randomically?
The same file, in the 1st execution was generated in app server A, and without any change was generated in app server B, in the job 2nd execution?
Thank you!Hi,
You can specify server name whille creating a batch job , so that it gets executed to that server only.
there is one field (in SM36 during creation or SM37 while modifying batch job) called "Exec Target " , where you can specify server name.
Hence you can plan to run your some batch jobs on server A or B.
Regards,
Rupali
Maybe you are looking for
-
How many computers can I install the software on
how many computers can I install the software on?
-
Delete photo clip in imovie?
I have an imovie full of photos only....my song is too short...how do I delete the photos to match the song....thanks!!! i don't want to go all the way back to iphoto and re-import them.
-
Setting parameter in Detail View Object
I want to setting parameter in detail view.I have two table.One is master another is detail.I use parameter in master table so I put my page parameter form and I execute it.It work fine.I want to use parameter in detail table.In detail table if I don
-
Running application in full screen mode
Hi, everyone. I want to write an application (extends JFrame) which runs in full screen mode. It normally runs as a window with minimize, maximize, and close buttons on the top right corner of the window. I want to run it in full screen mode, or at l
-
Select Option on Module Pool screen
How to display select options on Module Pool screen ?