Re: perform new task

Hi,
   CALL FUNCTION '  ' STARTING NEW TASK '001'
    PERFORMING f_task_end ON END OF TASK.
  I have seen above code in some programs.  What is the meaning of the above statement.  Where can we use the above statement. Can any body explain. 
rgds
p.kp

Hi,
Have you checked the documentation for this statement. Take a look at http://help.sap.com/saphelp_erp2005/helpdata/en/22/0425ac488911d189490000e829fbbd/content.htm.
As it says: <b>Once the called function is completed, the next dialog step in the calling program (such as AT USER-COMMAND) guides the system into the FORM routine that checks for results. </b>
Perhaps some flow logic of your program will be help us to assist you in task at hand.
Regards

Similar Messages

  • Photoshop CS2 opens but wont perform any task (open jpgs, create new jpgs etc). Other CS2 progs such as indesign are fine. MAC shop, couldn't fix, said I should ty install op system 4 Powerbook G4-dont have discs- can I get them?other solution? OS 10.4.11

    Photoshop CS2 opens but wont perform any task (open jpgs, create new jpgs etc). Other CS2 progs such as indesign are fine. MAC shop, couldn't fix, said I should try install op system 4 Powerbook G4-dont have discs- can I get them? or other solution? Am using OS 10.4.11 Thanks for any help

    Hi
    I actually dont think its Lion (sorry i put that as couldn't remember) as not on that computer at the moment, its at home, I am at work. I know CS2 is compatable with whatever OS I am using because I can using CS2 indesign etc and I was able to use CS2 photoshop until I updated the Camino browser (I believe this is when it stopped working). I have CS5 but it wont work at all on my Powerbook G4.
    I can send a message later with the OS I am using and maybe you can suggest other help? They told me in the MAC shop to try and get the installation discs. They also said I would be able to get these via Apple's 'media replacement programme' which I cannot find anyway! To be honest, I am not even sure getting the install discs will work but I'll try whatever I need to try and get Photoshop working on it again!
    Thanks

  • How to call RFC with  STARTING NEW TASK...performing my_form... in a class?

    Hello,
    I created a test report for parallel processing and this works perfectly fine but when I try to build this into a class I somehow cannot create the receiving form inside the method of the class...
    method test.
            CALL FUNCTION 'ZZCR_PARALLEL' STARTING NEW TASK lv_index DESTINATION IN GROUP DEFAULT
              PERFORMING transfo_result ON END OF TASK
              EXPORTING
                input_xstring = lx_clause_text.
    endmethod.
    I tried to place the form before the endmethod but this doesn't work and afterwards is also not an option.
    Is ABP OO not supporting parallel processing?
    Thanks and regards,
    Christoph

    Hello Christo ,
                         I am also trying to use the same in OO context . Just in he early stages of collecting information.If you could just tell what you found out in the document it could be opf immense help.
    Comradely,
    K.Sibi

  • HT1338 Photoshop CS2 opens but wont perform any task (open jpgs, create new jpgs etc). Other CS2 progs such as indesign are fine. MAC shop, couldn't fix, said I should ty install op system 4 Powerbook G4-dont have discs- can I get them? or other solution?

    Photoshop CS2 opens but wont perform any task (open jpgs, create new jpgs etc). Other CS2 progs such as indesign are fine. MAC shop, couldn't fix, said I should ty install op system 4 Powerbook G4-dont have discs- can I get them? or other solution?

    Hi
    I actually dont think its Lion (sorry i put that as couldn't remember) as not on that computer at the moment, its at home, I am at work. I know CS2 is compatable with whatever OS I am using because I can using CS2 indesign etc and I was able to use CS2 photoshop until I updated the Camino browser (I believe this is when it stopped working). I have CS5 but it wont work at all on my Powerbook G4.
    I can send a message later with the OS I am using and maybe you can suggest other help? They told me in the MAC shop to try and get the installation discs. They also said I would be able to get these via Apple's 'media replacement programme' which I cannot find anyway! To be honest, I am not even sure getting the install discs will work but I'll try whatever I need to try and get Photoshop working on it again!
    Thanks

  • Starting new task task .. performing subroutine .... error

    HI.
    i used a Perform to call a Function module.
       Perform <form name which contains the Function module>.
    I am calling the FM as -
    Form
    data: done type c value 'X',
              functioncall1(1).
       call function <FM name>
                      starting new task <Taskname>
                      destination in group default
                      performing <subroutine> on end of task
                        Exporting
    wait until functioncall1 = done.
    Endform
    Later -
    Form <subroutine> using taskname.
      receive results from Function "FM name'
                                       importing
    functioncall1 = done.
    endform.
    i do not get the importing data.. the passing Importing parameter are not recognized in the subroutine form..
    can any one check and inform me the problem.
    thanks in advance.
    Regards,
    AJ.

    Hi,
    You need to define the internal table globally.
    Regards,
    Nandha

  • Windows Backup - The backup application coud not start due to an internal error: You must be logged on as an administrator to perform this task. (0x8100000010).

    Windows 7 users in my domain are unable to configure or change backup settings.  Users are able to open Control Panel > Backup and Restore, but when they click
    Change settings, they receive the error: Windows Backup - The backup application coud not start due to an internal error: You must be logged on as an administrator to perform this task. (0x8100000010).
    The same error is received when executing sdclt.exe /configure at the command prompt, regardless of whether the command prompt is launched using "run as administrator".
    I've done significant testing, and have been able to determine that the local administrator account is able to configure backups before the computer is joined to the domain.  Once the computer is joined to the domain, the local administrator account
    and domain users who are in the local administrators group are no longer able to configure backup and restore.  Domain administrators are able to configure backups.
    This is a new issue, which began occuring sometime in the last 2 months.  3 months ago, users were able to configure backups without issue, and those computers with backups configured are still able to run their backups and do restores; however the
    settings can no longer be changed. 
    Clearly something in the domain is doing this, but Group Policy has not been altered, and I can find no setting that would be doing this in any case.  Any help is appreciated. 

    Hi,
    So you mean you have tried different accounts in the local Administrator group and all of them failed?
    If so, please check what group the local Administrator group belongs to? Does it belong to a group with limited privileges, such as the Guests group?
    Tim Quan

  • Creating new task in inbox

    Hi,
    In EP, under the inbox screen there's a 'Tasks' tab where we can create a new Task by clicking the 'Create Task' button.
    My question is: Is there any FM or class/method that I can use to perform the same functionality to create that Task?. Thanks

    Thanks Again Mike.
    Yes I agree with you. Payloads can vary in time and per task type. I configured flex fields in BPM Workspace -> Administration tab, then I mapped these flex fields in Human Tasks. When I create a custom view, It's only available to select the my custom payload field (flex field) when I select the Task type. In my case the payload field is an Person Id that is available since the start of first business activity til the end of the process. I think that if I really need to display this person id as a column, independent of task type, because this id I have all the time. I really need to build a custom worklist client as described in http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_worklistcust.htm#BABIHDEF . Maybe this worklist sample (HelpDesk UI Sample) can make my development time smaller compared with total time to develop an entire worklist from scratch.

  • Call Function'BAPI_USER_CHANGE' starting new task 'TEST'

    Hi All,
    I have problem with starting new task statement, I am using one FM after that am using starting new task 'TEST'
    statement but its not working in one system its working fine in other systems, Please help me who this works.
    Thanks in Advance.
    Eg: Call Function'BAPI_USER_CHANGE' starting new task 'TEST'
    Regar

    Thanks Lqueiroz  ,
    Now again i am getting a DUMP by saying ,
    "An error occurred when executing a REMOTE FUNCTION CALL.
    It was logged under the name "At least one entry could not be "
    on the called page."
    so what can be the reason for this
    call function 'ZRFC_PER_DIEM' starting new task lc_taskid performing subr on end of task
            exporting
              h_guid      = it_header_guid_n
              request_obj = lt_requested_objects_n.
          wait up to '1' seconds.
          read table gt_scl into ls_scl index 1.
          p_transaction_per_diem =  ls_scl-value.
          read table gt_scl into ls_scl index 2.
          transaction_currency_code = ls_scl-value.
      form subr   using task_id type clike.
      data: p_transaction_per_diem  type  char13,
            transaction_currency_code type  char3.
      receive results from function 'ZRFC_PER_DIEM'
                               tables
                                value = gt_scl.
    So basically i am getting dumo when receive statenment is running , by giving above dump.
    Regards
    PG

  • CALL FUNCTION  WITH STARTING NEW TASK

    Hi All,
    i'm call a function module through
    CALL FUNCTION 'Y_WIN'  DESTINATION 'rfc_destination' then it's give right result but when i want to call with starting new task then
    CALL FUNCTION 'Y_WIN'  STARTING NEW TASK 'INFO' DESTINATION 'rfc_destination'
    it does nt provide me any data. i have check in debugger call fm is wkging fine so pls clear me why i'm nt geeting result.
    pls give ur suggestions,
    Anuj

    Did you use the PERFORMING <form> ON END OF TASK to get the results back; like in the following sample
              CALL FUNCTION 'SAPWL_STATREC_READ_FILE'
                   STARTING NEW TASK taskname
                   DESTINATION list-name
                   PERFORMING read_outtab ON END OF TASK
                   EXPORTING
                        read_start_date   = s_date
                        read_start_time   = '000000'
                        read_end_date     = s_date
                        read_end_time     = '235959'
                   EXCEPTIONS " failure when calling RFC
                        communication_failure = 1 MESSAGE msg_text
                        system_failure        = 2 MESSAGE msg_text
                        RESOURCE_FAILURE      = 3.
    and
    FORM read_outtab USING taskname.
    * Receive results back
      RECEIVE RESULTS FROM FUNCTION 'SAPWL_STATREC_READ_FILE'
        TABLES
          v2_normal_records = outtab
        EXCEPTIONS " from the called FM
          nodata    = 1.
    Regards

  • Use of CALL FUNCTION - STARTING NEW TASK parameter_list.

    SELECT strt_code
                 city_code
                 commu_code
                 regiogroup
          INTO TABLE gt_adrstreet1
          FROM adrstreet
          FOR ALL ENTRIES IN gt_street_district
          WHERE strt_code EQ gt_street_district-strt_code.
    To optimize the performance of teh above query I am planning to use call function CALL FUNCTION - STARTING NEW TASK .....
    by spliting the above internal table gt_street_district into two internal tables and use the value of each internal table into two different queries and these queries will be put in call function - start new task ....so that these queries are run in different workprocess and thus improve the performance of the program.
    Can you please let me know if this would be a good option and also how to implement the same.
    Thanks.....

    >To optimize the performance of teh above query I am planning to use call function CALL FUNCTION - STARTING NEW TASK .....
    nonsense! You should not try parallel processing for a non-optimized SELECT statement.
    Better add the first key field of the WHERE condition as said above and check
    + whether the driver table is empfty
    + and whether there are duplicated entries
    ... And it is also a good idea to really use the SINGLE RECORD BUFFER, therefore you must write
    field-symbol:  <fs>  type ...
    LOOP AT gt_street_district ASSIGNING <fs>
       SELECT *
                    INTO TABLE gt_adrstreet1
                    FROM adrstreet
                    WHERE counrty =
                     AND       strt_code = <fs>-strt_code.
    ENDLOOP.
    Then it will be extremely fast!

  • Calling function in NEW TASK

    Hi,
    I am creating a program which calls a function, becuse the function gets list of 2000 employess and run for long time over the amount of employees i wrote "call function zxxxxx starting new task p_task_number...."
    My question is - how many tasks can i create ? can i run the function in 10 tasks (20 employees in each task)????
    thanks
    Elad

    Hi Diwakar,
    try CALL FUNCTION func STARTING NEW TASK task1 DESTINATION dest IN GROUP DEFAULT, this will enable to run FM in groups (parallel processing) and might help in performance as will itself take care of available Application server.
    Not true, you can call an FM(which needs to be RFC of course) just like below, and you would still achieve parallel processing, read IN GROUP for more details on when and where to use it.
    DATA: l_task TYPE char10.
    DO 5 TIMES.
      l_task = sy-index.
      CONDENSE l_task.
      CONCATENATE 'TASK' l_task INTO l_task.
      CALL FUNCTION 'ZTEST_CHEN' STARTING NEW TASK l_task.
    ENDDO.
    Regards,
    Chen
    Edited by: Chen K V on May 26, 2011 2:55 PM

  • Call function starting new task:

    I am trying to create a program in which few database update are mentioned.
    after database updates , I am calling a function module using starting new task
    in which I want to commit database updates inside in function module.
    Problem is I want to commit only database updates if function module , not of main program. For that I tried using COMMIT WORK in function module and rollback statement after calling FM.  But it is not working.COMMIT statement in FM also commiting database updates of main program also that is not required.
    Can anybody help me in solving this problem.
    Thanks
    Ruchika

    I think this may be caused by an implicit database commit performed by the system at the moment of calling a fm with "starting new task".
    Try the following test:
    - Put "rollback work" statement inside your fm which you call "starting new task" (instead of "commit") and check if the updates performed by the code executed before the call to this fm are stored in db - inspite of the rollback. If they are (as I suppose) this means that the commit effect you observe is not due to the "commit work"  statement executed inside your fm but due to an implicit commit issued automatically at the time of calling the fm. If this is the case the solution could be placing the code which you now execute before "call function...starting new task" into a seperate fm called "in update task" - then the final commit or rollback statement in your main program should have the expected effect.
    regards

  • ABAP Dump when calling Function Module Starting New Task

    Hi all. I have a tricky situation now, I am doing a POC on parallel processing.
    I am getting an ABAP dump on the following Call Function line which is in class lcl_steer_114numc (See below for full program):
    METHOD start.
        CALL FUNCTION 'Z_ZZCLS_STEER_114NUMC'
          STARTING NEW TASK me->id
          CALLING me->finish ON END OF TASK.
      ENDMETHOD.                    "start
    However I get the following ABAP dump:
    Short text
        Statement "CALL FUNCTION .. DESTINATION/STARTING NEW TASK/IN BACKGROUND TASK"
    The function module only contains a wait statement to simulate parallel processing. It is strange that it dumps here, because when I change the FM call to another call that has been triggered successfully from other classes, it still produces the same ABAP dump.
    The background of the Proof Of Concept is to see if I can get an event to trigger the next process that depends on the outcome of the previous process. Parallel processes are run in the start methods by calling RFC.
    <Garbled code removed>
    Moderator Message: Please post relevant portions of the code only.
    Edited by: Suhas Saha on Jul 17, 2011 1:17 PM

    Well, the thing is I did manage to run 3 other Function Modules asynchronously succeesfully prior to that function call, with the same exact function call syntax. Further more, I have tried editing it with your suggestion but I get the exact same dump.
    The complete function group can be downloaded here (slinkee file):
    https://docs.google.com/leaf?id=0B3sua1Bw4XK4ZmFhNzcwMTgtYzQ0Mi00NzQ4LTg5YTMtNDNlNWUxYTM2NTg3&hl=en_US
    The complete program can be downloaded here (slinkee file):
    https://docs.google.com/leaf?id=0B3sua1Bw4XK4YWJmNjU3ODYtODRmMy00Nzg2LThkNTUtZjNkNDRhZGQ3MTUw&hl=en_US
    The complete ST22 dump can be found here:
    https://docs.google.com/leaf?id=0B3sua1Bw4XK4ZDU1YmFkZDAtOTU5MS00ZTgwLWFlZTktNWZhMDUxMzJlZWNl&hl=en_US
    Basically I ST22 gives me the following:
    Runtime Errors         RPERF_ILLEGAL_STATEMENT
    Date and Time          17.07.2011 05:29:54
    |Short text                                                                                |
    |    Statement "CALL FUNCTION .. DESTINATION/STARTING NEW TASK/IN BACKGROUND TASK"                 |
    |What happened?                                                                                |
    |    Error in the ABAP Application Program                                                         |
    |                                                                                |
    |    The current ABAP program "Z_ZZB1_CLOSE_PERIOD_TEST2" had to be terminated                     |
    |     because it has                                                                               |
    |    come across a statement that unfortunately cannot be executed.                                |
    And it explains it here (but is not helpful / relevant at all) as I ran the program from SE38.
    |Error analysis                                                                                |
    |    There is probably an error in the program                                                     |
    |    "Z_ZZB1_CLOSE_PERIOD_TEST2".                                                                  |
    |    The program was probably called in a conversion exit                                          |
    |    or in a field exit. These are implemented by                                                  |
    |    function modules called CONVERSION_EXIT_xxxxx_INPUT/OUTPUT or                                 |
    |    USER_EXIT_xxxxx_INPUT.                                                                        |
    |    Conversion exits are triggered during screen field transports or                              |
    |    WRITE statements, field exits during field transports from the                                |
    |    screen to the ABAP/4 program.                                                                 |
    |    In this connection, the following ABAP/4 statements are not allowed:                          |
    |                                                                                |
    I hope you try to download the slinkee files and you will notice the call function I performed was no different than the other call function RFC calls that really are working.

  • What should be the approach to perform these tasks?

    I am working on an AIR Desktop application (With Flex) which reads data from some XML Feeds, this data is feed for a Discussion Forum.
    1. I need to store the records from XML Feed into local Database.
    2. Need to check periodically (every 15 minutes) for updates in XML Feed.
    3. Compare XML with Database, and:
         1. Add new forum Threads (Items) to database,
         2. Mark closed on the threads (Items) removed from XML.
         3. Update database if Threads has been updated/modified.
    I hope my requirement is clear, now my question is: What should be the approch to perform these tasks?
    Best Regards,
    Alok Jain

    Echo
    Any Help Please...

  • Question on parallel processing using the STARTING NEW TASK keyword

    I have the following code in a program on my development system:
    call function 'FUNCTION_NAME'
        starting new task ld_taskname
        performing collect_output on end of task
          exporting
            pd_param1       = ld_param1
          tables
            pt_packet       = lt_packet.
    You'll notice in the code above I left out the following part of the function call:
    DESTINATION IN GROUP group
    In my one-server development system the topmost code executes fine, but I'm getting a 'REMOTE FUNCTION CALL ERROR' when I execute this in a multi-server Q&A system. 
    My question: Is the missing 'DESTINATION' keyword required in order for this technique to work in a multi-server environment or is it optional keyword?  I made the assumption that since it worked in my development environment that without the 'DESTINATION' addition the system simply used the current logged on system to start the new processes.
    Any input appreciated.
    Thanks,
    Lee

    Hi Lee,
    Just take F1 help on CALL FUNCTION key word and go to the variant
    CALL FUNCTION func STARTING NEW TASK task
                  [DESTINATION {dest|{IN GROUP {group|DEFAULT}}}]
                  parameter_list
                  [{PERFORMING subr}|{CALLING meth} ON END OF TASK].
    This gives you very clear information about this Key word.
    No one would give you better information better than this, i hope
    Cheers
    Ram

Maybe you are looking for

  • Quicktime squishes to 4:3 after Motion parameters changed

    I videoed something using two DV camcorders simultaneously and both were set to 16:9. I captured the two lots of footage having specified DV-PAL Anamorphic in Easy Setup. I synchronized the footage on V1 and V2 and, using "Image+Wirefire", I manipula

  • OIM11g auto approval

    Hi, We are following the below link for Auto-Approval for self registration http://identityandaccessmanager.blogspot.com/2011/03/suppress-approval-self-registration.html here what it says: 1. Export "SelfCreateUserDataset.xml". 2. Remove Approver-Onl

  • Assassin's Creed on MacBook Pro 13 inch

    I just bought new MacBook Pro 13 inch and i want to play Assassin's Creed II on it. In appstore i read, that this game is not compatible with my computer, but many peoples say that is playble. Do you know anyting about it, because I don't want pay fo

  • Receiving 'Unknown Error (-609)' when trying to download album artwork.

    Hey all. The subject line says it all. When importing tracks from CD or other sources into iTunes, I get Unknown Error (-609) every time. My connection works, and I've only had this problem since updating to the latest version. The last time I had th

  • I need help with re-storing my G4

    It was running fine, i just had memory issues. I bought an external hard drive so I can save my larger files. It's been running a bit slow and my applications have been quiting unexpectadly. Firefox, illustrator, photoshop all quites. So I decided to