Order of event

I have written a code on the click event of a button.When I click on the button,my code executes first and then the further operation of SAP executes.I want to execute the SAP operation first and then my code.I have used the following code-
If pVal.FormType = "181" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK And pVal.ItemUID = "1" And pVal.Action_Success = True And pVal.FormMode = "3" And pVal.InnerEvent = False Then
               SaveAPCreditMemo()
End If

Hi,
Follow what satish has suggested... and check the following code with the required change..
If pVal.FormType = "181" And pVal.BeforeAction = False And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK And pVal.ItemUID = "1" And pVal.Action_Success = True And pVal.FormMode = "3" And pVal.InnerEvent = False Then
               SaveAPCreditMemo()
End If
U just need to include pVal.BeforeAction = False to execute ur code after SAP events.
Regards,
Vasu Natari.

Similar Messages

  • Order of  events in abap

    Hi,
         this is kiran,can any one send the order for events in abap.
    regards,
    kiran

    Hi Kiran,
    Below is the list of events:
    Initialization : triggered when the report is loaded in memory.
    At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.
    At selection-screen / <field> : before leaving the selection screen.
    start-of-selection : the first event for displaying the report.
    end-of-selection : after the start-of-selection is completed.
    classiscal report events.
    top-of-page : every time a new page is started in the list.
    end-of-page : every time the list data reaches the footer region of the page.
    interactive report events.
    top of page during line selection : top of page event for secondary list.
    at line-selection : evey time user dbl-clicks(F2) on the list data.
    at pF<key> : function key from F5 to F12 to perform interactive action on the list.
    Hope this serves your need.
    Regards:
    Sapna

  • How open a service order using event handling

    HOw to open a service order using event handling

    Hi,
    Can you explain your requirement elaborately.
    I understand from it as, you want to open Service order creation page, based on some event(may be submit button).
    For that technically you can use navigation->goto_page('Provide the URL').
    or you can use inbound-plug and out-bound plug concept for naviagation.
    Regards,
    Devender V

  • IPhoto- ordering of events

    in iPhoto 9, how can I reverse the order that events are displayed when I open the app?  I want to view the most recent events first (from top to bottom,) not the oldest.  Other apps seem to have an option to reverse the order for displaying events, emails, etc.

    View menu ==> sort events ('11 for sure - I think it was the same in '09 - if not there is then neat feature called "HELP" when you can enter a question and get help)
    LN

  • Ordering of events when printing/pdf-ing

    Spent a few hours searching on google and in other forums- I know this issue has come up before, but I couldn't find a single answer or solution anywhere.
    Seems that when I go to print the calander (or turn it into a PDF) it decides to completely randomy re-order my events.   There seems to be no rhyme or reason to it.  In iCal they are in a perfectly logical, organized order.  When I go to print, they appear randomly mixed around.  Attached some photos- first one is what it looks like in iCal, second is what the pdf looks like.  Notice that not only does it re-order the events from the way they appear in iCal, but the way it is re-ordering the events appears to be changing at random from day to day- compare the blue events on the 17th and 24th in image 2- these events are repeating weekly events and were not entered into the calander manually- there is absolutely nothing different about the events on the 17th and the 24th, yet they appear in a different order on each of those days.  The orange events are not repeating events and were each entered manually on their given days, but they too are being re-ordered randomly from day to day.  I've noticed that this isn't just an issue for all-day events- the exact same problem occurs when multiple events occur at the same time (8am, for example).
    Has this just been accepted as an unfixable issue?   Super frustrated, spent hours putting a year-long call schedule together for my residency program only to find it's a confusing mess when I try to print it/turn it into a pdf.  If there is no solution, does anyone have suggestions for an easy to use app that I CAN use to generate a PDF calander that looks similar?
    Thanks for any help,
    Crying in California

    Hi Al,
    I don't think anyone here has figured out how to "control" how iCal prints, though it is a frequent question. I think we are all waiting for iCal 3 or a third party alternative (that taps into iCal data).

  • Import order for events/rolls

    How does iPhoto determine the order it puts imported files in?
    When I import several files of photos into iPhoto, they go into Events, but they can be all over the place. I'd like the events in the same Date order as I have them listed in Finder.
    If they were in the same date order in Events as they are in Finder, then I could make albums by topic. Not everyone in the family remembers them by date like I do, but could look them up by topic, vacation etc.
    I'm trying to simplify my workflow and this would help.
    Allie

    iPhoto uses the date the photos were taken.
    In the Finder, if you sort by date, the Finder uses the date the files were last modified. The last modified date is the date the photos were imported from your camera unless you've edited them in which case the date will change to the date you edited them on.
    If you're sorting by Date in the Finder, the order will change as you edit the images because the last modified date will change.
    In iPhoto, sorting by date, the order won't change when images are edited because the images are sorted by the date the photos were taken which doesn't change when you edit them.

  • How to determine the execution order of event structure

    Hi everyone,
    I have an event structure were it contains four events. All the four events has separate buttons to execute. Here, three events will generate numeric output, remaining one event (Finder) should find the order of those three events. For example, Three events namely A, B and C. I execute the events in the order of B, C and A. The finder event should find the order of previously executed events(B, C and A). 
    Thanks in advance.
    Solved!
    Go to Solution.

    Hello Vij@y,
    I could not look in to your VI because I dont have LabVIEW 2013 (I have 2010) but i tried to understand the situation you are explaining.
    Please find attached image of front panel I made for your reference.
    Here I generated two events sequently, no 3 first followed by no 1 and the same is displayed in sequence array. now you can use the build array function to actually add each event to this array as explained by many people in this forum.
    regarding the timeout event, either you can display the sequencer array in that event or you can display it in finder event and then you can reset the sequencer in finder event (I used reset button click event to reset sequencer back to zero value)
    regarding getting zero when you press finder/reset button before triggring any other event:- Is it not correct to have empty array when you have not trigger any event?
    I hope I put it well and may help you to find solution. 
    With Regards
    Miraz
    Kudos is better option to thank somebody on this forum
    Attachments:
    Sequence.png ‏70 KB

  • 8.1 did not sort the sort order for events in photos app

    With 7000 photos in more than 300 events You must have them in alphabetic order as before in 7.1 The pictures are synced from iMac iPhoto. How to do a search. The events are not found by names

    When I drag albums into the correct order in Photos for Mac, they show up in reverse order on the iOS devices. Thus there seems to be a bug in either iOS 8.3, OS 10.10.3 or iCloud Photo Library.
    The browser version of iCloud Photo Library (icloud.com) is currently updating. I am waiting to see which way my albums are sorted there.
    There is no promise at all, or documented anywhere, how sorting of library items will sync across the devices. This has been haphazard when syncing iPhoto Libraries - synced faces not sorted, synced events  not sorted, etc. So it is at least a step in the right direction, in Photos that the albums are sorted at all.

  • Case order of EVENT structure

    LV 8.2.1 - Regarding the order of cases in an EVENT structure:
    1... Is there any performance (speed) advantage to having the most-commonly used events near the top of the list?  Does it have to search through a list to find which case to execute, or does it happen some other way?  If it searches thru a list, then I want to have the high-frequency events near the top of the list, and the rarer ones nearer the bottom.
    2... If #1 is "no advantage" then what is the point of the REARRANGE CASES dialog?  Why would I want to rearrange them?  Maybe just to collect them into groups of similar function - is that all?
    3... When you SORT CASES in the REARRANGE CASES dialog, what order does it put them in?  The help window says "alphabetical" , but that's plainly not true, because my list includes "Stop" and "Clear", and it orders "Stop" before "Clear" after a sort.  It doesn't put the user events together.  A simple test shows that SORT puts them back in the order you added the cases to the structure.  Is there a point to that?
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

    is it possible you have some invisible chars (like a leading space) or that one of the words starts with an uppercase letter and the other with a lowercase one?
    Nope.  Try it yourself with the Wed, Thur, Friday trick.
    The EVENT structure cares about what order you created the cases in.
    The CASE structure cares about the order of whatever drives the selector.
    Alphabetic order seems to have nothing to do with it. 
    From your reference thread:
    However, this does tell you that if you want to squeeze every ounce of performance out of your event-handling code, make sure the most frequently run event-handling diagram is the first one in the list.
    This from a LabVIEW R&D engineer.
    Hmmm. 
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Change clip order in Event???

    I didn't realize until today that clips imported into an Event were placed in the order they were filmed, rather than the order they were imported. For training purposes, I have some clips that were filmed out of sequence. Is there any way to make them display differently than by the time stamp?
    I also use Final Cut Pro - I thought I might import the clips into FCP, rename the .dv clips 01, 02, etc., in the order I need, then import those directly rather than importing from the camera. But, I have no idea if that will make the order I want "stick" either.
    Any other ideas??

    OK, solved my own question. All you have to do is right-click a clip, and choose "Adjust Clip Date and Time" - it always shows clips in "chronological" order, but this lets you manipulate the date and time to make the clips display in any order you want.
    Very cool

  • ICloud Calendar - 3 calendars, how order on event display?

    (Windows Vista, no Outlook; iphone 4, ipad)
    I'm using 3 separate calendars on my iCloud calendar. Viewing my calendar via iCloud.com, the 3 calendars are displayed on the left in the order I would like to see them on the actual calendar display. I know how to order them on the left, but that order does not reflect for the actual events shown. What I'm trying to do is have the most important (my primary calendar events) appear first on my calendar) and others at the bottom. For instance, I might want to use that one to show a period of time, that someone is out of town and do not want that at the top of my to-do events.
    I've tried dragging, both on the monthly calendar and on specific days and that doesn't work. Anybody know how to do this?

    but I've restarted my iPhone just the other day (for a different reason) and it didn't affect the iCloud calendar... don't know why it did today,
    Because "resetting" like I suggested is not the same as "restarting".
    You wouldn't know how to get iCal to update on a iMac that doesn't have Lion installed, would you? 
    Unfortunately, you need a Mac running Lion v10.7.2
    You're welcome 

  • Photo order within Events broken on iOS devices synchronized with iPhoto

    I have a Mac running OS X 10.8.2 with iPhoto 9.4.2 (710.42) and an iPhone and an iPad, both running iOS 6.0.1.
    In iPhoto, I import photos from a memory card that I use in various digital cameras and organize them by events. I view photos inside events ordered by date in ascending order. This is also the order that I want to see my synchronized photos on my iOS devices (and which I did see in the past). I sync my photos from iPhoto via iTunes by the option "Select albums, Events and Faces automatically".
    My most recently imported events cause some problems on my synchronized iOS devices. Now the photo order in the iOS "Photos" app is broken in the Events view. All photos that are taken in upright format appear BEHIND all photos taken in landscape format within an event. However, I want them to be sorted by date irrespective of the picture rotation, just as I see them in iPhoto on my Mac.
    Events that I had imported earlier (before ~ mid October) are still ordered as expected, just as I see them in iPhoto.
    According to this, the sorting of iPhoto should be preserved: http://support.apple.com/kb/HT4221
    I assume that photos of newly imported events are displayed on iOS devices in the order of modification date instead of creation date (EXIF) since iPhoto automatically rotates pictures that are taken in upright format by 90° and saves them as 'modified' files besides the 'original' files. I also assume that photos of my older events are displayed in correct order on my iPad since they had already been synchronized at a time when everything worked as expected. I also tried to re-synchronized these older events on my iPhone (to see what happens) by unchecking "Synchronize Photos" -> Apply -> checking "Synchronize Photos" -> Apply and on my iPhone, those older photos are also out of order now.
    Also note that my photos are ordered correctly in the "Albums -> Photo Library" view on iPhone and on the "Photos" tab on iPad. These are the same pictures as under Events. So the sorting is wrong in the Events view of newly imported events only.
    I know that there are some other discussions about the order of photos on iOS devices. I want this one to be specifically about problems with a synchronized iPhoto library. Anybody else experiencing this issue?

    Same issue. Ever since upgrading to iPhoto on my retina MBP to 9.4.2. Problem seen with BOTH my iPhone 5 on iOS 6.0.1 AND iPhone 4S on 5.1.1, so not an iOS issue. For me, it impacts both albums and events. In fact, sometimes you can't even see the event under iTunes->device->photo tab, until you exit iPhoto &amp; iTunes and restart both with phone plugged in. There is a workaround for the album's mis-order: by manually sorting photos through dragging a photo to a new location within the album and then placing it back. However, this doesn't work for mis-ordered photos under events.  Right now, I just have to live with it....  I have even tried removing all photos, deleting iPod photo cache, and starting anew. Even 1 event with 30 photos have the same problem.....
    Really annoying as I like to see my event photos sorted by date.
    Somehow, such syncing problems always seem to occur EVERYTIME there's an iPhoto upgrade. Are apple's departments so siloed? Do they not work with one another to test a software before releasing it?
    Apple, please investigate and fix the issue ASAP!

  • Table creation - order of events

    I am trying to get some help on the order I should be carrying out table creation tasks.
    Say I create a simple table:
    create table title (
    title_id number(2) not null,
    title varchar2(10) not null,
    effective_from date not null,
    effective_to date not null,
    constraint pk_title primary key (title_id)
    I believe I should populate the data, then create my index:
    create unique index title_title_id_idx on title (title_id asc)
    But I have read that Oracle will automatically create an index for my primary key if I do not do so myself.
    At what point does Oracle create the index on my behalf and how do I stop it?
    Should I only apply the primary key constraint after the data has been loaded as well?
    Even then, if I add the primary key constraint will Oracle not immediately create an index for me when I am about to create a specific one matching my naming conventions?

    yeah but just handle it the way you would handle any other constraint violation - with the EXCEPTIONS INTO clause...
    SQL> select index_name, uniqueness from user_indexes
      2  where table_name = 'APC'
      3  /
    no rows selected
    SQL> insert into apc values (1)
      2  /
    1 row created.
    SQL> insert into apc values (2)
      2  /
    1 row created.
    SQL> alter table apc add constraint apc_pk primary key (col1)
      2  using index ( create unique index my_new_index on apc (col1))
      3  /
    Table altered.
    SQL> insert into apc values (2)
      2  /
    insert into apc values (2)
    ERROR at line 1:
    ORA-00001: unique constraint (APC.APC_PK) violated
    SQL> alter table apc drop constraint apc_pk
      2  /
    Table altered.
    SQL> insert into apc values (2)
      2  /
    1 row created.
    SQL> alter table apc add constraint apc_pk primary key (col1)
      2  using index ( create unique index my_new_index on apc (col1))
      3  /
    alter table apc add constraint apc_pk primary key (col1)
    ERROR at line 1:
    ORA-02437: cannot validate (APC.APC_PK) - primary key violated
    SQL> @%ORACLE_HOME%/rdbms/admin/utlexcpt.sql
    Table created.
    SQL> alter table apc add constraint apc_pk primary key (col1)
      2  using index ( create unique index my_new_index on apc (col1))
      3  exceptions into EXCEPTIONS
      4  /
    alter table apc add constraint apc_pk primary key (col1)
    ERROR at line 1:
    ORA-02437: cannot validate (APC.APC_PK) - primary key violated
    SQL> select * from apc where rowid in ( select row_id from exceptions)
      2  /
          COL1
             2
             2
    SQL> All this is in the documentation. Find out more.
    Cheers, APC

  • Weird order of events added to iCal using Applescript

    This is a script that has worked perfectly in the past and as far as I know has not been modified (my bad if so...) Currently it is adding all the correct events into iCal but taking a real long time to do it and this is probably due to the weird chronology it takes to putting the events in. I will include the script at the bottom of this post and here is a section of the event log that shows the weird chronology... Thanks in advance for the help.
    dan
    count every event of calendar "School Calendar 09-10"
    176
    get summary of item 1 of every event of calendar "School Calendar 09-10"
    "Day 5"
    get summary of item 1 of every event of calendar "School Calendar 09-10"
    "Day 5"
    get start date of item 1 of every event of calendar "School Calendar 09-10"
    date "Monday, April 5, 2010 12:00:00 AM"
    make new event at end of calendar "Classes2" with properties {summary:"Alg I period 2", start date:date "Monday, April 5, 2010 9:30:00 AM", end date:date "Monday, April 5, 2010 10:25:00 AM"}
    event id "879D03C6-24CE-49C8-AB3B-D216FF4CF148" of calendar id "186E5DE2-8E33-492F-9F76-D0EF292B98D8"
    make new event at end of calendar "Classes2" with properties {summary:" Pre Calc B period 3", start date:date "Monday, April 5, 2010 10:30:00 AM", end date:date "Monday, April 5, 2010 11:25:00 AM"}
    event id "1AF62B85-F074-4E93-A03F-89CFD79A59A6" of calendar id "186E5DE2-8E33-492F-9F76-D0EF292B98D8"
    make new event at end of calendar "Classes2" with properties {summary:" IB Math period 4", start date:date "Monday, April 5, 2010 11:30:00 AM", end date:date "Monday, April 5, 2010 12:25:00 PM"}
    event id "CCB9EE0D-870E-43EA-AA39-3DAE2BCB23F8" of calendar id "186E5DE2-8E33-492F-9F76-D0EF292B98D8"
    get summary of item 2 of every event of calendar "School Calendar 09-10"
    "Day 3"
    get summary of item 2 of every event of calendar "School Calendar 09-10"
    "Day 3"
    get start date of item 2 of every event of calendar "School Calendar 09-10"
    date "Monday, April 19, 2010 12:00:00 AM"
    make new event at end of calendar "Classes2" with properties {summary:" Pre Calc F period 1", start date:date "Monday, April 19, 2010 8:30:00 AM", end date:date "Monday, April 19, 2010 9:25:00 AM"}
    event id "F8A5B643-7758-437B-919E-65C0EBF043EA" of calendar id "186E5DE2-8E33-492F-9F76-D0EF292B98D8"
    make new event at end of calendar "Classes2" with properties {summary:"Alg I period 3", start date:date "Monday, April 19, 2010 10:30:00 AM", end date:date "Monday, April 19, 2010 11:25:00 AM"}
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into a HTML editor">
    tell application "iCal"
    ---------This is where you gather / set user data
    display dialog "How many courses do you teach?" default answer ""
    set courses to the text returned of the result as number
    set slotA to ""
    set slotB to ""
    set slotC to ""
    set slotD to ""
    set slotE to ""
    set slotF to ""
    set slotG to ""
    set slotH to ""
    repeat with x from 1 to courses
    set entered to text returned of (display dialog "Please enter the slot (A-H) and the course name, separating them with a comma:" default answer "")
    set astid to AppleScript's text item delimiters
    set AppleScript's text item delimiters to ","
    set {chosenslot, chosencourse} to {(entered's text item 1), (entered's text item 2)}
    if chosenslot is "A" then
    set slotA to chosencourse
    end if
    if chosenslot is "B" then
    set slotB to chosencourse
    end if
    if chosenslot is "C" then
    set slotC to chosencourse
    end if
    if chosenslot is "D" then
    set slotD to chosencourse
    end if
    if chosenslot is "E" then
    set slotE to chosencourse
    end if
    if chosenslot is "F" then
    set slotF to chosencourse
    end if
    if chosenslot is "G" then
    set slotG to chosencourse
    end if
    if chosenslot is "H" then
    set slotH to chosencourse
    end if
    end repeat
    set TargetCalendar to "Classes2"
    --Predefined period times
    set periodTimes to {{startTime:"08:30 AM", endTime:"09:25 AM"}, {startTime:"09:30 AM", endTime:"10:25 AM"}, {startTime:"10:30 AM", endTime:"11:25 AM"}, {startTime:"11:30 AM", endTime:"12:25 PM"}, {startTime:"12:30 PM", endTime:"01:25 PM"}, {startTime:"01:30 PM", endTime:"02:25 PM"}}
    set Day1pattern to {slotA, slotB, slotC, slotD, slotE, slotF}
    set Day2pattern to {slotG, slotH, slotA, slotD, slotE, slotB}
    set Day3pattern to {slotF, slotC, slotG, slotD, slotE, slotH}
    set Day4pattern to {slotB, slotA, slotF, slotD, slotE, slotC}
    set Day5pattern to {slotH, slotG, slotB, slotD, slotE, slotA}
    set Day6pattern to {slotC, slotF, slotH, slotD, slotE, slotG}
    --Predefined period cycles
    set Day1 to {slotA & " period 1", slotB & " period 2", slotC & " period 3", slotD & " period 4", slotE & " period 5", slotF & " Period 6 "}
    set Day2 to {slotG & " period 1", slotH & " period 2", slotA & "  period 3", slotD & " period 4", slotE & " period 5", slotB & "  period 6"}
    set Day3 to {slotF & " period 1", slotC & " period 2", slotG & " period 3", slotD & " period 4", slotE & " period 5", slotH & " period 6"}
    set Day4 to {slotB & " period 1", slotA & " period 2", slotF & " period 3", slotD & " period 4", slotE & " period 5", slotC & " period 6"}
    set Day5 to {slotH & " period 1", slotG & " period 2", slotB & " period 3", slotD & " period 4", slotE & " period 5", slotA & " period 6"}
    set Day6 to {slotC & " period 1", slotF & " period 2", slotH & " period 3", slotD & " period 4", slotE & " period 5", slotG & " period 6"}
    --Makes a "list of lists" so that all the period definitions are in one place
    set periodCycle to {Day1, Day2, Day3, Day4, Day5, Day6}
    set periodcycle2 to {Day1pattern, Day2pattern, Day3pattern, Day4pattern, Day5pattern, Day6pattern}
    set isitacycleday to {"Day 1", "Day 2", "Day 3", "Day 4", "Day 5", "Day 6"}
    --This repeat loop is using the cycle day definitions in the calendar named "School Calendar "A.Y.""
    repeat with theEvent in (events of calendar "School Calendar 09-10")
    if isitacycleday contains (summary of theEvent) then
    --Gets the current day and the cycle day number
    set cycleday to summary of theEvent
    set cycleDate to (start date of theEvent) + 1 * hours
    set cycleNumber to last character of cycleday as integer
    --There are always 6 periods in every day
    repeat with periodNumber from 1 to 6
    --Gets the subject from periodCycle
    set theSummary2 to item periodNumber of item cycleNumber of periodcycle2
    set theSummary to item periodNumber of item cycleNumber of periodCycle
    --Checks to see if there's a subject for this period, if not skips to next one
    if theSummary2 is not "" then
    set theStart to date (startTime of item periodNumber of periodTimes) of cycleDate
    set theEnd to date (endTime of item periodNumber of periodTimes) of cycleDate
    --Makes the event in the calender whose name is defined at the top of the script
    make new event at end of calendar TargetCalendar with properties {summary:theSummary, start date:theStart, end date:theEnd}
    end if
    end repeat
    end if
    end repeat
    end tell </pre>

    Did it run faster in the past?
    The events are happening as your script is generating them - for example, you get the event summary to compare in an if statement, then get it again when you assign it to a variable. The Script Editor's *Event Log* is handy in this case to see when you are creating a lot of extraneous or duplicate events.
    Also, when using application tell statements, you should only target the application's terminology, since it will just pass back what it doesn't know how to do - in other words, try not to put anything in the statement except what you need from the application.
    I don't have your iCal calendar events to play with, but a couple of tweaks to your code should improve the performance:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    ---------This is where you gather / set user data
    display dialog "How many courses do you teach?" default answer ""
    set courses to the text returned of the result as number
    set slotA to ""
    set slotB to ""
    set slotC to ""
    set slotD to ""
    set slotE to ""
    set slotF to ""
    set slotG to ""
    set slotH to ""
    repeat with x from 1 to courses
    set entered to text returned of (display dialog "Please enter the slot (A-H) and the course name, separating them with a comma:" default answer "")
    set astid to AppleScript's text item delimiters
    set AppleScript's text item delimiters to ","
    set {chosenslot, chosencourse} to {(entered's text item 1), (entered's text item 2)}
    if chosenslot is "A" then
    set slotA to chosencourse
    end if
    if chosenslot is "B" then
    set slotB to chosencourse
    end if
    if chosenslot is "C" then
    set slotC to chosencourse
    end if
    if chosenslot is "D" then
    set slotD to chosencourse
    end if
    if chosenslot is "E" then
    set slotE to chosencourse
    end if
    if chosenslot is "F" then
    set slotF to chosencourse
    end if
    if chosenslot is "G" then
    set slotG to chosencourse
    end if
    if chosenslot is "H" then
    set slotH to chosencourse
    end if
    end repeat
    set TargetCalendar to "Classes2"
    --Predefined period times
    set periodTimes to {{startTime:"08:30 AM", endTime:"09:25 AM"}, {startTime:"09:30 AM", endTime:"10:25 AM"}, {startTime:"10:30 AM", endTime:"11:25 AM"}, {startTime:"11:30 AM", endTime:"12:25 PM"}, {startTime:"12:30 PM", endTime:"01:25 PM"}, {startTime:"01:30 PM", endTime:"02:25 PM"}}
    set Day1pattern to {slotA, slotB, slotC, slotD, slotE, slotF}
    set Day2pattern to {slotG, slotH, slotA, slotD, slotE, slotB}
    set Day3pattern to {slotF, slotC, slotG, slotD, slotE, slotH}
    set Day4pattern to {slotB, slotA, slotF, slotD, slotE, slotC}
    set Day5pattern to {slotH, slotG, slotB, slotD, slotE, slotA}
    set Day6pattern to {slotC, slotF, slotH, slotD, slotE, slotG}
    --Predefined period cycles
    set Day1 to {slotA & " period 1", slotB & " period 2", slotC & " period 3", slotD & " period 4", slotE & " period 5", slotF & " Period 6 "}
    set Day2 to {slotG & " period 1", slotH & " period 2", slotA & "  period 3", slotD & " period 4", slotE & " period 5", slotB & "  period 6"}
    set Day3 to {slotF & " period 1", slotC & " period 2", slotG & " period 3", slotD & " period 4", slotE & " period 5", slotH & " period 6"}
    set Day4 to {slotB & " period 1", slotA & " period 2", slotF & " period 3", slotD & " period 4", slotE & " period 5", slotC & " period 6"}
    set Day5 to {slotH & " period 1", slotG & " period 2", slotB & " period 3", slotD & " period 4", slotE & " period 5", slotA & " period 6"}
    set Day6 to {slotC & " period 1", slotF & " period 2", slotH & " period 3", slotD & " period 4", slotE & " period 5", slotG & " period 6"}
    --Makes a "list of lists" so that all the period definitions are in one place
    set periodCycle to {Day1, Day2, Day3, Day4, Day5, Day6}
    set periodcycle2 to {Day1pattern, Day2pattern, Day3pattern, Day4pattern, Day5pattern, Day6pattern}
    set isitacycleday to {"Day 1", "Day 2", "Day 3", "Day 4", "Day 5", "Day 6"}
    --This repeat loop is using the cycle day definitions in the calendar named "School Calendar "A.Y.""
    tell application "iCal" to repeat with theEvent in (get events of calendar "School Calendar 09-10") --> only target iCal for what it knows
    set cycleday to summary of theEvent --> might as well set the info
    if cycleday is in isitacycleday then
    --Gets the current day and the cycle day number
    set cycleDate to (start date of theEvent) + 1 * hours
    set cycleNumber to last character of cycleday as integer
    --There are always 6 periods in every day
    repeat with periodNumber from 1 to 6
    --Checks to see if there's a subject for this period, if not skips to next one
    if (item periodNumber of item cycleNumber of periodcycle2) is not "" then --> skip as much as possible
    --Gets the subject from periodCycle
    set theSummary to item periodNumber of item cycleNumber of periodCycle
    set theStart to date (startTime of item periodNumber of periodTimes) of cycleDate
    set theEnd to date (endTime of item periodNumber of periodTimes) of cycleDate
    --Makes the event in the calender whose name is defined at the top of the script
    make new event at end of calendar TargetCalendar with properties {summary:theSummary, start date:theStart, end date:theEnd}
    end if
    end repeat
    end if
    end repeat
    </pre>

  • Purchase Order Workflow event trigered when i create the Schedule Agrrement using ME31l.

    Hi expert,
         When i create Schedule agreement using me31l it will raise the PO workflow instead of SA  Workflows. ?  where is the configuration mismatch happen ?

    HelloTithira,
    I'm very sorry to admit that I haven't entirely looked at a running system when talking about the CEKKO. You're absolutely right that the document category type is not part of it and you couldn't proceed with maintaining the classification in that way.
    I did mention the BSTYP field, as I was used to have the field available, as I usually add this at the first place when starting a project for PO-releases.
    As far as I remember, there's a MOVE-CORRESPONDING statement at one point, where the CEKKO structure is initialized, from the EKKO structure that is available. So when you name an APPEND-field of the CEKKO structure BSTYP having the same type as the EKKO, you should find that field filled, without(!) implementing the CEKKO user exit yourself.
    It this doesn't help either, please implement the CEKKO user exit to fill your BSTYP field.
    If nothing helps at that point, and you're still stuck, you can enable a "Workflow start condition" for the two events on BUS2012.ReleaseStepCreated and the same for BUS2013, where you check the EKKO-BSTYP of the BOR Business Object types against the corresponding object, i.e.
    _EventObject.PurchasingCategory = 'F'     (For the event on BUS2012)
    Do get the PurchasingCategory, you'll need to subtype and delegate systemwide and create a database field for EKKO table, choosing the field BSTYP. Do this for both the BUS2012  and  the  BUS2012  or a common super-type if you find so.
    With the very best wishes
       Florin

Maybe you are looking for