Problem in Attachement as HTML or TXT when run in back ground
hi,
I am not getting the full file as attachement when a abaplist is generated in background and sent as attachement in Mail.... The SCOT settings are HTM for ABAP list...Any help in this regard is highly appreciated.
Many records are missing in the attachment when the files exceeds a certain limit
Hi Aakash,
Yes you are correct. It would happen.
I guess you are using the function module SO_DOCUMENT_SEND_API1 or SO_NEW_DOCUMENT_SEND_API1.
If this is the case, use the following logic to get the total no. of records without missing any data.
//If the Length is less then 255 the write row Separator at 255
IF lv_len LT 255.
WRITE lv_hex1 TO lv_objbin+254(1).
lw_objbin-line = lv_objbin+0(255).
APPEND lw_objbin TO lt_objbin.
CLEAR: lw_objbin.
ELSE.
//Else write row Separator at 500
WRITE lv_hex1 TO lv_objbin+499(1).
lw_objbin-line = lv_objbin+0(255).
APPEND lw_objbin TO lt_objbin.
CLEAR: lw_objbin.
lw_objbin-line = lv_objbin+255(245) .
APPEND lw_objbin TO lt_objbin.
ENDIF.
Let me know if you can understand the above code.
Similar Messages
-
I get an error message when running a back-up from my Macbook Pro: The backup disk image Macbook.sparsebundle could not be accessed (error-1) and the backup did not complete? What is the issue?
Try Here > http://pondini.org/TM/C12.html
More Info here > http://pondini.org/TM/Time_Capsule.html -
How to see the SQL running in back ground when we genarate a report.
Hi All,
I am new to Oracle Reports Builder toll and I would like to see the SQL query/script running in back ground when we run any perticular report using Reports Builder 10g.
Please help me with this query, Thank You Very much for your help in Adv.
Thanks,Hi,
well the only option you can try is enabling trace from Builder (Program --> Tracing --> ALL) and then from the OS keep checking the trace file being created when the report is running. Something like the following will be recorded.
example
10:14:18 APP .. ( Repeating Frame R_G_EMPNO
10:14:18 APP ... ( Group G_EMPNO Local Break: 0 Global Break: 0
10:14:18 APP .... ( Query Q_1
10:14:18 SQL EXECUTE QUERY : select * from emp where deptno=:x
Bind Variable Value
X 10
10:14:18 APP .... ) Query Q_1
10:14:18 APP ... ) Group G_EMPNO
10:14:18 APP ... ( Text Field F_DEPTNO
Hope this helps
Roberto -
Problem accessing variables in loaded Captivate swfs when run locally
I'm loading Captivate 3 swfs into a custom Flash player. Here
is pseudocode that just gets to the point:
var cp1_mc:MovieClip = this.createEmptyMovieClip("cp1_mc",
1);
cp1_mc.loadMovie("captivate1.swf");
[wait for (cp1_mc.rdcmndGotoSlide != undefined) via
setInterval]
// ***** cp1_mc.rdcmndGotoSlide is FOUND
var cp2_mc:MovieClip = this.createEmptyMovieClip("cp2_mc",
2);
cp2_mc.loadMovie("captivate2.swf");
[wait for (cp2_mc.rdcmndGotoSlide != undefined) via
setInterval]
// ***** cp2_mc.rdcmndGotoSlide REMAINS UNDEFINED
INDEFINITELY
The thing is, this problem does not happen when testing the
movie in Flash, nor does it happen when the player.swf is run on a
server. It happens when the player.swf is playing locally in an
html page.
Can anyone give me a clue as to what's going on? My best
guess is that it has something to do with Flash Player Security,
because it only happens locally in a browser, but I just don't get
what's happening.Turns out it was a Flash Player security issue and I had to
set security settings to "always trust" for my local
directory. -
Problem with SAP NetWeaver 04 SP16 installation when running Phase 6
Hi,
When I was installing SAP NetWeaver 04 SP16(Full Java Edition),I got this error in phase 6:
ERROR 2006-04-20 03:10:23
MDB-07001 No action defined for actor.
ERROR 2006-04-20 03:10:23
CJS-00030 Assertion failed: in function sapdb_db_create(db_nm, db_host, db_ver) { var
dep_root = sapdb_inst_root(db_nm); var sdb_i = new sdbInstance(); sdb_i.dbName =
db_nm; sdb_i.dbHost = db_host; sdb_i.dbVer = db_ver[0] + "." + db_ver[1];
sdb_i.ctlUser = sapdb_get_db_user("CONTROL", db_nm, db_host); sdb_i.ctlUserPasswd =
sapdb_get_db_user_passwd("CONTROL", db_nm, db_host); var actorObj = new SdbExtActor();
actorObj.setSdbInstance(sdb_i); actorObj.setDbmCmd("DB_CREATE");
actorObj.setExecutable(sapdb_dbmcli_path()); actorObj.setDbRoot(dep_root); var rv =
actorObj.sessionExecute(); ASSERT(arguments.callee, rv == "OK", " SDB: ERROR CREATING
DATABASE INSTANCE! Check the XCMDOUT.LOG FILE"); var creation_ok = false; var i_size
= actorObj.outSize(); for (var i = 0; i < i_size; i++) { var s_line =
actorObj.getOutputLine(i); if (/OK/.test(s_line)) { creation_ok = true;
} } ASSERT(arguments.callee, creation_ok, "SDB: ERROR WHILE DB INSTANCE
CREATION! CHECK THE XCMDOUT.LOG FILE! ");} SDB: ERROR CREATING DATABASE INSTANCE! Check the XCMDOUT.LOG FILE
my installing environment:
OS: windows 2000 server
RAM: 2G
JAVA SDK version: 1.4.2_08
Thanks advance.Hi
Please see this thread of the SDN forum
SP16 Preview: MaxDB Installation fails (Phase 6)
Seems some issues with MAX DB ver 7.6
regards
rajeshkr -
Error in BDC when executed in back ground
Hi All,
We are working on a BDC interface for Material Master Basic Data Add or Change using SAP 4.7. The interface is working fine with CALL TRANSACTION (N,A screen modes), BDC foreground and Display error modes.
When the same session is executed in background mode it is not getting processed.
The error is caused while calling screen 2031 which uses a control. The diagnosis we received is given below
Control Framework: Fatal error - GUI cannot be reached
Message no. DC006
Diagnosis
When the Control Framework is started, the system checks whether the installed GUI supports frontend components such as controls. This check failed; the causes may be as follows:
1.) The program is running in the background
2.) A transaction was called using CALL TRANSACTION ... STARTING IN BACKGROUND TASK.
Procedure
Programs that run in the background cannot address controls on the frontend. In this case, the application must either include a fallback that does not depend on the user interface, or the program or transaction must detect for itself that is running in the background and terminate itself.
Is there any alternate method available for running the session in background with the controls?
Please help us in this regard.
Thanks in advance.
Kathirvel BalakrishnanHi Kathirvel!
In description of error: 'In this case, the application must either include a fallback that does not depend on the user interface, or the program or transaction must detect for itself that is running in the background and terminate itself.'
Obviously in material master only second option was implemented - termination.
Alternative: using IDOCs or BAPIs like BAPI_MATERIAL_SAVEDATA, BAPI_MATERIAL_MAINTAINDATA_RT.
Regards,
Christian -
"SYSTEM_FAILURE" error message when running BEX query
Hello,
I often encounter this error when I run BEX queries (take note that I encounter this error after I have already entered the query values). But when I run the same query in a later time, the query becomes successful, which makes the problem intermittent. I only encounter this when running BEX but I don't encounter such error when I'm running the query in RSRT and displaying it in SAP instead of in Excel. I hope you have any idea about this. Thank you.Hi Lee,
Check transaction ST22 or SM21 after you get that message.
Hope this helps.
regards,
Diego -
HP 250 Laptop - When running on battery turns off without warning and won't restart
One month after warranty expires this laptop presents with this problem. It shuts down without warning when running on battery, although the battery has plenty of charge. Following shutdown it won't restart on battery. Plugging in power and restarting it displays a message that the battery is cactus before continuing to boot. When trying to run F2 on startup battery check it simply doesn't progress past the initial screen (1%) and [esc] key does nothing. Need to power off. However, REMOVE the battery, boot the computer, shutdown, REINSTALL the battery, turn on and everything is OK - most recent example showing battery with 95% remaining. Continues to work for a few days until it decides to fail again. Suspect the battery is not at fault here, and in any case can't get a replacement (thanks HP for providing equipment with rare and unusual parts) - one supplier has only two on order which will be delivered some time in September!! Usual third party providers don't provide a replacement for this battery. Have seen a lot of references to this sort of mystery "battery failure - shutdown with warning" but no concrete solution. Have tried different power setting including never hibernate, but these seem unrelated. Open to useful suggestions at this point.
One month after warranty expires this laptop presents with this problem. It shuts down without warning when running on battery, although the battery has plenty of charge. Following shutdown it won't restart on battery. Plugging in power and restarting it displays a message that the battery is cactus before continuing to boot. When trying to run F2 on startup battery check it simply doesn't progress past the initial screen (1%) and [esc] key does nothing. Need to power off. However, REMOVE the battery, boot the computer, shutdown, REINSTALL the battery, turn on and everything is OK - most recent example showing battery with 95% remaining. Continues to work for a few days until it decides to fail again. Suspect the battery is not at fault here, and in any case can't get a replacement (thanks HP for providing equipment with rare and unusual parts) - one supplier has only two on order which will be delivered some time in September!! Usual third party providers don't provide a replacement for this battery. Have seen a lot of references to this sort of mystery "battery failure - shutdown with warning" but no concrete solution. Have tried different power setting including never hibernate, but these seem unrelated. Open to useful suggestions at this point.
-
Report program when run in background job getting cancelled immediately
Hi
When i run a program in foreground i am able to see the output. But when run in background not able to run the job successfully. The job is getting cancelled immediately.
I am using the below function module for output display. Should i need to pass any parameters in the below function module so that i can run the program in background successfully.
CALL METHOD DETAIL_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = IS_LAYOUT
I_SAVE = 'A'
IS_VARIANT = GS_VARIANT
CHANGING
IT_FIELDCATALOG = IT_FIELDCATALOG
IT_OUTTAB = BLOCKED_STOCK_TAB_ALV[].
Please suggest.
Thanks and regards
Rajani YeluriHi Rajani.
ALV require the DRYPOR(screen) for display but incase you run in back ground which have to write to spool but in spool we can only write in format of LIST REPORT not inter-active report like ALV. That why
system cancelled your process immediately.
Hope it helps.
Sayan. -
Problem in scheduling job in back ground
hi all,
My project scenario is ,i have written a program to create WBS element.
For 1 WBS creation ,In production it takes 20 to 30 min to create as there are many transactional bdcs.
so i want to run that perticular code (all bdcs) in back ground.
so i wrote another program with name 'zback_job_for_wbs_creation' and added all the required code.
in old program,i have written some code to execute this new program in back ground . this code is below..
FORM submit_for_job.
TABLES:btcevtjob.
DATA:l_jobname LIKE tbtco-jobname,
l_jobnumber LIKE rsjobinfo-jobnumb.
DATA: count LIKE btcevtjob-jobcount,
jobname LIKE btcevtjob-jobname.
DATA: job_was_released LIKE btch0000-char1.
jobname = 'WBS_CREATION'.
EXPORT s_scrnum TO MEMORY ID 'W_SCRNUM'.
EXPORT iscrh TO MEMORY ID 'W_ISCRH'.
EXPORT iscrl1 TO MEMORY ID 'W_ISCRL1'.
EXPORT iscrl2 TO MEMORY ID 'W_ISCRL2'.
EXPORT iscrl2b TO MEMORY ID 'W_ISCRL2B'.
EXPORT iscrl2a TO MEMORY ID 'W_ISCRL2A'.
EXPORT iscrl1a TO MEMORY ID 'W_ISCRL1A'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = count
SUBMIT zback_job_for_wbs_creation
with S_SCRNNUM IN S_SCRNUM
and return via JOB JOBNAME NUMBER COUNT TO SAP-SPOOL
WITHOUT SPOOL DYNPRO.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = count
jobname = jobname
strtimmed = 'X'
IMPORTING
job_was_released = job_was_released
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8
here i have put break-point in my submitted program..but its not going to the program and job gets closed successfully without executing my code( Submitted Program).
in above submit statement , if i just write submit progname and return ,then it goes to program.
but job_close function module throws exception no 5.
so pls help me out for this..
i want my submitted program to be run in back ground..
thanks.Hi,
Start Job Monitor SM37 and search for your job. I think you will find it.
Jobs are not linked to GUI frontend. So you can't debug your background job in that way.
If you want to debug you must be tricky.
Code a never ending loop with an exit condition which you can control by debugging.
DATA:
stop_for_capture.
DO.
IF sy-uname NE 'HABICH'. "change to your account
EXIT.
ENDIF.
IF NOT stop_for_capture IS INITIAL.
EXIT.
ENDIF.
ENDDO.
When your job is running, start TA SM50 and mark relevant batch work process and
choose by menu program -> program -> debugging.
regards
Walter Habich -
how do you fix the problem of USB cable is not compatable, when there is no cable attached?
Just buy a new USB cable ... dont buy a cheaper one, i think it cost a $2...
-
Has anybody encountered problems attaching files to gmail when run in firefox
Trying to attach a file (I tried pdf, word, excel files) to a gmail when running in Firefox ended with an "Unable to attach file" statement. However, in IEX and Safari the same works properly.
Anybody an idea about this problem?Hi,
Please check if this happens in a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile]. If the new profile is okay, you can then [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] on the old (previous) profile via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''. -
Problem opening attached pdf file
Hi everybody,
I'm trying to open a pdf file attached in a mail, but when i try to open it adobe acrobat gives me this error.
Adobe Reader could not open <doc1.pdf> because it is either not a supported file type or the file has been damaged (for eg:it was sent as an email attachment and wasn't correctly decoded.)
I've read many posts related to this problem but i haven't found the solution yet.
Can anyone help me?
Thanx!!Hi Dieter,
Here is the code,
doc_chng-obj_name = 'Nomina'.
doc_chng-obj_descr = 'Nomina de empleado'.
objtxt = '<html><body>Reserve price : <b>$250000</b>'.
APPEND objtxt.
objtxt = 'A reproduction of the painting to be auctioned'.
APPEND objtxt.
objtxt = 'is enclosed as an attachment.</body></html>'.
APPEND objtxt.
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
Creating the entry for the compressed document
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'PDF'.
APPEND objpack.
Crecion de attachments
(Assume the data in OBJBIN are given in PDF format)
DESCRIBE TABLE data_tab LINES tab_lines.
objhead = 'nomina.pdf'. APPEND objhead.
Creating the entry for the compressed attachment
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'PDF'.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = 'Nomina Empleado'.
objpack-doc_size = tab_lines * 255.
APPEND objpack.
Entering names in the distribution list
reclist-receiver = 'kkkkkkkkk'.
reclist-rec_type = 'U'.
append reclist.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99. -
Many problems with the 'Export to Text' (.txt) in CR Xi
Hi,
I have listed many problems with the 'Export to Text' (.txt) function of CR Xi.
These problems are related to this export format only (meaning everything works fine in the Viewer or in the 'Export to PDF')...
- Multi-columns layout do not export as Multi-column (export only a one column);
- Numeric values with parenthesis for negative values or with a fix currency sign at the leftmost position are not exported correctly;
- Fields having a Suppress formula which is "WhilePrintingRecords" do not appears when exported;
- Fields with 'Suppress double value' checked are not always suppressed when exported to Text.
- 'Keep Group Together' flag is not working.
- 'Reset Page Number After' simply does not works when exported to text;
- 'Keep object together' on TextBox/Section is not working.
- Whenever a group is ending on the last line of a page, the the following page as the same Group header as the previous group with no records until the page is filled, then the PageBreak and PageHeader is missing but the records of the following group appears.
I would like to know what is the status of the 'Export to Text' function (is it a deprecated function not supported anymore???).
If still supported, when will these bugs be fixed???
ThanksHi Rene
Export to Text is supported till date. Crystal Reports 2008 also supports this with Keep together working however when I tried with format with multiple columns, it didnot show up in the exported text file.
Regards
Sourashree -
Problem in attaching a xml file in Email Notification
Hi,
I am new to BPEL. I am using 10.1.3.4 Jdev. Facing a problem in attaching a xml file in Email Notification process. I do not get any email when ever the attachment is a xml. Whereas when the attachment is a pdf, i get the pdf in the mail. I have put the mime type as text/xml. Used ora:doc() to read the xml. Dont know what i am missing. Please help me out. Thanks.
Edited by: friendsforever on Oct 6, 2010 1:05 AMactually i want that when a user open my website register form then he must attached their resume in it
so i want to know how can i make a field of attaching.
please reply
I am waiting for your reply
Maybe you are looking for
-
Why does CTRL+ enlarge images on some pages, not others?
I have a website with many pages. On some pages, CTRL+ enlarges the images, on others, it enlarges the TEXT BUT THE IMAGE ACTUALLY SHRINKS!. An example of a page where CTRL+ does not work: http://www.microscope-antiques.com/acme4.html An example of w
-
REALLY odd SATA problem -- bet you can't fix this
So, I go to a LAN party on Tuesday night. I leave my computer downloading stuff from newsgroups and I come back to find everyting packed up for me nice and neatly. I asked if my computer stayed on through the entire time I was gone and my friend told
-
Remove pymt blk-Item specified for invoice reference is not an invoice item
Hi Gurus, we have posted the credit note with reference to the invoice which has block set "A" (blocked for payment). Therefore credit note has inherrited the payment block from the invoice. We have manually removed the payment block from the credit
-
OK to delete "Previous Systems" file?
I noticed that after installing 10.5 (or maybe 10.5.1, because of the date), I have a folder called "Previous Systems" with a folder inside that called 2008-01-27_1835. Is it okay to delete this? It's taking 15 GB of space on my disk. Everything is w
-
N8 Internet Radio no scrolling text since Belle up...
Since I have updated my N8 to Nokia Belle (v.111.030.0609) the scrolling information text no longer functions in Nokia Internet Radio v.3.05(0). It scrolled song titles etc on each station screen and within the widget. I have tried deleting and reins