Problem in modal method (decision workitem)

Hi,
I'm with a problem during the execution of a decision workitem. I've set a method to run before it (the modal execution) and, within it, called a transaction (in the case PA30) but it call the transaction two times.
How can I make it execute only one time?
Thanks in advance.
-h

When I searched the forum I found [this thread|Methods of Workitem execute twice;. Maybe it helps you also?
Regards,
Martin

Similar Messages

  • Decision step with method before workitem execution

    I have a decision step, which uses method before workitem execute uses BO Bus2094 - 'Display' method.
    When an agent receives a workitem, try to execute the workitem 'Getting an information message 'Error when starting submethod'.
    When i see the information of the error -
    "At least one submethod could not be processed.
    See the technical Workflow log to determine the error cause."
    When i check technical log of workitem, 2 steps are in error mode.
    1.  Dialog work item executed - Error when starting submethod
    2. EXECUTE_METHODS  - System error in asynchronous method start
    This is happening in Quality system, not in DEV system.
    Any inputs to resolve this.

    Hi,
    @Sivagami: I wonder, how a container element e.g. BUS2094 that was passed to a copy of the DECISION task is automatically executed just before the decision dialog? Good stuff, if it works like this, I'll try this at a later time.
    @Indira: Depending on the Release and such things I have expirienced several smaller bugs regarding the decision steps, especially when extending the data flow (from/to workitem), using the in-place-decision Workitem exit. So maybe you're already doing everything right, but just the inbox doesn't works as designed.
    To work around this problem, you could enter the object methods as a secondary method, which then will display the Sales document in a separate window,
    or you follow the proposal of Sivagami. If the Sales document doesn't seem to appear, you could enforce the display, by globally substitute the business object DECISION to one of your own, re-define the object's method Process that read the business object fromt the work item container and executes it's display method, which is basically the same result you'd like to have.
    Best wishes,
       Florin

  • Travel Expense Form attachment in decision workitem

    Hi all,
    I have converted travel expense report to pdf file format. I used the following logic to attach the pdf file to attachment object container in the workflow
    When i run the workflow attachment is there in decision workitem when i open that it is giving error that 'There was an error opening this document. The file is damaged and colud not be repaired'. Please help me
    call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
    exporting
    src_spoolid = mi_rqident
    no_dialog = space
    dst_device = mstr_print_parms-pdest
    importing
    pdf_bytecount = mi_bytecount
    tables
    pdf = mtab_pdf
    exceptions
    err_no_abap_spooljob = 1
    err_no_spooljob = 2
    err_no_permission = 3
    err_conv_not_possible = 4
    err_bad_destdevice = 5
    user_cancelled = 6
    err_spoolerror = 7
    err_temseerror = 8
    err_btcjob_open_failed = 9
    err_btcjob_submit_failed = 10
    err_btcjob_close_failed = 11
    others = 12.
    DATA: office_object TYPE swc_object.
    DATA: BEGIN OF SOFM_KEY,
             FolderType LIKE SOFM-FOLTP,
             FolderYear LIKE SOFM-FOLYR,
             FolderNumber LIKE SOFM-FOLNO,
             Type LIKE SOFM-DOCTP,
             Year LIKE SOFM-DOCYR,
             Number LIKE SOFM-DOCNO,
             ForwarderName LIKE SOUB-USRNAM,
           END OF SOFM_KEY.
      DATA: REGION LIKE SOFD-FOLRG.
      DATA: FOLDER_ID LIKE SOODK.
      DATA: L_FOLDER_ID LIKE SOOBJINFI1-OBJECT_ID.
      DATA: DOCUMENT_DATA LIKE SODOCCHGI1.
      DATA: DOCUMENT_INFO LIKE SOFOLENTI1.
      DATA: OBJECT_CONTENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
      DATA: OBJECT_CONTENT_HEX LIKE SOLIX OCCURS 0 WITH HEADER LINE.
      DATA: LINES LIKE SY-TABIX, DOCUMENT_TYPE LIKE SOODK-OBJTP.
    *- set default
      IF DOCUMENT_TYPE IS INITIAL.
        DOCUMENT_TYPE = 'PDF'.
      ENDIF.
    *- create office object
    *-- get dark folder
      REGION = 'B'.
      CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
           EXPORTING
                REGION                = REGION
           IMPORTING
                FOLDER_ID             = FOLDER_ID
           EXCEPTIONS
                COMMUNICATION_FAILURE = 1
                OWNER_NOT_EXIST       = 2
                SYSTEM_FAILURE        = 3
                X_ERROR               = 4
                OTHERS                = 5.
      IF SY-SUBRC NE 0.
       MESSAGE E696
               RAISING ERROR_SOFM_CREATION.
      ENDIF.
    *-- create office document
      DOCUMENT_DATA-OBJ_NAME = 'ATTACHMENT'.
      DOCUMENT_DATA-OBJ_DESCR = 'Travel Expense Form'
      DOCUMENT_DATA-OBJ_LANGU = SY-LANGU.
      OBJECT_CONTENT[] = mtab_pdf[].  "NOTE_TEXT[].
    object_content_hex[] = IT_SIMULATION_DATA[].
      DESCRIBE TABLE OBJECT_CONTENT LINES LINES.
    DOCUMENT_DATA-DOC_SIZE = ( LINES - 1 ) * 255 + STRLEN( OBJECT_CONTENT ).
      L_FOLDER_ID = FOLDER_ID.
      if object_content[] is initial.                    
        describe table object_content_hex lines lines.   
        document_data-doc_size = lines * 255.            
      endif.
      call function 'SO_DOCUMENT_INSERT_API1'
        exporting
          folder_id                  = l_folder_id
          document_data              = document_data
          document_type              = document_type
        importing
          document_info              = document_info
        tables
          object_content             = object_content
          contents_hex               = object_content_hex 
        exceptions
          folder_not_exist           = 1
          document_type_not_exist    = 2
          operation_no_authorization = 3
          parameter_error            = 4
          x_error                    = 5
          enqueue_error              = 6
          others                     = 7.
      if sy-subrc ne 0.
    message e696(wl)                             
               raising error_sofm_creation.
      endif.
    *- set export parameter
      SOFM_KEY = DOCUMENT_INFO-DOC_ID.
      swc_set_element CONTAINER 'ATTACH' office_object.

    adobe reader verson 8 only but still I am getting the same error.
    I am trying to pass the pdf tabel data to contents_hex to the FM SO_DOCUMENT_INSERT_API1 but both are having different sturctures. How can sove this problem. I download the pdf table data to pdf file in the pc and again uploaded the pdf file into contents_hex table structure and called the FM SO_DOCUMENT_INSERT_API1, But the work item step in backgroup process download and upload are not working out.
    Please help me out

  • Methods of Workitem execute twice

    hello experts,
    in my workitem (activity  methods Tab), before work item execution there is a method to  display image, after the work item execution there is a method to close window.
    after our systerm imported new support packages,the methods execute twice. i can not find the reason and solution.
    i guess there is an inconsistent in systerm's time zone management, which is causing the time to execute display image and window close methods before workitem creation time.
    please give me your suggestions?
    Thanks in advance!

    What's worse is that it seems now your messages have started posting thrice
    Just a small note to remind you that version can be important, especially in this case where you have a problem related to packages. So you should include version information (release, support package level) in your description of the problem.
    Sorry I can't be of more help with respect to the problem itself.

  • I have problem with pay method

    I have problem with pay method. My card declined. I change card and I have the same problem. What can i do? Why declined my card again?

    Contact iTunes store support: https://ssl.apple.com/emea/support/itunes/contact.html.

  • Problem with traverse method

    Hi, I am having this problem:
    I made a CustomItem, a TextField, now I overloaded the traverse method, so if the keycode is Canvas.UP or Canvas.DOWN then return false else return true.
    The problem is that when I press the left or rigth button it also returns false and not true.
    and there is another problem with traverse, before returning false or true I set a boolean and call to repaint to draw it on some way if its selected or not, the paint method is being called but it just dont draw as desired.
    protected void paint(Graphics g, int ancho, int alto) {
              System.out.println ("Dentro del paint, seleccionado="+seleccionado);
              try {
                   g.drawString(label, 0, 0, Graphics.TOP|Graphics.LEFT);
                   if (!seleccionado) {
                        g.setColor(120, 120, 120);
                   g.drawRect(0, 4, tama�oTexto+8, 25);
                   if (seleccionado) {
                        g.setColor(255, 255, 255);
                        g.fillRect(1, 5, (tama�oTexto+8-1), 23);
                   g.setColor(0, 0, 0);
                   if (!seleccionado) {
                        g.setColor(80, 80, 80);
                   g.drawString(texto, 4, 7, Graphics.TOP|Graphics.LEFT);
                   if (seleccionado) {
                        int cursorX=Font.getDefaultFont().charsWidth((texto.substring(0, idLetraActual)).toCharArray(), 0, texto.substring(0, idLetraActual).length())+4;
                        g.drawChar('|', cursorX, 7, Graphics.TOP|Graphics.LEFT);
              } catch (Exception E){
                   E.printStackTrace();
         }the traverse method set the seleccionado variable and calls to repaint but instead of being false the paint method is drawing it as true (most of times).

    I have a problem with findByxxx() method.. in
    Container managed bean.
    i have
    Collection collection =
    home.findByOwnerName("fieldValue");
    specified in my Client Program, where ownerName is the
    cmp fieldname..
    and
    public Collection findByOwnerName(String ownerName)
    throws RemoteException, FinderException
    defined in my home interface.
    i have not mentioned the findBy() method anywhere else
    (Bean class). You have to describe the query in the deployment descriptor.
    >
    Even if i have a same "fieldValue" in the database
    (Oracle), which i specified in findBy() method, iam a
    result of owner Not found, which is not the case as i
    have that owner name.
    for the same application if i use findByPrimaryKey(),
    it is working..
    Can any one please post me the solution.

  • Problem with Vector method addElement

    I am new to Java. I am using JDK 1.3. I am writing a program that will convert a text file to a binary file that stores a Vector object. I have narrowed my problem to the method that reads the text file and creates my vector. Each element in my vector stores an integer and a string variable. The reading of the text file works find and the creation of my record works find. It seems that the storing of the record in the vector is not working. When I print the first 10 elements of the vector, it have the same record(the last record of my text file). What is wrong with the method below? I am also appending the result of running my program.
    private static void readTextFile(File f) {
    try {
    FileReader fileIn = new FileReader(f);
    BufferedReader in = new BufferedReader(fileIn);
    String line;
    int i;
    SsnLocationRecord recordIn = new SsnLocationRecord();
    int ctr = 0;
    while (true) {
    line = in.readLine();
    if (line == null)
    break;
    ctr += 1;
    i = line.indexOf(" ");
    recordIn.putAreaNumber(Integer.parseInt(line.substring(0,i).trim()));
    recordIn.putLocation(line.substring(i+1).trim());
    records.addElement(recordIn);
    if (ctr < 11)
    System.out.println(recordIn);
    in.close();
    } catch (IOException e) {
    System.out.println ("Error reading file");
    System.exit(0);
    for (int i = 0; i < 11; i++)
    System.out.println((SsnLocationRecord) records.elementAt(i));
    RESULTS:
    C:\Training\Java>java ConvertTextFileToObjectFile data\ssn.dat
    0 null
    3 New Hampshire
    7 Maine
    9 Vermont
    34 Massachusetts
    39 Rhode Island
    49 Connecticut
    134 New York
    158 New Jersey
    211 Pennsylvania
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    680 Nevada
    C:\Training\Java>

    First of all it would be better if you did a priming read and then checked line == null in the while statement instead of the way you have it.
    ctr++ will also accomplish what ctr +=1 is doing.
    you need to create a new instance of SsnLocationRecord for each line read. What you are doing is overlaying the objects data each time you execute the .putxxxx methods. The reference to the object is placed in the vector. The actual object is still being updated by the .putxxx methods (NOTE : THIS IS THE ANSWER TO YOUR MAIN QUESTION).
    you close should be in a finally statement.
    To process through all the elements of a Vector create an Enumeration and then use the nextElement() method instead of the elementAt is probably better. (Some will argue with me on this I am sure).
    Also, on a catch do not call System.exit(0). This will end your JVM normally. Instead throw an Exception (Runtime or Error level if you want an abnormal end).

  • Problem with prerender method

    Hi,
    I have a problem with the method prerender. A month ago, I started to develop a web project using Sun Studio Creator and a few page beans that i used extended the Abstract Page Bean, so I overrided the prerender and customized it.
    The problem is that, now i'm using eclipse and the configuration files of the project has changed and the prerender method never execute.
    I want to know why it is happening. Maybe the project is "bad-configurated"?
    Thanks

    The code of java bean doesn't change, the only thing that has changed is the configuration files (faces-config.xml, web.xml, etc).
    I put a breakpoint in the prerender method but the lifecycle doesn�t execute this method.
    After serveral changes, I wrote this code in the method prerender :
    int i=0;
    i = 1;
    And the prerender method doesn't execute.
    I'm a bit lost,
    thanks

  • Problem with affinetransformOp method...

    I have a serious problem with filter method
    I Want to make a image flipping or some other filtering by using
    AffineTransformOp
    but it printouts an erro like this
    cannot resolve symbol
    op.filter (img, flipped)
    (the error pointer shows ".after the op")
    a code from my one of the filters
    BufferedImage flipped = new BufferedImage(img.getHeight(), img.getWidth(),BufferedImage.TYPE_INT_RGB);
    AffineTransform trans = new AffineTransform(0, 1, 1, 0, 0, 0);
    AffineTransformOp op = new AffineTransformOp(trans, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
    op.filter(img, flipped); //img is my buffered image source
    I used some other ways like (img, null) but always give out error.
    thanks..

    Did you declare "img" as BufferedImage or something else?
    What is the full error message?

  • Problem with WindowClosing() method

    Hello everyone,
    I have some problem with WindowClosing() method, in which I gave options
    to quit or not. Quit is working fine but in case of Cancel, its not returning to
    the frame. Can anyone help me ....Here is my code
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    public class TestFrame extends JPanel
         public static void main(String[] args)
              JFrame frame = new JFrame("Frame3");
              WindowListener l = new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        int button = JOptionPane.showConfirmDialog(null,"OK to Quit","",JOptionPane.YES_NO_OPTION, -1);
                        if(button == 0)     {
                             System.exit(0);
                                   else
                                              return;
              frame.addWindowListener(l);
              frame.setSize(1200,950);     
              frame.setLocationRelativeTo(null);
              frame.setVisible(true);
    }

    Maybe try
    int button = JOptionPane.showConfirmDialog(yourframe,"OK to
    Quit","",JOptionPane.YES_NO_OPTION, -1);

  • Problems using GET method in JSP

    Hi,
    I had some problems using GET method in JSP.
    I'm using Apache web server 1.3 and Tomcat 3.3.1 in windows 2000.
    And I'm using language English and Korean.
    When I send messages using POST method, all is good
    But when I send message using GET method, English is good, but Korean is not good.
    I tried to encode using
    URLEncode.encode(str, "UTF-8")
    and decoding it using
    URLDecode.decode(request.getParameter(tag), "UTF-8")
    but it didn't work.
    How can I receive request including Korean using GET method in JSP?
    If anyone have solutions, please let me know.
    thanks.

    Hi,
    I had some problems using GET method in JSP.
    I'm using Apache web server 1.3 and Tomcat 3.3.1 in
    windows 2000.
    And I'm using language English and Korean.
    When I send messages using POST method, all is good
    But when I send message using GET method, English is
    good, but Korean is not good.
    I tried to encode using
    URLEncode.encode(str, "UTF-8")
    and decoding it using
    URLDecode.decode(request.getParameter(tag), "UTF-8")
    but it didn't work.
    How can I receive request including Korean using GET
    method in JSP?
    If anyone have solutions, please let me know.
    thanks.This problem appears, when one use UTF-16 encoding in JSP - am I right?
    If so there are two solutions:
    1) Temporary: Use "UTF-8" - or any other 8 bit encoding scheme and
    encode Korean symbols with "&1234;" kind of escapes - though it
    may not work
    2) Absolute: get my piece of code, which I have managed to write
    just a month ago resolving absolutely similar problem with UTF-16
    in code using Chinese/Russian/English encodings
    But I wouldn't say that it's costs 10 DDs :) - it's much more
    expensive... So try 1st variant if it wouldn't help - let me know.
    I'll figure :)
    Paul

  • Screen Resolution Problem in Session Method

    Hi
    I want to use session method in BDC. How to resolve screen resolution problem in Session Method?
    Please give me the code or steps regarding this.
    Thanks & Regards
    venkateswararao

    Hi
    U can only run the session with the option Dynpro Standard Size setted.
    In this way the system should be use the same resolution for every situation.
    Max

  • Can we keep Decision workitem in two users SAP inbox after canel action ?

    I have a requirement like "  Decision workitem is going to two SAP Users Inbox , when one user opens the work item and choose the cancel and keep workitem in inbox in that case also its disappering in other user's SAP Inbox"
    is there any way to keep the work item in both users inbox when one person selects CANCEL AND KEEP WORKITEM IN INBOX ?
    Please give me your input.
    Thanks and Regards,
    veerabrahmam

    Rick Bakker wrote:
    Hello,
    >
    > Is this in SBWP or UWL?
    >
    > This seems to be the SAP standard in some scenarios. You could have the workflow test for Reserved and unreserve it but then what happens if it was reserved on purpose.
    >
    > regards
    > Rick Bakker
    > hanabi technology
    Hi Rickk ,
    it is SBWP
    it is intresting to see that case if one of approver reserves it for the purpose of evaluating later.
    the thing is our onsite  consultant asked like  is it possible to keep the decision in the two approvers SAP Inbox  after selecting cancel and keep workitem in the inbox.
    is that possible ?

  • Problems w my method paymet

    Problems w my method payment

    Go to settings/itunes & app store tap on ID then view ID then tap payment information and see whether paypal is a payment option for you.  If it is not then you will need to check from one of the available payment options

  • How to disable the  Options for a decision workitem at runtime

    I want to  disable the  Options (in this  case, Approve  and Reject ) for a decision workitem  at runtime (depending on a condition).

    Hi Dhavalshree,
    As vijay have mentioned, I will not be possible to Disable option of a decision step at runtime.
    You can get this functionality by following the steps mentioned below
    1)     Have one more step (CONDITION STEP) before this decision step in workflow definition
    2)     In the condition step, with the step name say (approve or reject)
    3)     In the condtion tab, define a flag say &YFLAG&
    4)     Write the expression to this flag as &YFLAG& = Y
    5)     Define two outcomes for this condition step i.e. True and False
    6)     Under u2018Trueu2019 give the outcome name as APPROVE
    7)     Under u2018Falseu2019 give the outcome name as REJECT
    8)     Based on the path have two different decision steps in each path of condtion step
    9)     In the Approve Pathu2019s decision step define only one option i.e. Approve
    10)     In the Reject Pathu2019s decision step define only one option i.e. Reject.
    Hope this will help you.
    Regards,
    Deepa Kulkarni

