Is it possible to run WF_DOC.CREATE in background?

Hi gurus,
In my workflow there's the step 'Document from Template' to generate a WF_DOC and it's working fine. However the user wants to have the step done in background and the document generated automatically.
To meet this requirement, I tried to copy the WF_DOC and modify it into a background version, but it seems as if the underlying CL_SWF_DOCUMENT is designed to run with frontend and many GUI functions such as POPUP_TO_SELECT are used. So my question is: Is it even possible to do the WF_DOC.CREATE in background or is there any work around?
Thanks in advance for any hints.
Best regards
Luis

Hello Luis,
I have looked through the coding and the answer to your question is: No.
The WF_Doc uses the frontend components (Word, etc.) to create those documents where the frontend isn't available in background tasks.
A workaround to your requirement could be some kind of report output or SAPscript-output (converted to PDF or something similar), then create from this binary data an Office-document and append this one to ADHOCOBJECTS container element.
This workaround is only an idea and there are several others to do so, as well.
Best wishes,
Florin

Similar Messages

  • Is it possible to run ALV report in background if Yes how?

    is it possible to run ALV report in background if Yes how?

    Hi,
    Why not?Through se38 only you create ALV report. there you can give your report name and go to program on menu bar - click - execute buton- click-Background . You will get new screen there you can choose Execute immediate or schedule.
    <REMOVED BY MODERATOR>
    Cheers,
    Chandra Sekhar.
    Edited by: Alvaro Tejada Galindo on Mar 4, 2008 2:12 PM

  • Will it be possible to run several jobs in background at the same time?

    Hi!
    The new release looks promising. Look forward to hear more in Birmingham.
    Just now we have a problem. It have to do with functionality In Toad compared to SQL Developer.
    Will it be possible to run several jobs in background at the same time. Toad allows that.
    If yes: How can we make that happen?

    "Jobs" are always background.
    But I take you mean queries. Yes, since v1.5.x you can open an Unshared SQL Worksheet (ctrl-shift-n or the toolbar button).
    Have fun,
    K.

  • Is there a possibility to run RSRV fix in background?

    Hello,
    Is there a possibility to schedule/run the "error correction" part of the RSRV result as a background job and not dialog.
    Thank you

    Hi Blue005,
    there is no standard report provided as standard to do the 'Repair' tasks within a BGD job.
    The reason for this is that some repairs have to be executed in a certain order or a certain time (when no other jobs can interfere). Furthermore these repairs should be supervised by an administrator.
    The system is not supposed to do this automatically.
    So you'd have to create your own Z-report making use of report RSRV_JOB_RUNNER (which are the actual RSRV tests) or the function module RSDRD_DIM_REMOVE_UNUSED.
    Rgds,
    Colum

  • Possible to run something in the background?

    This is my situation: I have a Student class and a Clazz class. A student can belong to only 1 clazz and a clazz can have many students. These 2 classes are mapped to 2 database tables. In the following code, I remove all the JPA annotations.
    class Student {
        private Clazz clazz;
        public void setClazz(Clazz clazz) {
            this.clazz = clazz;
            clazz.getStudents().add(this);
    class Clazz {
        private List<Student> students;
    }So to add a new student to an existing class, I do something like:
    Student student = new Student();
    Clazz clazz = entityManager.find(Clazz.class, clazzId);
    student.setClazz(clazz);
    entityManager.persist(student);Because of the line clazz.getStudents().add(this); in the Student.setClazz method, the application has to go to the DB and load all the existing students for that clazz (which takes a long time).
    The Student and Clazz codes are very difficult for me to change (somebody wrote them and they don't wanna change). So I have to think of some way to load the clazz and all its student when I have the clazzId information. The duration from when I have the clazzId info until the student is saved to the db is about 1min.
    This is what I did:
    - I created a stateful session bean with an EXTENDED entity manager which has a method to return a clazz when we feed it a clazzId. So the returned clazz is persisted.
    - I created a stateless session bean which has a timer. When I have the clazzId, I start the timer, give the timer a ClazzHolder instance.
    class ClazzHolder {
        private Long clazzId;
        private Clazz clazz;
        private boolean done;
    }- The timer gets the clazzId from the ClazzHolder instance, feeds that clazzId to the stateful bean, receives a persisted Clazz instance back, saves that Clazz instance in the ClazzHolder instance and turns the flag "done" to true.
    It seems to me that the ClazzHolder instance the stateless session bean has is not the ClazzHolder instance that I pass to it (but the content is the same). I think it's because the ClazzHolder instance I pass to the session bean is serialized first, and then de-serialized to build an object and give to a method in the session bean.
    Summary: my idea of using timer to load something before hand doesn't work.
    My question is: is there any way to load something from the database and keep it persisted before hand?

    Hi Naimesh,
    thx for explanation. I am not sure, if I understood everything in the right way.
    Where do you write the code for building the selection-screen? (PARAMETERS, SELECT-OPTIONS etc.)
    If you write these commands in a class method, you will get a syntax error ( because it's forbidden per definition of ABAP objects). So, am I right assuming that you put the coding just at the beginning of the ABAP report ? And after START-OF-SELECTION-event you start the processing... ?
    Furthermore, I don't really understand why you create an separate class for ALV. I found your "SAP abap help"-blog, where you explained the concept of MVC ((By the way, well done!), but you didn't mention an "ALV class" there..
    Mh.. another question - have you ever combined MVC with object services?
    At the moment I'm working on a software project where I use object services. I created 2 persistent classes via SE24 and one local class in my ABAP Report.
    I don't really see possibility to implement MVC in this project without change very much of coding and class structure...
    In my opinion the M (data&business logic) are my existing global classes and my local class is kind of Controller class?!
    Thx in advance,
    Anne

  • Is it possible to run alv grid in background

    Can any one tell me about it?

    Hi Avinash,
    Yes, we can schedule ALV but OO ALV we need some piece of code.
    Please see the below link.
    http://scn.sap.com/message/15071173
    Regards,
    Vadamalai A

  • Error while running Re-create grants and synonyms for APPS schema

    Hi,
    I have upgraded customer's Oracle Apps 11i (11.5.10) database to Oracle 10g R2. While executing '+Re-create grants and synonyms+ ' as given in Note: 362203.1, I am gettng error:
    plus80 -s APPS/***** @E:\EBSTEST\ebstestappl\ad\11.5.0\admin\sql\adappsgs.pls &systempwd 1 INV APPLSYS APPS TRUE FALSE TRUE
    Error:
    Program exited with status 3
    Cause: The program terminated, returning status code 3.
    Action: Check your installation manual for the meaning of this code on this operating system.Connected.
    old 2: ad_apps_private.create_grants_and_synonyms(&2,'&3','&4','&5','FALSE');
    new 2: ad_apps_private.create_grants_and_synonyms(1,'INV','APPLSYS','APPS','FALSE');
    begin
    *+
    ERROR at line 1:
    ORA-20000: ORA-00955: name is already used by an existing
    object:create_grants_and_synonyms(1,INV,APPLSYS,APPS): create_base_gs(INV,APPS): In Synonyms
    Loop:create_synonym(INV,MTL_ONHAND_DISCREPANCY,APPS,MTL_ONHAND_DISCREPANCY):
    do_apps_ddl(APPS,CREATE SYNONYM "MTL_ONHAND_DISCREPANCY" FOR INV."MTL_ONHAND_DISCREPANCY"):
    ORA-06512: at line 5
    MTL_ONHAND_DISCREPANCIES
    I checked the database and there isn't MTL_ONHAND_DISCREPANCY synonym. But there is MTL_ONHAND_DISCREPANCIES synonym.
    This is an upgraded instance from 11.0.3 and first time I am running Re-create grants and synonyms for APPS schema.
    Plz let me know if anyone of you faced this issue.
    Rgds,
    Thiru

    Hi,
    there is no such table MTL_ONHAND_DISCREPANCY or synonym in Applications 11.5.10.2. Is that custom table created in your db?
    After dropping this table from APPS schema 'Re-create grants and synonyms for APPS schema' went thru fine.Its correct
    This table does not exist in INV schema in 11.5.10.2.
    Could be possible that the consultant could have created this table in INV and APPS schema by mistake or whatever.Yes, with the same name, there might be table in APPS SCHEMA. When you run recreate grants and synonyms, adadmin tries to create synonym for that table in APPS schema. since there is object available with the same name in apps chema, you got that error.

  • Is it possible to run a java program without using the command prompt?

    Hi,
    I was wondering whether it is possible to run a Java program (not an applet) without using a command line in the command prompt?
    Basically I want to run a program that will be continually running in the background and hence I don't want to have a command prompt screen loaded up as well - I just want the program to be running in the task bar.
    I know how to run the program in the task bar - but I still need to launch the program from the command prompt - is there anyway I can get a program running without having to start it from the command prompt?
    Cheers

    Or create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).

  • Is it possible to run two appl in a single node

    Hi folks,
    Plz tell me if it is possible to run two applications in a single node,coz I had deployed one and it is running fine but when I am going to deploy and run another one it is showing that "503 service unavailable" in the browser after the deployment.
    cheers
    prasenjit

    Can you please explain below
    Why your are creating Two VO's for one Table.
    What is relation between this two VO's??
    Thanks,
    Dilip

  • Is it possible to run a command prompt(or DOS Command) through flash and run a Activex(.OCX) file from flash

    Hi all
        Is it possible to run a command prompt(or DOS Command) through flash.If it possible please guide me to do that throug AS 3.0.
       and
    Is it Possible to run a activex (.OCX) file from flash. If it is so please guide me the way to do it
    Thanks and Advance
    Sankar.M.S

    Or create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).

  • Is it possible to run a Labview executable on a Windows 8 Phone?

    If I create an executable from Labview,will it be possible to run it on a Windows 8 phone?
    Solved!
    Go to Solution.

    No, as Mike already said.
    The reason being that a LabVIEW executable contains binary code that is compiled for the x86 CPU architecture and accesses the Win32 API. Windows Phone typically runs on ARM or RISC CPUs and did only provide a very limited Win32 subset in the past. With the new Windows RT technology it actually moved even further away from Win32 compatibility as it's entire architecture is based on the .Net technology.
    So even if you happen to get an Intel Atom based Windows Phone device which would be x86 compatible it couldn't work, since a LabVIEW executable is a Win32 portable executable format not a .Net bytecode image.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Is it possible to run Add-On application seperately from Windows?

    Hi,
    Is anyone know if it is possible to run the Add-On from Windows with SAP B1 client ? For some reasons, i can't install the Add-On my server now during my development, but i need my QA tester to test these existing finished Add-Ons. Can I just pass all compiled binary files to my tester and let him run the Add-On from his PC and test it in his SAP B1 client? I tried, but it always gives me application crash error. But the add-on runs very well after installed in the the SAP B1 or under visual studio developping mode.
    Thanks,
    Lan

    Hello
    Yes it is possible. You can run the addon the same parameters as you run in the development environment. You can use the same connectionstring used during development.
    1. Copy you addon into a folder
    2. Create a bacth file (start.bat) with notepad, and enter there your addon name and the connectionstring
    3. Run the batch file.
    It will start and connect to sap b1.
    I am also using this method to test the addons .
    Regards
    J

  • Is it possible to run a command prompt(or DOS Command)  and Activex File(.OCX)

    Hi all
    Is it possible to run a command prompt(or DOS Command) through flash.If it possible please guide me to do that throug as 2.0. and is it possible to run a Activex File(.OCX) through flash.
    Thanks and Regards
    Sankar.M.S

    Or create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).

  • Is it possible to run a java application/program forever?

    Hi,
    Is it possible to run a java program forever?
    if so please reply how it is possible
    thanks in advanced.

    There was a computer with many processes.
    Some processes came and went: they exited either voluntarily by calling exit(2),
    simply returned from their main method, or were terminated by a signal
    like SEGV, TERM, and the dreaded uncatchable KILL.
    Other processes strove to eternal running: they detatched themselves from their
    controlling terminals, ignored the HUP signal or even interpreted
    it as an occasion to reread their configuration instead of
    taking it as a notification on the line's "hanging up"
    or more generally the controlling pseudo or virtual terminal's being closed.
    Resources were acquired and released, processes came and went, some stayed though.
    Long-running processes were experienced to writing ever growing "access" and "error" logs.
    Rumors went around about "garbage collection" and "memory leakage".
    The processes started to think: "What if not all resources get released?
    What if the available memory shows an overall shrinking trend
    and in the long term it will be totally exhausted?
    What if the disk space get freed in a lesser pace as it gets consumed?
    How shall we survive in a Universe where there is no space is left
    even for sysem logs?"
    The processes made the observation that they were identifed by their process id's
    (pid of the integral type pid_t), and the only way they to create a process
    was the fork(2) system call, which returned 0 to the child,
    the positive pid of the child to the parent, and a negative value on error.
    Thus the pid could only be postive numbers.
    The processes observed the one "init" with pid=1, the smallest thinkable pid.
    They asked: "Will it run forever? If not, what will become of us?
    If a process exits without wait(2)-ing for its children,
    who will inherit it if "init" no longer exists?"
    They came to the conclusion that no process could have existed before this one,
    so their universe began once, was not infinite in the past.
    They called this event (which lead to the existance of the process "init"
    and actually their whole universe) "The Big Bang" or "The Big Boot".
    "Is it possible that different, parallel universes exist?
    Is it possible that different, parallel universes arise with different laws and system API's?"
    - they asked.
    Will their universe exist for eternity?
    If yes, in what conditions? Will it eventually run out of the resources,
    will it become cool and frozen with no memory, no available disk space,
    with no resources left drifting along with no activity?
    Or will their universe come to an end, to a condition where
    signals (TERM and then KILL) fly to all processes,
    all file system get umounted, all activity stops?
    "Big Crash" or the "Big Shutdown" they called this scenario.

  • Is it possible to run applet without JRE

    hello friends,
    Presently I hava developed chating application. Now I want to download my applet on client side and run ther wether client's computer has JRE or not.
    so is it possible to run applet on computer which doesnt have JRE?
    Thanks in advance

    Not unless you create an executable file and jam the whole JRE into it.

Maybe you are looking for

  • PER_ADDRESS Scrambling Script Running for 13 Hours in EBS 12.0.6

    Hi All, We do Address scrambling in PER_ADDRESS table in cloned developemnt instance(from PRODUCTION) to hide actual data.We run the following script after every clone. But the script is running more than *13 hours*. We run this script in APPS user.

  • REFRESH_ADMIN_DATA_FROM_SUPPORT error...

    Hi there... I´m facing with an error in sap solution manager, my goal is to setup maintenance optimizer, for that I know the job REFRESH_ADMIN_DATA_FROM_SUPPORT  (with Abap program AI_SC_REFRESH_READ_ONLY_DATA) must are schedule every day because thi

  • Help memory won't update????

    I only had 8.6 gb left on my ipod, so i erased all the music and voice. I now have 6 songs and it is still saying i have 8.6 gb remaining? why isn't it updating the space?

  • IOATAController Error on Mac Pro

    I have a 2008 Mac Pro. About two weeks ago, it started freezing during the startup. After 9 days, the Apple Store decided it was a bad video card, which they would not replace, because it was not the original video card. I had bought a Nvidia upgrade

  • Disable pop-up blocker globally (for all users) in FF 30+

    Hello, I cannot find the correct settings to disable pop-up blocker globally. I have some internal web apps that are using pop-ups to display certain information. By default FF is blocking all. Although it is indicating that pop-up was blocked many u