HELP NEEDED: Use a new record for a customized table as a workflow trigger

Hi SAP Workflow Gurus,
Good day!
One of our requirements is to have the creation of a new record in a custom database table trigger a workflow. I read and followed the steps as indicated in this link
http://www.****************/Tutorials/Workflow/Table/events.htm
As a summary, here is what I did:
1. Created a subroutine for the custom table ZPA2003 for the create event
2. Defined this event as a trigger for the custom workflow WS90000019
3. Maintained and activated the event linkage via SWETYPV
Basically I tried following the instructions indicated on the link
Note that the entries for the custom table are created via a function module.
Now during testing of the workflow, the system was able to complete the notification message. However, when I triggered the event via creation of the entry in the custom db table nothing happened
1. Is there a way to debug/find out whether the link between the subroutine in the table and event itself are connected?
2. I also tried running the event trace to check the activities executed but found nothing.
Can you guys help me check on what I may have missed out?
Regards,

Hi All,
Basically these are the requirements for the work schedule substitution:
1. Employee enters the request via ESS (custom portal transaction)
2. Upon saving of the entry (request) in a custom  table, this should trigger the workflow at the backend
3. The Manager should then receive a work item in his Universal Worklist at the MSS side of the portal
4. Upon clicking on the work item, a new screen will pop up showing the work schedule substitution details as well as an interface which will allow him to enter his/her usage decision
5. Depending on the decision, the workflow must execute the necessary notifications as well as changes in the custom and PA2003 tables
Now, we have accomplished step 1 and I am currently in the process for step 2. Now I have some queries:
1. For the Manager to view and approve the substitution details, I used two methods for each process (view and approve) since our ABAPer mentioned that this cannot be done in 1 function module. Is there a way to simplify this step or is it really valid that they need to be executed in 2 different methods?
2. As per our ABAPer, function Modules only import and export variables; they do not have the facility of say having tags on the details being displayed. Hence, if the details are 10001 (Employee Number), 10/20/2011 (Start Date), 10/25/2011 (End Date) the output would be 10001, 10/20/2011, 10/25/2011. Is there a way within the function module (or dynpro interface) to show it like this: Employee Number: 10001
                           Start Date: 10/20/2011
                           End Date: 10/25/2011
3.  Speaking of dynpro applications, do I need to still develop one to allow the Manager to view and approve/reject the request via the MSS portal upon accessing the work item via the UWL? How would the work item go about calling the dynpro application? or is this even possible?
It would have been easier if the facility would not pass through workflows since it will be just direct web dynpro/ABAP calls. Having to include it as a work item in the UWL puts a certain twist to it
Your inputs are well-appreciated.
Regards,