Maybe you are looking for

  • ORA-01180 and ORA-01110 error when restoring database by RMAN in 11.1.0.6.0

    I have a new installed database running in ARCIHVELOG mode on SUSE 10SP3. Catalog is not used. When I try to restore the database from a level 0 backup based on SCN, ORA-01180 and ORA-01110 were raised out today. Please help me through this. Thx. The

  • SOA server not starting: Due to change of hostname of SOA suite 11g

    Hi friends, My machine has been recently moved to a new location and hostname (ip address remains same) has changed. Hence, the soa server (admin server still running) on my machine is not starting up. Some details are: a.) Earlier hostname: CALTP8BB

  • Use of COMnn/NUMnn fields in infotype 0032 (Internal Data)

    Hi, Please advise how to use the COMnn /NUMnn fields in infotype 0032 (Internal Data). Those fields are not available as screenfields in the screens of MP003200 and also therefore available for configuration in v_t588m. Those fields look suspiciosly

  • Is Apple Kidding

    I'm trying to buy some replacement headphones for my iPhone (1st edition). We have three Apple stores in my community. I need the headphones now, not in a few days after they're shipped from Apple. So, I go to two close-by Apple stores. There are lon

  • Problems with updatemanager hanging

    Hello, I was just wondering if other people are having problems with updatemanager hanging when you install patches. Quit frequently we have problems where the updatemanger will get 75% done and just hang. I have even let it sit over the weekend on o