Dynamic Action-not trigerred in a particular scenario

Hi Experts,
We have a scenario where in a dynamic action(Creation of 'Monitoring of task' IT0019) is triggered while an employee is assigned a particular type of absence(UB04) in 2001.
One more thing I would like to mention is that this action is getting  triggered in a scenario where the absence starts in a non working period.(where planned working days are 'FREE').For e.g: If absence type is created for 01.01.2009-01.01.2009(not a free day) then IT0019 dosen't appear.but when absence type is created for 04.01.2009-04.01.2009(Sunday-> free day) then IT0019 is triggered
However,the action configuration doesn't have any mention of above scenario.Plz see below the config setting of the dynamic action where UB04 is the absence subtype we maintain.
2001     UB04                 0     *     *DATE REMINDER FOR JURY SERVICE RECLAIM*
2001     UB04          02     5     P     P2001-AWART='UB04'
2001     UB04          02     10     I     DEL,0019,99,,,,/D
2001     UB04          02     15     I     INS,0019,99,,,,/D
2001     UB04          02     20     W     P0019-TMART='99'
2001     UB04          02     25     W     P0019-VTRMN=P2001-BEGDA
2001     UB04          02     30     W     P0019-VTROP='+'
2001     UB04          02     35     W     P0019-VTRAN='5'
2001     UB04          02     40     W     P0019-VTRZH='011'
2001     UB04          04     45     P     P2001-AWART='UB04'
2001     UB04          04     50     I     INS,0019,99,,,,/D
2001     UB04          04     55     W     P0019-TMART='99'
2001     UB04          04     60     W     P0019-VTRMN=P2001-BEGDA
2001     UB04          04     65     W     P0019-VTROP='+'
2001     UB04          04     70     W     P0019-VTRAN='5'
2001     UB04          04     75     W     P0019-VTRZH='011'
2001     UB04          08     80     P     P2001-AWART='UB04'
2001     UB04          08     85     I     DEL,0019,99,,,,/D
Can anybody let me know the possible cause of the problem.
Points assured for help....

Hi Experts,
We have a scenario where in a dynamic action(Creation of 'Monitoring of task' IT0019) is triggered while an employee is assigned a particular type of absence(UB04) in 2001.
One more thing I would like to mention is that this action is getting  triggered in a scenario where the absence starts in a non working period.(where planned working days are 'FREE').For e.g: If absence type is created for 01.01.2009-01.01.2009(not a free day) then IT0019 dosen't appear.but when absence type is created for 04.01.2009-04.01.2009(Sunday-> free day) then IT0019 is triggered
However,the action configuration doesn't have any mention of above scenario.Plz see below the config setting of the dynamic action where UB04 is the absence subtype we maintain.
2001     UB04                 0     *     *DATE REMINDER FOR JURY SERVICE RECLAIM*
2001     UB04          02     5     P     P2001-AWART='UB04'
2001     UB04          02     10     I     DEL,0019,99,,,,/D
2001     UB04          02     15     I     INS,0019,99,,,,/D
2001     UB04          02     20     W     P0019-TMART='99'
2001     UB04          02     25     W     P0019-VTRMN=P2001-BEGDA
2001     UB04          02     30     W     P0019-VTROP='+'
2001     UB04          02     35     W     P0019-VTRAN='5'
2001     UB04          02     40     W     P0019-VTRZH='011'
2001     UB04          04     45     P     P2001-AWART='UB04'
2001     UB04          04     50     I     INS,0019,99,,,,/D
2001     UB04          04     55     W     P0019-TMART='99'
2001     UB04          04     60     W     P0019-VTRMN=P2001-BEGDA
2001     UB04          04     65     W     P0019-VTROP='+'
2001     UB04          04     70     W     P0019-VTRAN='5'
2001     UB04          04     75     W     P0019-VTRZH='011'
2001     UB04          08     80     P     P2001-AWART='UB04'
2001     UB04          08     85     I     DEL,0019,99,,,,/D
Can anybody let me know the possible cause of the problem.
Points assured for help....

