Retest Panel - Call by Post Actions

Hi
I am hoping to get some advice about adding retest functionality to our existing test sequences. What I am trying to do is when a step fails I want to jumps to the retest step which calls the retest.vi (contains debug info and report printing functionality). Once the retest vi has executed I want to either jump back to the failed step (retest) or continue with the sequence (next step). The difficulty am having is I wish to use the retest step when any of the step fails therefore the Post action "goto step X" must be dynamic based on the step that failed.  
I was wondering if anyone knows of a method of storing current step index to a variable, then using the step index after the retest has been executed to select which step to jump back to?
Any help would be great
Dave

Had success after lunch, used RunState.Step.Name to get the name of the failed step and RunState.NextStep.Name to get the name of the step that should be excuted next. Both of the names are then saved to local varibles. On failure i call then call the retest step (Post Action - goto).  After the retest step has executed i use the local varibles to determine which step to jump back to (Post action > Goto step > Specify By Expression).
Dave

Similar Messages

  • Post Actions: Called Sequence not reporting

    I am using TestStand 2.0. I have a step (that is forced to fail) that has the "Post Actions" set to "On Fail:" "Call Sequence". Unfortunately the steps in the called sequence are not showing up in the test report. I can verify that the called sequence is running by stepping through the steps. Also if I call the called sequence from a "SequenceCall" step then its steps do show up in the report. How do I get the steps of a sequence that is called via "'Post Actions' set to 'On Fail:' 'Call Sequence'" to show up in the test report?

    Kevin -
    See attached sequences with appropriate changes to include PostAction for the TestStand 2.0 sequences. You should be able to diff these with the original 2.0 sequences to see the changes.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments
    Attachments:
    reportgen_txt.seq ‏95 KB
    reportgen_html.seq ‏110 KB

  • Getting error while using HTTP connector and calling POST action to a Web API which is deployed as website on Azure

    I have create Logic App under Azure App Services, I am getting
    error while using HTTP connector and calling POST action to a Web API which is deployed as website on Azure.
    Following are the screen shots:
    Login App Connector Diagram:
    hema

    Marking as answered since no response on request for more information - assuming that you found what was wrong in the inputs. Let us know if you're still having trouble.
    http://twitter.com/joshtwist

  • "Continue" post action

    I have a step in a For loop whose post-action I want to Continue (i.e., jump to the End step of the For block and continue looping [as in the "Continue" step type]) or to Break (i.e., break out of the loop by jumping to the End step and then executing the next step [as in the "Break" step type, not as in breaking execution]).  Is this possible?
    I tried to put a Continue or a Break step in a subsequence that gets called as a post-action, but that doesn't work because the behavior of the Continue and Break step types is scoped to the sequence in which they reside.  Is there any other way to do this?  To achieve the behavior of a Continue step, I can have a post-action destination of the End step (I can't think of anything equivalent to achieve the behavior of a Break step), but the steps I am trying to configure will be predefined as templates that are dynamically built into a sequence, and the end destination will not be known at edit time.

    I agree with Doug that the best way to do this is probably with two steps. I set up a For loop with a Sequence Call step and a Break step directly after it. For the Sequence Call, I have the post actions set so that if the subsequence passes, it jumps to the step after the Break, so the loop can continue. If the subsequence fails, it goes to the next step (Break step) and exits the loop.
    This isn't as simple as having everything in one step, but it does seem to work for me at least. If you'd like to see this function added to the API, please feel free to post it as an idea on the TestStand Idea Exchange so that it can be considered for future versions of TestStand.
    I hope that helps, and let us know if you have any further questions about it!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Pass parameters with Step-Post Actions-'C​all Sequence' option

    I have a sub-sequence which accepts a single parameter.
    Ideally I would like to call this sub-sequence from several Steps, using their Post Actions property , using a Custom Condition Expression and the On Condition False: Call Sequence option.
    The Call Sequence option, when selected, offers a list of sub-sequences including the one which I wish to execute, if the conditions are correct, but I see no way of passing an argument to the sub-sequence's parameter.
    Is there a simple way of passing the parameter ?
    Is there a syntax I could apply to the sub-sequence selected string ? 

    From the TestStand Help:
    Call sequence—TestStand calls a sequence before continuing to the next step. You can select any sequence in the sequence file. TestStand does not pass any arguments to the sequence. If the sequence has parameters, TestStand uses their default values.
    So I don't think this particular method is going to work for you.  However, there are lots of ways to do this, here are a few I can think of off the top of my head (I'm sure there are more, and possibly better ones):
    1.  Just insert a sequence call after every applicable step with an apropriate pre-condition.  This is the easiest method, but kind of messy and requires repeating the call everywhere.
    2.  Change the parameter to a sequence file global... ylch, I hate globals... Terrible programming practice, but it's easy .
    3.  Override the SequenceFilePostStep Engine Callback and put a sequence call with an appropriate pre-condition in there.  This keeps you from having to repeat the code, but it will check the condition after every step executes, not just the ones you are interested in, so you may need some additional conditions.
    4.  Define a custom step type for these steps and use a substep to call the sequence.
    Hope that helps,
    Ryan K.

  • Post action execution

    In post action of a pass/fail step, how can I go to a step in another sequence file?

    To hss -
    A post action can only call a sequence in the existing file and it cannot pass parameters either.
    To call into a different sequence file, you must use a separate Sequence Call step that uses a precondition that references the pass/fail status of the previous step.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • JSF seems to not call a simple action method

    I have a situation where it seems JSF is not performing one of it's basic functions--calling an action method in a backing bean based on a simple JSF EL expression.
    Here's the relevant part of my JSP (the h:subview tags are there because another JSP includes this one):
    -- my.jsp: ------------------------------------------------------------
    <%@ page language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:subview id="work-area">
    <h:form id="peers-work">
         <h:commandButton id="edit" value="Edit"     action="#{peerBean.edit}" styleClass="actionButton" />
    </h:form>
    </f:subview>
    --------------------------------------------------------------My faces-config.xml defines the "peerBean" as follows:
    -- faces-config.xml: ------------------------------------------------------------
    <faces-config>
      <managed-bean>
        <description>Session bean for performing Peer operations.</description>
        <managed-bean-name>peerBean</managed-bean-name>
        <managed-bean-class>com.myApp.PeerBean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
      <navigation-rule>
        <from-view-id>/my.jsp</from-view-id>
        <navigation-case>
          <from-outcome>success</from-outcome>
          <to-view-id>/editPeer.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>fail</from-outcome>
            <to-view-id>/error.jsp</to-view-id>
          </navigation-case>
        </navigation-rule>
    </faces-config>
    --------------------------------------------------------------And here's the action method in PeerBean:
    -- PeerBean.java ----------------------------------------
    public class PeerBean extends BaseBean implements Serializable {
        public PeerBean() {
        public String edit() {
            logger.debug("in edit().");
            Peer peer = this.getPeer(this.getId() );
            String outcome = "success"; // optimism!
            if (peer == null) {
                outcome = "fail";
            } else {
                this.setId(peer.getId() );
                this.setName(peer.getName() );
                this.setDescription(peer.getDescription() );
            return outcome;
    --------------------------------------------------------------It compiles and runs fine, but when I click on the "Edit" button in my.jsp, the page submits but never enters the "edit" method (based on the fact that the logger call in the method does not write anything to the log.), and it simply re-displays my.jsp (even though it should go to the "success" or "fail" page, according to the navigation rules). I see a bunch of debug messages in the logs from the code that loads the page, but no indication that the edit method is touched. There are no stack traces or errors reported in any of the logs that Tomcat creates for this application.
    Elsewhere in my application, I am able to use commandButton elements to trigger backing bean actions just like I'm trying to do above, and in other places it works fine. I don't know why the above case does not work.
    Also, is there a way to put JSF in a debug mode that shows info such as the navigation outcome processing, JSF EL processing, etc.?
    Any help would be appreciated!
    Thanks,
    Scott

    I see. Thanks for the response.
    I already have message and messages tag in the JSF, but no error message is displayed. Also, there is no error message in the tomcat log.
    I actually found your tutorial ( http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html ) yesterday, so when I saw your response, your name looked familiar but I did not immediately remember why. I Will be going through the tutorial now.
    My application goes as far as the INVOKE APPLICATION phase, but never enters/executes the action method, can anyone please suggest any reason that could be the cause.
    Please see code below:
    JSF - status.jsp
    ============
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <f:loadBundle basename="com.fujimitsu.moneytransfer.resources.UIResources" var="bundle"/>
    <html>
        <f:view>
        <head>
            <title><h:outputText value="#{bundle.registerStatus}"/> </title>
             <link href="../css/stylesheet.css" rel="stylesheet" type="text/css"/>
        </head>
            <body>
                <f:verbatim><p>JavaServer Faces Page</p>
                <p>
                     </p><table border="0" cellpadding="0" cellspacing="0" width="800">
                          <tr>
                               <td>
                                    <h:graphicImage url="/images/resources.jpg" alt="#{bundle.img_alt_info}"/>
                               </td>
                          </tr>
                          <tr>
                               <td>
                                    <h:messages globalOnly="false" styleClass="validationMessage" layout="table"/>
                                    <p>
                                         <h:form id="statusManagedBeanForm">
                                              <h:panelGrid columns="3">
                                                   <h:outputText value="#{bundle['statusField.status']}"/>
                                                   <h:inputText id="status" value="#{statusManagedBean.status}"/>
                                                   <h:message for="status" styleClass="validationMessage"/>
                                                   <h:outputText value="#{bundle['statusDescField.statusDesc']}"/>
                                                   <h:inputText id="statusDesc" value="#{statusManagedBean.statusDesc}"/>
                                                   <h:message for="statusDesc" styleClass="validationMessage"/>
                                                   <h:outputText value="Created By:"/>
                                                   <h:inputText id="createdBy" binding="#{statusManagedBean.createdBy}"/>
                                                   <h:message for="createdBy" styleClass="validationMessage"/>
                                              </h:panelGrid>
                                              <h:commandButton action="#{statusManagedBean.createStatusAction}" type="submit" value="Submit"/>
                                         </h:form>
                                    </p>
                               </td>
                          </tr>
                     </table>
                </f:verbatim>
            </body>
        </f:view>
    </html>
    HTML code of status.jsp before the submit button is clicked
    ===========================================
    <form id="statusManagedBeanForm" name="statusManagedBeanForm" method="post" action="/moneytransferFaces/pages/status.jsf" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="statusManagedBeanForm" value="statusManagedBeanForm" />
    <table>
    <tbody>
    <tr>
    <td>Status</td>
    <td><input id="statusManagedBeanForm:status" type="text" name="statusManagedBeanForm:status" /></td>
    <td></td>
    </tr>
    <tr>
    <td>Status Desc</td>
    <td><input id="statusManagedBeanForm:statusDesc" type="text" name="statusManagedBeanForm:statusDesc" /></td>
    <td></td>
    </tr>
    <tr>
    <td>Created By:</td>
    <td><input id="statusManagedBeanForm:createdBy" type="text" name="statusManagedBeanForm:createdBy" /></td>
    <td></td>
    </tr>
    </tbody>
    </table>
    <input type="submit" name="statusManagedBeanForm:j_id_jsp_948632549_16" value="Submit" /><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id4:j_id5" />
    </form>
    HTML code of status.jsp after the submit button is clicked
    ==========================================   
    Please note:   action="/moneytransferFaces/pages/status.jsf"   ,  is this what it is supposed to be?
    <form id="statusManagedBeanForm" name="statusManagedBeanForm" method="post" action="/moneytransferFaces/pages/status.jsf" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="statusManagedBeanForm" value="statusManagedBeanForm" />
    <table>
    <tbody>
    <tr>
    <td>Status</td>
    <td><input id="statusManagedBeanForm:status" type="text" name="statusManagedBeanForm:status" /></td>
    <td></td>
    </tr>
    <tr>
    <td>Status Desc</td>
    <td><input id="statusManagedBeanForm:statusDesc" type="text" name="statusManagedBeanForm:statusDesc" /></td>
    <td></td>
    </tr>
    <tr>
    <td>Created By:</td>
    <td><input id="statusManagedBeanForm:createdBy" type="text" name="statusManagedBeanForm:createdBy" /></td>
    <td></td>
    </tr>
    </tbody>
    </table>
    <input type="submit" name="statusManagedBeanForm:j_id_jsp_948632549_16" value="Submit" /><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id1:j_id3" />
    </form>
    STATUS BEAN
    ===========
    package com.fujimitsu.moneytransfer.beans;
    import javax.faces.component.html.HtmlInputText;
    public class Status {
         private String status;
         private String statusDesc;
         private HtmlInputText createdBy;
         public Status() {
         public HtmlInputText getCreatedBy() {
              return createdBy;
         public void setCreatedBy(HtmlInputText createdBy) {
              this.createdBy = createdBy;
         public String getStatus() {
              return status;
         public void setStatus(String status) {
              this.status = status;
         public String getStatusDesc() {
              return statusDesc;
         public void setStatusDesc(String statusDesc) {
              this.statusDesc = statusDesc;
         public String createStatusAction() {
              this.setStatusDesc("testing createStatusAction()...");
              return "success";
    FACES CONFIG
    ============
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
         Copyright 2003 Sun Microsystems, Inc. All rights reserved.
         SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    -->
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
         <application>
              <locale-config>
                   <default-locale>en</default-locale>
              </locale-config>
         </application>
         <managed-bean>
              <managed-bean-name>statusManagedBean</managed-bean-name>
              <managed-bean-class>
                   com.fujimitsu.moneytransfer.beans.Status
              </managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <navigation-rule>
              <from-view-id>/pages/status.jsf</from-view-id>
              <navigation-case>
                   <from-outcome>success</from-outcome>
                   <to-view-id>/pages/home.jsf</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>/pages/status.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>success</from-outcome>
                   <to-view-id>/pages/home.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <lifecycle>
              <phase-listener>
                   com.fujimitsu.moneytransfer.utils.PrintTreePhaseListener
              </phase-listener>
         </lifecycle>
    </faces-config>
    web.xml
    ======
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC
      "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <!--A short name that is intended to be displayed by tools.-->
         <display-name>The simplest JSF application.</display-name>
         <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>/faces/*</url-pattern>
         </servlet-mapping>
        <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.jsf</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.faces</url-pattern>
        </servlet-mapping>
    </web-app>
    DIRECTORY STRUCTURE
    ====================
    appName
                pages
                WEB-INF
                .........Thanks.

  • Creating the JSPDynPage ( form   name="myFormName" method="post" action=""

    Hi All,
    I am developing JSPDynPage example ,in this example i am using html tags instead  of business HTML . So  when i am submitting the JSP page , what is the name of the action i have to set in action method.
      So please provide me detailed information for the above query and that would be greatly appreciated
    Regards
    Siva
    This is my java class :
    public class test extends PageProcessorComponent
    below i am posting the my jsp page code:
    <jsp:useBean id="myBean" scope="request" class="test.testmyBean" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <form   name="myFormName" method="post" action="">  
                   <input type="text" name="T1" size="20" value="<%=(myBean == null)?"":myBean.getText()%>">
    <input type="submit" value="Submit" name="B1"  onClick="javascript:fntCheck();">
       </form>
       <script language="javascript">
         function fntCheck()
              document.myFormName.submit();
         </script>
      </hbj:page>
    </hbj:content>

    Hi Siva,
    We can use <hbj:form> tag in our HTML code. So use <hbj:form> tag in place of normal HTML <form> tag and place a <hbj:button> tag in the hidden part of the HTML code.
    When the user clicks on the HTML button, at that time call javascript to trigger the <hbj:button> button. This will submit the form to the server as the same way as submitting the page of HTMLB.
    We implimented this in our project.
    Follwing are the steps to do:
    1. Replace <form> tag with<b><hbj:form></b> tag.
    2. Add the follwing code in your JSP.
              <b><div style="visibility:hidden;">
                   <hbj:button
                      id="Update"
                      encode="false"
                      text="Update"
                      width="125px"
                      tooltip="Click here to update address data."
                      onClick="Update"
                      disabled="false"
                      design="STANDARD"
                      jsObjectNeeded="TRUE"
                   />
              </div></b>
    3. Add the follwing line of code in <u>'fntCheck()' </u>javascript function.
    <b>
    var funcName = htmlb_formid+"_getHtmlbElementId";
        func = window[funcName];
    var buttonUpdate = eval(func("Update"));
    document.getElementById(buttonUpdate.id).onclick();</b>
    Deploy & Run.
    Cheers....
    Satya

  • How to call a struts action from a JSF page

    I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
    Sameer Jaffer

    is it not possible to call a action from the faces submit button and/or the navigation?
    This a simple POC using struts-faces exmaples.
    Here is my struts-config and faces-config file.
    <struts-config>
    <data-sources/>
    <form-beans>
      <form-bean name="GetNameForm" type="demo.GetNameForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards>
      <forward name="getName" path="/pages/inputname.jsp"/>
    </global-forwards>
    <action-mappings>
      <action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
       <forward name="sayhello" path="/pages/greeting.jsp"/>
      </action>
    </action-mappings>
    <controller>
        <set-property property="inputForward" value="true"/>
        <set-property property="processorClass"
                value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    </struts-config>faces-config
    <faces-config>
    <managed-bean>
      <managed-bean-name>calculate</managed-bean-name>
      <managed-bean-class>com.jsftest.Calculate</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>GetNameForm</managed-bean-name>
      <managed-bean-class>demo.GetNameForm</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/calculate.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/success.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>failure</from-outcome>
       <to-view-id>/failure.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/inputNameJSF.jsp</from-view-id>
      <navigation-case>
       <to-view-id>/pages/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>in my inputNameJSF.jsp (faces page)
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Say Hello!!</title>
    </head>
    <body>
    Input Name
    <f:view>
         <h:form >
              <h:inputText value="#{GetNameForm.name}" id = "name" />
              <br>
              <h:commandButton id="submit"  action="/greeting.do" value="   Say Hello!   " />
         </h:form>
    </f:view>
    </body>
    </html>I want to be able to call the struts action invoking the Action method in the that returns the name
    package demo;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class GreetingAction extends org.apache.struts.action.Action {
        // Global Forwards
        public static final String GLOBAL_FORWARD_getName = "getName";
        // Local Forwards
        private static final String FORWARD_sayhello = "sayhello";
        public GreetingAction() {
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            String name = ((demo.GetNameForm)form).getName();
            String greeting = "Hello, "+name+"!";
            request.setAttribute("greeting", greeting);
            return mapping.findForward(FORWARD_sayhello);
    }Edited by: sijaffer on Aug 11, 2009 12:03 PM

  • HR_INFOTYPE_OPERATION not working when called from Dynamic action

    Hi ,
           Senario  : I would like to execute a form from dynamic action which
    creates a record in 0015 (Additional payment IT) .
           I have writen the code as shown below am using FM HR_INFOTYPE_OPERATION
    . When i execute the program from se38 it is creating a record, however it is
    not created when it is called from dynamic action..when i debugged the code in
    inside the FM HR_INFOTYPE_OPERATION there is a FM HR_MAINTAIN_MASTERDATA where
    they are using call dialog (statement) and
    sy-oncom = 'N'   when called from Dynamic action and
    sy-oncom = 'S'   when called executed directly.
    I tried to change the sy-oncom to S while run from Dynamic action it created
    the record.
    So Can anyone explain me abt sy-oncom and how can i resolve the issue..
    code..
    REPORT ZHRPYENH01 .
    perFORM TERMIATION_9000.
    INCLUDE DBPNPMAC.
          FORM Termiation_9000                                          *
    FORM TERMIATION_9000.
    INFOTYPES : 0015.
    *data : i .
    *i ='c'.
    *break-point.
    *message i000(000) with i.
      TABLES : PRELP.
      DATA : P9000 TYPE PA9000." with header line.
      DATA : P0000 TYPE STANDARD TABLE OF  P0000 WITH HEADER LINE.
    DATA : P0015 TYPE STANDARD TABLE OF  P0015 WITH HEADER LINE.
      DATA : HIRE_DATE  LIKE SY-DATUM,
             TERM_DATE  LIKE SY-DATUM.
      DATA : MOLGA LIKE T500L-MOLGA VALUE '25',
             SEQNR LIKE PC261-SEQNR.
      DATA : RGDIR TYPE STANDARD TABLE OF PC261 WITH HEADER LINE.
      DATA : ACTUAL_PERIOD LIKE PA9000-RETENTION.
      DATA : PNP-SW-FOUND TYPE SY-SUBRC ,
             PNP-SY-TABIX TYPE SY-TABIX.
      DATA : TER_PERNR LIKE PA0001-PERNR.
      DATA : REF_PERNR LIKE PA0001-PERNR.
      data : key type BAPIPAKEY.
      data : payed_amount type p0015-BETRG.
    data : future_payment_amount type p0015-BETRG.
    data : p0002 like pa0002.
      types : begin of t_deduction ,
              deducation_date like p0015-begda,
              future_payment_amount type p0015-BETRG.
      types : end of t_deduction.
    data :  future_deduction type standard table of t_deduction with
    *header line.
      data :  future_deduction type  t_deduction .
    data : RETURN type  BAPIRETURN1.
    *data : deduction_p0015 like standard table of p0015 with header line.
    data : deduction_p0015 like p0015 .
    xxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    ****Prepare 0015 data for deduction
    *deduction for payed amount
    clear deduction_p0015.
    *refresh deduction_p0015.
    deduction_p0015-pernr = REF_PERNR.
    *deduction_p0015-pernr = TER_PERNR.
    deduction_p0015-lgart = 'M120'.
    deduction_p0015-begda = sy-datum + 1 .
    deduction_p0015-endda = sy-datum + 1 .
    deduction_p0015-BETRG = payed_amount.
    deduction_p0015-WAERS = 'SGD'.
    deduction_p0015-ZUORD =  TER_PERNR.
    *append deduction_p0015.
    **deduction for future payment amount
    *loop at future_deduction.
    *clear deduction_p0015.
    *deduction_p0015-pernr = REF_PERNR.
    **deduction_p0015-pernr = TER_PERNR.
    *deduction_p0015-lgart = 'M120'.
    *deduction_p0015-begda = FUTURE_DEDUCTION-DEDUCATION_DATE.
    *deduction_p0015-endda = FUTURE_DEDUCTION-DEDUCATION_DATE.
    *deduction_p0015-BETRG = future_deduction-future_payment_amount.
    *deduction_p0015-WAERS = 'SGD'.
    *deduction_p0015-ZUORD =  TER_PERNR.
    *append deduction_p0015.
    *endloop.
    Create a deduction wage type in 0015 for the employee
    break-point.
    CLEAR RETURN.
    CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
      EXPORTING
        NUMBER              = REF_PERNR
        VALIDITYBEGIN       = '18000101'
    IMPORTING
       RETURN              = return
    if not return is initial.
    message E000(000) with
    'Referred Employee could not be locked for referal  payment deducation,
    please try after some time'.
    endif.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '0015'
        NUMBER                 = REF_PERNR
       SUBTYPE                = 'M120'
      OBJECTID               =
      LOCKINDICATOR          =
       VALIDITYEND            = SY-DATUM
       VALIDITYBEGIN          = SY-DATUM
      RECORDNUMBER           =
        RECORD                 = deduction_p0015
        OPERATION              = 'COPY'
      TCLAS                  = 'A'
       DIALOG_MODE            = '2'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
       RETURN                 = return
       KEY                    = key
    break-point.
    COMMIT WORK.
    if not return is initial.
    *return-TYPE
    *ID
    *NUMBER
    *MESSAGE
    message I000(000) with return-MESSAGE.
    endif.
    CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
      EXPORTING
        NUMBER              = REF_PERNR
        VALIDITYBEGIN       = '18000101'
    IMPORTING
       RETURN              = return
    xxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    Thanks and regards
    -Senthil Bala
    Message was edited by: senthil bala

    Hi Senthil
    Why at all U want a subroutine to create a record in IT0015 through Dynamic action.There are some standard codes available to update infotypes.
    Let me give U an example
    14     9CON     BETRG     4     2     I     INS,0015 This will create a record in IT0015 when IT0014 is updated with Wagetype 9CON
    14     9CON     BETRG     4     3     W     P0015-LGART='5400' Set wagetype for IT0015(Here U can use a subroutine call to set the wagetype)
    14     9CON     BETRG     4     4     W     P0015-BETRG=P0014-BETRG set amount for IT0015(Here U can use a subroutine call to get the amount)
    14     9CON     BETRG     4     5     W     P0015-BEGDA=P0014-ENDDA set the dates(Here U can use a subroutine call to set the dates)
    Hope this will help U.
    Please award points if helpful

  • Post Action Not Working

    I have given a post action to a step and it does'nt work. Please se the attached sequence.
    Attachments:
    Testing.seq ‏7 KB

    Hi,
    There is nothing wrong with your sequence. The reason the Post Action doesn't jump to Cleanup as you expect is because the Status of first step is "Done" not "Passed".
    Regards
    Ray Farmer

  • What is the best way to call a pageflow action from JavaScript?

    What is the best way to call a pageflow action from JavaScript?
    Thanks,
    John

    John,
    How would I do this from a grid??? Unfortunately there are no JavaScript attributes
    on any of the grid tags that I can see.
    Thanks,
    John
    "John H" <[email protected]> wrote:
    >
    Thanks John!
    "John Rohrlich" <[email protected]> wrote:
    John,
    If you want to put up a confirm dialog before calling an action from
    an
    anchor it is done as follows.
    Here is an example from code of mine that deletes a customer order,if
    the
    user confirms the delete. I pass the order id as a parameter.
    - john
    Here is the JavaScript -
    function confirmDelete() {
    if(confirm('Continue with order delete?'))
    return true;
    else
    return false;
    Here is a sample anchor tag -
    <netui:anchor action="requestToDeleteOrder" onClick="return
    confirmDelete(); return false;">
    Delete
    <netui:parameter name="orderId" value="{container.item.orderId}"/>
    </netui:anchor>
    "John H" <[email protected]> wrote in message
    news:402138f5$[email protected]..
    Thanks for the replies. I figured it was going to require buildingmy own
    url
    to call the action. I had hoped there was an easier way to do it.Rich,
    the
    reason I want to do this is because I want to call the JavaScript
    function
    confirm()
    when a user clicks on a link (in a repeater/grid) to drop a record,I only
    want
    to call the drop action if the user confirms the drop. Maybe thereis a
    better
    way to do what I am trying to do??? I really appreciate any help
    you
    guys
    can
    give me on this, I am pretty new to this sort of stuff.
    Thanks,
    John
    "Rich Kucera" <[email protected]> wrote:
    "John H" <[email protected]> wrote:
    What is the best way to call a pageflow action from JavaScript?
    Thanks,
    JohnTry figuring out the URL to the pageflow action, create a hidden
    form
    in the
    page, then use JS to submit the form. Why would you want to though,
    isn't
    the server going to want to send you to the next page?

  • Step post action works only in 'Test UUts' mode

    Hi,
    My main sequence file has a list of  steps, all sequence type.  I specify a post action on each one to jump to end if the seq fails and if a flag is set:
    FileGlobals.StopOnFail == True && RunState.SequenceFailed == True 
    I found out that it only works if I run my test in 'Test UUTs' mode.  If I select 'Run Selected tests using Single Pass', then, it igonre this.
    Is this how it supposed to be?
    How can i fix it?
    Thanks
    Rafi
    TS4.1
    Solved!
    Go to Solution.

    Rafi2003 wrote:
    [...]Why do you need a previous step?[...]
    Rafi,
    you are correct that you do not need a previous step; it is sufficient if the step itself fails and sets the RunState.SequenceFailed flag.
    On my machine, this test also works as expected so i asume that either your step itself does not set the RunState.SequenceFailed flag or you have another issue in your Run Selected Steps using Single Pass execution....
    Norbert 
    [EDIT] Added small example sequence 
    Message Edited by Norbert B on 05-13-2009 06:26 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.
    Attachments:
    PostAction.seq ‏5 KB

  • HR_INFOTYPE_OPERATION called inside Dynamic action

    I am writing a subroutine called by dynamic action.
    Where using FM 'HR_INFOTYPE_OPERATION' i have to delimit or delete the records of infotype 0167.
    Although, HR_INFOTYPE_OPERATION, is executing with return is 0. but there is no change in the infotype reocrd.
    The same code written independent without called from Dynamic action, infotype record is been updated.
    Any help would be highly appriciated.
    Regards
    Manvir

    Also look at thread !!
    Re: Strange behavior of  FM u0093HR_MAINTAIN_MASTERDATA u0093
    and
    Re: Why does the NOCOMMIT parameter not work in HR_INFOTYPE_OPERATION?
    I’d recommend you to write BDC program . This FM is behaving in a weird way!!!
    <b>I used it only for 'INS' ...</b>
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • Display test result before post action

    Hi,
    I have a test sequence file that is constructed as when test failed, in Post Action, it will jump to a sub-sequence.  And, what I found out is that the result status for that test step in the executation pane was not displayed until after the sub-sequence finished executing (the test steps for sub-sequence was not hided from the operator).  I want to know if there is a way that I can modify the TestStand so that the test step result can be displayed in the execution pane before test step go into Post Action?
    Thanks.
    Peggy

    Hi Peggy,
    I wonder if performing an Engine.PostUIMessage using UIMsg_RefreshWindows to force a refresh of the UI windows would do the trick.
    Regards
    Ray Farmer

Maybe you are looking for

  • Problem with displaying same field in three columns

    Hi I am using reports developer 11g and I have created a report which displays only one field (column), which is id_number as output but I have a problem now. I would like to display the id_number in three columns on one page to save paper, that is,

  • Urgent-How to publish the screen in the web?

    Hi, I created a screen in SRM system, and wanted to publish the screen in the web, can any one tell me how to publish the screen in the web? thanks Murali

  • Connecting iPad to Verizon....

    I had recently bought an iPad 2 off Ebay; never used and isn't with a specific company (i.e Verizon or AT&T). Am I still able to get it connected to my Verizon plan since I have a phone service with them? If so, how? I believe the iPad I bought just

  • Out of box auto deployment fails when trying to set up first DC in new domain

    Tried to configure and deploy windows server 2012 R2 essential many times. It's the most simple scenario -- PDC in first domain. However, every time it stuck at around 67% and gave me an error about not able to continue. The group policy list is empt

  • Text size fluid grid layout

    I am using Dreamweaver cs6 fluid grid layout.  Is there a way to change the text size for the different layouts?  For example I would like the header text to be 16px on the desktop but only 12px on the mobile. Thank you!