Dynamic actions in toolbar actions of tables

Hello all,
I have an issues when I create a dynamic action in the toolbar buttons of a table which looks like  that:
    if(@ZCLOSED== 'X',"ERROR","DECISION")
I tried the same syntax in a pushbutton in a normal form and here it worked w/o problems;
Did somebody used already dynamic actions in the tool bar of tables?
Thanks
Werner

Hi Werner,
The toolbar button expects an action name and not an expression.
If you only use the action from that form, you can simply create an action with another name and use conditional transition.
Or, you can try this cool (though long) workaround:
Create an action (lets say MyAction) and add another form (form1) to the model.
Add a spinner control to form1 and give it the dynamic action you want.
Set the visibility of form1 as false and connect your form with form1 using signal in/out to be triggered by MyAction.
finally,assign @spinner1+1 to the spinner when MyAction is raised.
Good luck,
Shay

Similar Messages

  • Dynamic Actions with Multiple Actions Capability

    Dynamic Actions with Multiple Actions Capability
    How can I get Dynamic Actions to work on Actions that are stored solely on IT0302 due to the multiple relationship to a previous Action that is stored on both IT0302 and IT0000?
    When multiple actions on a given day are executed, the dynamic action from the first action entered is executed twice - when it should only execute the first time with the second actions dynamic action triggering the second time.
    Thanks

    When there are multiple actions with the same effective date the wrong dynamic action is triggered.  For example, if I have an Expat Return To Home action followed by an Internal Move action with the same effective date the below events occur:
    1.  IT0001 is updated due to Expat Return to Home - triggering the Dynamic Action off of IT0000 which is Expat Return to Home (Correct)
                -  Action is stored on IT0000 and IT0302
    2.  IT0001 is updated due to Internal Move - triggering the Dynamic Action off of IT0000 which is Expat Return to Home (Incorrect - background processing creates data not needed)
                -  Action is stored only on IT0302
    Question:
    How can we leverage Multiple Actions with the same effective date while continuing to use Dynamic Actions?

  • Dynamic generation of form to show table entries

    Dear experts,
    I am aware of how to dynamically program for form generation when the layout static and is already defined in transaction SFP.
    However I have a requirement wherein the form layout is not available . But the form should get generated dynamically and display values from a table in a simple field - value format. ( Just the way SE16 displays table content , the only difference being output should be in a PDF)
    Any pointers how I can progress on this.
    Appreciated your inputs.
    Thank you.
    With regards,
    Sahir.

    How does default checked checkboxes work for checkboxes of type String[]?
    The following code works, but it is for form property of type String, instead of String[]:
    <form-property name="prop" type="java.lang.String" />
    form.set("prop", "true");
    <html:checkbox property="prop" value="true"> // checked by defaultThis is what I tried for type String[], modelling it off the ideas of the above code, but it does not work:
    <form-property name="prop" type="java.lang.String[]" />
    String[] propArray = {"1", "4"};
    form.set("prop", propArray[]);
    <html:checkbox property="prop" value="1">  //should be checked by default, but is not
    <html:checkbox property="prop" value="2">
    <html:checkbox property="prop" value="3"> 
    <html:checkbox property="prop" value="4"> //should be checked by default, but is notWhy does it work for String but not String[]? How do I make it so that they are checked by default for type String[]?

  • How to dynamically get default value from a table column

    Hi all,
    Here's my problem: Our front end application sends insert and update queries to a pl/sql package. I've got a procedure that gets a PL/SQL table with all the column names an values, a table-name and a primary key name and value. That procedure creates an insert or update statement. So far, so good.
    Now the problem: our front end doesn't know what the default value for a column is. So when a number field doesn't get a value in the front-end, it's inserted with a value '0' though is should ben NULL. My sollution for this is to know the default value of a column: when there's a default of '0', then the value that will be inserted is '0'. When there's no default value and the column can ben NULL, it'll be inserted as NULL. if the column has a not null constraint, a '0' will be inserted.
    Ofcourse I can get the default value from the system-views all_tab_columns or user_tab_columns, but our application is installed at some 100 clients, and has various database installations. Most of the times, the tables are in the same schema as our procedure that performs the insert or update, but sometimes some of the tables are in another schema (in the same database) and also sometimes some tables are stored in another database. In all these situations, a synonym for that table exists in the schema.
    Is there a api function or procedure that I can call to get the default value of a column? I looked at dbms_sql and dbms_metadata, but those packages don't give me that perticular information. if not, I'll stuck with the 'does table exists in schema' yes->use table, no query user_synonyms to look for the owner of the table (and database link) and query all_tab_columns to get the default value. Only this seems a bit overkill to me.
    I hope I'm clear enough? And please don't reply with "don't do inserts this way"! I know, this is not the most optimal sollution, but it does gives us a couple of advantages in our application...

    there is no way that I can think of, apart from what you have already discovered (i.e. views), where you can determine if a column has a defuault value defined against it.
    The other option is triggers, but I guess doing that across 600 tables would not be an option, and besides I stay clear of triggers.
    A different approach therefore, if you cannot pre-determine the data, is to consider a post problem handler, hence I suggested the use of an exception handler.
    The exception handler works regardless of whether the statement is dynamic or not.
    SQL> truncate table abc;
    Table truncated.
    SQL>
    SQL> declare
      2    NULLVAL exception;
      3    pragma exception_init(NULLVAL, -01400);
      4 
      5  begin
      6 
      7    begin
      8 
      9      execute immediate 'insert into abc (y) values (1)';
    10 
    11      exception
    12        when NULLVAL then
    13          -- handle the error
    14          execute immediate 'insert into abc (x,y) values (0,1)';
    15 
    16    end;
    17 
    18    commit;
    19   
    20  end;
    21  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select * from abc;
             X          Y
             0          1

  • Dynamic call for records in a table

    hI,
    Im having a ztable, the structure is as follows:
    tabold fldold tabnew fldnew
    The records in this table is are:
    1.yvbap  posnr xvbap posnr
    2.yvbak  auart xvbak auart
    3.yvbak  augru xvbak augru.
    Now, i have to use this table dynamically to check each and every record in the program:mv45afzz.
    So, my problem is that, i have to dynamically pass these records which contains table name and its field name.
    i can write as: xvbap-posnr = yvbap-posnr for all the three records (the values will come from sales order tranx, report: mv45afzz)
    but in future if the records are added then i have to again change the code, so this shouldn't happen.
    It should dynamically call all the records in this table and check the condition.
    Thanx
    Rohith

    Hello Rohith
    What is your question???
    You described a few ingredients of your scenario (not all of them) and do not really explain your requirements.
    Given the descriptions of the Z-table fields I assume you need to check whether OLD values are equal to NEW values.
    If this assumption is correct then the solution is quite simple (except for XVBAP / YVBAP: Does this mean single entries or looping over all entries?)
    DATA:
      lt_ztable     TYPE STANDARD TABLE OF zstructure,
      ls_ztable     TYPE zstructure.
      FIELD-SYMBOLS:
        <lt_tab>     TYPE table,
        <ls_struct_old>    TYPE any,
        <ls_struct_new>   TYPE any,
        <ld_old>    TYPE any,
       <ld_new>    TYPE any.
    " Read entries from z-table
      SELECT * FROM ztable INTO table lt_ztable.
      LOOP AT lt_ztable INTO ls_ztable.
        ASSIGN (ls_ztable-tabold) TO <ls_struct_old>.
        ASSIGN (ls_ztable-tabnew) TO <ls_struct_new>.
        ASSIGN COMPONENT (ls_ztable-fldold) OF STRUCTURE <ls_struct_old> TO <ld_old>.
        ASSIGN COMPONENT (ls_ztable-fldnew) OF STRUCTURE <ls_struct_new> TO <ld_new>.
        IF ( <ld_old> = <ld_new> ).
          " do something...
        ENDIF.
      ENDLOOP.
    For the sake of simplicity I did not add the required statements for checking successful ASSIGN's.
    Regards
      Uwe

  • Actions and additional actions

    Dear GuruS
    Iam aware of the difference between actions and additional actions , Iam not able to understand one thing , when I try to create an action type and try to activate  the update actions infotype coloumn. I get  a mesage
    upd 0000 ='x' only allowed for upd .0302 ='x'
    What should i do if I want the action type to be only stored in actions infotype but not 0302. It is not allowing me to select only actions infotype update .
    plss help..
    Regards
    Lakshmi

    Yes
    there is a check against U0000 but the system  prompts me to put a check against U0302 also for all the  actions types that I hv created.
    Is there any other settings to decide where the personnel action is going to be stored ..
    Regards
    Lakshmi

  • Software Updates Won't Download - EnumerateUpdates for action (UpdateActionInstall) - Total actionable updates = 0

    I have a new software updates deployment. I see there are updates that are required on a few clients. The clients work fine with a software package/application, as they download fine with no problems, so it's not a boundary issue. But I can't get the software
    updates to work. I keep seeing in updatedeployment.log total actionable updates = 0 even though right above that it is clearly finding new updates.
    Message received: '<?xml version='1.0' ?>
    <CIAssignmentMessage MessageType='Activation'>
       <AssignmentID>{9B41A813-B69C-43D0-BE65-050E29AA0438}</AssignmentID>
    </CIAssignmentMessage>'
    UpdatesDeploymentAgent 6/24/2013 10:55:00 AM
    3532 (0x0DCC)
    Assignment {9B41A813-B69C-43D0-BE65-050E29AA0438} has total CI = 3
    UpdatesDeploymentAgent 6/24/2013 10:55:00 AM
    3532 (0x0DCC)
    Assignment ({9B41A813-B69C-43D0-BE65-050E29AA0438}) received activation trigger
    UpdatesDeploymentAgent 6/24/2013 10:55:00 AM
    3532 (0x0DCC)
    Detection job ({AC8530B9-DA33-49E7-BB34-2A2C78A25D68}) started for assignment ({9B41A813-B69C-43D0-BE65-050E29AA0438})
    UpdatesDeploymentAgent 6/24/2013 10:55:00 AM
    3532 (0x0DCC)
    DetectJob completion received for assignment ({9B41A813-B69C-43D0-BE65-050E29AA0438})
    UpdatesDeploymentAgent 6/24/2013 10:55:08 AM
    2612 (0x0A34)
    Update (Site_2E061C3D-D55B-4363-9B3F-F1717564F205/SUM_2660f150-7e35-467b-8ca2-04de7478eabb) added to the targeted list of deployment ({9B41A813-B69C-43D0-BE65-050E29AA0438})
    UpdatesDeploymentAgent 6/24/2013 10:55:08 AM
    2612 (0x0A34)
    Update (Site_2E061C3D-D55B-4363-9B3F-F1717564F205/SUM_25f15c26-9a8b-4231-ba9c-1d41d3caf7ff) added to the targeted list of deployment ({9B41A813-B69C-43D0-BE65-050E29AA0438})
    UpdatesDeploymentAgent 6/24/2013 10:55:08 AM
    2612 (0x0A34)
    Update (Site_2E061C3D-D55B-4363-9B3F-F1717564F205/SUM_338b46cc-c71e-4294-a9d3-df943ffef642) added to the targeted list of deployment ({9B41A813-B69C-43D0-BE65-050E29AA0438})
    UpdatesDeploymentAgent 6/24/2013 10:55:08 AM
    2612 (0x0A34)
    EnumerateUpdates for action (UpdateActionInstall) - Total actionable updates = 0
    UpdatesDeploymentAgent 6/24/2013 1:08:23 PM
    3444 (0x0D74)
    EnumerateUpdates for action (UpdateActionInstall) - Total actionable updates = 0
    UpdatesDeploymentAgent 6/24/2013 1:08:25 PM
    3444 (0x0D74)
    EnumerateUpdates for action (UpdateActionInstall) - Total actionable updates = 0
    UpdatesDeploymentAgent 6/24/2013 1:08:26 PM
    3444 (0x0D74)

    Anyone have any update to this scenario?
    I did a site recovery to new hardware, and subsequently new WSUS version for Server 2012, and am having issues with deploying software updates.  Like the OP above I can deploy applications and packages with no issues.
    I've deleted the software update group, recreated and deployed to a collection with machines that do not have these updates installed, since they are this months newest updates.
    In the UpdatesDeployment.log I see the following logged:
    Software Updates feature is enabled    UpdatesDeploymentAgent    10/16/2013 4:42:58 PM    7288 (0x1C78)
    Assignment {AF4C3613-4AB2-4F31-8CF2-3143D550F666} has total CI = 119    UpdatesDeploymentAgent    10/16/2013 4:42:58 PM    7288 (0x1C78)
    Assignment ({AF4C3613-4AB2-4F31-8CF2-3143D550F666}) reconnected to the existing job ({F03BB87A-5C38-437F-9D75-ECFB50CD8986}) successfully.    UpdatesDeploymentAgent    10/16/2013 4:42:58 PM    7288 (0x1C78)
    No current service window available to run updates assignment with time required = 1    UpdatesDeploymentAgent    10/16/2013 4:42:58 PM    7288 (0x1C78)
    No current service window available to run updates assignment with time required = 1    UpdatesDeploymentAgent    10/16/2013 4:42:58 PM    7288 (0x1C78)
    Startup task completed    UpdatesDeploymentAgent    10/16/2013 4:42:58 PM    7288 (0x1C78)
    User logon system task    UpdatesDeploymentAgent    10/16/2013 4:43:08 PM    7036 (0x1B7C)
    EnumerateUpdates for action (UpdateActionInstall) - Total actionable updates = 0    UpdatesDeploymentAgent    10/16/2013 4:43:18 PM    7400 (0x1CE8)
    So it's like it sees the deployment but is not evaluating that it needs the updates.  I'm at a loss of where to look next so if anyone can provide any additional suggestions it would be greatly appreciated.

  • Action CREA : No action control found

    Hi
    Created a Vehicle model  and when I execute the VELO transaction I was able to see the Vehicle Model in VELO transaction
    but when I try create a Vehicle using the vehcile model ..it says No action control found.
    after going through the sap help ..I need to keep in place the action matrix so that the action is triggerred
    so pls let me know how to create a action matrixfor the action CREA.
    Thanks and Regards
    Banu

    Hi Harsha
    Error log messages
    Object________________ VMS_ACTION (Activity Execution Vehicle Manager)
    Subobject_____________ 
    External ID___________ Create Vehicle (Configurable)
    Log number____________ $000001
    Created:
    Date__________________ 20100920
    Time__________________ 115642
    User__________________ 
    Transaction code______ VELO (Vehicle Manager)
    Program_______________ SAPLVELO03
    Operating mode________ D (Dialog processing)
    No action control found
    Technical Data
    Message type__________ E (Error)
    Message class_________ VELO (Vehicle Management System)
    Message number________ 144
    Message variable 1____ Material: 000000000000001690 Plant: 3300
    Message variable 2____ Purchasing Organization  Creditor:
    Message variable 3____ Sales Organization  Distribution Channel:
    Message variable 4____ Division: 10 Customer:
    Could you please let me know what might be the problem

  • Dynamic Label creation based on Dictionary Table

    Hi Experts,
    I am having one requirement to create dynamic lables and fields for a table in my application .
    But it should be generated according to the dictionary data type which i have defined .
    It should fetch tham through sql query . I have the query but i don't know how to link this with dynamic code .
    Can anybody help me out regarding this .
    Thanks in advance .

    Jain,
    unfortunately, I don't understand completely what you are atempting to do. Could you please elaborate a bit more on this?
    -Adrian

  • HT2729 I bought a TV episode from iTunes (I have version 10 installed), but when I try to play it on my laptop, it keeps stopping and starting, with the voices out of sync with the action.  The action is stop/start as well.  What settings can I change to

    I bought a TV episode from iTunes (I have version 10 installed), but when I try to play it on my laptop, it keeps stopping and starting, with the voices out of sync with the action.  The action is stop/start as well., and occasionally it skips 5 or 10 seconds altogether, making it impossible to watch.  What settings can I change to fix the problem.

    Repair your QuickTime.
    Control Panel > Programs n Features > highlight QuickTime and click CHANGE then REPAIR.

  • Dynamic SQL statement to select the tables which are updated today...

    Hi Guys,
    I need to find the names of all the tables which contain rows that are inserted/updated in a given time stamp...
    Below statement gives me the list of all the tables in the database...
    select t.table_name from all_tables t;All these tables in the database have a column called rowversion which gives the updated/inserted date of a record. I need to write a select statement (probably dynamic) which will give me the table names which contain the rowversion value 24-01-2013....
    Any help is very much appreciated...

    Napster wrote:
    Hi Karthick,
    Thanks for your reply...
    But when I execute your select statement I am getting an error saying table SYS.DBMS_XMLGEN does not exist.
    Probably something wrong in my environment?Yes you can, here is a quick untested code
    declare
      my_filter date := to_date('24-01-2013', 'dd-mm-yyyy');
      my_count integer;
    begin
      for i in (select table_name from user_tables)
      loop
         execute immediate q'[select count(*) from ]' || i.table_name || q'[ where rowversion = :1]'
         using my_filter
         into my_count;
         if my_count > 0 then
             dbms_output.put_line(i.table_name);
         end if;
      end loop;
    end; 
    /

  • Repeated action is created : Action already processed

    Hi,
    in my issue,i created sales order and after save the order action executed.if i check this action display log in sppfp,action is repeated
    showing message in logs : repeated action is created ( Action already processed))
    I maintained in action definition for Action merging is : Max 1 action for each action definition
    i am not getting why action is repeating again.it leads to printing documents continuosly.
    Thanks & Regards
    Kishore Kumar

    Hi,
    Action Definition >.Action Merging : Set Highest Number of Processed Actions
    And
    Action Merging Tab  > Max 1 with Selection Successful Action.
    This will  allow 1 successful action only.
    reg,
    Chait

  • Compare Routing action versus Service Callout action versus Publish action?

    hi all,
    Apologies if this is a stupid question, but i throw my hands up and admit my ignorance (I'm mainly a core Java developer; OSB/ALSB is kind of a sideline for me). That said...
    I've used OSB (actually ALSB) on a couple SOA projects within the last 3 years. on my previous projects, we mainly only ever used Routing actions. I'm now working on a 3rd project that also uses OSB. But on this new project, they mainly only ever use Service Callout actions and Publish actions.
    My question is: what are the criteria for choosing between one or the other (Routing action or Service Callout action or Publish action)?
    What does one do that the others can't? I've RTFM. But it still isn't obvious to me. Please, can you fill in the gaps in my knowledge?
    Thanks in advance for your time.

    My question is: what are the criteria for choosing between one or the other (Routing action or Service Callout action or Publish action)?Routing Action - Routing action can be created inside a Route Node only and Route Node is the last node in a request processing. A Route Node indicates that Request Processing will end here and Response Processing will begin. You can not have any node after Route Node in the message flow.
    Service Callout - Service Callout is used in real time request-response scenarios (for sync response). If you have a use case where you need to call one or multiple real time request-response services (like sync web-services) then you may use Service Callout action in the message flow. Being a synchronus call, the thread gets blocked until a response is returned from target service.
    Publish Action - Publish action is used for Request only scenarios where you don't expect a response back. The nature of Publish action (sync or async) will depend upon the target service you are invoking. If you are invoking an external service through a business service then Publish action with Quality of Service(QoS) as "Best Effort" (default) will work like fire and forget and thread won't get blocked (async call). If you are invoking a local proxy service (proxy with transport protocol as "local") from another proxy using publish action then it would be a blocking call (synchronus call) and thread will get blocked untill the processing of local proxy finishes.
    Hope it helps.
    Regards,
    Anuj

  • Edit Actions and Advanced Actions in some kind of text editor

    Is there any way to edit Actions and Advanced Actions in some kind of text editor?
    The built-in GUI is fine for little tweaks, but trying to use it for anything real is a almost impossible.
    Can Creative Suite open a Captivate project and give access to the Actionscript in the project?
    Is there a text file someplace that can be extracted, editted, and put back in?

    Hello,
    has the feature to edit  Actions and Advanced Actions using a text editor been implemented into the new Captivate 7?
    I'm facing the problem that I have very extensive Advanced Actions in Captivate in which I want to change a variable x into a variable y. Doing it manually would take  about a day or so.
    It would be great if there was some kind of workaround.
    Regards

  • Possible to transfer 'actions' from one computer to another/ and earlier CS3 actions to CC actions?

    Is it possible to transfer 'actions' from one computer to another/ and earlier CS3 actions to CC actions?

    you are allowed two installations and activations with each single user license.
    just use your installation cds and your serial number to install on your new computer.
    if you no longer need cs6 on your old computer or that old computer has your 2nd installation/activation, open one of the adobe programs and click help>deactivate.  you can then uninstall from your old computer.

Maybe you are looking for