Sending o/p to mail ( in back ground)

hi SDNs,
    i want to send output of my report to email, while running it in background...
i think, i have to write :
if SY-BATCH = 'X'.
" send mail
ENDIF.
how to do send? and is this the correct way to do that?
is there any other solution?
could any one pls help me out..!
Thanking you.,
Rama krishna S

Hi Please try the following code...
This will fetch the delivary documents and send them to specified addresses as an attatchment...
Report ztestprg_az
no standard page heading
line-size 80
line-count 65.
tables: eket.
types: begin of type_eket,
eindt like eket-eindt,
ebeln like eket-ebeln,
wamng like eket-wamng,
end of type_eket.
field-symbols: <wa_eket> type type_eket.
data: t_itab type standard table of type_eket.
data: w_date like sy-datum.
selection-screen: begin of block b1 with frame title text-000.
selection-screen begin of line.
parameters: p_exl as checkbox default 'X',
p_send as checkbox default 'X',
p_recevr type ad_smtpadr default
'[email protected]' modif id sc1.
selection-screen end of line.
selection-screen end of block b1.
initialization.
call function 'CALCULATE_DATE'
exporting
days = '-60'
MONTHS = '0'
start_date = sy-datum
importing
result_date = w_date.
at selection-screen output.
if p_send <> 'X' .
loop at screen.
if screen-group1 = 'SC1'.
screen-invisible = '1'.
modify screen.
endif.
endloop.
else.
loop at screen.
if screen-group1 = 'SC1'.
screen-invisible = '0'.
modify screen.
endif.
endloop.
endif.
start-of-selection.
perform fetch_data.
perform disp_data.
if p_send = 'X' .
perform send_to_mail.
endif.
if p_exl = 'X'.
perform send_to_excel.
endif.
*& Form fetch_data
text
--> p1 text
<-- p2 text
form fetch_data.
select eindt
ebeln
wamng from eket
into corresponding fields of
table t_itab
where eindt lt w_date.
endform. " fetch_data
*& Form disp_data
text
--> p1 text
<-- p2 text
form disp_data.
write: / 'List of delivary lines which are 60 days past from today'.
uline.
write: /5 'Delivary Date',
30 'Purchase Doc. Num',
55 'Issued Quantity'.
uline.
loop at t_itab assigning <wa_eket>.
write: /5 <wa_eket>-eindt,
30 <wa_eket>-ebeln,
50 <wa_eket>-wamng.
endloop.
endform. " disp_data
*& Form send_to_mail
text
--> p1 text
<-- p2 text
form send_to_mail.
*Structures and internal table used to send data via mail
data : objpack like sopcklsti1 occurs 2 with header line,
objbin like solisti1 occurs 0 with header line,
objtxt like solisti1 occurs 10 with header line,
reclist like somlreci1 occurs 5 with header line,
tab_lines like sy-tabix,
doc_chng like sodocchgi1.
data: c_return type x value '0D',
c_tabspace type x value '09'.
data: pw_quan(16) type c.
*internal table objbin will contain actual data in line structure
*Heading
concatenate 'ITEM DELIVERY DATE'
c_tabspace
'PURCHASE DOC. NO'
c_tabspace
'ISSUED QUANTITY'
c_return
into objbin-line.
append objbin.
*Contents
loop at t_itab assigning <wa_eket>.
move <wa_eket>-wamng to pw_quan.
concatenate <wa_eket>-eindt
c_tabspace
<wa_eket>-ebeln
c_tabspace
pw_quan
c_return
into objbin-line.
append objbin.
endloop.
*Assign data to objtxt
objtxt-line =
'Hi, Please find the attatchment for the list of items to be deleted.'.
append objtxt.
objtxt-line = 'Thanks & Regards'.
append objtxt.
objtxt-line = 'Azmath S'.
append objtxt.
*assign a name to the email document
doc_chng-obj_name = 'Output'.
*give tha email subject line
doc_chng-obj_descr =
'The list of items to be deleted (older than 60 days)'.
*determine the size of the body of the email
describe table objtxt lines tab_lines.
read table objtxt index tab_lines.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).
*fill the fields of the packing list for the body of the email
*doc needs no header
objpack-head_start = 1.
objpack-head_num = 0.
*but it has a body
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
append objpack.
*fill the fields of the packing list for the attachement
describe table objbin lines tab_lines.
*needs no header
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
*but it has a body
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'XLS'.
objpack-obj_name = 'Attachement'.
objpack-obj_descr = 'items.xls'.
objpack-doc_size = tab_lines * 255.
append objpack.
*fill the mail recipient list
*rec_type 'B' indicates sap user , rec_type 'U' indicates internet user
reclist-receiver = sy-uname.
reclist-rec_type = 'B'.
reclist-express = 'X'.
append reclist.
Internet users (receiver) list
reclist-receiver = p_recevr.
reclist-rec_type = 'U'.
reclist-express = 'X'.
append reclist.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = doc_chng
put_in_outbox = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
tables
packing_list = objpack
OBJECT_HEADER =
contents_bin = objbin
contents_txt = objtxt
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " send_to_mail
*& Form send_to_excel
text
--> p1 text
<-- p2 text
form send_to_excel.
call function 'WS_EXCEL'
exporting
filename = 'Items.xls'
SYNCHRON = ' '
tables
data = t_itab
rgds
anver
if hlped pls rwrd ponts

