Need to execute some code once order created

Hi,
I have requirment like once the order in IW31(BO: BUS2007 ) is created i need to execute some custom code. please let me know the steps to do that.
This process should complete without user interaction.
Thanks,
Sudheer. A

Hi Sudheer,
maybe you can have a look at user exit EXIT_SAPLCOIH_009.
This is the exit where you can do some latest checks before saving the document in IW31.
You can also write your own function module (e.g. Z_DO_THIS_AFTER_IW31) with the code to be executed and trigger this later. So that the code is not executed in the user exit, but a bit later after the real IW31 document is saved.
Do that by using  CALL FUNCTION 'Z_DO_THIS_AFTER_IW31' IN UPDATE TASK.
Here is the F1 help text on the 'IN UPDATE TAST' addition.
Please let me know if this solved the problem..
Grtz Marcel.
CALL FUNCTION - IN UPDATE TASK
Syntax
CALL FUNCTION update_function IN UPDATE TASK
                             [EXPORTING p1 = a1 p2 = a2 ...]
                             [TABLES t1 = itab1 t2 = itab2 ...].
Extras:
1. ... EXPORTING p1 = a1 p2 = a2 ...
2. ... TABLES t1 = itab1 t2 = itab2 ...
Effect
This statement registers the update function module specified in update_function. update_function must be a character-type field, which during execution of the statement contains the name of an update function module in uppercase letters.
An update function module is a function module, for which in the Function Builder the property update module is marked. The registration of an update function module is an essential part of the update task.
The function module is not executed immediately, but is scheduled for execution in a special work process (update work process). For this purpose, the name of the function module including the passed actual parameters is stored as a log record in the database table VBLOG. If the statement is executed during the update task, the addition IN UPDATE TASK is ignored.
If the statement
SET UPDATE TASK LOCAL is executed before registration of an update function module in the current SAP LUW, registration takes place in the ABAP memory rather than on the database, and for the current work process.
The actual execution is triggered by the statement COMMIT WORK. The formal parameters of the function module receive the values of the actual parameters from table VBLOG. A function module that is registered several times will also be excuted several times with the respective parameter values.
If a COMMIT WORK statement is not executed after registration of a function module during execution of the current program, the function module is not executed and is deleted from table VBLOG at the end of the program.

