How to use 'so_new_document_send_api1' in background

Hi All ,
A Report program contains function module 'so_new_document_send_api1' to send PDF email to external id  .
Can anyone let me know whether this program will send PDF email , if it is scheduled in backgroud ?
Thanks in advance.
U.Varalakshmi.

HI,
Check this link for XLS attachement.
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
Check this link for PDF attachment.
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Hope it helps
Regards
Mansi

Similar Messages

  • How to use 'SO_NEW_DOCUMENT_SEND_API1' function module

    Hello Experts,
    Please anybody tell me how to use 'SO_NEW_DOCUMENT_SEND_API1' function module

    hi,
    umesh see below code copy it and compile it and see how it works!!
    REPORT  ZSEND_SMS.
    parameters: sms_num type text20 obligatory.
    parameters: subject type SO_OBJ_DES default sy-sysid.
    parameters: sms_txt type text50 obligatory.
    data: receivers like somlreci1 occurs 0 with header line,
    objhead like solisti1 occurs 0 with header line,
    objtxt like solisti1 occurs 0 with header line,
    p_rec like receivers-receiver,
    p_type like receivers-rec_type.
    *users like ywf_ea_user_task occurs 0 with header line.
    data: count type i,
    p_email(50),
    doc_chng like sodocchgi1,
    objcont like solisti1 occurs 5 with header line,
    p_count(5).
    start-of-selection .
    clear receivers.
    refresh receivers.
    receivers-receiver+9 = 'SMS'.
    receivers-receiver+13 = sms_num.
    move 'K' to receivers-rec_type.
    append receivers.
    clear doc_chng.
    doc_chng-obj_descr = subject. "Subject zpravy
    doc_chng-obj_name = 'SMS'.
    doc_chng-doc_size = strlen( doc_chng-obj_descr ).
    refresh objtxt.
    objtxt = 'SMS message'. "message
    append objtxt.
    call function 'SO_NEW_DOCUMENT_SEND_API1'
    exporting
    document_type = 'RAW'
    document_data = doc_chng
    commit_work = 'X'
    tables
    object_header = objhead
    object_content = objtxt
    receivers = receivers
    exceptions
    too_many_receivers = 1
    document_not_sent = 2
    operation_no_authorization = 4
    others = 99.
    if sy-subrc ne 0.
    message e208(00) with 'Error'.
    endif.
    Hope magic Works!
    Regards,
    Purvesh.

  • How to use CL_GUI_ALV_GRID in background run

    Hi expert,
    is possible to use CL_GUI_ALV_GRID in background run?
    Usually I do a call screen and I put the set_table_for_first_display method in the PBO.
    How I can use the ALV GRID in a background run?
    Moderator message: please search for information and try yourself before asking.
    Edited by: Thomas Zloch on Jul 11, 2011 10:17 AM

    Hi,
    Check out standard examples in SAP by passing BCALV* & pressing F4 in SE38.
    Regards,
    Amit
    Reward all helpful answers.

  • How to use Submit in background when report name is not static

    Hi all,
    I have an FM to which report name is being sent as an input parameter.
    So based on the report name I need to call that particular report in background and send the output as a HTML format to dealer's MAIL ID which is also sent as an input param.
    The logic for sending mail in background is achieved.
    I am using the followinf logic to submit the job.
    SUBMIT wf_report USER user_id VIA JOB lv_jobname NUMBER lv_jobcount
        to sap-spool immediately ' '
                         without spool dynpro
        WITH SELECTION-TABLE tb_seltab AND RETURN.
    wf_report holds the dynamic value of report.
    Here, tb_seltab holds various parameters and select-option values.Since I cannot pass a table to JOB_SUBMIT fm i had to use the SUBMIT statement.
    But the program dumps coz we need to explicitly mention the name of the program in the submit statement.
    Is there any other possibility to acheive this req when the report name is not going to be hardcoded?
    Thanks in advance.
    Regards,
    Chandra.

    You forgot the basics of using the SUBMIT.
    try like this it will work
    SUBMIT (wf_report ) USER user_id VIA JOB lv_jobname NUMBER lv_jobcount
    to sap-spool immediately ' '
    without spool dynpro
    WITH SELECTION-TABLE tb_seltab AND RETURN.
    Rhea.

  • How to use function inside background job?

    I try to call function inside job. It does not work. Is it possible to use function inside job or not. I hope you can help me. Here is my example code.
    Start-Job -Name ForestJob {param($v01,$v02)
      $line = @()
      function test {
        return "testvalue"
      $t = test
      $line += $t
    } -ArgumentList $var01, $var02

    Hi,
    Just checking in to see if the suggestions were helpful. Please let us know if you would like further assistance.
    TechNet Subscriber Support
    If you are
    TechNet Subscription
    user and have any feedback on our support quality, please send your feedback
    here.
    Regards, Yan Li

  • How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    When talking about a specific image posting the image may be useful.
    One can use a Layer Mask and add a white Layer underneath.

  • How do I turn off background ni file activity when not using Labview? files such as nimxs.exe, nipalsm.exe, nipalsm.exe, nisvcloc.exe, nicitdl5.exe

    How do I turn off background ni file activity when not using Labview? I use labview rarely, and I also use my computer for demanding multimedia applications, including multitrack digital audio recording. I need to reduce as much background activity as possible, and taking a look with task manager I see files such as nimxs.exe, nipalsm.exe, nipalsm.exe, nisvcloc.exe, and nicitdl5.exe running even when I haven't used Labview (8 I believe). These files run even after I right click the NI icon on the lower right and turn off the application. I would like the computer to boot up without these files, and for the necessary files to be activated only when I start the program.
    Can this be done or do I have to remove labview from the system to improve performance?
    Thanks

    Hello, those processes are part of running NI services that start when Windows boots.  These processes serve varied purposes and stopping them can have undefined and unknown consiquences for your NI products.  These products run at "normal" priority meaning that they should be preempted by any process running at a higher priority which I would expect your other application to be doing given their time sensitivity.  That being said, in Windows XP (I can't speak for other OSes), you can lower their priorities even greater through task manager (right click the process»set priority) to further remove them from contention for resources.  If you want to prevent them from running you can set the service startup type to "manual" in Control Panel»Administrative Tools»Services.  Right click the process go to Properties and Under the General tab choose Startup Type»Manual.  This will start up the processes only when something directly starts it up.  LabVIEW will start these processes up as it attempts to use them.  When you shut down LabVIEW you will need to manually shut down these processes through task manager.  Again, doing this can cause problems with your NI products on your system and it is not advised.
    Travis M
    LabVIEW R&D
    National Instruments

  • How can I change fullscreen background color, so that it is the same when viewing on mac and iPad? I want this to be able to use MathType in widget text.

    How can I change fullscreen background color, so that it is the same when viewing on mac and iPad? I want this to be able to use MathType in widget text.
    As an example, html widget has white background on iPad, and black on mac. The same goes for interactive widget.
    The MathType text inserted is inserted as a image, and will have the same color when in fullscreen as when not. So I need the textcolor to be the same in both views. Anyone know how to fix this?

    We're still not communicating. This is why I wanted an example .iba.
    Here's a re-creation of my own, going off what you described. You said "all html widgets and all gallery widgets" have this problem. So I inserted a blank HTML widget and a blank Gallery widget, and typed into both. Inserted a MathType equation into both. I don't see any difference when I preview it on my Mac compared to the preview on the iPad. I want to help, but I can't help if I can't duplicate the issue.
    I've attached the screen shots and the .iba file [link to .iba file].
    Feel free to email me directly at bobm at dessci dot com. If you're uncomfortable giving some information here, tell me anything you want in email. I work for the "MathType company", Design Science.

  • How to use save data in Background by using standard task?

    Hi,
    I have worked with PD Process for PD. I try to find background process to run after manager approve. I use the standard task 17900108 but it seem does not work.  What should I did before I use this standard task?
    Please help me out how to use this standard task.
    Thanks a lot,
    Regards,
    Visut

    Hi All,
    Thanks for your reply.  Actually the key word of my case is I put the class in Program Exit instead of let it blank.  The standard task that I use is 17900108.
    I can use it to update data now....
    But it seem does not update to DPF (Digital Personal File).  Anyone has idea why it does not?
    Thanks again.
    Regards,
    Visut

  • How to use Workflow Background Engine in Oracle Apps?

    I have created the development of a custom workflow,tested it in Developer studio in Workflow administrator and has been working correctly. I was hoping to implement this workflow using Workflow background process Concurrent request and move to production.Unfortunately when submititng the concurrent request I am not receiving any notification eventhough all the time Concurrent request always completes normal.(Also when submitting as concurrent request workflow is not prompting for the itemkey). Is it not possible to implement a workflow in the application using background concurrent process? Any help is appreciated.

    Please note that Workflow Background engine is used to process workflows that are in deferred status. It is not used to launch the workflow. You will have to write your own code to launch the Workflow using one of the following methods.
    1. Use WF_ENGINE.CreateProcess and WF_ENGINE.LaunchProcess APIs.
    2. Register a Business Event, create a subscription to the event to launch the workflow and raise the Business Event from your code.
    Workflow Background Engine has parameters such as Itemtype, Min and Max Thresholds, Process Deferred, Process Timeout and Process Stuck... which basically determine the type of background work it has to do.
    Please refer to Workflow Developer Guide on how to launch Workflows and the uses of Workflow Background Engine.
    Thanks
    Vijay

  • How to use an image as my form background in form central

    how to use an image as my form background in form central pls help me....

    Unfortunately this is not supported but you can submit a feature request on this form FormsCentral Ideas.

  • I want to use music as background for home video and put it on facebook. How do I get permission to do that.

    I want to put a song I purchased on i tunes and use it as background on a non comercial home video and put it on face book. How do I get permission to do that?

    I can't answer this one but I imagine it would be a nightmare and expensive.  The companies that do that probably aren't scaled for such a thing and are more likely used to dealing with big contracts.  You might even have to do something such as provide evidence for how many times the music has been played -- something I suspect Facebook is not geared up for doing.
    I guess if it's a small scale artist on their own private label you could ask the individual but it's a big time artist working with a record company then you'll have to deal with the record company or pay a company that works with them on licensing issues.

  • I'm using movie program how do get rid of background noise and put music over top of video

    I'm using movie program how do get rid of background noise and put music over top of video

    Niel,
    Thanks for your suggestion about using RCDefaultApp. I am hesitating to do this because it seems like I'd be installing still another piece of software to fix the original mistake---downloading Reader.
    About 20 years ago I maintained---with considerable handholding---UNIX systems of various sorts. Can you suggest how I might find the plist that seems to require changing?
    BTW, Preview is called whenever I open some random .pdf file. The problem appears when I want to get a file from the web. If the site permits a "download" I can get the file, but if I want to "view and print" the file, the evil dark-grey Adobe screen appears with the whirling black ball. Then Safari quits. I'm wondering if the reference to Reader is in a "cookie" sent from the website, when I first was installing Reader. Is this possible?

  • How can i use wallpaper as background behind icons

    Hi just wondering How can i use wallpaper as background behind icons. As a different background to the themed one?

    Hi clarkkent26,
    You can't do it yet, without jailbreaking the iPhone. I would recommend you to wait until June and you'll probably see some new application that will actually allow you to do so.
    Hope this helps!
    !http://signatures.mylivesignature.com/54486/122/A57996D55BE7ABB4A67DE686D381A27 4.png!

  • How can I change the background color in text box using RGB format

    Can some one tell me if Mac Pages (version 5.0) allows users to customize the background color of a text box using RGB color format?  It appears that the text color can be changed using RGB but background color is limited to a few standard colors.   Thanks

    They are just sample swatches, use the Color Picker to choose anything you want.
    Peter

Maybe you are looking for

  • Phone not working after 8.1.1 update in iPhone 5

    Did 8.1.1 update (stupid 1.2 GB) and now phone not working. It give a funny number on My Number

  • No externally managed transaction is currently active for this thread

    Got the following exception after updating an entity bean and call persist method. Code the given below the exception. Exception [TOPLINK-23010] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.TransactionExcept

  • FL does not exist in current context

    I am having a problem with my code. I have defined "state" as a global variable and the user needs to input one of 3 states. Based on the state chosen, I need to select a tax rate. I wrote an if statement to select the tax rate but, until the user in

  • Grow/Shrink Behavior Not Working

    I created 5 separate DIVs/Images using the grow/shrink behavior. The behavior worked on the computer I initially created them on, when I got home, the behaviors are still setup, but don't work in either the LiveView, Preview in Browser or when the ne

  • How to use external HD as start HD

    Hi§ My 30 gb hard drive is about to become full, and I wonder if it's possible to use my external HD as the main drive on a permanent basis. If it is, how do I do it? Can I just copy all my files over to the external drive? I appreciate any inputs on