Background process data format
Dear all,
Kindly help that when we run any report in background processing its output format not display as per excel .
Like Lines are overlapping
Kindly guide.
Regards,
Choksi
Hello,
In my opinion, some specific SAP notes have to be applied. Kindly check the same.
Regards
Mahesh
Similar Messages
-
While Idoc to File XI processing : data format change
Hi All,
need help.
I am processing idoc to file in a sscenario.
Here we have one field in Idoc is "Miscdata" Where we are passing one String with multiple spaces"
While this String goes to XI it remove the multiple space and make single space. I am not getting. how can I avoide.
I can not avoide it XI side. Here I am using substring to take different value from different position of the String which are fix.
Please help me in thisclosing. thanks
-
ABAP Custom Report (ALV Format) in Background Processing
Hi
I am not the hardcore ABAP Person. But want to know about the detail fact of the ABAP Custome Reports. The question is can we do the background processing for the ABAP Custome Report in ALV Format.
If Yes ..do we require to have any additional Function/code to get the spool in ALV Format. I saw the comments that the output will look like the mess.
Please share your comment or any useful documenation on this. We are in ECC 6.0
Thanks in advance..and yes it will be rewared by points.
NavinYou can use alv's in background using docking containers, but the display wont be interactive. If you search the forum you will see tons of threads which talk about running ALV's in background.
For the output to be interactive, you can run the report in foreground and do the data processing in background.
Refer this link:
Displaying ALV Grid in Background Job -
Data of alv report in excel file in background processing using open datas
Hi Experts,
I have developed report for purchase register . if i execute this report in background process i am not able to get the downloaded file in excel and output is also not coming properly, columns are going to overlap.
i used open dataset read dataset and close dataset but still problem is not solved. so if anyone have code with this and also which will have concatenate statement in the code send it.
Regards,
RahulHi Rahul,
Ur code shud be like below:
DATA : l_filename2 TYPE string,
v_extn.
SPLIT p_filename AT '.xls' INTO l_filename2 v_extn.
CONCATENATE l_filename2 'downloaded' INTO l_filename2 SEPARATED BY '_'.
CONCATENATE l_filename2 'txt' INTO l_filename2 SEPARATED BY '.'.
OPEN DATASET l_filename2 IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.
IF sy-subrc <> 0.
MESSAGE e499(sy) WITH text-e02.
ENDIF.
LOOP AT it_order_number INTO wa_order_number.
TRANSFER wa_order_number TO l_filename2.
ENDLOOP.
CLOSE DATASET l_filename2.
Now, go to tcode AL11 and check it in the Application server itself.
Hope this helps,
Regards,
Arnab. -
ERROR while uploading the data into ztable with background processing
Hi gurus,
i am trying to upload the data from excel file to internal table
its working fine ..
but........
if i try to upload the data with background processing , in sm37 it is saying "error during the upload of clipboard contents".
Regards,
SriHi,
FM GUI_UPLOAD doesnt work in background, use dataset to upload it from application server.
refer below code
*--Local Variables
DATA : l_file TYPE string,
l_line TYPE string,
l_index TYPE sy-tabix.
*--Clear
CLEAR : l_file.
l_file = p_ipfile.
*--Read the data from application server file.
OPEN DATASET l_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
*--Error in opening file
MESSAGE i368(00) WITH text-005.
ENDIF.
*--Get all the records from the specified location.
DO.
READ DATASET l_file INTO l_line.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT l_line AT cl_abap_char_utilities=>horizontal_tab
INTO st_ipfile-vbeln
st_ipfile-posnr
st_ipfile-edatu
st_ipfile-wmeng.
APPEND st_ipfile TO it_ipfile.
ENDIF.
ENDDO.
Regards,
Prashant -
Create and Format an Excel File as a Background Process(Application Server)
Hi all,
I have a requirement to Output a formatted(Bold fonts, Merged Cells etc.) Excel File.
It is to be run as background process. So ideally, the file will be produced in the ApplicationServer and will already contain the formatting. If I am to use ole2 functions such as
*--Opening the existing document
call method of gs_wbooks 'Open' = gs_wbook
exporting #1 = file_path.
Is this possible? can file_path point to the file created in the ApplicationServer?
Any answers, suggestions or workarounds would be greatly appreciated.
Thanks in Advanceno.
that works only in dialog
A. -
Which background process writes date into alert log file in oralce
which background process writes date into alert log file in oralce
Hi,
AFAIK, all the background process are eligible for writing information to alert log file. As the file name indicates to show the alerts, so background process have the access rights in terms of packages (dbms), to write to alert log.
I might be wrong also..
- Pavan Kumar N -
Crystal Reports VS 2008 "The request could not be submitted for background processing"
Hi,
I am going to try to explain this issue the best I can. Please let me know if you need any other information or have any ideas as I have exhausted my resources. We have an ASP.NET application that has highly formatted crystal reports in them that the users can export as PDFs. All reports export without a problem when the application is run off of our desktops. The reports use a sql server authenticated user, executing stored procedures, and each subreport is linked by the main parameter. We are using Visual Studio 2008 version 3.5 SP1 with Crystal Reports Basic for Visual Studio 2008 on Windows 7 Enterprise SP1. We have designed the reports in Crystal Reports XI Release 2 (11.5.12.1838) and imported them into the ASP.NET application. When trying to export the reports as PDFs from the development or production servers, we get the error message below for some, not all, reports:
System.Runtime.InteropServices.COMException (0x800002AD): Error in File C:\Windows\TEMP\KeyAccountProfile {9FA5C095-77A2-425D-AC6B-8BB66B435336}.rpt: The request could not be submitted for background processing. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
We have cleared the temp directory on the servers before exporting and are still receiving the error. We have installed Crystal Reports Basic Runtime for Visual Studio (10.5.2.0) on both servers. I have identified the underlying issue to one stored procedure/subreport that is causing the report to fail. The weird thing is, when we change the connection to point to development, the stored procedure/subreport runs fine for the report that generates an error when run from production, and the data is the exact same. I have tried rebuilding the subreport but the error still appears even though it runs fine for other reports.
I have been through the document below, and othe similar issues in the forums, but still have not found a resolution. I was trying to use the "modules" application put since this is an ASP.NET application I am unsure of which executable I should be looking at.
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33?QuickLink=index&overridelayout=true&36837934524320
Thanks in advance for your assistance,
Brad Hood
06-26-14
OK.. I did some more investigating on this today. I have found out when I move the sub report that generates the error under another sub report, the sub report in question runs without issue. But when I try and move the sub report that produces the error above any other sub report, the error still generates. Can this get any weirder.... FYI.. there is a total of ten sub reports on this report.Hi Brad
I'm not sure that Modules would show us anything in this case, so let's try a few other things:
1) Make sure you are using SP 1 for Crystal Reports Basic Runtime for Visual Studio:
Crystal Reports for VS 2005 and VS 2008 Updates & Runtime Downloads
2) Seeing as this works on dev, this may be some db inconsistency so enabling the report option "Verify on 1st Print" will be a good idea.
3) Double check the database client and make sure the same client is used on dev and deployed systems. Actually I take back my Modules negative as this is where it may prove useful. Once you have the Modules logs, look at who is loading the crpe32.dll, then look at that process and see the client dlls.
4) Check the printer driver; see if there are any updates. Try a different printer driver.
Ten subreports is not too bad, though not that good either as you are loading the report engine with at minimum 11 simultaneous reports (each subreport is considered to be a report). If a subreport is in a details section and the details section returns a 100 records, you are running 100 + 1 reports. This may lead to memory issues, which may lead to the error.
If I was a betting man, I'd put most of my money on the printer driver (based on your last addition to your post). What ever money I had left would go to some database issue (be it actual data or client related).
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Hi Experts,
I have developed report for purchase register . if i execute this report in background process i am not able to get the downloaded file in excel and output is also not coming properly, columns are going to overlap.
i used the functional module SAP_CONVERT_TO_XLS_FORMAT, but it is coming without data i.e excel file is blank.So tell me How to download excel file in background process
directly? If u have reference code send me.
Regards,
Balu.KHi Bala,
Below is the sample code...
PARAMETERS: p_file TYPE fileextern DEFAULT '/sapout/xyz'.
File on Application Server
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE.
Transfer the content.
LOOP AT gt_output INTO gs_output.
TRANSFER gs_output TO p_file LENGTH 1000.
ENDLOOP.
CLOSE DATASET p_file.
Hope it will help.
About SPAD, follow the below steps.
Goto SPAD-> Full Administartion-> Device Types-> Format Types->
Check for the format X_65_1024/4.
This is the maximum allowed size format with 65 lines and 1024 charcters.
If its there you can use it.
Or create a new format with 65 lines(20000 lines are allowed without page breaks) and 1024 columns(maximum allowed) Z_65_1024.
Then copy the standard Device type to ZSAPWIN and attach the new format Z_65_1024.
Then copy the Output device LOCL to ZLOCL and assign device type ZSAPWIN.
Then while sheduling jobs in background you can use ZLOCL with the new fromat Z_65_1024.
BR/Manas -
Background processing - unable to access the file
Hi Gurus!
01/09/2009 00:00:06 Job started
01/09/2009 00:00:06 Step 001 started (program ZWELL_UPLOAD, variant 20080107WMI-1, user ID STIWARI)
01/09/2009 00:00:06 File P:\SAP\ERP\ZWELL\wmigdc\wmi_dls_extract_20090107_3 does not exist or cannot be opened
01/09/2009 00:00:06 Step 002 started (program ZWELL_UPLOAD, variant 20080107WMI-2, user ID STIWARI)
01/09/2009 00:00:06 File P:\SAP\ERP\ZWELL\wmigdc\wmi_dls_extract_20090107_2 does not exist or cannot be opened
01/09/2009 00:00:06 Step 003 started (program ZWELL_UPLOAD, variant 20080107WMI-3, user ID STIWARI)
01/09/2009 00:00:07 File P:\SAP\ERP\ZWELL\wmigdc\wmi_dls_extract_20090107_3 does not exist or cannot be opened
01/09/2009 00:00:07 Job finished
Can I get some help as to why is it not able to loacte the file when run through background processing when its able to read and excute when I directly run the program. Is theer any settings that I need to set up in the ABAP program itself which will enable to make it happen or else what to do so that I can set a background job to happen successfully.
ThanksI have assigned thhose correctly I believe.
* Selection-Screen *
selection-screen begin of block 1 with frame title text-001.
parameters: p_bukrs type t001-bukrs default '1000', " company code
p_zss type zsds_uwi-zss, " Survey system
p_pathps like rlgrap-filename modif id g1 , " Presentation server path
p_pathas like rlgrap-filename modif id g2 , " Application server path
* p_pbkas LIKE rlgrap-filename MODIF ID g2 , " Backup path
p_err like rlgrap-filename , " error file as SAP table format
p_err2 LIKE rlgrap-filename, " error file as input format
p_ps like ssfparms-binccerts radiobutton group ssff " Presentation server
default 'X' user-command shift,
p_as like ssfparms-binccerts radiobutton group ssff." Application server
selection-screen end of block 1.
* Includes *
include zwellupd0001. "Top Include
include zwellupd0002. "Form Include
* Initialization.
initialization.
*--- Assign default '1' to survey system
p_zss = v_zss = 1.
* At Selection-Screen *
at selection-screen output.
perform modify_screen.
*-Presentation
at selection-screen on value-request for p_pathps.
call function 'KD_GET_FILENAME_ON_F4'
exporting
static = c_x
changing
file_name = p_pathps.
*-Application
at selection-screen on value-request for p_pathas.
*- Assign the Physical File Name Using a Logical File Name
call function 'FILE_GET_NAME'
exporting
client = sy-mandt
logical_filename = c_asin
operating_system = sy-opsys
importing
file_name = p_pathas
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.
at selection-screen on value-request for p_err.
call function 'KD_GET_FILENAME_ON_F4'
exporting
static = c_x
changing
file_name = p_err.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_err2.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
static = c_x
CHANGING
file_name = p_err2.
* Start-Of-Selection *
start-of-selection.
*---Modify the screen variables as per the user selection
perform initialize.
*--- Upload file from Presentation
* PERFORM upload_ps .
**--- Upload file from Application
* PERFORM upload_as .
perform upload_file.
perform write_err_file.
* perform write_err2_file.
perform write_report.
* End-Of-Selection *
end-of-selection.
*& Form modify_screen
* Modify the screen variables as per the user selection
form modify_screen .
if p_ps = 'X'.
loop at screen.
check screen-group1 = c_g2.
screen-active = 0.
modify screen.
endloop.
else.
loop at screen.
check screen-group1 = c_g1.
screen-active = 0.
modify screen.
endloop.
endif.
endform. " modify_screen
*& Form initialize
* Assign Local Variables
form initialize .
*-Pass selection screen fields to local variables.
v_zss = p_zss.
v_pathas = p_pathas.
v_pathps = p_pathps.
* v_pathbkas = p_pbkas.
v_ps = p_ps.
v_as = p_as.
v_bukrs = p_bukrs.
endform. " initialize
*& Form write_report
* text
* --> p1 text
* <-- p2 text
form write_report .
if v_zss = 1.
write: / '*** Update report for DLS ***'.
else.
write: / '*** Update report for NTS ***'.
endif.
write:
/ 'Input File Count', g_inp_count,
/ 'Insert Count', g_insert_count,
/ 'Updated Count', g_upd_count,
/ 'Failed Count', g_err_count.
endform. " write_report
*& Form write_err_file
* text
* --> p1 text
* <-- p2 text
form write_err_file .
case p_as.
when 'X'. "X is application server
* TRANSLATE FILENAME USING '\/'." correct slash for unix
open dataset p_err for output in text mode encoding default.
if sy-subrc = 0.
loop at t_err into s_welldls.
transfer s_welldls to p_err.
if sy-subrc ne 0.
message i010(ad) with p_err 'Download Failed'.
endif.
endloop.
close dataset p_err.
else.
message i010(ad) with p_err 'dataset could not be found'.
sy-subrc = -1. "Maintain error condition
endif.
when ' '. "Blank is presenation server
translate p_err using '/\'."correct slash Dos file
call function 'DOWNLOAD'
exporting
filename = p_err
filetype = 'DAT' "FTYPE set to ASC in DATA seg
tables
data_tab = t_err.
if sy-subrc ne 0.
message i010(ad) with 'File ' p_err 'cannot be located.'.
sy-subrc = -1. "Maintain error condition
exit.
endif.
endcase.
endform. " write_err_file
even the constants:
*-Declare survey system as constants
CONSTANTS: c_dls TYPE zsds_uwi-zss VALUE '1',
c_nts TYPE zsds_uwi-zss VALUE '2',
c_x TYPE c VALUE 'X'.
*-Logical File Path maintained in Txn FILE
CONSTANTS:
c_asin TYPE filename-fileintern VALUE 'Z_INTERFACES_IN_WELL_MASTER',
c_asout TYPE filename-fileintern VALUE 'Z_INTERFACES_OUT_WELL_MASTER'.
*-Screen Grouping
CONSTANTS:
c_g1 TYPE screen-group1 VALUE 'G1',
c_g2 TYPE screen-group1 VALUE 'G2'.
DATA: v_folder TYPE string.
DATA: v_filestr TYPE string.
DATA: v_datalen TYPE i.
DATA v_rec(1000).
Thanks -
Date format in user master record cannot be interpreted
When running an Infopackage from BW to an R/3 customer extractor, the R/3 job cancels with this error message, "Date format in user master record cannot be interpreted". I can restart the R/3 job program from the ABAP editor screen using the same variant that BW issued and the job runs without cancelling.
NOTE: This process runs without any errors on our QAS system.
Any idea what causes this error message and how I can fix it?Hi Alan,
I have resolved this issue by myself. Same just like yours mine is also a custom Datasource.
Solution for this is go to source system check your Background user id i.e like BWALEREMOTE or ALEREMOTE which ever id you have created for setting up RFC connection between R/3 & BW. Check your Date format which has been set for your background user. Use the second format mm/dd/yy. Then run your extraction you will not face any problem.
If you still have any problem do let me know. If this solution helps you assign points.
Regards,
Bhuvana. -
Date formatting in menubar in Mountain Lion
I cannot format the date.
Tried setting in using the Date&Time>OpenLanguage & Text>Dates>Customize
Whatever setting or customizations I make, it does not alter the format of the date in the menubar.
Currently it is
Thu 1 Nov
I would prefer
Thu Nov 1shabbasuraj wrote:
Tried setting in using the Date&Time>OpenLanguage & Text>Dates>Customize
System Preferences > Language & Text > Region > Customize
You should be able to drag & drop the days and dates to that format (probably in Full) to any order you want?
If that doesn't work it could be SystemUIServer which is a background process that specifically controls the right hand side of the menu bar where those menu extras are.
Go to your Finder "Go" menu hold the option key to choose "Library". Then go to the Preferences folder and find and delete com.apple.systemuiserver.plist. Then go to the By Host folder also inside your Preferences folder and delete com.apple.systemuiserver.plist (also any with numbers). Then log out and back in, or restart. -
Authorization in BDC session (date format)
Hi All,
I have a very peculiar problem, When I am executing a Background job (XK15) sometimes the job is successful and sometimes it is failing. When I am checking the error (SM35)it is showing as Date format (MM/DD/YYYY). My data format is same as MM/DD/YYYY but observed that under authorization it is taking different users.Sometimes it is taking my user id and the jobs are successful.
I feel that when it is taking different user ids for the sessions executed by me it is taking the date format of those user ids and I am getting the date format error.
Formatting error in the field RV13A-DATAB;
see next message XK15 1 SAPMV13A 1806 2 E 0
Enter date in the format ____/__/__
Please let me know why it is taking different userid's and how to resolve this issue ?
Early response is highly appreciated.
Thanks
SupriyaHi,
Goto tableUSR01.
Take field value 'DATFM' for every user.
Depends on this use FM, 'CONVERSION_EXIT_PDATE_OUTPUT' to convert date.
or do manual processing using concatenate statement to get user specific date format.
If you struck up anywhere revert back,
Thanks,
Krishna. -
GUI_DOWNLOAD and background processing
Hello,
I have created a process which creates a file. this process uses GUI_DOWNLOAD to put the file on the users C drive or other directory on our network. The user wants to run this process in background and the program is returning a 6 (error unknown) from the GUI_DOWNLOAD FM. I was looking on SDN and found out the GUI_DOWNLOAD only works in foreground. You have to use OPEN and CLOSE DATASET statements to process in background. I am thinking about putting a button to denote foreground/background processing and using the appropriate statements to process the file. I will then have to get the file from the app server to a place will the user can get access to it.
<b>first question</b> - is there a FM to do a FTP from the app server to a directory on our network for the user to access?
<b>second question</b> - is this the right approach or is there something else that I should be doing.
thanks in advance for your helpHi,
Yes, your right, GUI_DOWNLOAD wil not work in background mode, you need to place the file in Application server, here.
See the below link for a FTP program, use the proper commands(i do not know whether downloading the file is possible through the commands)
http://www.sap-img.com/ab003.htm
or else, write a small program which downloads the data from the application server, but it should run in the foreground
Regards
Sudheer -
How to Create Excel File in Background processing with different colors
HI All
I am trying to create Excel file in background & send it to user through e-mail, this i could acheive using fucntion module SO_DOCUMENT_SEND_API1, but here my requirement is i want to put different colors to columns of excel & this should happen in Background processing,
Initially i completed above requirement by using HTML type of document with attachment type 'ALI' & formatted output using write statement & used colors, after that i took this o/p using save_list function module & then table compress...etc.
but i don't know how to achieve same if we need o/p in excel as size of object of excel file is less than that of HTML
I am thankfull to everybody who will help me.
Regards
LokeshLokesh,
Iam also trying to populate my text file with colors as an attachment . If you know this please let me know.
Maybe you are looking for
-
I recently downloaded a bunch of songs and ringtones to my iPhone 4 and when I synced my phone to my computer to back up the files and to charge the phones the ringtones and songs were gone. They disappeared from my phone and from my iTunes as well.
-
Consume components that are consigned in service order
Dear CS gurus, Always wanted to know if this was possible: Current scenario 1. We need to track materials (spare parts to repair machines) that are moved to specific customer locations. In order to do that, we are using consignment fill-up (via SD).
-
IPhoto does not remember faces when I name them in another person's batch
I have been tagging faces in iPhoto 11 for the last few hours on my Retina MBP. In severeal cases I used the option of naming the face when it appeared in the wrong person's batch (ctrl+click > name). But then the "named" photos do not appear in that
-
When I upgraded to 4 the printer icon disapeared and the print under "file" does not function
When I upgraded to 4 the print icon dissapeared and the print button under the "file" drop down does not funcion. I have
-
Please help!