Similar Messages

  • When e-mail is sent from ipad, return address show up to recipient w/ the word "hi" in front of it making hi & address all one word.  E-mail bounces back to them when they try to send something to me. I have two e-mails, one w/ local ph co, which should

    I have two e-mail addresses, one w/ my local ph com, which should be my primary one & one w/ yahoo.  When I send e-mail via ipad, the word hi apears before my e-address, making the word hi and my address one word.  When recipient tries to e-mail me back, mail bonces back to them.  Help, Please! 

    I have two e-mail addresses, one w/ my local ph com, which should be my primary one & one w/ yahoo.  When I send e-mail via ipad, the word hi apears before my e-address, making the word hi and my address one word.  When recipient tries to e-mail me back, mail bonces back to them.  Help, Please! 

  • IOS 7 back ground makes it difficult to read the text.  How can I change it in mail and messages?

    HI,
    iOS 7 back ground makes it difficult to read the text.  I know I can't change it in mail and messages, but Apple really needs to allow some customization.  This is really difficult to read for older eyes.

    yeah I agree with all you guys statements, the color scheme on IOS 7 *****,
    I am having to constantly turn on off on off on off  "invert color" mode just to switch between
    the home screen, typing, and reading text messages, its an absolute pain!!
    I never had any of this trouble in IOS 6.
    What they SHOULD do, is make 2 different color schemes
    one LIGHT color scheme,
    and one DARK color scheme, for those using "invert colors" frequently.
    See, what Apple doesn't seem to understand is, when you turn on "invert colors",
    the lock screen turns bright WHITE, so you have to turn invert colors OFF just to read the lock screen,
    then back ON when you want to type an email, read a text message, etc etc, then turn it off again when
    you want to play a game.
    and see, after awhile, when you switch invert colors on off on off after so  many times, it drains on the devices resources, & you have to reboot the device to get accessibility options working again.   I have to reboot the device several times a day now just because of that, when its just a simple fix of adding a darker color scheme as a 2nd or alternative option. 
    I mean, even as a normal sighted person, turning on invert colors is annoying when your at the lock screen or playing a game, think about those of us who depend upon it just to read text on the screen..  VoiceOver has the smilar issues when you have to turn it off on off on all the time it drains the system resources of the phone also,
    so I agree completely...
    but ya know, they don't listen to us...  cuz its an option they don't use, so they don't understand... If they used that option for even 5 seconds, they'd understand what we're talking about....  What Apple should do is hire one of us as a beta tester to help them test out these types of issues,  from one of us like myself who knows a thinkg or two about accessibility options of the phone.
    I've been an Apple idevice fan for years, but, IOS 7 was a major disappointment in the accessibility arena..
    kind regards,
    Tom

  • Back Ground Jobs for ESS/MSS

    Hi,
    I would like to know all the back ground jobs to be scheduled for ESS/MSS.
    As all the data updated in the portal as to reflect in r/3 system and all the data updated in r/3 system to portal.
    Regards
    Vish

    You need to set the background jobs depending on the functionality which is being implemented and what the data ?
    for eg: if it's leave request there background jos which needs to scheduled
    RPTARQEMAIL (Leave Requests: Send E-Mails)
    RPTARQPOST (Leave Requests: Post)
    RPTARQSTOPWF (Leave Requests: Complete Current Workflows)
    hope this would help you..

  • Output should be in Text format from Back ground job

    Hi friends,
    I have scheduleda back ground job. In the receipent i ahve put my user mail ID. when the job was finished the output came as HTML file. where as my user wants a Text file or excel file.
    We are in ECC 5.0 and i am just scheduling standard ABAP program( costing run
    Is it possible , if yes then, please let me know where to change the setting.
    Cheers
    PK

    Hi,
    I tried the same , it did not work for me. But when i contacted my Basis Guy through SCOT he changed. Now the text file has started coming.
    But now next problem is my spool request is of 215 pages but system is sending the text file for only first 10 pages..
    I have changed the setting for display from 10 pages 215 pages . and belwo even changed the seeting to permanenet between logons..Still system did not send the file to email Id.
    can you help mein this regards
    cheers
    PK

  • Execute in back ground!!

    Hi,
    I am executing my program in background and sending mail for the output produced on  the screen ...
    in foreground as well as in case of back ground but in background the excel file is going blank
    any pointers?
    Regards
    Gunjan

    Hi,
    Gothroygh the below link ..
    http://www.sap-img.com/abap/sending-mail-with-attachment-report-in-background.htm
    Regards
    Sudheer

  • In forground progarm working fine, but in back ground it is not working

    Hi experts
    one program having functionality like using BDC it is creating the session and it is posting session automatically.
    if error occurs mail notification send to user .used this FM ---SO_NEW_DOCUMENT_ATT_SEND_API1
    when i am executing the program in foregroung it is working properly. means file contains wrong data
    and session having the error and mail is going to user.
    but when i am scheduling same thing in background , session has created sucessfully with error .
    but mail functionality is not working .
    Please help me why this is not (mail functionality in back ground)
    thanks.

    hi
    in program used to capture the errors in session from APQI table .
    but it is capturing the errors in the fore ground , why it is not allowing in back ground.
    session  processed automatically using RSBDCSUB program .
    could any one help me on this.
    Thanks

  • How To Handle With Back Ground JOB From WEBUI When Click On "Appove"

    Hi
    How To Scheduled A Job Through ABAP Report In back end  Of CRM when i click on "Approve" Button in WEBUI  From result list.
    As per My requirement I have a Search View and Result View
    In Search View I have  Below Fields
    ITC Vendor ID    
    Claim Status
    User status (date status changed)
    Model
    Serial Number
    Date completed of Service Completion
    Based on Search Criteria I will get Result In Result View.(Suppose 10 Records I got In Result View)
    In the Result View I need to Add one Button As "Approve"
    When i Click On Approve button One Pop up Message Need to Open And In that popup window I need to Display Below Text
    "Approve  Claim Job Has Started In Background  
    Note: Only Claims Which are in Submitted  Status  Will be  Approved. you May Close This Window"
    In SAP CRM System  Back Ground Job Need To Start When Click On "Approve" Button In WEBUI .
    In the Back Ground ABAP Report which will validate based on Result List Records"
    In the Result List we may have all types of Claims which are status in "Submitted" "Pending" "Rejected" "Approve".
    I need to collect all records from Result list and validate Those Records who's Status in "Submitted
    1)Sort all the claims based on ITC Vendor ID.
    2)Grouped all the submitted claims against each ITC Vendor ID from the search result
    3)Change the status of the selected submitted claims to Approved.
    4)Displays information messages as mentioned whenever a claim is approved, the same message will be captured in the job log.
    ‘Claims <ClaimID 1>,…<ClaimID N> now approved for ITC Vendor ID’.
    5)Sending Email to each IRC.
    6)Capture all the approved claims in the below format (Format Attached "Screen Shot Attachment")
    7)Store the file in the Application Server AL11 in .csv format
    Please Find Attachement For Reference.
    1)ITC Claim Screen Shot
    2)Screen Shot For Attachment
    Thanks
    Raj

    Hi,
    You can add the following code in on approve method to show popup to the user,
    IF req_edit IS NOT BOUND. " gloabl attribute in impl class of the view
        REFRESH lt_buttons.
        lss_button-id  = 'btnyes'.
        lss_button-text = 'YES'.
        lss_button-on_click = 'YES'.
        APPEND lss_button TO lt_buttons.
        CLEAR lss_button.
        lss_button-id  = 'btnno'.
        lss_button-text = 'NO'.
        lss_button-on_click = 'NO'.
        APPEND lss_button TO lt_buttons.
        CLEAR lss_button.
        CALL METHOD comp_controller->window_manager->create_popup_2_confirm
          EXPORTING
            iv_title          = 'ATTENTION'
            iv_text           = 'Are you sure you want to edit this document?'
            iv_btncombination = '99'
            iv_custombuttons  = lt_buttons
          RECEIVING
            rv_result         = req_edit.
        req_edit->set_on_close_event( iv_event_name = 'EDIT' iv_view = me ). "#EC NOTEXT
        req_edit->open( ).
        RETURN.
      ELSE.
        lr_node ?= req_edit->get_context_node( 'OUTPUTNODE' ).
        lv_outbound = lr_node->get_event_name( ).
    *  CLEAR ptc_pricing_status.
    *    lv_outbound = req_edit->get_fired_outbound_plug( ).
        IF lv_outbound = 'YES'.
    you can use the submit report code here and you can al the validations here
        ELSE. " No
    if user clicks no nothing to do..
        ENDIF.
        CLEAR req_edit.
      ENDIF.
    Best Regards,
    Dharmakasi.

  • Any restictions on back ground job when submit the session?

    Hello friends
    below is my code part. problem is when i execute this program in back ground the data is not picking from APQI. but in fore ground it is picking . for this SESSION submission in back ground am i missing any thing here. please suggest me , any restiction is their in back ground? if possible please send a sample code to submit SESSION automatically in background.
        SUBMIT rsbdcsub AND RETURN
                        USER sy-uname
                        WITH mappe    =  p_group
                        WITH von      =  sy-datum
                        WITH bis      =  sy-datum
                        WITH z_verarb =  'X' .
          SELECT userid credate groupid qstate FROM apqi
             INTO TABLE it_apqi
             WHERE userid  = sy-uname
             AND   credate = sy-datum
             AND   groupid = p_group
             AND   qstate  = 'E'.              "Only look for 'Error' status
       DESCRIBE TABLE it_apqi[] LINES temp.

    Codes for Submitting the session through RSBDCSUB (via Job)...
    " The function module JOB_OPEN is called to create the job.
        call function 'JOB_OPEN'
             exporting
                  delanfrep        = 'X'  "Delete job after execution
                  jobname        = fv_jobname  "Job name
             importing
                  jobcount         = fv_jobcount  "Internally generated
             exceptions
                  cant_create_job  = 1
                  invalid_job_data = 2
                  jobname_missing  = 3
                  others           = 4.
        if sy-subrc = 0.
          submit rsbdcsub
                 with       mappe = v_filec
                 with            von = sy-datum      "From
                 with            bis = sy-datum      "To
                 with     z_verarb = 'X'
                 with         fehler = ' '
                 with      batchsys = space
                 with         logall = ' '
                 via  job          fv_jobname
                      number       fv_jobcount
                 and return.
          call function 'JOB_CLOSE'
               exporting
                    jobcount             = fv_jobcount
                    jobname              = fv_jobname
                    strtimmed            = 'X'
               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.
    Hope this helps!
    Edited by: Vin on Jun 4, 2009 10:58 AM

  • Mail doesn't send to certain e-mail addresses, receiving seems ok

    I am using the latest version of the Apple Mail application under Leopard (with all updates downloaded). About a month ago I e-mailed a friend from my home account and unusually didn’t get a reply. I then e-mailed again a few weeks after, again no reply. After a phone conversation found out she didn’t receive either of my mails. This prompted many test e-mails, the outcome of which was the following:
    1 - Was able to receive my friend’s e-mails, but if I replied using Apple mail (hitting the reply button), my reply never got back to her.
    2 - Was able to send to and receive my friend’s e-mails using MS outlook from my place of work using a PC and my work e-mail account. No problems.
    3 - Was able to send and receive to my work account from my home account using Apple Mail, no problems.
    4 - Was able to send and receive my friend e-mails from my home account, using web mail rather than using Apple Mail.
    5 - Could no longer e-mail my wife using the Apple Mail (and she could not e-mail me), we both use the same ISP. However using web mail rather than Apple Mail we could still send and receive e-mails from each other.
    6 - Phoned my ISP, my account seems to be ok, which was also confirmed by using webmail as described in the previous two points.
    7 - Other than the regular Apple updates the Mail app is the same client I have been using since I got my new Mac last October. I didn’t appear to have any problems until about a month ago and have made no changes to settings etc.
    8 - When I do attempt to send e-mails to my wife or friend, I get the usual whooshing sound and a progress bar to show that the mail has been sent. The outbox is empty and the mail appears in the sent box, but never arrives to its destination. No error messages or e-mail bounce backs, nothing.
    9 - Downloaded and installed Thunderbird, all the problems seem to go away – I can now send and receive e-mails from both my wife and friend.
    It’s a bit weird that Apple Mail seems to have taken an aversion to sending mail to some particular e-mail addresses. Unless someone can explain what is going on here, I think that this is a serious problem. As I’ve mentioned, there is no hint that Apple Mail is not sending e-mail, as far as I was concerned e-mails were leaving my Mac. Has anyone experienced something similar? Is there an easy fix?

    I just did a quick test in InDesign CC and my one worked. Maybe you should delete the button and redo it.
    By the way on a slightly different matter, do you know that to enable users to complete the form and store it on their computer using Acrobat Reader, you need to enable the form as follows:
    Open the form in Acrobat XI  and then:
    File > Save As Other > Reader Extended PDF > Enable More Tools (includes for fill-in & save). . . Your users will be able to fill in the form and save it (assuming they have the later versions of Acrobat Reader).
    Make sure you keep a copy of your original PDF with a different file name as once you've created a Reader Enabled PDF Form you can't change it.

  • ERROR IN BDC SESSION BACK GROUND ( USING PP03 T.CODE)

    Hi Experts,
    When i am executing the session ( pp03 T.Code) ,it is working fine in fore ground as well as in display errors mode. But it is not working in back ground mode.
    it is raising the exception ( cntl-system-error).
    I used flat file which is in the presentation server . I accessed it by gui_upload Function Module.
    <b> I am also getting the error using data sets . After upload the presentation server data into one internal table .I sent it to application server using open data set ( transfer ) , after that i read the application server data using open dataset ( read )
    into another internal table ( i declared with same structure of flat file ) .</b>
    But this time also it is giving same error ( runtime exception).
    Please tell me how can i handle using datasets .  Its Very urgentttttttt
    Please any body help meee ( If any one worked on this (pp03 T.code) ) .
    Send the code  or Inform the full detailsss as soon as possibleeee
    regards ,
    dattu malge.

    Hi,
    Go to the transaction SM35 and select your session and then click the Process Button.
    Here you select the Processing Mode as "Background".
    It is not possible to execute the same session by more than one user at a same time.
    RSBDCSUB is used to automate the processing of Batch input session.
    Cheers,
    Hakim

  • I can no longer get my calendar to send a reminder e-mail for on a date in the future....alerts no problem

    I can no longer get my calendar to send a reminder e-mail for on a date in the future....alerts no problem

    Try turning the account off and on : Settings > Mail, Contacts, Calendars , then tap the account on the right, slide Mail to 'off', exit settings and go back into the Mail app, and then go back to Settings and slide Mail back to 'on'
    If that doesn't work then try closing the Mail app completely : from the home screen (i.e.not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Back ground job in abap

    Dear  abapers  i want to send an excel attachment from my computer to email and i do that using the following code it works correctly but now i want the program to run in back ground twice a month to some ones email address by giving default recipient email address.
    with best regards,
    Hahu D.
    REPORT  YEMAIL12.
    data method1 like sy-ucomm.
    data g_user like soudnamei1.
    data g_user_data like soudatai1.
    data g_owner like soud-usrnam.
    data g_receipients like soos1 occurs 0 with header line.
    data g_document like sood4 .
    data g_header like sood2.
    data g_folmam like sofm2.
    data g_objcnt like soli occurs 0 with header line.
    data g_objhead like soli occurs 0 with header line.
    data g_objpara  like selc occurs 0 with header line.
    data g_objparb  like soop1 occurs 0 with header line.
    data g_attachments like sood5 occurs 0 with header line.
    data g_references like soxrl occurs 0 with header line.
    data g_authority like sofa-usracc.
    data g_ref_document like sood4.
    data g_new_parent like soodk.
    data: begin of g_files occurs 10 ,
       text(4096) type c,
        end of g_files.
    data : fold_number(12) type c,
            fold_yr(2) type c,
            fold_type(3) type c.
    parameters ws_file type rlgrap-filename  default 'd:\files\file1.xlsx'.
    * Can me any file fromyour pc ....either xls or word or ppt etc ...
    g_user-sapname = sy-uname.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR ws_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    * PROGRAM_NAME = SYST-CPROG
    * DYNPRO_NUMBER = SYST-DYNNR
    field_name = 'ws_file'
    IMPORTING
    file_name = ws_file.
    call function 'SO_USER_READ_API1'
    exporting
        user                            = g_user
    *    PREPARE_FOR_FOLDER_ACCESS       = ' '
    importing
        user_data                       = g_user_data
    *  EXCEPTIONS
    *    USER_NOT_EXIST                  = 1
    *    PARAMETER_ERROR                 = 2
    *    X_ERROR                         = 3
    *    OTHERS                          = 4
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    fold_type = g_user_data-outboxfol+0(3).
    fold_yr = g_user_data-outboxfol+3(2).
    fold_number =  g_user_data-outboxfol+5(12).
    clear g_files.
    refresh : g_objcnt,
       g_objhead,
       g_objpara,
       g_objparb,
       g_receipients,
       g_attachments,
       g_references,
       g_files.
    method1 = 'SAVE'.
    g_document-foltp  = fold_type.
    g_document-folyr   = fold_yr.
    g_document-folno   = fold_number.
    g_document-objtp   = g_user_data-object_typ.
    *g_document-OBJYR   = '27'.
    *g_document-OBJNO   = '000000002365'.
    *g_document-OBJNAM = 'MESSAGE'.
    g_document-objdes   = 'hahu daily test this'.
    g_document-folrg   = 'O'.
    *g_document-okcode   = 'CHNG'.
    g_document-objlen = '0'.
    g_document-file_ext = 'TXT'.
    g_header-objdes =  'hahu daily fishikta ameley'.
    g_header-file_ext = 'TXT'.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
       exporting
         method             = method1
        office_user        = sy-uname
        ref_document       = g_ref_document
        new_parent         =  g_new_parent
    importing
        authority          =  g_authority
    tables
        objcont            = g_objcnt
        objhead            = g_objhead
        objpara            = g_objpara
        objparb            = g_objparb
        recipients         = g_receipients
        attachments        = g_attachments
        references         = g_references
        files              = g_files
       changing
         document           = g_document
        header_data        = g_header
    *   FOLMEM_DATA        =
    *   RECEIVE_DATA       =
    * File from the pc to send...
    method1 = 'ATTCREATEFROMPC'.
    g_files-text = ws_file.
    append g_files.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
       exporting
         method             = method1
        office_user        = g_owner
        ref_document       = g_ref_document
        new_parent         =  g_new_parent
    importing
        authority          =  g_authority
    tables
        objcont            = g_objcnt
        objhead            = g_objhead
        objpara            = g_objpara
        objparb            = g_objparb
        recipients         = g_receipients
        attachments        = g_attachments
        references         = g_references
        files              = g_files
       changing
         document           = g_document
        header_data        = g_header
    method1 = 'SEND'.
    g_receipients-recnam = 'MK085'.
    g_receipients-recesc = 'B'.
    g_receipients-sndex = 'X'.
    append  g_receipients.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
       exporting
         method             = method1
        office_user        = g_owner
        ref_document       = g_ref_document
        new_parent         =  g_new_parent
    importing
        authority          =  g_authority
    tables
        objcont            = g_objcnt
        objhead            = g_objhead
        objpara            = g_objpara
        objparb            = g_objparb
        recipients         = g_receipients
        attachments        = g_attachments
        references         = g_references
        files              = g_files
       changing
         document           = g_document
        header_data        = g_header.
    *-- End of Program

    Hi,
    Will this help you.?
    http://scn.sap.com/community/netweaver-administrator/blog/2010/02/25/how-to-email-output-from-background-jobs
    Regards
    Purnand

  • Can't send email in Windows Mail

    On May 12th I was unable to send emails under Windows mail.  It would come back with an error message of  "0X800CCC0F".  In my account I'm using (POP3) incoming.yahoo.verizon.net and (SMTP) outgoing.yahoo.verizon.net.
    My SMTP port is 25 and my POP3 port is 110.  I receive emails but can't send any.  If I go to Verizon's email site I can send myself emails and receive them.  I don't like Verizon's setup so I've used Windows Mail with Vista and Outlook with Windows ME without any problems.  I've tried changing port numbers and checking and unchecking SSl and SPA until I'm not quite sure where I was originally.  Something must have changed 5 days ago but I not sure how to fix it.  Any suggestions would be most gratefully received.

    Glad to know I'm not the only one.  Around the same date I began having the same issues (right after Microsoft installed updates).  I use Vista and have had this problem ONLY with Verizon ISP every month, at least once a month.  This time, it hasn't stopped since the 12th. 
    Due to this, I finally gave up and ran the Verizon In Home Agent, which Norton suggested I do not do.  I should have listened to Norton.  The IHA lists that I have two Outlook email address, both of which are the same.  I checked my Outlook and I only have one listed.  BUT, since I used the IHA I now receive emails twice and can't send any at all unless I use Webmail.  The IHA says there are no problems with my email, but I still can't send. 
    If you figure out the resolution to this, I'd love to know....and I will definitely try the link to Microsoft that someone already listed.  I can't use the Windows Mail or Outlook to send. 

  • AOL mail bounce back

    I am getting bounce backs from any mail sent to an AOL account. The mail will go through if I log onto my mailbox at my ISP provider (Optimum Online). The bounce back has this message:
    Reason: SMTP transmission failure has occurred
    Diagnostic code: smtp;554-: (ISP:B2) http://postmaster.info.aol.com/errors/554ispb2.html TRANSACTION FAILED
    Remote system: dns;mailin-01.mx.aol.com (TCP|167.206.4.199|54475|205.188.156.185|25) (rly-ya06.mx.aol.com ESMTP mailrelayin-ya6.5; Thu, 31 May 2007 10:17:46 -0400)
    If I go to the aol link in the message I get this explanation;
    554 ISP:B2
    http://postmaster.info.aol.com/errors/554ispb2.html
    EXPLANATION:
    Your IP address has generated a high volume of mail to AOL which exceeded our rate limit or has generated AOL member complaints. Possible causes include a compromised or virus-infected personal computer or a non-disclosed server relaying mail within the ISP's network. Note, this block is automatically removed within 24 hours.
    SOLUTION:
    The IP address in question is not the connecting MTA, but is commonly the originating IP. If your originating IP is static and has valid and meaningful reverse DNS, then please contact us with that IP. If you are not sure what your originating IP address is or if you are unsure as to whether your originating IP is dynamic or static, please contact your ISP for further information regarding your type of service.
    If you are sending large volumes of mail from a dynamic IP address, please contact your ISP and inquire about purchasing a static IP or business class IP address. Furthermore you can attempt to reduce the amount of email recipients sent during one session. If you are sending to a mailing list you should verify that the recipients on your list are still interested in receiving your email.
    If you did not send an extraordinary amount of email, we recommend scanning your computer or network for viruses and malicious applications.
    If you are an ISP receiving this error from an excessive number of your customers you may have an undisclosed proxy or relay on your network. Please contact us to resolve this issue.
    I am not sending high volumes of mail to AOL unless one or two emails a day is large. This is a recent problem. Has anyone experienced this or does someone have a solution? My ISP says there is nothing they can do on their end and AOL won't talk to you unless you have a paid account.
    Dan

    AOL's explanation per the link provided covers your options.
    * You contacted your ISP which indicated there is nothing they can do or there is nothing they are willing to do in your behalf.
    * You are not sending high volumes of mail to AOL.
    * You can scan your Mac for viruses and malware which can't hurt but will be a waste of time in this situation.
    This leaves contacting AOL. Other than that, wait until the 24 hour block period has expired.

Maybe you are looking for

  • Error in creating function group

    Hi In my z function group, do i need to declare all the parameters used in function modules explicitly in any top include?.it was not declared as such in the standard function group from which i copied .

  • ITunes 9 does not recognize Safari 4.0.3

    I can not get to the iTunes store from iTunes 9. This pops up: (iTunes requires Safari 4.0.3 or later to be installed to use the iTunes Store within iTunes. Use Software Update to download and install the latest version of Safari.} I used the Softwar

  • Vendor account and GL account

    Does SAP have a functionality that allows default GL account numbers and/or cost centers to be assigned to vendors? This would help to reduce inconsistencies in assigning account codes and cost centers to invoices if certain vendors always got charge

  • Removing live nodes from cluster view.

    Hi All,           We are experiencing some JMS problems connected with a cluster node being           hung for some time.           The following took place just before the problem arises:           1. First of all one of the nodes (the first) gets o

  • Best type of video files to post on iWeb pages?

    I am a teacher and I am posting Screencasts that I record of my lessons each day on my website created by iWeb '09. I have been exporting them as either .mov files or .mp4 files (both H.264) and playing them in a Flash "wrapper". I have been using a