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

Similar Messages

  • How to create a navigation bar with custom made buttons?

    I'm used to work with a similar program as Muse. In there we can create a single button and link them together into a navigation bar. I have tried all sorts of tutorials but none of them is discussing this possibility.
    To summorize. The idea is to create a button in photoshop and to use this as a theme to build a navigation bar. Possible or not and how? Thanks for assistance. Rgds Rufin

    Hi Brad,
    Thanks for your reply.
    No, not really. I used to work with XARA up till now. And being an Adobe Cloud user I think it a bit silly using two different systems. In XARA I can create a custom button and turn them into a navbar. For your information I include a few links to sites I created with Xara and I would like to know if I can create the same type of navbars with Abobe Muse. I already found out that all the other functions are available and some work a lot better in Muse, but I’m stuck on the navbar issue. I know I can create a button in Adobe PS and use it in Muse. But I didn’t manage to figure out how to create a navbar in Muse on basis of a button created in PS.
    www.restaurant-cedric.be or www.discoamigo.com or www.radioparadijs.be
    Grtz,
    Rufin
    LOGO-RUFIN'S-REISBUREAU-outlook
    Koningslaan 36 – b31
    8300 Knokke – Heist
    Tel: 050621052
    Fax: 050621072
    e-mail:  <mailto:[email protected]> [email protected]
    <http://www.rufins.be/> http://www.rufins.be
    <http://www.travelcoop.be/> travelcoop_logo_2013[1]  <http://ferventreisagent.be/rufins-reisbureau> klein logo
    Van: Brad Lawryk
    Verzonden: zondag 12 oktober 2014 19:40
    Aan: RUFIN DUWEL
    Onderwerp:  How to create a navigation bar with custom made buttons?
    How to create a navigation bar with custom made buttons?
    created by Brad Lawryk <https://forums.adobe.com/people/Brad+Lawryk>  in Help with using Adobe Muse CC - View the full discussion <https://forums.adobe.com/message/6817739#6817739>

  • How to create a ActiveX Object with custom classes

    Hi
    I am trying to create a Active X object for some of the work I have done in Java to be used with VB, but I cannot get the Active X object to generate and it always come up with the following error:
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: uk/co/agena/minerva/model/Model
    at java.lang.Class.getMethods0(Native Method)
    at java.lang.Class.getDeclaredMethods(Unknown Source)
    at java.beans.Introspector$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)
    at java.beans.Introspector.getTargetEventInfo(Unknown Source)
    at java.beans.Introspector.getBeanInfo(Unknown Source)
    at java.beans.Introspector.getBeanInfo(Unknown Source)
    at sun.beanbox.JarInfo.<init>(Unknown Source)
    at sun.beanbox.JarLoader.createJarInfo(Unknown Source)
    at sun.beanbox.JarLoader.loadJar(Unknown Source)
    at sun.beans.ole.Packager.loadBean(Unknown Source)
    at sun.beans.ole.Packager.generate(Unknown Source)
    at sun.beans.ole.Packager.actionPerformed(Unknown Source)
    at java.awt.Button.processActionEvent(Unknown Source)
    at java.awt.Button.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForComponent(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForComponent(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    This appears to be beacuse the class uk/co/agena/minerva/model/Model is a custom class which is based on the software I am using. Does anyone know how I can get around this issue. I have tried incluijng those class files for the custom classes within the jar file, but I continue to get the same issue?
    Any help would be gratefully received.
    Thanks
    Angie

    This error is no longer coming up, it is now saying that it has an unsupported class version error. I believe this may be because the class file and library files have been complied under different versions, is there a method to check this?

  • How to create a workflow composite with the ability to upload a document in

    Hi,
    Is there any way to attach/upload a document while creating or modifying a user.
    I have a requirement where user will create a document(.xls/.csv/.doc) with his details and he needs to upload that document while updating the profile. If he is creating the profile then this document has to be forwarded to his manager. By validating the document manger will approve the request.
    Any help on this is greatly appreciated.
    Regards,
    mahantesh

    Use a JFrame and paint on the content pane. Or a Frame with a Canvas (who the heck still uses AWT?).
    They probably don't do anything because painting a button is not enough. It actually needs to be a button. Or Menu.

  • How to create attribute & set types with customer namespace COMM_ATTRSET?

    Hi CRM Gurus,
    I want to create some attributes and set types on CRM system with
    `/FITGL/` namespace but system is not allowed to create objects
    according. After debugging derives that SAP standart coding given below
    on LCOM_ATTRIBUTE_NEWF19 include.
    IF ( lv_systemname <> gc_sap_system ) AND
           ( iv_object_name(1) <> 'Y' AND iv_object_name(1) <> 'Z' ).
    Should we make an enhancement on this include? Is there any side
    efffects of this enhancement creating attribute & set types on CRM
    system during the packaging in terms of related with other attribute & set types objects?
    Kind Regards,
    Fahrettin

    Hi CRM Gurus,
    I want to create some attributes and set types on CRM system with
    `/FITGL/` namespace but system is not allowed to create objects
    according. After debugging derives that SAP standart coding given below
    on LCOM_ATTRIBUTE_NEWF19 include.
    IF ( lv_systemname <> gc_sap_system ) AND
           ( iv_object_name(1) <> 'Y' AND iv_object_name(1) <> 'Z' ).
    Should we make an enhancement on this include? Is there any side
    efffects of this enhancement creating attribute & set types on CRM
    system during the packaging in terms of related with other attribute & set types objects?
    Kind Regards,
    Fahrettin

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

  • How to create an unsolved cube with awm???

    hi all,
    I readed the "Oracle Olap developer's guide to the Oalp api" and I found there's 2 type of Cube: Solved and Unsolved Cubes. And this document says: "... if all the data for a cube is specified by the DBA, then the cube is considered to be Solved. If some or all of the aggregate data must be calculated by Oracle OLap, then the cube is unsolved ..."
    I tried with awm 10.2.0.3.0A to create an unsolvedCube but I can't. All cubes I created are solvedCube. To know if a cube is solved or unsolved, I wrotte an program in Java to read informations of package mtm.
    Some one can tell me how to create an unsolved cube with AWM ou other soft please!

    SH is not a relational OLAP data model which is quite different from the GLOBAL schema which is based on an Analytic Workspace.
    If you change the aggregation method you will need to re-compute the whole cube which can be a very big job! You might be able to force the unsolved status be de-selecting all the levels on the Rules tab in AWM. However, I think by default analytic workspace OLAP models always provide a fully solved cube to the outside world. This is the nature of the multi-dimensional model.
    Relationally, as keys are located in separate columns a cube can be unsolved in that the key column only contains values for a single level from the corresponding dimension tables. If more than keys for different levels within the same dimension appear within the fact key column then the cube is deemed as being solved.
    Therefore, I am not sure you are going to get the information you require from the API. To changes the aggregation method you will have to switch off all pre-compute options and also disable the session cache to prevent previously calculated data being returned when you change the aggregation method.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • How to create an explain plan with rowsource statistics for a complex query that include multiple table joins ?

    1. How to create an explain plan with rowsource statistics for a complex query that include multiple table joins ?
    When multiple tables are involved , and the actual number of rows returned is more than what the explain plan tells. How can I find out what change is needed  in the stat plan  ?
    2. Does rowsource statistics gives some kind of  understanding of Extended stats ?

    You can get Row Source Statistics only *after* the SQL has been executed.  An Explain Plan midway cannot give you row source statistics.
    To get row source statistics either set STATISTICS_LEVEL='ALL'  in the session that executes theSQL OR use the Hint "gather_plan_statistics"  in the SQL being executed.
    Then use dbms_xplan.display_cursor
    Hemant K Chitale

  • New GL: How to create Profit C. Report with account and statistics combined

    Dear Experts,
    we are in need to build a report in the new Profit Center accounting (ECC6.0), which is combining the data from new GL table (FAGLFLEXT) and from the statistical key figure table FAGLSKF in one report in order to be able to report on sales per squaremetre for example. Preferabbly, we would like to use report painter/report writer for this, but any other solution how to create this without too much custom programming is highly appreciated.
    Thank you very much,
    Timo

    Dear Experts,
    unfortunately, the statistical key figure is in a different table. For this reason it is not enough, to create a new key figure based on the table FAGLFLEXT, because the basic key figure is not there. It is in a different table called FAGLSKF. I tried to merge these two structures by defining new a new evaluation structure based on on flexible analyses in the Logistics-Sales_and_Distribution-Sales_Information_System (transaction mcs7), but the problem is, that I get 16 basic key figures instead of one for the periods. How can this be avoided?
    Thanks Timo

  • How to create a pdf file with CS5

    Hello, I'm new to PhotoShop CS5 and haven't figured out yet (despite two hours of trying) how to create a pdf file with pictures and texts.  Can someone please help me with this ?  The "help" button in CS5 doesn't seem to cover this question.  Nor do the FAQs.
    Thank you very much.

    Save As... Photoshop PDF.

  • How to create  a test plan with specific transactions (or program)

    Hello,
    I'm a new user in Sol Man !
    How to create  a test plan with specific transactions (or program).
    In my Business Blueprint (SOLAR01) I've created in 'transaction tab' the name of my specific transactions and linked it.
    In my test plan (STWB_2) those specific doesn't appear to be selected !
    Thanks in advance.
    Georges HUYNEN

    Hi 
    In solar01 you have defined but you have to assign the test case in solar02 for this test case in the test cases tab.
    When you do so expand the business sceanario node in test plan generation of STWB_2 transaction and now that will appear.
    Also visit my weblog
    /people/community.user/blog/2006/12/07/organize-and-perform-testing-using-solution-manager
    please reward points.

  • How to create a web template with company logo

    how to create a web template with company logo . can any one help me with the steps. or any notes. thnaks in advance .
    2. i have 25000 articles and client want to have a selection feild to see top article ex:50,10,20, 100, 1000 etc . same for bottom articles . plz let me know how to do it . thanks for replay . i am new bw so plz .
    thanks to you all

    Hi
    1) Please read
    http://help.sap.com/saphelp_nw04/helpdata/en/4a/c8353c51aab32be10000000a114084/frameset.htm
    2) Create a condition in the Query Designer: Use a formula variable
    See http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm
    Heike

  • How to create a transport request with query and only with its structure.

    HI guru,
                how to create a transport request with query and only with its structure.transport request should not  include any other query items like ( variables, conditions...etc)
    thanks in advance.
    venkata

    Hi,
    Goto RSA1 and then Transport Connection -> In SAP Transports select Object Types-> Query Elements -> Then select Query->Give Technical name of the query and then select for transfer. In the right side you can choose the components which you wanted to transport.
    Regards,
    anil

  • How to create a csv file with NCS attributes?

    Hi
    i installed Cisco Prime NCS and trying to perform bulk update of device credentials with csv file.
    How to create a csv file with all required attributes?
    This is part of NCS online help talking about this topic:
    Bulk Update Devices—To update the device credentials in a bulk, select Bulk Update Devices from the Select a command drop-down list. The Bulk Update Devices page appears.You can choose a CSV file.
    Note        The CSV file contains a list of devices to be updated, one device per line. Each line is a comma separated list of device attributes. The first line describes the attributes included. The IP address attribute is mandatory.
    Bellow is test csv file i created but does not work:
    10.64.160.31,v2c,2,10,snmpcomm,ssh,zeus,password,password,enablepwd,enablepwd,60
    10.64.160.31,v2c,2,10,snmpcomm,ssh,zeus,password,password,enablepwd,enablepwd,60
    The error i am getting while importing this file:
    Missing mandatory field [ip_address] on header line:10.64.160.31,v2c,2,10,snmpcomm,ssh,zeus,password,password,enablepwd,enablepwd,60
    Assistance appreciated.

    It looks like the IP address field is incorrectly set.,
    It should be as follows
    {Device IP},{Device Subnet Mask}, etc etc
    so a practical example of the aboove could be (i dont know if this is completely correct after the IP address / Subnet Mask)
    10.64.160.31,255.255.255.0,v2c,2,10,snmpcomm,ssh,zeus,password,password,enablepwd,enablepwd,60
    below is a link to the documentation
    http://www.cisco.com/en/US/docs/wireless/ncs/1.0/configuration/guide/ctrlcfg.html#wp1840245
    HTH
    Darren

  • How to create a procedure function with a return value of ref cursor?

    Can anybody provide a sample about how to create a procedure function with a return value of REF CURSOR?
    I heard if I can create a function to return a ref cursor, I can use VB to read its recordset.
    Thanks a lot.

    http://osi.oracle.com/~tkyte/ResultSets/index.html