Similar Messages

  • Help needed to get unique record from an internal table

    Hi Everybody,
    I have to get unique record from an internal table. i know we can use read statement with key condition .
    But the problem is i have to use some relational operators like GE or LE.
    eg
    read table itab into wa with key width GE itab-widthfrom
                                                       width LE itab-widthto
                                                       machno eq itab-machno.
    Its giving me error when I use the operators GE , LE.( I think since it can't find a unique record with those relational
    operators in the with key statement)
    Is there any other way to get unique record from internal table without using the loop?
    Thanks,
    Sunny

    Using the read statement you will need some kind of loop. For example.
    DO.
    READ TABLE......
      WITH KEY ......
                        READ = SPACE
    IF SY-SUBRC EQ 0
      TABLE-READ = 'X'.
      MODIFY TABLE
      ADD 1 TO W_FOUND.
    ELSE
      EXIT.
    ENDIF
    ENDDO.
    IF W_FOUND EQ 1.
    ...record is unique.
    ENDIF.

  • Need help for record deletion from custom table

    Hi friends
    I have to write a custom program which will be generic to delete any table record with date field.
    This program needs to be generic (should be able to delete records from any custom table) in nature with selection screen parameters as:
    Table Name and Number of Days prior to which records are deleted, both mandatory.
    Program Flow:
    1.     From number of days calculate date before which records are deleted, ( current date u2013 no. of days = past date).
    2.     Custom table have date field, delete records prior to that date.
    3.     Program may be scheduled for background job, put default values for both fields. No. of days should not be less than 60.
    4.     Classical Report output with number of records deleted.
    My query is how will I know the name of the Date field so that I can write a DELETE query.
    If I use 'DDIF_FIELDINFO_GET' it gives me all field names but how to filter out?
    with regards
    samikhya

    Hi
    I have added  field on the selection screen as p_fieldname and got the F4 help for it , so that the user will get the field name run time as per the table name.
    Now I am facing problem while writing the DELETE query.
    I wrote like
    DELETE (fp_tab)
    where (fp_fieldname) LE date
    It is not working. I also tried with taking a string to concatenate fp_fieldname, LE and date to l_string
    when I write like this:
    DELETE (fp_tab)
    where (l_string) , sy-subrc is getting 4 and no records are getting deleted.
    I do not understand where the dynamic Delete is failing??
    with reagards
    Samikhya

  • Hi - just using the new iMovie for the first time - apparently there should be a sidebar containing tools like "Content Library". Not on mine - even in Window view, Content Library features like text etc are all greyed out - obviously it's me - help?

    Hi - just using the new iMovie for the first time - apparently there should be a sidebar containing tools like "Content Library". Not on mine - even in Window view, Content Library features like text etc are all greyed out - obviously it's me - anyone help please?

    Sorry - I should have added that I have imported a Quicktime movie, originally created as an iPhoto slideshow.
    I want to create rolling credits at the movie end and apparently you can only do this using iMovie - can you help please?

  • Help needed using adobe exportpdf

    The first time I used adobe export pdf it worked well. However the next time and every other time I try to convert a pdf doc to word docx I get the error message at the end of the uploading session. "pdf doc failed to export to m,icrosoft word.  There was an unexpected problem.
    Anyone overcome this problem?

    Hi Stacy
                   Thanks for that info.  I was aware of the 100MB limit but 
    your response made me think again and go back to the problem and this is 
    what I found. The first  pdf document I uploaded into Adobe export pdf was  43
    MB and it went through fine. when I looked at the conversion to Word  docx I
    found it had been transformed into 83MB.
    So the conversion (which was a children's book with lots of images in it) 
    resulted in an increase of MBs by a factor of 1.7.  
    The second pdf document I uploaded was 64MB and this failed. If I apply the
    1.7 factor then the Word docx I wanted was going to be 109MB and therefore
    over  the 100MB limit.
    I didn't know that converting pdf to word would increase the MB like that. 
    Why, I don't know so thanks for your help I've learnt something new.
    Cheers
                Garth
    In a message dated 07/10/2013 04:42:36 GMT Daylight Time, 
    [email protected] writes:
    Re:  Help needed using adobe exportpdf
    created by StacySison (http://forums.adobe.com/people/StacySison)  in 
    Adobe ExportPDF - View the full  discussion
    (http://forums.adobe.com/message/5740689#5740689)

  • Help needed choosing a new router

    Hi there,
    Our company is in need of a new router for internet traffic. Because I'm having trouble selecting a model, I would like to ask for your help on this one. Our situation is as follows:
     - Primary internet connection is a 60/10 Mbps cable connection.
     - Backup internet connection is an ADSL connection (not normally in use)
     - Currently our old DrayTek Vigor 2910 is incapable of processing more than 25 Mbps.
     - We have approximately 35 users working in our office.
     - Traffic primarily consists of web browsing, e-mail and VOIP phone calls.
    When the need arises, we would like to have the option of adding an additional cable connections for more bandwidth.
    Additionally, we would like to replace our OpenVPN server with Cisco VPN on this new router, which should handle about 5 users during daytime and 10 outside of office hours.
    I have narrowed it down to a 2900-series router because of the flexibility provided by the EHWIC slots. I have found the following models:
    Model
    WAN performance
    Realistic performance
    Cisco 2901
    25 Mbps
    167 Mbps
    Cisco 2911
    35 Mbps
    181 Mbps
    Cisco 2921
    50 Mbps
    246 Mbps
    Cisco 2951
    75 Mbps
    297 Mbps
    These performance numbers confuse me as to which model to choose.

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    See if attachment helps.

  • Ctx.SaveChanges() creates new records for related tables

    Ok, this is my first stab at EF Code first, so forgive me if this sounds stupid.
    I have a simple database and want to add a record in the main trans table. It has 2 foreign keys to 2 reference tables. I wire up the data entry screen in WPF (MVVM) and populate the entity. This entity has the correct references to existing records in the
    reference tables. 
    However when I call save changes it adds the trans record, but also ADDS new records to the reference tables (producing duplicates). I do not want to add records to the reference tables, but rather use the existing records.
    I'm sure it's a simple thing, but I am stuck.  Any help would be appreciated...
    Thanks,

    Thank you for the response. I probably didn't phrase it clearly...
    I have a simple Warehouse attendance app that will record when people are absent and the reason. I have 2 fixed reference tables. One is a list of employees, the other is a list of reasons (s - Sick, V - Vacation, etc...)
    User enters a date, then selects a employee from a drop down and a reason from a drop down.
    01/08/2015      Joe Smith     S - Sick
    Both the employee object and reason object (in my record class) point to valid existing records from their reference tables.(i.e employee Joe smith has an Id of 57) 
    When I call ctx.SaveChanges();
    it adds the record to the attendance file, but also adds a record to the employee and the reason table. I now have 2
    Joe Smiths in the employee table as well as 2 S - Sick Reason codes.  Joe Smith was added again and now the employee object points to Joe Smith with an Id of 58.
    Here is the record class:
    public class Record
        public int Id { get; set; }      
        public virtual Employee Employee { get; set; }
        public virtual Reason Reason { get; set; }
        public DateTime Date { get; set; }
        public string Notes { get; set; }
        public Record()
            Date = DateTime.Now;
        public string DayOfWeek
            get { return Date.DayOfWeek.ToString(); }

  • I have added a new field in IT0006 ,Now when try to create a new record for

    Hi Experts,
    I have added a new field in IT0006 ,Now when try to create a new record for a employee.
    1,If I give the SUBTY in the PA30 screen getting an error "Don't Specify a subty error"
    if and remove the subty and press CREATE button popup's comes and list the subty values.......It was allowing me to enter the subty in the PA30 screen prior to my new field addition in IT0006... is't a problem with the new field addition?
    2, After I choose the subty value from the pop-up I am able to see the next screen....BUT GETTING AN INFORMATION MESSAGE THAT "Assignment to feature P0006 did not take place"?
    3,, In the next screen after I have passed all mandatory fields while attempting SAVE I am getting an error called " Time constraint table in T777D is incorrect" what could be the cause?

    How are u adding fields to table using append in se11 or pm01.
    if you are adding fields using se11 delete it and add it0005 in transaction pm01 and generate object.
    add fields to structure CI_XX_R0005 and generate screen and maintain entry and screen in maintance view add entry and activate program.

  • Do I need to buy new programs for osx lion?

    Do I need to buy new programs for osx lion?

    First you need to make sure you have a supported machine, and all the current updates (Core 2 Duo, i3/5/7 and 10.6.8.)
    If you are using Microsoft Office 2004/8, then you will need to buy Office 2011. If you are using older versions of Adobe Photoshop before CS3 that are PPC only, then you will need to buy a newer Adobe CS.
    If you are running iWork 08, it will work, but there will be no support for full screen unless you have 09 version. If you use Apple software like Final Cut or Logic Studio, you will also need the latest versions to use full screen support.
    Basically, if you have any software installed that is more than 2 years old, you need to check if it is Intel, PPC or Universal. Because anthing that is listed as PPC will not work at all. And most Apple apps older than 2 years do not have any support for the new Full Screen or Versions features.
    If you want to see if you have any PPC apps that are not supported at all, simply click the Apple icon at the top, click about this Mac, then click more info. System Profiler will open, on the left side click on "Applications" and you will see a list of every installed app. The far right column will tell you KIND, Intel, Universal or PPC. Anything in the list that says PPC will not work after installing Lion.

  • I want to use my new netbook for my ipod charger and storage

    How do I use my new netbook for my ipod charger and storage?

    I gave full info for how to do this setup in this thread with screen shots..
    https://discussions.apple.com/thread/4817218?tstart=30
    Any of it you don't follow just ask.
    The TC is really a complex thing to use, when you don't do it as Apple designed it.. and in fact on your iMac an external drive will be cheaper, faster and more reliable than a TC. But I guess you already have it so may as well use it.

  • Do I need to create new group for standby redo log files?

    I have 10 group of redo log files with 2 members for each group for my primary database , Do I need to create new group for standby redo log files for the standby database
    Group#     Members
    ==============
    1              2
    2              2
    3             2
    4             2
    5             2
    6             2
    7             2
    8             2
    9             2
    10           2
    If So, The following statment is correct? or nto
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 1 ('D:\Databases\epprod\StandbyRedoLog\REDO01.LOG',D:\Databases\epprod\StandbyRedoLog\REDO01_1.LOG');
    please correct me if am doin mistake
    becuase when I issue the statment I getting error message sayin the group is already created.

    Thanks John
    I just find the answer
    Yes, it's recomeded to add new group , for instnace If I have 10 group from 1 to 10 then the standby shoudl be from 11 to 20
    Thanks I found the answer.

  • HT1338 Have a macbook pro 2009 currently at version 10.5.8 need to install new version for i phone 5 but will not let me until I install MAC OS X Version 10.6 cant find this anywhere! Any ideas thanks

    Have a macbook pro 2009 currently at version 10.5.8 need to install new version for i phone 5 but will not let me until I install MAC OS X Version 10.6 cant find this anywhere! Any ideas thanks

    Click here.
    (75139)

  • Laptop died so now I have to use my new computer for my iPhone.  Will all my data be lost if I use new computer.

    My laptop died so now I will have to use my new computer for my iPhone 4.  Will all my data be lost?

    https://discussions.apple.com/message/10007431#10007431

  • I have two iPads. With two functioning iPads. Is it possible (on the same ID) to sync two of them differently with the same account. So I want to use the new iPad for all my current functions. The old iPad for just my music collection?

    I have two iPads. With two functioning iPads. Is it possible (on the same ID) to sync two of them differently with the same account. So I want to use the new iPad for all my current functions. The old iPad for just my music collection and remove all the other stuff?

    Very easily. I have an iPod touch and iPad on the same account with totally different content.
    If you use iTunes, connect each iPad to your computer and open iTunes and deselect any automatic updating/syncing. If you don't sync with iTunes but have them set up independently, under the settings, App Store, turn off automatic downloads for apps, etc.
    I'm old fashioned, I set up and sync my iPad and iPod to my computer and iTunes. Each device has a different name  and I manage content manually and only allow sharing on what I want shared.

  • After upgrading to NX-OS 5.04, out snmp traps monitoring system is not generating ticket / incident for the snmp traps and my question is whether we need to apply new MIBS for that?

    after upgrading to NX-OS 5.04, out snmp traps monitoring system is not generating ticket / incident for the snmp traps and my question is whether we need to apply new MIBS for that?

    Looking at the error message "The Network Adapter could not establish the connection" , It appears hostname and port may be incorrect. Review the targets.xml under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\emd and
    emoms.properties under E:\oracle\product\10.2.0\db_1\SAP_solman_SDB\config folder to make sure host ( sap_solman) and port (1527) are correct.
    As far as setting the environment variables goes, you can go to control panel -> system -> advanced -> environment variables and set the ORACLE_HOME and ORACLE_SID
    -Ramesh

Maybe you are looking for