Similar Messages

  • How do I execute some code when a line of a table control is selected?

    Hi,
    I would like to execute some code when a line of a table control is selected.  At the moment I have to select one or multiple rows and then press enter, this forces a screen refresh and my code is executed but I would like the code to be executed as soon as any line is selected.
    I've done something like this using ALV grids and object orientated code but is there a way of doing this in a normal non-OO table control?
    Thanks in advance.
    Gill

    Hi,
    U need to declare a char1 field for marking (mark field).  This will reflect with value 'X' in your tcontrol internal table for all the selected rows. 
    Now u need to handle the okcode for enter in your PAI.
    There u need to loop through the table for all marked fields.
    There after u can do what ever u want.
    Venkat.

  • Execute some method once an effect has been played

    Hi everybody, I want to execute a method after the effect i have played is finished. is there any property in AnimationProperty tag to acheive it.
    In the component i have pasted below, getting data from xml file and using repeater populate those data in Hbox then it moves the horizontal scroll position of HBox using animation property. once animation property has been played, it has to execute some method. how can we do it ?
    the next question is
    i want to play animation propery infinite times and i have done it with the help of repeatCount but it takes some delay in between. how can it play infinite imes without any delay in between.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="getXML.send(),slide(event)" >
    <mx:Script>
            <![CDATA[
                import mx.containers.Canvas;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import mx.effects.easing.*;
                import mx.controls.*;
                import mx.collections.*;
                [Bindable] public static var refThumb : Thumbnail;
                [Bindable] public var xmlData : XMLListCollection = new XMLListCollection();
                [Bindable] public var xml :XMLList;
                public function resultHandler(event :ResultEvent) : void
                    xml = event.result.product as XMLList;
                public function faultHandler(event :FaultEvent):void
            public function slide(event :Event):void{
               ap.play();
        ]]>
    </mx:Script >
        <mx:AnimateProperty id="ap" effectEnd="{Web.refWeb.nextSlider()}" repeatCount="0" property="horizontalScrollPosition" fromValue="0" target="{can}" toValue="7200" duration="72000" startDelay="0"/>
        <mx:HTTPService id="getXML" showBusyCursor="true" url="catalog.xml" resultFormat="e4x" result="resultHandler(event)" fault="faultHandler(event)" />
        <mx:HBox paddingTop="20" id="can" width="600" height="200" backgroundColor="white" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundAlpha="0.2"  >
        <mx:Repeater id="rep" dataProvider="{xml}" >
            <mx:VBox id="comp" horizontalAlign="center" horizontalGap="200" width="200" height="200" verticalScrollPolicy="off" horizontalScrollPolicy="off">
                             <mx:Image source="{rep.currentItem.image}" width="150" height="100" maintainAspectRatio="false" />
                             <mx:Text text="{rep.currentItem.name}" fontWeight="bold" />
                             <mx:Text text="{'$ '+ rep.currentItem.price}" fontWeight="bold" />
                             <mx:LinkButton label="Add cart" color="blue" />
             </mx:VBox>
        </mx:Repeater>
        </mx:HBox>
    </mx:VBox>

    you have posted a VBox component code so it will be the part of your parent Application are you injecting data into this component from the main application ? and your
    httpService requires catalog.xml so you need to attach that file so i can run on my side successfully . instead of doing this you can tell the problem you are having so i can guide you on that
    regards,
           ATIF.

  • How can I execute certain code once the button on stake is hit at runtime? (in Flash CS4(AS3))

    Hi
    I am trying to figure out how to execute code once a button_btn is hit on stage at runtime.
    Thank you for help and tips!

    You can also try to create an event listener for the button itself.  (In as2.0 it was onClick or onPress or something to that effect, now I'm not sure what they are syntaxed as but there are event listeners for buttons which "listen" to see if the button has been pressed.  Mouse Events are good because it makes sure that the mouse is actually performing the action.  Don't know about accessibility with Mouse Events though since you can use a Tab key to direct input of buttons so try the Button event listeners.

  • Need to capture Vendor code & Service Order no during Goods Issue

    We have a typical req of tracking Goods issued to contractors to whom Service Orders ( Labour jobs ) is awarded. Even though contract is pure labour type , we intend to track materials issued against work orders.Std transaction of Goods issue to Purchase order can not be done here as materials are already lying in stocks but when issue to Contractor who is working in our premises , we need to track Goods issue against Work Order no in SAP as well as Vendor code , If these things get captured , we will customise the report.
    Umesh Bagul

    Hi,
    You can make Goods issue from MIGO with Movement Type-261.
    Capture the details as follows
    MIGO -> Goods Issue > Other > 261
    Maintain Work Order Number in Material Slip
    And the maintain Vendor code in Partner Details ,you can find this tab under Item detail field.Field name -Vendor Code
    THen there is no need to make seprate Z report.
    You can find all these details through MB51.
    Regards,
    Sandesh Sawant

  • Is it possible to ignore some events, while executing some code?

    The problem is following: imagine the interface, consisting of three buttons - start, stop, save and one graph indicator. When one press start button some sequence of events is fired, and some data is shown on the graph (this sequence can be prolonged in time for a few hours). After completion of sequence one can save data. All is good except one thing: what will happen if start button have been pressed while execution? Start sequence will be fired again and previously acquired data will be lost. So the question is following: is it possible to erase (or ignore) some events from events stack?
    Locking front panel is not good idea, because some other controls (for example stop) might be needed.
    Making start
    button disabled and grayed out is not good idea because user can click on that button (thus generate events) a lot of times before the disabling will occur.
    Creation of data buffer for storing graphs is not good idea as well because it do not solves the problem.
    www.xinstruments.com
    Custom Software for Industrial Automation
    www.hdrconverter.com
    Picture processing made easy

    In newer version of LabVIEW, you can use dynamic event registration. What is your version?
    I would add e.g. a shift registers that keeps track of the state, then you can query it in each event case. Each event case will have a case structure inside wired to the state. States could be (0: new, 1: data has bee acquired, 2: all is saved, etc.). "Start" would only work if state is 0 or 2, "save" would only work if state is 1, etc.
    LabVIEW Champion . Do more with less code and in less time .

  • Need help with some code ... Searching a tree and inserting data

    I'm trying to write code for the addIterative method below.
    My problem is that I also need to search the list or node to see if the word exists.
    The method add(word,line,position,iterative) validates the parameters; and, in order to update the tree and/or any relevant linked-list, calls either the incomplete method addIterative(word,line,position) or the incomplete method addRecursive(word,line,position). Note the following: if the word is not contained currently in the tree, then all of the (word,line,position) triplet needs to be added to the data structure; otherwise, only the (line,position) pair needs to be added to the data structure. The result must be the same regardless of the algorithmic strategy employed.
    any suggestions would be greatly appreciated, new to java, and very lost.
    regards,
    Jimmy
    * Write a description of class Tree091 here.
    * @author (your name)
    * @version (a version number or a date)
    class Tree091 /*(i.e., WordTree)*/
    { private char[] word=null;
    private List091 list=null;
    private Tree091 precursor=null; /*(i.e., leftSubTree)*/
    private Tree091 successor=null; /*(i.e., rightSubTree)*/
    public Tree091(char[] word,
    List091 list,
    Tree091 precursor, /*(i.e., lexicographically < word)*/
    Tree091 successor) /*(i.e., lexicographically > word)*/
    { if (word==null) return;
    if (word.length<1) return;
    if (list==null) return;
    this.word=word;
    this.list=list;
    this.precursor=precursor;
    this.successor=successor;
    public void add(char[] word,
    int line,
    int position,
    boolean iterative)
    { if (word==null) return;
    if (word.length<1) return;
    if (line<0) return;
    if (position<0) return;
    if (iterative)
    this.addIterative(word,line,position);
    else
    this.addRecursive(word,line,position);
    private void addIterative(char[] word,
    int line,
    int position)
    /* something goes here*/
    private void addRecursive(char[] word,
    int line,
    int position)
    /* something goes here*/
    private int compare(char[] array1,
    char[] array2)
    { if (array1==null) return -2;
    if (array2==null) return -2;
    int length1=array1.length;
    if (length1==0) return -2;
    int length2=array2.length;
    if (length2==0) return -2;
    int minLength=length1<length2?length1:length2;
    for (int i=0; i<minLength; i++)
    { if (array1[i]<array2) return -1;
    if (array1[i]>array2[i]) return 1;
    return length1==length2 ? 0 : length1<length2 ? -1 : 1;
    public boolean contained(char[] word)
    { int compare=compare(this.word,word);
    if (compare==1&&this.precursor!=null)
    return this.precursor.contained(word);
    if (compare==0) return true;
    if (compare==-1&&this.successor!=null)
    return this.successor.contained(word);
    return false;
    public int listNodeCount(boolean iterative)
    /* something goes here*/
    return 24;
    public int maximumWordLength(int currentLength)
    /* something goes here*/
    return 25;
    public String toString()
    { String string="";
    if (this.precursor!=null) string+=this.precursor;
    string+="\""+(new String(this.word))+"\""+this.list;
    if (this.successor!=null) string+=this.successor;
    return string;
    public int treeNodeCount()
    /* something goes here*/
    return 26;
    public String wordArray(int length)
    /* something goes here*/
    return "hey hey wordarray";

    hey,
    ok, wow, that was intense, my brain hurts!!!!
    And now I've got to go do a graduate program test, argh!!!
    A problem I keep getting is trying to figure out what my lecturer is doing in the start of the Tree091 class,
    that is, I can see that he is constructing the list and tree but it appears that he is doing it all at the same time, and I'm getting confused with what actually gets inserted into the list, and do we insert the word, line and position, or just the line and position?
    Also, I didnt use a 'while loop', I'm not sure how, but I found a 'for loop' in the text book, what do you think of it? Is it ok for now?
    And I'm getting an error at this line:
    Tree091 ins = new Tree091(char[] word); // getting error '.class' expected here
    any ideas?
    heres what I've got so far:
    private void addIterative(Comparable char[] word,int line, int position){
    // Insert char[] word into the this BST     
         int direction = 0;     
         Tree091 parent = null, curr = root;
         for (;;) {     
              if (curr == null) {
                   Tree091 ins = new Tree091(char[] word); // getting error '.class' expected here
                   // word found so we call insertList method
                   insertList091(line, position, List091 precursor);
                   if (root) == null)
                        root = ins;
                   else if (direction < 0)     
                        parent.left = ins;
                   else // direction > 0
                        parent.right = ins;
                   return;
              direction = elem.compareTo(curr.element);
              if (direction == 0)
                   return;
              parent = curr;
              if (direction < 0)
                   curr = curr.left;
              else // direction > 0
                   curr = curr.right;
    }And heres an attempt at the insertList method
    private void insertList(char[] word, int line, int position, List091 precursor){
    // Insert line and position at a given point in this List091, either after the node
    // precursor, or before the first node if precursor is null
    // Looking at assignment question we may need a double linked list
         List091 ins = new List091 (char[] word, line, position, null);
         if precursor == null) { //insert before first node (if any).
              ins.successor = first;
              first = ins;
         } else {
              ins.successor = precursor.successor;
              precursor.successor = ins;
    }How far off am I Joachim?
    cheers,
    Jimmy
    ps. heres the tree091 class again:
    class Tree091 /*(i.e., WordTree)*/
    { private char[] word=null;
      private List091 list=null;
      private Tree091 precursor=null; /*(i.e., leftSubTree)*/
      private Tree091 successor=null; /*(i.e., rightSubTree)*/
      public Tree091(char[] word,
                     List091 list,
                     Tree091 precursor, /*(i.e., lexicographically < word)*/
                     Tree091 successor) /*(i.e., lexicographically > word)*/
      { if (word==null) return;
        if (word.length<1) return;
        if (list==null) return;
        this.word=word;
        this.list=list;
        this.precursor=precursor;
        this.successor=successor;
      public void add(char[] word,
                      int line,
                      int position,
                      boolean iterative)
      { if (word==null) return;
        if (word.length<1) return;
        if (line<0) return;
        if (position<0) return;
        if (iterative)
          this.addIterative(word,line,position);
        else
          this.addRecursive(word,line,position);
      private void addIterative(char[] word,
                                int line,
                                int position)
        /* students to complete */
      private void addRecursive(char[] word,
                                int line,
                                int position)
         /* students to complete */
      private int compare(char[] array1,
                          char[] array2)
      { if (array1==null) return -2;
        if (array2==null) return -2;
        int length1=array1.length;
        if (length1==0) return -2;
        int length2=array2.length;
        if (length2==0) return -2;
        int minLength=length1<length2?length1:length2;
        for (int i=0; i<minLength; i++)
        { if (array1<array2[i]) return -1;
    if (array1[i]>array2[i]) return 1;
    return length1==length2 ? 0 : length1<length2 ? -1 : 1;
    public boolean contained(char[] word)
    { int compare=compare(this.word,word);
    if (compare==1&&this.precursor!=null)
    return this.precursor.contained(word);
    if (compare==0) return true;
    if (compare==-1&&this.successor!=null)
    return this.successor.contained(word);
    return false;
    public int listNodeCount(boolean iterative)
    /* students to complete */
    public int maximumWordLength(int currentLength)
    /* students to complete */
    public String toString()
    { String string="";
    if (this.precursor!=null) string+=this.precursor;
    string+="\""+(new String(this.word))+"\""+this.list;
    if (this.successor!=null) string+=this.successor;
    return string;
    public int treeNodeCount()
    /* students to complete */
    public String wordArray(int length)
    /* students to complete */
    Edited by: allergy01 on Apr 25, 2009 9:19 PM
    Edited by: allergy01 on Apr 25, 2009 9:20 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can i execute some code in a jsp page on the same page ? plz read.

    I have made a single JSP Page where in i want to delete users, create users, update table data.
    I have all the UI on the first page. Now i want to write my all JDBC coding on just this single page. I don't want to create 3 separate pages. Can it be done ?

    This is my page !!
    I have 3 separate pages insert.jsp, delete.jsp, update.jsp to implement the jdbc coding. I know that i can get it done by calling a single jsp page using URL rewriting. But i want to code for events on this very page only.
    <%@page language="java"%>
    <%@page import="java.sql.*"%>
    <HTML>
         <BODY>
              <form method=post action="insert.jsp">
                   Username:<input type=text name=username><br>
                   Password:<input type=password name=password><br>
                   <input type=submit>               
              </form>
              <hr>
              <form method=post action="delete.jsp">
                   Username:<input type=text name=username><br>
                   <input type=submit>               
              </form>
              <hr>
              <form method=post action="update.jsp">
                   Username:<input type=text name=username><br>
                   Password:<input type=password name=password><br>
                   <input type=submit>               
              </form>          
         </BODY>
    </HTML>

  • Need Help with some code

    Hello, thanks for helping:
    my problem is that I am creating a "before" and "after" situation between strings. (What a string was before.. and now what it is)
    so here's the sample I created. Basically a display issue. If you run it you'll know the problem.
    Thanks again for helping.
       import javax.swing.*;
       import java.awt.*;
       import java.awt.event.*;
        public class JScrollExample extends JFrame
          JPanel mainpanel = new JPanel();
          JTextArea text = new JTextArea();
          JScrollPane scroll = new JScrollPane(text);
          String[] before, after, other;
          int sda, indexMaxLength;
          int[] ja;
          StringBuilder[] sb;
          String[] name;
           public JScrollExample()
             getContentPane().add(mainpanel, BorderLayout.NORTH);
             setTitle("JScrollExample");
             text.setColumns(100);
             text.setRows(30);
             mainpanel.add(scroll);
             before = new String[]
                   "asdf-asdfasdfasdf-asdf", "asdf-asdfasdfasdf-asdffdsaasdf",
                   "asdf-asdffdsaasdffdssasdfasdf-asdf", "AVDSDFDSasdf-asdfasdfasdf-asdf",
                   "asdsdfsdfsdfsdfsdsdfsdf-asddsffasdsdfsdfasdfvfdvdfvfd-asdf"
             after = new String[]
                   "jkloolkj-iriod-3342", "jsdfsdolkj-iriod-3342", "jkloolkj-fdsfiriod-3342",
                   "jkloolkj-idsfsfsfsdfsdfiod-3sdfds342", "ASXkloolkj-iriod-3342MBW"
             other = new String[]
                   "AAAAAAAAAAAAAAAAAAAA", "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
                   "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "AAAAAAAAA", "AAAAAAAAAAAAA"
             indexMaxLength = 0;
             sb = new StringBuilder[before.length];
             ja = new int[before.length];
             name = new String[before.length];
             for(int j = 0; j < before.length; j++)
                if(before[j].length() > before[indexMaxLength].length())
                   indexMaxLength = j;
             sda = before[indexMaxLength].length();
             for(int i = 0; i < before.length; i++)
                ja[i] = ((sda - before.length()) + 25);
    for(int j = 0; j < ja.length; j++)
    sb[j] = new StringBuilder("");
    for(int g = 0; g < ja[j]; g++)
    sb[j].append(" -");
    text.append("I'm trying to make it look nice and neat," +
                   "and have each line have same amount of '-' " + "I tried doing it " +
                   "and this is what I got. Basically what i'm doing is finding " +
                   "the longest string, subtracting each string's \nlength with the " +
                   " longest one, then adding 25, to get an equal value, then using " +
                   "that value to put that many '-' in between before and after. But " +
                   "because every character has a different size, it doesn't work\n " +
                   "unless all the characters are the same\n\n");
    for(int i = 0; i < before.length; i++)
    String y = (after[i]);
    text.append(before[i] + sb[i].toString() + "> " + y + "\n");
    indexMaxLength = 0;
    sb = new StringBuilder[before.length];
    ja = new int[before.length];
    for(int j = 0; j < other.length; j++)
    if(other[j].length() > other[indexMaxLength].length())
    indexMaxLength = j;
    sda = other[indexMaxLength].length();
    for(int i = 0; i < other.length; i++)
    ja[i] = ((sda - other[i].length()) + 25);
    for(int j = 0; j < ja.length; j++)
    sb[j] = new StringBuilder("");
    for(int g = 0; g < ja[j]; g++)
    sb[j].append(" -");
    text.append("\n\nWHAT I WANT IS THIS: \n\n");
    for(int i = 0; i < other.length; i++)
    String y = (after[i]);
    text.append(other[i] + sb[i].toString() + "> " + y + "\n");
    public static void main (String[] args)
    JFrame.setDefaultLookAndFeelDecorated(true);
    JScrollExample frame = new JScrollExample();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);          
    frame.setVisible(true);
    frame.pack();

    what methods do you think I should use?I think you should use the monospaced font.
    I went to the font metrics page, and I understand what it does.Well, then you should realize that you can't be guaranteed that your column will line up if you attempt to use the FontMetrics class. All the FontMetrics class can tell you is the width of a String.
    You can calculate the width of your longest String and then calculate the width of 25 " -" to get the total width before the second colum. Lets assume this width is 500. Now lets also assume that each " -" string is 10 pixels.
    If we have "i" as the only text and its width is 3 pixels, then how do you calculate a multiple of " -" which will total to 500 pixels?
    Similiarly if you have a "W" as the text and its width is 7 pixels you will never be able to add characters that will total to 500 pixesl.
    So if you need "- - - - >" between column 1 and column 2 the easiest solution is to use a monospaced font.
    If on the other hand you only care about column two lining up in the same postion each time, then you may be able to use tabs in a JTextPane as you can easily control the placement of text for each tab. This posting will give you an idea:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=585006

  • How to execute some code in command line, and read its output?

    I'v found here http://www.sap-advisor.com/abap-coding/how-to-execute-operating-system-commands-from-within-sap/ that I can execute commands from the windows command line for example inside SAP.
    But I want to take it one step further and read its output. is it possible?

    Hi RagnaRock,
    one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.
    I hope this helps. Kind regards,
    Alvaro

  • How can I still be able to execute some codes after user press Ctr-C

    When user press Ctr-C to exit my program, I want to do something before the program terminated, how can I do that?
    Thanks for help.

    BOOL CtrlHandler(DWORD fdwCtrlType)
    switch (fdwCtrlType)
    // Handle the CTRL+C signal.
    case CTRL_C_EVENT:
    Beep(1000, 1000);
    return TRUE;
    default:
    return FALSE;
    * Class: alexiworld_yahoo_com_CtrlCHanler
    * Method: init
    * Signature: (V)V
    JNIEXPORT void JNICALL Java_alexiworld_yahoo_com_CtrlCHanler_init
    (JNIEnv *env, jobject this)
         SetConsoleCtrlHandler((PHANDLER_ROUTINE) CtrlHandler, TRUE);
    }

  • Execute custom code when grabbing an instance from inbox

    Hey Guys,
    I work with ALBPM 5.7 and we need to execute some basic custom code (such as updating a custom db) when an instance is grabbed from the inbox. Is there a way to do this?
    I would think there would be a handler or something available, that we can plug in.
    Basically, when an instance is grabbed from the inbox, it does get assigned to the participant. I need to execute some code so the participant name goes to the custom db too. Any suggestions?
    thanks

    Hi,
    Adding a screenflow just like when you add a screenflow for an Interactive activity.
    1) right mouse click the Grab activity
    2) click "Main task"
    3) select "Screenflow" from the implementation type dropdown
    4) click the "New" button.
    5) name the screenflow
    6) click "Next"
    7) decide what variables you want to come into (usually just the BPM object in your process) and what you want to go out of the screenflow (usually just the BPM Object, result and action variables)
    8) click "Next"
    9) click "Finish"
    10) click "Ok"
    11) click "Ok"
    Hope this helps,
    Dan

  • Dynpro application: how to perform some  code when user click window close

    Hello,
    I'm developing dynpro application. This application needs to perform some code when exiting.
    I can do that with MODULE xxxxx AT EXIT-COMMAND. But this code can't be performed when user of application click on button closing window (classic R/3 window, not pop-up).
    Does anybody know how to bind some code to clicking on button closing window?
    Best regards,
    Josef Motl

    As far as the prompt that you get when you close the last window is coming from the counter that SAP maintains regarding the number of open sessions(windows). When this counter reaches 1, I guess they have a check to issue a prompt. There was a discussion in this forum a long time back regarding how we can know that session id like SM04. There was no conclusion reached then. Theoritically, let us know you know this id for the session in which the user opened a particular page, then you can see if that session is deleted and then take the necessary action. There are some TH_* function modules that seem to be promising, but I was not able to conclusively achieve the control over a particular session.
    See if you can look at SM04 and get an idea. Please do let us know if you find the solution.
    Srinivas

  • Code snippet to create SOAPElement

    i need to write a code snippet for creating the below SOAPElement
    <tag:resourceName>ABC</tag:resourceName>
    <tag:encodingFormat>?</tag:encodingFormat>
    <tag:ruleName>?</tag:ruleName>
    <tag:IdType>?</tag:IdType>
    <tag:allocationType>?</tag:allocationType>
    <tag:quantity>?</tag:quantity>
    <tag:filterValue>?</tag:filterValue>
    I am new to Webservices.
    Please help

    This link http://download.oracle.com/javaee/1.4/tutorial/doc/SAAJ3.html is the 4th hit on google for "java tutorial soapelement".

  • Need code for sales order create report using bapi's

    need code for sales order create report using bapi's

    Hi,
    Go through below link
    http://www.saptechies.com/bapi_salesorder_createfromdat2/
    <b>Reward points if it helps,</b>
    Satish

Maybe you are looking for

  • HT1947 This app no longer works on ipad or iPhone after 2.4 upgrade?

    Even apple tech support can't get it working!! lookng at somehelp forums seems to be since IOS6 upgrade Guy was very helpful byt said will have to wait for new update!!

  • Video Issues with HTML5 Output

    Hello there, I have a project with several videos on seperate slides that are located inbetween normal content slides. Works fine with SWF output and HTML5 output viewed on the pc, but... when I test the course on an iPad the video plays quite fine t

  • Sent an email while updating bank details through portal

    Hi Experts, I have an issue with EP portal. when i change the bank details through portal its updating in info type 0009(bank details).But i have to send a mail while updating. Can any one please suggest me how to do this. Thanks & Regards, Sujatha s

  • IMovie - Best Way to Archive & BackUp Projects

    Hi All, I'd like to move some iMovie projects from my MacBook Pro HD to an external FireWire drive (or maybe two). What's the best strategy to do this? I'll need to be able to access and work on the archived files (to produce for example different la

  • [SOLVED] Radeon, black border (doesn't fill entire screen)

    Updated yesterday. Now I have a black border of unused screen space along the edges of my monitor. It's an AMD system using the integrated card (785G (RS880, Radeon HD 4200)) and it's connected to a TV. I've tried DVI to HDMI as well as HDMI to HDMI,