Similar Messages

  • Dynamic Actions not firing when using date picker?

    The dynamic actions don't seem to be triggering when selecting a date from the date picker, but trigger just fine when the dates are manually entered. Anyone else have this problem and if so is there a workaround to get it to work from the date picker as well? I am using Application Express 4.0.1.00.03
    And how can I report this problem?

    I'm already using Change.
    If it matters, I have it set to:
    Event: Select
    Selection Type: Item
    Condition: No Condition
    My action type is just an alert right now since all I want to do is to see if I can trigger it (as in you have to walk before you can run).
    Event Scope: Live
    Conditon type: Dynamic Action not Conditional
    Authorization Scheme: No Authorization Required

  • Dynamic Action not triggering on Radio Group change

    I have a form that contains a text item, a radio group item and a display-only item. I have created a single dynamic action "CHANGE SUBJECT" associated with both the text and radio group items that updates the display-only item's value whenever either is changed. The action fires properly when the text item is changed, but not when the radio group is changed. If I set the radio group item's "Page Action when Value Changed" property to "Redirect and Set Value", than everything works, but that is not the desired behavior as that requires a refresh of the entire page. Any suggestions on how to make this action work? Is there a different action for the radio-group that I should be using instead of CHANGE? Thanks for your help.
    -Jeff
    Edited by: jritschel on Sep 1, 2010 2:05 PM

    OK, then change it to JavaScript Expression instead of SQL and put this code in the value :
    "Radio Group Value= "+ $v('P65_RADIO_GROUP')+" - Text Box Value= "+ $x('P65_TEXT').value I tried it and it work!
    Sam
    Update:
    I tried the same code you had before (plsql Expression) but there is something that you need to do to make it work, in the TRUE action setting , there is a "Page Items to Submit" field, you need to put your text item and radio in it as follows:
    Page Items to Submit : P65_RADIO_GROUP,P65_TEXTThis should make your code work in addition to the other way I provided.
    Thanks,
    Sam
    Edited by: Sam_06 on Sep 1, 2010 2:27 PM

  • Custom dynamic action not firing

    Using Apex 4.2.2 on 11g
    I have a standard report A1
    There is a column link on report A1 which refreshes chart C1 using a custom dynamic action.
    The column link on report A1  has the URL set to  javascript:$.event.trigger('RefreshTrend_2', [{key_2:'#COL01#' }]);
    and there is a dynamic action D1 RefreshTrend_2 which sets the value of the chart filter P17_KEY_2 to the value of the javascript variable key_2 and then refreshes chart C1
    The dynamic action is custom with a type DOMObject of document and no condition
    This works fine but when I add another report/chart (report A2, chart C2)  combination with a similar dynamic action (D2), D2 is a copy of D1 with the values for the variables and chart region changed.
    The A2/C2 functionality works fine on its own, D2 gets fired when I click the column link, but not when there are 2 dynamic actions of custom/document on the page.
    This column link on A2 only fires the dynamic action D2 if dynamic action D2 has a higher sequence than D1 (if i move it above D1 in the list it will fire, but then D1 does not fire for the column link on A1
    Am I missing something?
    Thanks
    Kathryn

    Here is my page source from the browser (i put in some blank lines here to separate the 3 dynamic actions)
    <script type="text/javascript">
    apex.da.initDaEventList = function(){
    apex.da.gEventList = [
    {"triggeringElement":"P17_IS_OK","triggeringElementType":"ITEM","triggeringConditionType":"NOT_NULL","bindType":"bind","bindEventType":"change",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"BUTTON",javascriptFunction:apex.da.enable,"action":"NATIVE_ENABLE"},{"eventResult":false,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"BUTTON",javascriptFunction:apex.da.disable,"action":"NATIVE_DISABLE"}]},
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"live","bindDelegateTo":document,"bindEventType":"RefreshTrend_2",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P17_KEY_2",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"3BB4667C9E25BFB8DCF63639507A062A88F713A193C0D30DDF1CEA8D6875A7F9","attribute01":"JAVASCRIPT_EXPRESSION","attribute05":"this.data.key_2","attribute09":"N","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"REGION","affectedRegionId":"R2959102626294614",javascriptFunction:apex.da.refresh,"action":"NATIVE_REFRESH"}]},
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"live","bindDelegateTo":document,"bindEventType":"RefreshTrend_1",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P17_KEY_1",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"51D6B9673F7096076392A95D9D00B417D49DEB96D878B419FC6D1E482D0AB2F0","attribute01":"JAVASCRIPT_EXPRESSION","attribute05":"this.data.key_1","attribute09":"N","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"affectedElementsType":"REGION","affectedRegionId":"R2925517394066336",javascriptFunction:apex.da.refresh,"action":"NATIVE_REFRESH"}]}];
    </script>
    Only the first "document" dynamic action will fire, even though I fire them by name using
    javascript:$.event.trigger('RefreshTrend_1', [{key_1:'#COL01#' }]); from the column link.
    Kathryn

  • Straightforward dynamic action not working properly in 4.1 anymore

    Our application has a page with a great number of checkboxes all using the same LOV ('Y','N'). We defined a simple dynamic action that fires whenever the first checkbox is changed. If its value is set to 'Y' the value of all the other checkboxes is set to 'Y' as well. A false action does the reverse. This worked fine in 4.0. In 4.1 it still fires but instead of the complete list of affected items only the first item of that list has its value set. When we change the action to be fired from 'Set Value' to -for instance- 'Hide' or 'Disable' it works fine again (i.e. affects the entire item list).
    Has anyone an idea what can be the problem here?
    Robert.

    Hi Robert,
    I think you are hitting "4.9 Dynamic Action Set Value with Multiple Affected Elements" documented as change of behavior in the release notes of APEX 4.1 http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21672/toc.htm#CACFHAFB By coincident Mark Lancaster also blogged about it a few days ago. http://oracleinsights.blogspot.com/2011/09/dynamic-actions-changed-behavior-in.html
    BTW, if you have so many Y/N checkboxes, you might want to have a look at our "Simple Checkbox" item type plug-in at http://apex.oracle.com/plugins
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Theme 11, live scope for dynamic action not working in IE

    Hello all,
    I use theme 11, and I have a dynamic action on page 0 that fixes a region width, because it is too long to match the page width. I set the Event Scope to "live" because the region is a report and it has many rows and pagination is needed. When I have to go to page 16-30 from 1-15 and if there is a record which is longer than the current 15, page is partially refreshed and the width is changed, but that works for Mozilla and Chrome. In IE the dynamic action from page 0 is not triggered, in spite of the live event scope and I don't know why. Is there a way I can fix that problem?
    Thanks in advance!

    Hi Ivan,
    Thanks for the information, this is indeed an interesting case. I'm assuming you have 'Enable Partial Page Refresh' in the report attributes set to 'Yes'. Please let me know if this is not the case.
    I don't think an event of 'Page Load' with a scope of 'live' is correct. The 'live' event is a way of saying, attach some behaviour to something on a page (eg a delete icon in a report row is clicked), and keep that behaviour 'alive' even if that part of the page is updated (eg the report paginates with PPR to the next set or results, and clicking on the delete icon in the report still works). However here, when the event is page load, I don't think specifying 'live' will do what you want.
    What I think you're really interested in is indeed when the page first loads, but then when the report is refreshed via PPR. Therefore, I would try the following:
    1) Change the dynamic action event to 'After Refresh'.
    2) Select the report region from the 'When > Selection' attributes (ensuring your report template contains a id="REGION_STATIC_ID" attribute, otherwise the DA won't work).
    3) In your 'Actions', ensure the 'Fire on Page Load' checkbox is checked.
    So this says do the action when the page loads, then always after the report is refreshed via PPR. This will fire after pagination, sorting or a dynamic action refresh.
    Interestingly (at least in my mind!), you can actually set the event scope back to 'bind' here. This is because as part of the DA framework, we purposefully attach the event handlers for report handling to an element that is not updated during PPR for pagination or sorting, it's higher up in the DOM tree. This gives slightly better performance than having to use 'live', which is more expensive computationally and yet still keeps the registered behaviours.
    Also something else which may help, you can check if the DA is firing when expected by using a JavaScript console (eg in Chrome native Developer tools, Firebug with Firefox), with application debugging enabled (Application Properties) and switched on (via developer toolbar). Load the JS console, and you'll be able to see when the DA fires.
    As far as the actual IE specific logic goes, I haven't looked into that too much yet, because I felt it was more important to get the DA firing correctly first, then see where we're at.
    Regards,
    Anthony.
    Edited by: Anthony Rayner on Nov 14, 2011 11:06 PM

  • Dynamic Action not being triggered in Batch

    Hi Gurus,
    We have the below Dynamic Action that is not getting triggered when we run a Batch to Create IT2010. We are using TCode PTE1 to create the batch.
    2010                   4     5     P     T001P-MOLGA='10'
    2010                   4     10     P     PSPAR-TCLAS='A'
    2010                   4     12     P     P2010-LGART='4023'
    2010                   4     15     I     INS,2001,,,(P2010-BEGDA),(P2010-ENDDA)/D
    2010                   4     20           **P2001-AWART='0100'
    2010                   4     21     W     P2001-AWART='1300'
    2010                   4     25     W     P2001-STDAZ=P2010-ANZHL
    I have read a few posts on how this can be done, but not very clear as to whether it can even be achieved.
    This Dynamic Action works fine when we manually Create an IT2010 record via PA30, it creates the IT2001 in the background.
    Cheers,
    Anil

    Hello Anil,
    Please check the following note, I think note should be helpful in this case.
    386027   Dynamic actions
    1564499  Processing initial values which are not valid in
    Best Regards,
    Deepak.

  • Quick Picks and Dynamic Actions not working

    I have a page item that includes Quick Pick values. This item also includes a dynamic action to update another item when triggered by a change event. The problem is, quick picks do not trigger change events. Has anyone else seen this and come up with a solution? Thanks.

    Hi,
    the JavaScript code generated for the Quick Picks is using $s which triggers the change event for the target page item.
    I just tried that out and it worked fine for me.
    1) I have defined a text field with a few quick pick values.
    2) Declared a dynamic action which fires on "Change". No condition set
    3) The action is defined as "Alert"
    The alert always shows when I pick a value with a quick pick.
    Can you put an example on apex.oracle.com so that I can have a look.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Dynamic actions not working

    Hi Experts
    I have this requirement to copy permanent addr to mailing addr. in IT 0006.
    I have made the following entries to Dynamic Actions:
    0006 5 06 1 p T001P-MOLGA='13'
    0006 5 06 2 p P0006-STRAS = ' ' /X
    0006 5 06 3 p P0006-ORT01 = ' ' /X
    0006 5 06 4 p P0006-PSTLZ = ' '
    0006 5 06 5 p P0006-ANSSA='1'
    0006 5 06 6 I COP,0006,1,,(P0006-STRAS),(P0006-LOCAT), (P0006-ORT01), (P0006-PSTLZ)/D
    0006 5 06 7W P0006-ANSSA='5'
    0006 5 06 8 I INS,0006,5,,(P0006-STRAS),(P0006-LOCAT),(P0006-ORT01),(P0006-PSTLZ)/D
    I was hoping that the Permanent address will get copied into the Mailing address.
    this has not happened. when i create/change a permanent addr. and come out of that session and then again next time go for subtype 5, I do not see the fields copied.
    kindly help.
    regards

    Hi Amit,
    thanks for your help.
    Its just that we have not tested the changes i made to the dynamic actions.
    currently it is:
    0006 1  06 1 p T001P-MOLGA='13'
    0006 1  06 2 p PSPAR-TCLAS='A'
    0006 1  06 3 p P0006-ANSSA='1'
    0006 1  06 4 i COP,0006,1,,(P0006-BEGDA),(P0006-ENDDA)/S   -
    > /S makes it appear when you are creating the record.
    0006 1  06 5 w P0006-ANSSA='5'
    this gave good results in dev but then there is a background activity that creates IT50 as well with all this and the PERNR is not getting copied there.
    will have more info next week and shall update you.
    your response has helped me a lot hence the points for you
    thanks again.
    Regards
    AJ

  • Dynamic action not working

    Hello All,
    I have created a dynamic action for cascading select list.
    I have a select list(List_1) item and and a tabular form containing a select list(List_2), this tabular form List_2 is dependent on List_1.
    So I have created a dynamic action on change of List_1, this is the code I used
    var l_Return = null;
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
                  'APPLICATION_PROCESS=SELECT_DRUG_QUANTITY',0);
    var treat_id = document.getElementById('P533_TREATMENT').value;
    //alert(treat_id);
    get.add('TABU_CASCADING_ITEM',treat_id);
    gReturn = get.get('XML');
    var l_Count1 = gReturn.getElementsByTagName("qntity").length;
    var l_Select = html_GetElement('f30_1');
    l_Select.length = 0;
    for(var i=0;i<l_Count1;i++){
      l_Opt_Xml = gReturn.getElementsByTagName("qntity");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue);
    If you can see there is a alert in between, if I enable it cascading list is working but when I comment that alert it is not working.
    As I can see we don't have "Page Item to Submit" for Execute javascript Action.
    Please let me know where I am going wrong.
    Thanks
    Tauceef                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello Tauceef,
    I am having similar issue.. see following thread.
    Report refresh, Strange behaviour
    The DIRTY work-around I have used is to put some delay using setTimeout function.
    Try to put following code in other JS function and schedule it to run after 30 secs.
    var l_Count1 = gReturn.getElementsByTagName("qntity").length;
    var l_Select = html_GetElement('f30_1');
    l_Select.length = 0;
    for(var i=0;i<l_Count1;i++){
      l_Opt_Xml = gReturn.getElementsByTagName("qntity");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue);
    Regards,
    Hari

  • IChat audio/video not working in a particular scenario.

    Three differnt people with 3 different setups trying to do an audio chat:
    John: MacBook(2.0Ghz, Leopard), connected via AirportExpress, using an AIM account
    Anne: MacBook(2.4Ghz, Snow Leopard), connected via a 3G USB Modem, using a .Mac account
    Mark: iMac(2.0 Ghz C2D, Tiger), connected via AirportExtreme, using an AIM account
    John can voice and video chat with both Anne and Mark, no problem. But Anne and Mark constantly get the Error-8. (But strangely Anne and Mark can share files via iChat just fine.)
    If it was a firewall issue, wouldn't one of the three be excluded from any voice/video chat completely ? Im starting to wonder if it's the NAT/PMP issue as well, cause it doesn't seem to be an issue when connecting to the other person.
    I have scoured the web looking for a solution but to no avail.
    This is a snippet from the error log:
    Video Conference Error Report:
    11.657163 @/SourceCache/VideoConference/VideoConference-415.13/SIP/SIP.c:2917 type=4 (900A0015/0)
    SIPConnectIPPort failed
    13.658210 @/SourceCache/VideoConference/VideoConference-415.13/SIP/SIP.c:2917 type=4 (900A0015/0)
    SIPConnectIPPort failed
    Cheers

    Hi,
    Re 1)
    iChat makes a Connection that is Peer-to-Peer when doing Audio Only and Video chats.
    To do this it uses a method of going through NAT Devices (Network Address Translation)
    NAT Is not a standard. It is a vague description of things that happen in most domestic routers to share one IP between many computers and other devices.
    There are about 4 main ways of doing it See Here
    Realistically iChat can be Fussy as to how NAT is done. (Some methods don't seem to "Play Nicely" together)
    So you can get what looks like intermittent symptoms.
    Re 2)
    I am on a Leopard booted computer and my AIRPORT UTILITY is version 5.5.1
    I don't have an Airport Base Station so posting a pic is useless at this point.
    The older firmware I am thing of popped up a very small Window asking for the Password before giving you the main window.
    The version I have lists the different Base Station it can find down the left with a manual Configure Button and a first time set up button on the right (I forget the name).
    It sounds like he has something closer to my version.
    The Port Mapping Protocol may be "Greyed Out" if the Device is NOT "Sharing an IP" on the main Internet icon/pane. (On the current version I believe the NAT tab disappears if this is the case).
    Re the Zyxel.
    Not particularly iChat Friendly as a range.
    There is something about them logging in to AIM on Port 5190 on the TCP Protocol and iChat send files on port 5190 on UDP that these modems don't like (Dual use of the same port)
    This may be related to Port Forwarding.
    With setting up Port Forwarding you point one port to one IP (Computer) (multiple ports one at a time for iChat)
    This means that other computers cannot then use those ports (ports Cannot Be Forwarded Twice).
    Not all devices specify Protocols to do this but the Zyxels do seem have an issue with and for some reason this crosses over into A/V Chats.
    SOLUTION
    In iChat go to the Preferences > Accounts > Server Settings tab when Logged out.
    Change th Login port from 5190 to 443
    This port is memorable as it is below the 1024 threshold in most domestic devices (all ports below this are Open to everyone) and is used by Web Browser for Secure sites (such as Banks and the Sign-in here to post).
    It is also used by some mail servers.
    The Modem most likely routes.
    This means two things.
    1) the Airport Base Station should NOT - Set it to Bridge (Off) Mode in the drop down at the bottom of the Internet pane (Port Mapping will not be needed then either).
    2) the ports need to be allowed in the Modem.
    See this page
    This is the instructions to access a P660R-HW T1v2 I am not sure what the difference the HW means
    Do the pics look like his set up pages ?
    Most likely he will have to Look for UPnP - Try the Advanced menu item.
    He will not need the Port Forwarding if he Enables UPnP.
    He may have set up pages that look more like these pics EQ 660 R
    Here you can plainly see UPnP in the middle menu 9At the bottom)
    Summary
    Change port for Login in iChat
    Set Base Station to Not Route.
    Enable UPnP in Zyxel modem. (DO NOT use Port Forwarding despite the Links (they are just for the Pics and Instruction on how to access the device).
    If he cannot find UPnP come back to us.
    He may have to set Port Forwarding if it is only one computer.
    As he is on Tiger he cannot do iChat Screen Sharing so that will not be so much of an issue.
    8:36 PM Friday; April 30, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • IT0071 Dynamic Action does not overwrite Pension Scheme Calculation Rule

    I am trying to write a dynamic action to create IT0071 with default values for the Employee contribution (0%) and Employer contribution (4%). However when IT0071 is created the default values from the associated Pension Scheme Calculation Rule (4% and 8%) are not being overwritten by the dynamic action. Is there a way to get the dynamic action to override the Pension Scheme Calculation Rule values?
    This is the dynamic action u2026
    0171              BENGR     06     10     P     T001P-MOLGA='08'
    0171              BENGR     06     15     P     PSPAR-MASSN='01'/X
    0171              BENGR     06     20     P     PSPAR-MASSN='12'/X
    0171              BENGR     06     25     P     P0171-BENGR<>NOBN
    0171              BENGR     06     30     P     P0171-BSTAT<>NOBN
    0171              BENGR     06     300     I     INS,0071,SS7,,(P0171-BEGDA),(P0171-ENDDA)
    0171              BENGR     06     315     W     P0071-PCTEE='0.0000'
    0171              BENGR     06     320     W     P0071-PCTER='4.0000'
    Any help much appreciated.
    Regards,
    Janet

    Hi Brian,
                  In standard SAP physical sample planning requires sample drawing procedure.
    Link: [http://help.sap.com/erp2005_ehp_05/helpdata/EN/2d/3521b6448c11d189420000e829fbbd/frameset.htm]
                  And drawing procedure is advised with partial sample numbers.
    Link: [http://help.sap.com/erp2005_ehp_05/helpdata/EN/2d/3521b6448c11d189420000e829fbbd/frameset.htm]
                 Generally when we use partial sample numbers, we also use a drawing procedure. And in that scenario SAP describes the calculation as shown in
    Link: [http://help.sap.com/erp2005_ehp_05/helpdata/EN/2d/3521b6448c11d189420000e829fbbd/frameset.htm]
                 What you have done (partial samples for MICs and not having for others, all without drawing procedure) is not generally done. I think our observations in this context should be confirmed only if we try more of such examples.
    Regards
    Sm.

  • Info group being not called while using Dynamic Actions

    Hi,
    I am facing a scenario that, while we execute some action from PA40 like termination, then it will call my subroutine for dynamic actions which will be calculating the last day worked and updating the same in Info Type 0041.
    For updating the IT 0041, i am using the function module HR_MAINTAIN_MASTERDATA. and IT0041 is getting updated properly. But now the problem is coming that when the control comes out of subroutine, it is going back to the PA40 Screen and not to the next screen of the Info group.
    What can be the cause for the same.
    RND I have done on my part: I have commented/uncommented the return parametre RP50D-Date1, commented/uncomented the use of function modules to lock and Unlock the pernr.
    Please give ur comments.
    Thanks in Advance.

    Hi Nisha,
    Not sure if I have understood correctly, but if you just wanted to calculate leaving date and write the same date in IT0041 then you don't need a function module:
    1. Create a small program, as follows:
    REPORT  ZHR_PY_R0008                           .
    INCLUDE MPPDAT00.
    TYPE-POOLS HRQTA.
    TABLES: P0000,
            RP50D,
            T001P.
    ROUTINE CALLED BY TABLE T588Z
    FORM CHANGE_DATE.
      RP50D-DATE1 = P0000-BEGDA - 1 .
    ENDFORM.                    " CHANGE_DATE
    This program will give you the last working day written to RP50D-DATE1
    2. Simply enter the following lines into table T588Z:
    0000 04 499*- LEAVING ACTION - Populate Infotypes with leave date -*
    0000 04 500 P T001P-MOLGA='08'
    0000 04 501 P PSPAR-TCLAS='A'
    0000 04 502 P PSPAR-MASSN='*'/X   (* equals your leaving action types)
    0000 04 503 P PSPAR-MASSN='*'/X   (* equals your leaving action types)
    0000 04 504 F CHANGE_DATE(ZHR_PY_R0008)
    0000 04 505 ******** INF.0041  ********
    0000 04 506 I COP,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D
    0000 04 507 W P0041-DAR07='*'   (* equals your date type)
    0000 04 508 W P0041-DAT07=RP50D-DATE1
    or if you are simply looking to delimit IT0041 with the leave date then replace lines 506-508 with:
    0000 04 506 I MOD,0041,,,(RP50D-DATE1),(RP50D-DATE1)/D
    0000 04 507W     P0041-ENDDA=RP50D-DATE1
    This will solve your problem : - )

  • Smartform of a particular employee with dynamic actions

    Hi All,
    I am making an HR smartform - pulling data from infotypes  - so I am using logical database pnp. Now Everytime I enter the personal number in the PNP screen, it gives me form with correct data of respective employee.
    I want to club this smart form's driver program to a dynamic action, so the personal number would ne chosen dynamically. For that I believe we have to choose HR report category from program attributes of driver program as '0000003'.
    If I  do that and hardcode the employee number it do not takes it but it starts printing smartforms of all the employees - even if I keep the report category as 0000001, it asks for a personal number at runtime,n do not takes hardcoded value - The getpernr statment is not fetching up the data for that particular employee but it pulls data for all employees.
    Please suggest how could I use the hard coded value of pernr to get the resp3ective data in the smartform. Do I have to create another report category - a new one? if so how?
    If u have any sample code? Please share it.
    Thanks
    Ribhu

    Hi Suresh, I was just testing it by hardcoding, wheather it takes the pernr from places other than input box of the report category. Right.
    Below is the code. If you want to know anything else, Please let me know.
    Thanks
    Ribhu
    Here is the code:
    REPORT  ZHRtest.
    tables : q0008, pa0001, pa0000, pa0002, pa0014, pa0021, pa0022, pa0008, pa0006, pernr, t500p,t530, t512t, t510, t526, t529t, t528t,
             M_PLOMC, T7INA3, T7INB5, T7INB7, T518B.
    infotypes : 0000, 0001, 0002, 0014, 0021, 0022, 0008, 0006, 0105, 9003.
    data : E_DATE   TYPE SY-DATUM, " Date
           E_ORGUNIT TYPE ORGEH, " Organizational Unit
           E_PERSNO     TYPE P_PERNR, " Personnel Number
    DATA : WS_UCOMM LIKE SY-UCOMM.
    data: begin of pers_tab occurs 0,
    E_SLAB1MIN     TYPE     PIN_MINBS,
    E_SLAB1MAX     TYPE     PIN_MAXBS,
    E_SLAB1INCR     TYPE     PIN_AMINC,
    E_SLAB2MIN     TYPE     PIN_MINBS,
    E_SLAB2MAX     TYPE     PIN_MAXBS,
    E_SLAB2INCR     TYPE     PIN_AMINC,
    end of pers_tab.
    DATA: BEGIN OF WAGETYPES,
    E_LGA LIKE P0008-LGA01,
    E_BET LIKE P0008-BET01,
    E_pernr like pernr-pernr,
    END OF WAGETYPES.
    data : E_lga like pa0008-lga01,
           E_bet like pa0008-bet01.
    data: count type i.
    data : v_year(4) type c,
    v_mon(2) type c,
    v_date like sy-datum,
    v_date1 like sy-datum.
    data : v_formname type tdsfname ,
           v_fmname type rs38l_fnam.
    data: i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
    DATA : WAGETYPES1 LIKE BAPIP0008P OCCURS 0 WITH HEADER LINE.
    data: begin of temp_tab occurs 0 ,
    t_minbs type PIN_MINBS,
    t_maxbs type PIN_MAXBS,
    t_aminc type PIN_AMINC,
    end of temp_tab.
    data: hr_pernr like p0000-pernr, " persno of hr emp
    plans_hr like p0001-plans . " position text.
    constants : c_x type c value 'X', " Sign
    c_pernr(8) type n value '00000000', " Pernr
    c_val1(2) type c value '31', " Date Type
    c_val2(2) type c value '12', " Date Type
    c_val like p0041-dar01 value '01', " Date Type
    c_1 like pernr-persg value '1', " Emp Group
    c_type like hrp1001-otype value ' ', " Object Type
    c_date1 like sy-datum value '18000101', " Date
    c_date2 like sy-datum value '99991231', " Date
    r_all value 'X'.
    selection-screen begin of block b2 with frame title text-001.
    selection-screen begin of line.
    parameter pdf radiobutton group smf.
    selection-screen comment 5(20) text-002.
    parameter prn radiobutton group smf.
    selection-screen comment 40(20) text-003.
    selection-screen end of line.
    selection-screen skip 3.
    selection-screen begin of line.
    selection-screen comment 3(30) text-007.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 5(30) text-004.
    parameter p1 radiobutton group pg.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 5(30) text-005.
    parameter p2 radiobutton group pg.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 5(30) text-006.
    parameter p3 radiobutton group pg.
    selection-screen end of line.
    Selection-screen end of block b2.
    ws_ucomm = sy-ucomm.
    *CLEAR PERNR.
    *CLEAR PNPPERNR.
    At selection-screen.
      perform validate_screen.
    start-of-selection.
      perform get_period.
    PERNR-PERNR = 27.<b> <<<<< ----- this is where i tried to hard code</b>
    PNPPERNR-LOW = 27.
      get pernr .
    LOOP AT PERNR.
    *IF PNPPERNR-LOW NE PERNR-PERNR.
    *CLEAR PERNR.
    *ELSE. EXIT.
    *ENDIF.
    *ENDLOOP.
    **PNPPERNR-HIGH = ''.
    E_PERSNO = PNPPERNR-LOW.
      rp_provide_from_last p0000 space pnpbegda pnpendda.
      rp_provide_from_last p0002 space pnpbegda pnpendda .
      rp_provide_from_last p0021 space pnpbegda pnpendda.
      rp_provide_from_last p0022 space pnpbegda pnpendda.
      rp_provide_from_last p9003 space pnpbegda pnpendda.
      describe table p0008 lines count.
      describe table p0001 lines count.
      PERFORM FORM_SELECTION changing P1 P2 P3."<----
    To get the fathers name.
      select FAVOR FANAM from pa0021 into corresponding fields of p0021 where pernr = E_PERSNO and FAMSA = '11'.
        if sy-subrc = 0.
          E_FIRSTNAME = P0021-FAVOR.
          E_LASTNAME = P0021-FANAM.
        endif.
      endselect.
    FORM validate_screen .
    CLEAR PERNR. <b><<<<< ----- this is where i tried to hard code</b>
    PERNR-PERNR = '00000027'.
    PNPPERNR = '00000027'.
    **PNPPERNR-HIGH = ''.
      E_PERSNO = pnppernr-low.
      p9003-pernr = 27.
    *E_PERSNO = p9003-pernr.
    pnppernr-low = E_PERSNO.
    clear sy-index.
    loop at pnppernr.
    endloop.
    if sy-index GT 1.
       message 'Enter only one personal number' type 'E'.
    endif.
    if pnppernr-low is initial.
    PNPPERNR-LOW = '27'.
    message 'enter a personal number' type 'E'.
    endif.
    ENDFORM.                    " validate_screen

  • Multiple Select List does not Refresh with Dynamic Action

    All,
    Scenario:
    Using APEX 4.2.2, I have a Select List page item (P4_SPONSOR) set to allow multiple values which has a dynamic LOV to populate the list.  What I would like to do is highlight the display values based on another page item's value (P4_DRIVER_ID).  When I set the source of P4_SPONSOR to static text, such as a delimited string of 1:2:3:4, any display values where the return values are equal to the static text are highlighted when the page loads.
    Problem:
    The problem lies in trying to use a query as a source for P4_SPONSOR which is filtered based on the other page item, P4_DRIVER_ID.  For instance, my SQL Query (returning colon separated values) returns the same as the static text noted above.  In the query's WHERE clause, I specify that the driver's ID is equal to P4_DRIVER_ID:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    This, as I understand it, would necessitate a refresh of P4_SPONSOR whenever the value of P4_DRIVER_ID changes.  So, I have a Dynamic Action that does just that.  When executed on the page, I can see the P4_SPONSOR multiple select list actually refresh, but none of the display values become highlighted.
    Thoughts?
    Thanks,
    -Seth.

    Seth,
    A dynamic action refresh of your select list will refresh the list of values (this is what you are seeing), it will not refresh the value of the item itself.  In fact, it will remove any values that you had already selected.  To refresh the value you will need to add additional dynamic actions.
    Create another dynamic action with:
    Event: After Refresh
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    If this was a normal select list you could just create a Set Value action and use your query to set the value of the select list.  Since this is a multiple select list your will need to get your colon delimited value first and then use some javascript to set the values of your select list.
    Create an hidden page item name P4_SPONSOR_TEMP.
    Add a true action to your new dynamic action:
    Action: Set Value
    Set Type: SQL Statement
    SQL Statement:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    Page Items to Submit: P4_DRIVER_ID
    Selection Type: Item(s)
    Item(s): P4_SPONSOR_TEMP
    Add another true action to your new dynamic action:
    Action: Set Value
    Set Type: JavaScript Expression
    JavaScript Expression:
    $("#P4_SPONSOR_TEMP").val().split(":")
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    --Jeff

Maybe you are looking for