ABAP OO method on Task - won't execute in background

I've been trying to get workflow with ABAP OO methods up and running on our 6.20 system.  I've followed Jocelyn's blog series and the associated white paper, and can get the DISPLAY method working for her example ZCL_PLANT class.
I can't seem to get a task working with the static CREATEINSTANCE method, however.  The method works fine (tested in SE24), but when I create an associated task and test it in SWUS, the log shows the status of the work item as Ready, with my name as the Agent.
I've flagged the task as synchronous and background - is there anything else I should be doing?
Thanks in advance,
Andrew

Hi Andrew,
Check your Synchronous and Background parameters on the Task again, activate your WF again and start a new workflow.
This should definitely work and not have you as an agent. But sometimes it can be a bit stubborn if you e.g. stay in the same transaction and make changes in another session. Always go back to the main Easy Access menu before testing changes.
Cheers,
Mike

Similar Messages

  • OO method on Task won't execute in background

    Hi,
    Im using  a OO method in my task, I have flagged the task as synchronous and background and when test it the WF log show me my task In Process status... why???!!!
    Have any idea what's happening?...
    Please I need your help.
    Thanks in advanced.

    Hi alfredo ,
      Can you check on ST22 whether is there any shortdump happened? In some cases, if it is shortdump it will stayed in 'In progress' status.
      Can you test your method on SE24 whether it works and check in PFTC whether the attribute of task is set properly?
    Regards,
    Chaiphon

  • Program won't execute in background

    Moderator message: duplicate deleted.  Subject changed.  Please use a meaningful subject in future
    i have one report that name is zsd012 ,that is not execute in the 'Execute in Background'.
    why it is not execute in 'Execute in Background'?
    report is to DISPLAY OF SALES REGISTER.
    module is SD.
    using tables :
    TABLES : VBRK,
             VBRP,
             BKPF,
             BSEG,
             BSET,
             ADRC,
             TVKT,
             LIKP,
             KONV.
    Edited by: Matt on Jan 13, 2009 9:26 AM

    r u using any EXPORT/IMPORT or throwing any ERROR messages or popping-up any user decision pop-ups or using any LEAVE or some times problems with normal custom container too!!
    thanq

  • ABAP OOP method in Workflow task 6.20

    Hello all!
    In the following blog /people/jocelyn.dart/blog/2006/07/25/using-abap-oo-methods-in-workflow-tasks it is mentionned that to enable OOP methods for workflow tasks on 6.20 one needs to run report SWF_CATID.
    I'm currently on a customer system 6.20 ABAP SP50 and this report simply does not exist. Is this report appearing in a later support pack or is this not available until 6.40 as I belived....
    Any advise on how to enable this on an above system is highly appriciated!
    Regards
    Martin Jonsson

    Hi,
    Check this Report - RSWF_CATID.
    Regards,
    Surjith

  • .load method won't execute in published .swf

    Hello
    This line of code won't execute in a published .swf. Test movie (ctrl + enter) works fine.
    j_session = new URLVariables();
    j_send = new URLRequest("https://web.e-fon.ch/portal/j_acegi_security_check");
    j_loader.load(j_send);
    I'm assuming it's some type of network permission. Ideas?

    upload to a server and test or add the file that contains that code to your trusted files.
    also, you may need a cross-domain permissions file if that is a cross-domain request (if it's not, use a relative path) and you expect something returned to your flash.
    also, you're not defining or sending any variables which may or may not be an issue.

  • ABAP OO Method

    Greeting Gurus,
    I am working with the Purchasing cube and I have come accross a routing that PERFORMs LOC_CURR_CONVERT.  I need to convert this to a ABAP OO Method.  I find it difficult to find any information on this.  Does anybody have any suggestions?
    I am on SP8, waiting on SP10.
    Does SAP have a method name that replaces this ABAP Routine?  Or do I need to code myself?  Is there any handy documentation (I found HOW To... Routines within Transformations already, however, not explicity to Methods.)
    Kind Regards,
    Alex

    Hi KJ,
    I have executed the steps already on the document you gave me.  I am on the "further edit the transformation manually" step.  Since I am on SP8, my guess, is that it is not giving me the "proposal" of migrating the PERFORM call to a FUNCTION call.
    Please see the following post, where Rohan also is experiencing the same problem in SP8.  Re: How to convert  old Abap routine in to ABAP OO in 2004s
    My guess is I need a comperable FUNCTION call to that of the old LOC_CURR_CONVERT.

  • ON COMMIT ABAP CLASS METHOD

    Hi Friends,
    Can i execute and abap oo method on commit work.
    similiar to perform form on commit.
    thanx

    Hi Kaushik!
    This should be possible, but with a little bit different approach:
    You can implement an event handler for the commit event. Then you have to register this method for the commit event. Have a look at program SAPMSSY0. In routines %_before_commit, %_commit and %_after_commit you will find some events, e.g.
    * Raise event 'Commit Requested' for Object Manager
      CALL METHOD cl_os_transaction_end_notifier=>raise_commit_requested.
    , for which you might like to register your method.
    Regards,
    Christian

  • ABAP class method with dialogue

    Hi all,
    I want to use a ABAP class method within a Workflow definition with user interaction. The SAP help says, that is possible, but I couldn't find a way, to mark the method as "with dialogue".
    For BOR-objects there is a checkbox in the details for the method definition. Can anybody tell me, how it can be done?
    Thanks in advance
    Nick

    Hi Nicolas,
      When you create the Task with the ABAP OO Method, you can select it as "Background Processing" else it will be a "Dialog Process".
    If you notice here, "Background Processing" checkbox will be editable if ABAP OO Method is used, whereas in case of Business Objects it directly comes from method definition.
    Reward points if useful.

  • Update Row into Run Table Task is not executing in correct sequence in DAC

    Update Row into Run Table Task is not executing in correct sequence in DAC.
    The task phase for this task is "Post Lost" . The depth in the execution plan is 19 but this task is running some times in Depth 12, some times in 14 and some time in Depth 16. Would like to know is this sequence of execution is correct order or not? In the out of the Box this task is executed at the end of the entire load. No Errors were reported in DAC log.
    Please let me know if any documents that would highlight this issue
    rm

    Update into Run table is a task thats required to update a table called W_ETL_RUN_S. The whole intention of this table is to keep the poor mans run history on the warehouse itself. The actual run history is stored in the DAC runtime tables, however the DAC repository could be on some other database/schema other than warehouse. Its mostly a legacy table, thats being carried around. If one were to pay close attention to this task, it has phase dependencies defined that dictate when this task should run.
    Apologies in advance for a lengthy post.... But sure might help understanding how DAC behaves! And is going to be essential for you to find issues at hand.
    The dependency generation in DAC follows the following rules of thumb!
    - Considers the Source table target table definitions of the tasks. With this information the tasks that write to a table take precedence over the tasks that reads from a table.
    - Considers the phase information. With this information, it will be able to resolve some of the conflicts. Should multiple tasks write to the same table, the phase is used to appropriately stagger them.
    - Considers the truncate table option. Should there be multiple tasks that write to the same table with the same phase information, the task that truncates the table takes precedence.
    - When more than one task that needs to write to the table that have similar properties, DAC would stagger them. However if one feels that either they can all go in parallel, or a common truncate is desired prior to any of the tasks execution, one could use a task group.
    - Task group is also handy when you suspect the application logic dictates cyclical reads and writes. For example, Task 1 reads from A and writes to B. Task 2 reads from B and writes back to A. If these two tasks were to have different phases, DAC would be able to figure that out and order them accordingly. If not, for example those tasks need to be of the same phase for some reason, one could create a task group as well.
    Now that I described the behavior of how the dependency generation works, there may be some tasks that have no relevance to other tasks either as source tables or target tables. The update into run history is a classic example. The purpose of this task is to update the run information in the W_ETL_RUN_S with status 'Completed' with an end time stamp. Because this needs to run at the end, it has phase dependency defined on it. With this information DAC will be able to stagger the position of execution either before (Block) or after (Wait) all the tasks belonging to a particular phase is completed.
    Now a description about depth. While Depth gives an indication to the order of execution, its only an indication of how the tasks may be executed. Its a reflection of how the dependencies have been discovered. Let me explain with an example. The tasks that have no dependency will have a depth of 0. The tasks that depend on one or more or all of depth 0 get a depth of 1. The tasks that depend on one or more or all of depth 1 get a depth of 2. It also means implicitly a task of depth 2 will indirectly depend on a task of depth 0 through other tasks in depth 1. In essence the dependencies translate to an execution graph, and is different from the batch structures one usually thinks of when it comes to ETL execution.
    Because DAC does runtime optimization in the order in which tasks are executed, it may pick a task thats of order 1 over something else with an order of 0. The factors considered for picking the next best task to run depend on
    - The number of dependent tasks. For example, a task which has 10 dependents gets more priorty than the one whose dependents is 1.
    - If all else equal, it considers the number of source tables. For example a task having 10 source tables gets more priority than the one that has only two source tables.
    - If all else equal, it considers the average time taken by each of the tasks. The longer running ones will get more preference than the quick running ones
    - and many other factors!
    And of course the dependencies are honored through the execution. Unless all the predecessors of a task are in completed state a task does not get picked for execution.
    Another way to think of this depth concept : If one were to execute one task at a time, probably this is the order in which the tasks will be executed.
    The depth can change depending on the number of tasks identified for the execution plan.
    The immediate predecessors and successor can be a very valuable information to look at and should be used to validate the design. All predecessors and successors provide information to corroborate it even further. This can be accessed through clicking on any task and choosing the detail button. You will see all these information over there. As an alternate method, you could also use the 'All/immediate Predecessors' and 'All/immediate Successor' tabs that provide a flat view of the dependencies. Note that these tabs may have to retrieve a large amount of data, and hence will open in a query mode.
    SUMMARY: Irrespective of the depth, validate
    - if this task has 'Phase dependencies' that span all the ETL phases and has a 'Wait' option.
    - click on the particular task and verify if the task does not have any successors. And the predecessors include all the tasks from all the phases its supposed to wait for!
    Once you have inspected the above two you should be good to go, no matter what the depth says!
    Hope this helps!

  • Open VI Reference Function won't execute in multi process application

    I have a sub vi with Reentrant execution, and it has
    recursive call on some cases.
    It is very similar to OpenG VI “Read Key
    (Variant)__ogtk.vi”, my sub vi works without any problem unit LabVIEW’s Two
    Button Dialog is opened in other process loop.
    I have attached a Test VI, and would like to understand why
    would Loop 1’s Dialog box have any execution impact on Loop 2’s process?
    Why Open VI Reference Function won’t execute when Two Button
    Dialog is opened in other process?
    LabVIEW version 8.6
    Thanks,
    Attachments:
    Test Vi.zip ‏17 KB

    Broken Arrow wrote:
    LabVIEW's native dialog box is Modal. It will not let anything else run which requires (or MAY require) user input. In the case of your code, LabVIEW can't open a VI with a modal process going.
    Broken Arrow thanks for your reply, but not sure if I understand Modal dialog box would cause the problem.
      I already had a work around by using Three Button Dialog VI, and it is s Modal VI.
      I would still like to understand, why would DataFlow halt at Open VI Reference Function in Loop 2 when I use when Two Button Dialog?
    Attachments:
    Test Vi 2.zip ‏20 KB

  • Why is my Package just stopping when going from one Execute SQL Task to another Execute SQL Task

    I have one flow constraint going for my one Execute SQL Task to another Execute SQL Task. It's executing #1 and successfully and just stops there rather than continuing on to Execute SQL Task #2. Why would it just stop? My constraint is NOT conditional...just
    a straight ole flow constraint.
    Any help is greatly appreciated and Thanks in Advance for your help.
    PSULionRP

    Hi PSULionRP,
    First make sure the color of the Precedence Constraint is green (Success) or blue (Completion) other than red (Failure). Then, make sure the Execute SQL Task is not disabled (right click the executable, and “Disable” option is available in the right-click
    menu). 
    Regards,
    Mike Yin
    TechNet Community Support

  • How to use a parameter in an Execute SQL Tasks in SSDT executed against Netezza

    Good Evening,
    How can I pass a parameter in an Execute SQL Tasks in SSDT executed against Netezza?  Below are my settings and error message.
    [Execute SQL Task] Error: Executing the query ""TRUNCATE TABLE" ?"_POC..JOHN_TEST"" failed with the following error: "Syntax error or access violation". Possible failure reasons: Problems with the query, "ResultSet"
    property not set correctly, parameters not set correctly, or connection not established correctly.
    Thank you in advance for your assistance.
    Brett

    Hi Baloun,
    Based on my further research, just as you said, we cannot directly use table name as a variable.
    To fix this issue, we can change the SQL command in the SQLStatement property as below:
    declare @sql varchar(100)
    set @sql = 'TRUNCATE TABLE ' + ? +'_POC..JOHN_TEST'
    exec(@sql)
    go
    The Parameter Mapping pane use the former settings in your picture.
    Reference:
    http://www.bidn.com/blogs/kylewalker/ssis/2063/parameters-don-t-always-work-in-your-execute-sql-task
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • ABAP Debugger-Is it possible to NOT execute a statement?

    Hello all,
    In ABAP debugger, is it possible to NOT execute a  statement? This will allow testing programs without having to change, generate and transporting the new version.
    Thank you for your help.
    AG

    hi,
          Debugger does not have this kind of functionality but if you want to do on that then put your code between an if else block and while debugging change the value of if else condition based on ur rwquirement as u know u can change value of varriable in debugger.
    Rewards if helpful.
    Regards
    Gagan

  • Function module or ABAP-OO method to start DTP via Coding

    Hello experts,
    is there any function module or ABAP-OO-method, which I can use to start DTP's via ABAP-Coding (e.g. in my own programm)? I know there are FM's to start, change, delete, etc. InfoPackges. Are there any functions like them also available for DTP's?
    Kind regards,
    André

    Hello Andre,
    [Re: CL_RSBK_DTP - How to use...]
    I've tested and it works fine!
    Regards,
    William

  • How The ABAP Proxy method gets triggered

    Hi All,
    I have created a ABAP Proxy for inbound interface.For this interface the data is coming from XI system.So i am writing the logic to read the XI data into an internal table and am populating the same data into a BAPI.
    So my question is,once the XI system sends the data, Will this ABAP Proxy Method automatically gets trigger or Do we need to make any settings?
    Please Help me As early as possible.
    Thanks in advance
    Regards
    Srinivas Kodukula

    Hi srinivas,
    Refer the below points for the configuration needed at R/3 side:
    1. Create a HTTP connection in the business system using transaction SM59
    2. Configuration Business system as local Integration Engine in SXMB_ADM
    3. Connection between Business System and System Landscape Directory. For this check the RFC destinations LCRSAPRFC and SAPSLDAPI
    4. Maintaining the SAP J2EE Connection Parameters for LCRSAPRFC and SAPSLDAPI in SAP J2EE engine
    5. Maintain SLD access details in Transaction SLDAPICUST
    Regards,
    Kiran Bobbala

Maybe you are looking for

  • Upgrade from 10.3.9 to 10.4.10...can no longer get online

    hey, thanks for reading. went from panther to tiger last night. i did a complete erase and install of 10.4.6 on my Ti powerbook (867 Mhz processor, 1 GB ram). on reboot, my computer found my wireless network, i entered in the password, and it seemed

  • How do I resolve an Error 100 message when downloading the Acrobat XI cloud?

    I just paid for a twelve-month access to Acrobat XI through the creative cloud. Now I am getting an Error 100 message. I am not an employee of Acrobat, and I am not getting a paycheck, so I am not going to troubleshoot this issue. Will someone on the

  • Grouping result set by a column in a query without aggregate function

    In the below result set, several columns appear for one table. col data_Type format a12 col column_name format a10 set lines 100 set pages 50 SELECT table_name, column_name FROM user_tab_cols WHERE char_used = 'B' AND TABLE_name NOT LIKE 'BIN%' ORDER

  • How to transfer Customers to APO based on selection criteria of Division

    Hello, We have to transfer Customer Master specific to one business unit to APO and we don't want to transnfer the Customers of another business units. The differentiation of customers is done at a Distribution Channel & Division level. But we don't

  • Sapcheck environment variable

    brconnect jobs in DB13 are failing.  The job log gives me a pretty good indication why: BR0252E Function fopen() failed for '/oracle/BBS/920_64/sapcheck/cdwcvtyd.sta' at location main-9 BR0253E errno 2: No such file or directory From this, it appears