Maybe you are looking for

  • I want to upgrade the 500gb HDD to an SSD on an S230u with windows 8 but want clone the drive

    I want to upgrade the 500gb HDD to an SSD on an Thinkpad Twist S230u with windows 8 but don't want to lose the data and programs installed on the drive and have to start over. I tried to clone it but no software could do it. I tried acronis and EasyT

  • Problem with automatic sending of IDOC immediately

    Hi guys, We are having probme with IDOC that is not being sent immediately... it is configured to send immediately, however it is sitting in Status 30... Is there anything wrong with it? Is there any workflow that was not activated? Thanks a lot! Rgd

  • OSB 10.3.1 : Calling externall MTOM webservice through HTTPS

    Hi, We have OSB process that calls MTOM webservice via Business Service. It's works fine over HTTP connection. We secure the connection one-way ssl client, we imported public certificate to trusted keystore in wls. The business service calls the webs

  • Dynamically providing the continution data in PDF

    Hi, I am generating a PDF with huge amount of data fetched from DB, once the data goes out of that particular page (previous), i need to provide the "continued..." option to the next page. How this can be done using the PDF library in Java? Is Adobe

  • 2 Part ? 1st gen touch&3rd gen touch

    i recently shipped my 1st gen touch out for repair(new logic board,ouch)anyways it has not been used for about 6mnths should i install the latest update and will it work properly? i konw this depends on who you ask but any info will be helpful.2.can