How to invoke a standard task in customized program?

Hi experts,
I need to invoke a standard task in my program, does any1 know any FMs for invoking a task?
Thx in advance, points will be rewarded.
Vincent

Hi:
Probably your question is uncleared.
Anyway please find the link by which you can get some help as
http://help.sap.com/saphelp_erp2005/helpdata/en/78/21770651ce11d189570000e829fbbd/content.htm
Regards
Shashi

Similar Messages

  • How to trigger a standard workflow task in customizing program?

    Hi experts,
    Does any1 have any ideas about how to trigger a standard workflow task in customizing program? Is there any FMs can be used to do this?
    Thx in advance. Points will be rewarded.
    Vincent

    will followiign Fms help -
    'SWE_EVENT_CREATE'
    SWR_START_WORKFLOW
    SWU_START_WORKFLOW

  • How can we use the standard LDB in custom program.

    Dear all,
    can you please tell me the way , how can we use the standard LDB in custom program.
    Thanks & Regards,
    Jyothi.

    Hi
    You can use the Function module LDB_PROCESS to use the Standard LDB in your Z custome program for further details about using the Standard LDB and accessing the LDB in to the program search SDN
    http://help.sap.com/saphelp_nw04/helpdata/en/64/237f8cd43711d1950b0000e8353423/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/97/b3edb8163111d2953c0000e8353423/frameset.htm

  • Help on how to add an Standard Task to a position

    Hi all!
    I would like to know if someone can explain me how to assign a an standard task to a user/position via TCODE PFTC.
    Thanks in advance for your help!
    Andrea

    Rose,
    Don't add anything in Expression (workflow step) and add your positions or jobs or dierctly user or Org unit to the task all the people under that org unit or position or job or users which are assign to that task will recieve that mail.
    Now after this if you add a rule in Expression (workflow) then if you get somebody from that rule who is not assigned to the task he won't recieve the mail.
    Responsible agents are generally assigned at workflow step level but they can also be assigned at task level.
    Responsible agents should also be possible agents....hope you know this.

  • How to create a workflow dealing with customizing program(Add-on program)

    Dear ALL,
    I am new to workflow and I was assigned to create a workflow related to an customizing program(Dynpro screen).
    I know we can refer to some std. template for workflow developing.
    However, I don't know how to create a brand new workflow to deal with the add-on program and table.
    My major difficulty is how to create a new object:
    --How to create the new event to track the operation of add-on program, for example, push 'submit' button.
    --How to create method to update the add-on table.
    I do hope someone could give me some guidance.
    Thank,
    Gary

    This is a Function Module that triggers an event ob Business Object tht you will create by making a subtype of Business Object. Use Transaction Code SWO1 to do so.
    FUNCTION zwf_process_trip.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_EMP_NUMBER) TYPE  PERNR_D
    *"     VALUE(I_EMP_TRIP) TYPE  REINR
      INCLUDE <cntn01> .
      DATA:i_emp_details TYPE STANDARD TABLE OF p0001,  "Employee Details
           wa_request    TYPE p0001,                    "Workarea for Employee details
           v_country_grp TYPE molga,                    "Country SubGrouping
           v_object_key  TYPE sweinstcou-objkey.        "Key for the buisness object ZWOBUSTRIP
      CONSTANTS: c_bo_trip     TYPE swo_objtyp VALUE 'ZWOBUSTRIP',
                 c_event_trip  TYPE swo_event  VALUE 'TripCreate',
                 c_infy_type_1 TYPE infty      VALUE '0001'.
    Event Container declaration
      swc_container i_event_cont.
      swc_create_container i_event_cont.
    Reading the INFO TYPE 0001 to obtain the
    Employee details
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = i_emp_number
          infty           = c_infy_type_1
          begda           = sy-datum
          endda           = sy-datum
        TABLES
          infty_tab       = i_emp_details
        EXCEPTIONS
          infty_not_found = 1
          OTHERS          = 2.
    SY-SUBRC check is not required as the error
    handelling will be done by WorkFlow rule
    resolution.
      CLEAR wa_request.
      READ TABLE i_emp_details INTO wa_request INDEX 1.
      IF sy-subrc = 0.
      Retrieving the Country SubGrouping for the employee
        SELECT SINGLE molga
          FROM t001p
          INTO v_country_grp
         WHERE werks = wa_request-werks
           AND btrtl = wa_request-persk.
      ENDIF.
    Sending the relevant data to event container
      swc_set_element i_event_cont 'EmpId'     i_emp_number.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'PersonnelArea'    wa_request-werks.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'CountryGrouping' v_country_grp.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'EmpSubGrp'       wa_request-persk.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'EmpTripId'       i_emp_trip.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
    Raising the event to trigger the workflow
      v_object_key = i_emp_number.
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = c_bo_trip
          objkey            = v_object_key
          event             = c_event_trip
        TABLES
          event_container   = i_event_cont
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      COMMIT WORK.
    ENDFUNCTION.
    SWEL Transaction Code is used to track event linkage.
    SWUS is used to test Workflow manually with single test.
    <b>Please reward points if useful</b>
    Thanks
    Arghadip

  • Facing a problem with standard text in custom program

    Hi,
    As per my requirement i need to create a standard text (transaction code s010 ) in custom program using below code. But when click save button then it needs to be come out of the screen without click back button.
    CALL FUNCTION 'CREATE_TEXT'
        EXPORTING
          FID         = G_THEAD-TDID
          FLANGUAGE   = G_THEAD-TDSPRAS
          FNAME       = G_THEAD-TDNAME
          FOBJECT     = G_THEAD-TDOBJECT
          SAVE_DIRECT = 'X'
          FFORMAT     = '*'
        TABLES
          FLINES      = I_TLINE
        EXCEPTIONS
          NO_INIT     = 1
          NO_SAVE     = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ELSE.
        CALL FUNCTION 'EDIT_TEXT'
          EXPORTING
            HEADER        = G_THEAD
            SAVE          = 'X'
          TABLES
            LINES         = I_TLINE
          EXCEPTIONS
            ID            = 1
            LANGUAGE      = 2
            LINESIZE      = 3
            NAME          = 4
            OBJECT        = 5
            TEXTFORMAT    = 6
            COMMUNICATION = 7
            OTHERS        = 8.
        IF SY-SUBRC <> 0.
        ENDIF.
      ENDIF.
    Can you please help me how to do this
    Regards
    nag

    But when click save button then it needs to be come out of the screen without click back button.
    can you explain me, what do you mean by that.
    ~satya

  • Data from list of standard alv to customized program

    Hi all,
    The recquirement is like this.
    I have used the Submit option from my customized program to call a standard program it , and that standard program executed perfectly and it generates the list in ALV format . Now my recquirement is to call those populated list to my own program . How to do this ....
    Can any one help me in this ...it is urgent ...
    with regards
    vijay

    You need to get the spool no.
    & get the spool data into internal table.
    Refer the code of following blog:
    /people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job

  • Copying standard prog to custome program with includes that includes hd inc

    Hi gurus,
    i got one requirement,
    I have to copy standard program to custome program with includes ,that includes con tain few more includes. so how can i copy all the includes into the custome progam.
    please tel me.

    Hi Vijayam,
    In SE38, give the name of the standard program, in menubar goto program -> copy, which will take you to a pop up, check the checkbox for 'INCLUDES' to copy all the standard includes.  But this will not copy the custom includes(starting with Z). To copy the custom include, you need to create new include in your copy program.To create a new include, click on icon 'Display Object List' which will display the objects list for your program, now right click on your program name in this list and select CREATE-> INCLUDE. Give the name of include and now copy the code from standard program include to your include.
    I hope your problem is solved now.
    Regards,
    Pranjali

  • How to invoke another Java file in Java program?

    Hello all,
    Now I am building a commnity of agents that can talk in Java, I have another Java-Based dialogue system to handle the dialogue between the agents. But I don'y know how to invoke the Java dialogue system file in the agent class.
    Is there any methods can call another .java file in a Java program?
    Help!!!!!please

    Yep, vaguest of the vaguey vague vague.
    Anyhoo,
    I'm guessing you want to call a method from a different class?
    Assuming you have the "Runner" class and then "Agent1", "Agent2", etc.
    Agent1 whatever = new Agent1();

  • How to call BOR object- method in custom program

    hi all,
    I have the following details:
    BOR object : INSTLN
    Method: createdirect
    I need to call the above method in my custom program.
    I need to call it entirely. Means if it contains fn modules I dont want to call those fn modules seperately.

    Hi Sammy,
    Phil Soady from SAP Australia provided me with this little gem a few years back. The actual documentation for this can be found somewhere in the workflow programming area, but I just looked and couldn't find it for you. Anyway, this is a sample program I built to show how to do this. In this example I call the Display method of the Sales Document BO.
    INCLUDE <cntn02>.
    INCLUDE <cntn03>.
    FUNCTION zcallbomethod.
    *"*"Local interface:
    * Data declaration
      DATA: vbak_ref TYPE swc_object.
    * Declare and initialise container
      swc_container container.
      swc_create_container container.
    * Create object reference to sales document
      swc_create_object vbak_ref 'VBAK' '0000000009'. "Sales Document Number
    * Call Display
      swc_call_method vbak_ref 'Display' container.
    * Error handling
      IF sy-subrc NE 0.
      ENDIF.
    ENDFUNCTION.
    Cheers
    Graham Robbo

  • How to invoke a funtion on a custom tag value?

    Hello,
    I have a custom tag used in my code.
    It is used as follows:
    <b:testtag name="Title"/>
    This outputs a String value.
    This is used in my HTML as follows:
    <b:testtag name="Title"/>
    This part of the code works fine. However i now want to invoke some funtion on the String outputted before actually outputing it. To be more specific, i need to convert the string to uppercase before outputting it.
    So my question is, Is there anyway to directly invoke the String.toUpperCase method on the tag output?
    If not, another way of achieving this is to store the value returned by the custom tag into a java String variable in a scriplet code, and invoke the String.toUpperCase method.
    Any idea how to go about with this? Particularly, i would like to know if it is possible to store the value outputted by the tag into a java variable in a scriplet code?
    If not is there any other way of converting the tag output value to uppercase?
    Please help!
    Thanks in advance

    Solution one: Change your tag so it outputs in uppercase
    Solution two: use a tag from a String taglib and put that tag around your tag
    example taglib:
    http://jakarta.apache.org/taglibs/doc/string-doc/intro.html
    example bit of code
    <a href='some test url here'><str:upperCase><b:testtag name="Title"/></str:upperCase></a>

  • How to enhance the standard search with custom field?

    Hi all,
    I would like to know the general optimal procedure to enhance the standard searches like Opportunity search or Lead search.
    I've gone through some of the threads here. Some suggest, to add the new field using AET and copy the IMPL class of the search and then code the custom logic. Some say, append the new field to the structure of the search object and then implement the BADI.
    I'm actually a bit confused to understand the correct procedure.
    Can someone please help me with a generic procedure to enhance the standard search with a custom field?
    Thanks in advance.

    Hi Maren,
    Once I have got the same development. I have followed the below steps, please check with this. Let me know for further inputs.
      Add new field using Append structure of type ‘XXX’ in search
      Create BADI implementation for Enhancement spot ‘ES_CRM_RF_Q1O_SEARCH’ and include filter ‘BTQOPP’
      Put your logic in BADI implementation – SEARCH method
      Add it in WebUI configuration
      Remove the operator if required
    Regards,
    Swadini Sujanaranjan

  • How to invoke updateDisplayList method in the custom layout?

    I've a group of buttons that get placed in a SkinnableDataContainer with the help of a custom layout class as follows:
    <s:SkinnableDataContainer id="buttonsContainer"
        dataProvider="{appModel.myButtons}"
        width="{DIAPLAY_WIDTH}" height="{BUTTON_HEIGHT+4}"
        skinClass="view.skins.ContainerSkin"
        itemRenderer="view.renderer.MyButtonRenderer"
        click="startPointAreaClickHandler(event)"
        mouseMove="areaMouseMoveHandler(event)"
        mouseUp="areaMouseUpHandler(event)"
        rollOut="areaMouseOutHandler(event)"
        >
        <s:layout>
            <layout:ButtonsLayout />
        </s:layout>
    </s:SkinnableDataContainer>
    myButtons is an ArrayCollection of VOs and VO has x and y coordinates as fields. Values of x and y determine the location of the button. When I add an object to myButtons, the application behaves as expected (adds a button in buttonsContainer at specified x and y coordinate). But when I just change values of x and y of an existing button, the buttons don't get repositioned. I have tried calling invalidateDisplayList on buttonsContainer but that doesn't trigger updateDisplayList method in the custom layout ButtonsLayout.
    How do I trigger updateDisplayList method in the custom layout so that the button positions get updated whenever an event changes values of x and y of a button?

    Hi Balus,
    This is helpful but one problem i faced with this is, when i overided the custom message in the property file,
    javax.faces.component.UIInput.REQUIRED =Value is required
    but for every UIInput component the same message is coming, but if i am having more than one component on the page forexample: UserName , Email, Password etc...
    i need to display messages like
    Value is reuired for UserName
    Value is reuired for Password
    Value is reuired for Email
    How this is possible , can u please help me.
    Thank You,
    Subrahmanyam Baratam.

  • Calling Standard screen from custom program

    Hi all,
             My requirement is
    1)Either to fix a link(say from a button) on my custom screen for material creation,to call mm01 basic data screen for image upload.
    2) Or to upload material image directly to the corresponding table(using any fm or something).
    ,please show me light on the above issue.
    Thanks in advance
    Sri

    Hi Jovito,
    I also think the same that it's not possible. Now my issue is how to get my requirement.
    FYI..
    To open Classification screen directly we have a function module CLFM_OBJECT_CLASSIFICATION. But if I want to open IA06
    Inspection characterstics screen we don't have any FM or API to do the same.
    So how will I get my requirement done. That why I use the BDC call transaction to open IA06 Insp. characterstics screen but here I am facing this Back issue.
    Please advice if there is any suggestion.

  • How to trigger standard task manually in Process controlled workflow?

    Hi All,
    I would like to trigger a task mannually in BRF, process controlled workflow. My requirement is to send an approval notification to the approvers at the current approval level, at any instance by the requestor of the shopping cart. In that case, will it be possible to trigger the standard task 40007953 (SRM Shopping Cart Approval (1)) with the workitem of Shopping cart under consideration?
    I have tried searching for the same in SDN and other forums but most of the information was regarding application controlled workflows. None of those function modules seems to be working in PCW.
    Any pointers on how to trigger a standard task (using FM or code) in BRF(process controlled workflow) environment is also highly appreciated.
    Thanks,
    S.H@ri

    Hi,
    Use this FM [SAP_WAPI_START_WORKFLOW|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/bb9100f8-0c01-0010-ac8e-e017351f3fc1].
    Regards,
    Surjith

Maybe you are looking for

  • Separators with text content for menus

    I want to have a menu/choicebox with several separators to split the menu into sections, but I would like the separators to be more than just lines, specifically I want some text there -- essentially the separator acts as a header for the menu items

  • Officejet 4500 wireless printing problem

    We have an HP Pavilion g7 laptop that has always worked great with our 4500 wireless printer.  Now the computer says the printer is offline.  The wireless button is blue.  The computer hard wired to the printer shows that it is online.  What else am

  • Converting between tables in an Oracle Lite Database

    We have a standalone application that uses Oracle Lite. A requirement we have from a new customer is to use their Oracle Lite database structure or to come up with a mechanism that sends the data between the 2 different structures. Both the structure

  • Can I use FormsCentral forms to connect to an MS Access Database

    Hi Does anyone know if it is possible to link a form from FormsCentral account to an MS Access database? Thanks. Anna

  • Need help with 'Virtual Controll'

    I have a Document Class Called Main, Im not used to using classes and document classes ect. So im making a racing game for Ipad. So i need virtual controls so the user can operate the automobile. So within this class i have a function that controlls