About the dynamic actions
hi folks,
wat is meant by dynamic actions? where it will be usefull..................................... in hr-abap,,,,,
Hai..
https://forums.sdn.sap.com/click.jspa?searchID=8181617&messageID=4436420
https://forums.sdn.sap.com/click.jspa?searchID=8181617&messageID=4504716
https://forums.sdn.sap.com/click.jspa?searchID=8181617&messageID=4594318
https://forums.sdn.sap.com/click.jspa?searchID=8181617&messageID=4353060
Similar Messages
-
Can we debug the dynamic action code
Dear Freinds,
I want to debug the standard code written for dynamic action for infotype 0002 and to that of infotype 0021. How can i debug is there any standard program for dynamic action please let me know .
regards
divya.Hi Divya,
It's possible to debug the dynamic measure. Just go to include MPPERS00 and put a break-point inside subrotines DYN_MEASURE and MEASURE. Then, in PA30, trigger the dynamic action and the system automaticaly will enter in debug mode.
I'm assuming that you understand ABAP (in order to realize what SAP is doing behind the scenes) and know how to create a break-point in the ABAP editor.
Good luck,
Bruno Quental -
The dynamic action didn't work
Apex 4.1
There are 2 items in a Form on Page 3, P3_REG_ID and P3_SUBMITTER_ID.
I'd like set submitter id=reg_id when reg_id has been change, so created the dynamic action on item P3_REG_ID, but P3_submitter_id didn't change whatever P3_reg_id did.
What I did:
{code}
Event: Change
Selection Type: Item
Item: P3_REG_ID
Conditions: null
True action:
Set type: PL/SQL Expression
PL/SQL Expression: : P3_REG_ID
Effected elements
Selection type: Item
{code}
Who can help me? thanks a lot
Item: P3_SUBMITTER_IDHi Howard,
I have requested the example workspace in OTN, and created a application, please reference.
http://apex.oracle.com/pls/apex/f?p=4550:1:0:::::
workspace: huangyong
usename: test
password: 1234 -
for s-log2 video the best iso apparently is 3200.(or higher)
if i shoot stills using the mechanical shutter, what iso gives the best dynamic range?
how about if i use s-log 2 silent shutter while exposing still photos,
or if i use s-log2 video, capture a frame, and output using an LUT,
how does the dynamic range in those scenarios compare to that of a still photo?
how can i get a sony supply an LUT for s-log2 video?
thanks,
chrisNote that AutoCad is not an avanced software, it only uses one cpu thread (so if you have a fast solo processor that's all AutoCad makes use of) but the cpus mentioned above are the fastest cpus per single core. I don't know about the Premiere Pro i.e. what this program does in the regard of utilizing all cores and threads, but AutoCad for sure does not. So an AutoCad machine only needs a fast CPU, good memory and a graphics card that AutoCad knows how to make use of in 3D (if you are using AutoCad for 3D) but AutoCad is definitely not the program to consider for use in 3D modeling. AutoCad is still vector based program (and probably will continue to be in future, since there will always be some need for vector based design software) but Autodesk does have software that is not vector based like Inventor.
-
A question about the dynamic colonnes in Business Workfplace
Dear experts,
I have a question regarding as the dynamic colonnes in Busienss Workplace.
Before, I thought that there were only 6 dynamic colonnes to add in the business workplace. But when I went to SPRO and tried to configure these dynamic colonnes. I found that it was configured by tasks. Does it mean that we could add at least 6 for each task?
As I was not able to test it, does anyone know the result?
THanksHi,
for more infop check the application help for SWL1 (help-->application help)
<a href="http://help.sap.com//saphelp_crm40sr1/helpdata/EN/bc/2e5cb396fc11d194c60000e82dec10/frameset.htm">http://help.sap.com//saphelp_crm40sr1/helpdata/EN/bc/2e5cb396fc11d194c60000e82dec10/frameset.htm</a>
Kind regards, Rob Dielemans -
About creating an AJAX page with DML procedures using dynamic actions
About creating an AJAX page with DML procedures in APEX using dynamic actions. Help with limitations.
I want to share my experience, creating AJAX procedures in APEX 4.0.
LIMITATIONS
• How Can I Hide UPDATE button while I press NEW button. ??
• How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
• How can I avoid multiple Inserts or Updates. ??
Here are the steps to create an AJAX Updatable Form using the sample table DEPTS. You can see the demo here: [http://apex.oracle.com/pls/apex/f?p=15488:1]
1) Create a blank page
2) Add a Report Region for departments (It shows the columns deptno, dname and loc).
3) Add an HTML Region and create the elements to edit a Department.
a. P1_DEPTNO (Hidden to store PK)
b. P1_DNAME (Text Field)
c. P1_LOC (Text Field)
4) You also have to create a hidden element called P1_ACTION. This will help to trigger dynamic actions to perform DMLs.
5) Open Page Attributes and in the HTML Header Section include the following code.
<script>
function doSelect(pId){
$x_Value(‘P1_DEPTNO’,pId);
$x_Value(‘P1_ACTION’,’SELECT’);
</script>
6) Modify the column DEPTNO in the report, to add column link. In the link text you can use #DEPTNO# , in target you must select ‘URL ‘ and in the URL field write javascript:doSelect(#DEPTNO#);
7) Create the following Buttons in the Form Region.
CANCEL Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CANCEL’);
NEW Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’NEW’);
SAVE Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’UPDATE’);
CREATE Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CREATE’);
8) Create the following Dynamic Action to Select a Department
Name: Select Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: SELECT
Action: Execute PL/SQL Code
PL/SQL Code:
SELECT dname, loc
INTO :P1_DNAME, :P1_LOC
FROM dept
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
The first limitation, the value of page elements don’t do refresh so I added the following true actions to the dynamic action AFTER Execute PL/SQL Code.
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: (none) (leave it blank)
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: (none) (leave it blank)
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
9) Create the following Dynamic Action to Update a Department
Name: Update Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: CREATE
Action: Execute PL/SQL Code
PL/SQL Code:
UPDATE dept SET
dname = :P1_DNAME,
loc = :P1_LOC
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
Action: Set Value
Unmark ‘Fire on page load’ and ‘Stop execution on error’
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: P1_DNAME
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: P1_LOC
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
Finally to refresh the Departments report, add the following true action at the end
Action: Refresh
Affected Elements: Region Departments
10) Create the following Dynamic Action to Create a Department
Name: Create Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: CREATE
Action: Execute PL/SQL Code
PL/SQL Code:
INSERT INTO dept(deptno,dname,loc)
VALUES (:P1_DEPTNO,:P1_DNAME,:P1_LOC);
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Function Body
PL/SQL Function Body:
DECLARE
v_pk NUMBER;
BEGIN
SELECT DEPT_SEQ.nextval INTO v_pk FROM DUAL;; -- or any other existing sequence
RETURN v_pk;
END;
Page Items to submit: P1_DEPTNO
Affected Elements: Item P1_DEPTNO
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: P1_DNAME
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark ‘Fire on page load’ and ‘Stop execution on error’
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: P1_LOC
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
Finally to refresh the Departments report, add the following true action at the end
Action: Refresh
Affected Elements: Region Departments
11) Create the following Dynamic Action to delete a department
Name: Delete Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: DELETE
Action: Execute PL/SQL Code
PL/SQL Code:
DELETE dept
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO
Don’t include any false action and create the Dynamic Action.
Include the following True Actions AFTER the Execute PL/SQL Code true Action.
Action: Refresh
Affected Elements: Region Departments
Action: Clear
Unmark ‘Fire on page load’
Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOC
12) Finally Create the following Dynamic Action for the NEW event
Name: New Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: NEW
Action: Clear
Unmark *‘Fire on page load’*
Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOCI need some help to solve this issues
• How Can I Hide UPDATE button while I press NEW button. ??
• How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
• How can I avoid multiple Inserts or Updates. ?? -
Explain me briefly about Dynamic Actions in PA
HI Experts kindly let me know about the Dynamics actions in Personnel Administration.Am just confusing about this concept.In real time scenario what will be the use of this concept.How it will work ?Why we have given the 0077 as target infotype.Kindly describe me in detail.Actually i heard like this concept will be an added advantage in interview point of view.
Hi, Dynamic actions in real time is merely a event triggered processing that can be configured to do a required job in the back ground automatically. For example when you hire an employee (IT0000 gets created -> can be considered as a trigger). Now this creation of IT0000 can be configured to automatically create date specfications in the background or say can be used to create IT2006 -> all quota types which zero hrs.
Have a look at the following link:
http://wiki.sdn.sap.com/wiki/display/Snippets/Dynamic+Action -
DYnamic Action to set the value of a wage type in IT0014
Dear Experts,
i have created a dynamic action to create a record in IT0014 (wage type 92011) if another record in IT0014 (wage type 9207) is created/changed. that is:
0014 9207 06 I INS,0014,9211,,(P0014-BEGDA),(P0014-ENDDA)/D
0014 9207 06 W Q0014-BETRG=2
now, when i change/create the wage type 9207 in IT0014, the dynamic action opens IT0014 with subtype 9211, and with begin & end dates as set in the action , but an error message that asks me to Enter Amount !!!
why can't the dynamic action read the amount (2) which I want to insert ?!!
Thanks in advanceDear Rovan,
you should not use Q there,
Do not set defaults for Q fields of an Infotype because the values for these fields are derived from the corresponding P fields.
0014 9207 06 I INS,0014,9211,,(P0014-BEGDA),(P0014-ENDDA)/D
0014 9207 06 W P0014-BETRG=2
Regards,
mohammed
Edited by: 0mohammed1 on Oct 27, 2011 5:53 PM -
How to Send Notification to Manager of the Employee using Dynamic Action..
Hi All,
I am sending a notification using the Dynamic Action for an Infotype.. I am able to send mail using distribution list but I have a requirement to send the notification to employee manager. I am able to determine the Line Manager ID calling the subroutine in the dynamic action. But I am not sure how to send the notification to the manager.
If the email's are maintained in distribution list if I specify the text id in the feature M0001 and distribution list the notifications are sent. I am not sure how to pass the line manager id to get the same notification..
I have seen the option REC1 but infotype 0001 in not having the line manager id..Used the Function Module RH_GET_LEADING_POSITION.
Thanks.. -
Email dymanic action to inform payroll admin about the address change
Hi experts,
Here is my query. I wanted to create a dynamic action to send an email to payroll admin for an employee address change via an email.
Employee IT0001 has Payroll admin assigned. Employee IT105 maintained with email address, as well payroll admin user IT105 email id is also maintained.
In the dynamic actions, I wrote it like this.
0006 1 06 1 P PSPAR-TCLAS='A'
0006 1 06 2 P T001P-MOLGA='10'
0006 1 06 3 M M001
And in feature it is already there as
IDTXT MAIL_FOR_I0006
RECV2 X
SUBTY 0010
TCODE PA40
Now my questions are.,
1) What is this big picture of maintaining distribution lists in SO04, how they are connected in here, and with payroll admin data? How do we connect them?
2) What data needs to be maintained for this payroll admin, does his user profile needs to be maintained with email?
3) Can I substitute X with actual receiver?
4) My big concern is what is distrinution lists and how they are connected in here?
Can somebody enlighten me or forward me to the proper links to get more idea to configure this?
Thanks
MurthyThere is a response in ittoolbox on a similar issue.., Posted by Maxine Wood..,
http://sap.ittoolbox.com/groups/technical-functional/sap-hr/email-notication-on-emp-termination-2233850
So I am closing this thread.
Thanks
Murthy -
Dynamic actions and PA-PD integration a problem
Are you aware of an update problem with MSS and PA-PD integration? This information was made available in a presentation to us last year. Was this issue resolved in mySAP ERP 2004?
Dynamic actions and PA-PD integration a problem
Dynamic actions and PA-PD integration are not
processed on updates made from the web (but in the
background through a batch or call transaction session)
Thats why most standard PCRs require HR to process
the transaction using the SAP GUI in the foreground
This normally affects changes to infotypes 0000 &
0001
Then the next slide states:
Workaround for dynamic actions
Review dynamic actions in table T588Z (use SE16 to
display) and document the infotypes and values that
trigger dynamic actions
Incorporate those infotypes into your background
processing and web forms (if necessary)
Workaround for PA-PD integration
Include the integration steps for these infotypes in your
background processing (just as in conversions)Hi John,
Not sure if it is fixed.. or can be fixed.. we are still in 47 & Use custom code to account for Dynamic Actions.. the PCR processes use the function module HR_MAINTAIN_MASTERDATA to update the infotypes. This function mimics a BDC & hence cannot handle Dynamic Actions... Basically, the issue is not with MSS but it is the way Dynamic Actions work.. to quote SAP "Dynamic actions are not correctly processed in batch input sessions since in batch input the sequence of the screens needs to be predefined correctly. To be able to process dynamic actions in batch input, the checks of the dynamic actions need to be programmed when creating the batch input session. To avoid errors when programming and running the session, the static actions only are processed in batch input. Calls of infotypes that are triggered by dynamic actions should be realized by separate Transaction calls.
Please take a look at OSS Note #386027 for additional info about Dynamic Actions.
Regards,
Suresh Datti -
Hello,
I had created a dynamic action for a custom infotype 90X9 in which I am comparing a field(FIELD1) if it is initial i am maintaining a record in 90Y9 infotype.
Through PA30 I created a NULL entry for the FIELD1 for a employee (EMP1) for infotype 90X9 and then I checked 90Y9 hoping that maintained value in dynamic action will fill the infotype 90YP, But this had not happend.
Is this the correct way to TEST it? Please suggest a TEST method if it is wrong method to test this dynamic action scenario.Hello
You know what is the most interesting thing about your test case? You are trying to copy the NULL value between infotypes. Well, is the test case not working only for NULL values or all values?
Can you also mention following about your dynamic action?
Infotype:
Subtype:
Field Name:
Function Character:
Sequence Number:
Indicator for Step:
Variable Function Part:
Thanks
Anand -
Dynamic action setvalue from pl/sql function
Hi,
I have a currency table with exchange rate column.
I created a form that allow user to select currency from the table and get the rate into Px_RATE page items.
I would like to implement it using Dynamic action in apex 4
Please help me on this case
Thanks & regardsHi,
You can achieve this by defining a dynamic action as follows...
#1 - Right click on the page item used to select the currency (let's call it P1_CURRENCY for purposes of this example) and select 'Create Dynamic Action'
#2 - Select 'Advanced' as we're going to use the 'Set Value' dynamic action type, which is not available in the 'Standard' branch of the wizard.
#3 - Name your dynamic action, say 'GET RATE', click 'Next'.
#4 - Leave the 'When' attributes as default, this just defines that the dynamic action will fire whenever the currency item changes, click 'Next'.
#5 - For the 'True Action > Action' select 'Set Value'
#6 - Think about whether you want to set the value on page load from the dynamic action also, if so leave the 'Fire on Page Load' checkbox checked.
#7 - [Assuming you have a simple PL/SQL API that returns the rate, say get_rate for example] Select 'Set Type' of 'PL/SQL Function Body'
#8 - For 'PL/SQL Function Body' specify something like: return get_rate(:P1_CURRENCY);#9 - For 'Page Items to Submit', specify the currency item P1_CURRENCY and click 'Next'
#10 - For the 'Affected Elements' specify 'Item' and then select the page item where you want to return the rate value, say P1_RATE.
#11 - Click 'Create'.
Let me know if this works for you or if you have any further questions.
Regards,
Anthony. -
Concatenating data for field assignment in Dynamic Action
In a dynamic action I am creating a record in a custom infotype. In one of the custom infotype fields I need to assign a value of the number 28 concatenated with the personnel number. The line in the dynamic action is
W P9007-Z_INS_EE_PK = '28'&Pernr but the problem is I cannot get a concatenation to work. How do you go about concatenating data together in a field assignment?Hi David,
For this, you will have to write a small routine in a program and then call it in the dynamic action. Consult your technical team on this. Get them to write a routine which would concatenate the value and pass it to field RP50D-FIELD1. You would then call the routine and default the fields as shown below:
F ZPROGRAM(Z_CONCATENATE)
I INS,9007,,,
W P9007-Z_INS_EE_PK=RP50D-FIELD1
Here, ZPROGRAM is the name of the program and Z_CONCATENATE is the routine which would contain the logic to populate field RP50D-FIELD1 with concatenated value.
Donnie -
Issue in execution of Dynamic action on change event
Hi,
Greetings.
I have scenario, where I have one select list (P_CATEGORY) and one shuttle control (P_ROOMS) on page.
The values of the shuttle list is being populated based on the selected value in select list.
The left pane of shuttle control's value based on LOV and source of the shuttle item is a plsql function, which returning colon separated value list.
So that returned values shown in the right pane of shuttle.
The LOV values are getting being populated using cascading LOV i.e based on the of Select List item. But the Shuttle source values not getting auto refresh and for achieving that I've created a dynamic true action on change event of Select list.
The dynamic action is with :
Action : Set Value
Set Type : PL SQL funciton body
Page items to submit : P_CATEGORY (this is select list)
Escape Special Character : Yes
Suppress Change event : Yes
Affected Elements -
Selection type : Item(s)
Item(s) : P_ROOMS
This is perfectly working on Firefox but not working on IE9 & Google Chrome.
I've debugged in both IE9 & Google chrome and found the dynamic action get executes ajax call and the values get back but not rendering on the screen. i.e not assigning to the item.
So can you please advice me what will be a workaround for this issue?
I am using Application Express 4.1.0.00.32 .
I'll appreciate your prompt response.
Thanks & Regards,
Jaydipsinh RauljiI don't understand why this is not working withouth seeing an example, there might be multiple processes working on the item.
Anyway if the value is returned check if the value is in the session aswell. If it is in the session but not on the page that means you will need to find a way to bring it from the DB to the page. You can do this by adding an action to your DA:
Action: Execute PL/SQL code
PL/SQL code: NULL;
Page Items to Return: your shuttle item
Maybe you are looking for
-
Jumpy playback from image sequences rendered in Apple Prores and then exported to h264
I will start by saying I have been using FCP since 1.0 and am in no way new to this software, but this issue has me going crazy. First the Specs: MacPro 2 x 2.66 Quad cor Intel Xeon 16 gig Ram OS 10.9.2 FCP 7.0.3 (sorry but I am not a fan of FCP10 at
-
Voice/Video features of Messenger not working - PLEASE HELP
I am running Windows XP Service Pack 2, Windows Messenger 5.1 (not MSN Messenger) and I have a WRT54G v5, f/w 1.01. I cannot use the video, voice or file transfer features of Messenger when connected to the internet via the router. Connected to the
-
Error : enter currency when we create opportunity (default currency error).
Hi, We did default currency as Before saving itu2019s showing error : enter currency. I redefine attribute structure.currency context node: BTPRICINGSET View : BT111h_OPPT/details component : BT111H_OPPT.and also redefine curr, currtotval and also fo
-
Duty value is not flowing in import at the time of capturing j1iex,
Hi freinds, duty value is not flowing in import at the time of capturing j1iex, after miro for planed del cost please let me know what are the possible reasons Regards, Balu
-
How to create a web browser tutorial
Is there a tutorial on how to create a flash web browser? Harley