Dynamic Step insertion Cause -17301 for 2nd UUT

Hello,
Purpose :
Inserting "None Adapter" step into sequence DURING execution using TS_API and DLL_Adapter.
Status :
Thanks to the example "inserting a step using labwindows", I successfully inserted the step into the cleanup sequence from withing my DLL. And I can find the result in report
Trouble :
If I put my call in the Setup and try to insert my step
in the mail sequence, It is working ONLY THE FIRST TIME the sequence is executed, the second Time It causes:
"UUT Result: Error, Invalid step index '1' for 'Main' phase in sequence 'MaSeq'. [Error Code: -17301, Index out of range.]
Please Help !!

To TS_diver -
I am not sure which example you are referencing, but inserting a step into a run-time copy of a sequence that is running cannot be supported by TestStand. It may work in certain circumstances, but the key issue of non-support by TestStand is that for each step in the run-time copy of a sequence TestStand expects a corresponding step to exist in the edit-time copy of the sequence. Some of these references are by pointer and some are by index. TestStand uses the edit time copy of the sequence for various information. We do this for performance reasons and it also saves memory.
The only thing that I can recommend is to create a placeholder step that you call conditionally run using preconditions. If you need to configure the step, you
can use the API to update the properties of the step prior to running the step.
Scott Richardson (NI)
Scott Richardson
National Instruments

Similar Messages

  • Dynamic step-by-step instructions for training simulation

    I'm looking for some guidance with an idea for having a dynamic step-by-step list for a training simulation created in Captivate 7.
    The default behavior when creating a guided training simulation is for the steps to appear in a text box nearby the click box. Instead, I'd like to stack the step-by-step instructions in a panel on the left side of the screen that would sit next to the simulated interface on the right side of the screen. All of the high level steps would be visible throughout the simulation and each step in the panel list would be highlighted as appropriate.
    I began with Lilybiri's Knockout blog post ("Create and Use a 'Knockout' Master Slide"), which seems like a possible solution, but I haven't yet gotten to the point of adding my dynamic instruction panel.
    In essence, the dynamic panel will function as follows:
        Step 1 in instruction panel is highlighted at start of simulation.
        Learner clicks associated step 1 click box in simulation interface (as instructed in instruction panel).
        On click of step 1 click box, step 2 in instruction panel is highlighted and step 1 highlight disappears.
        Learner clicks associated step 2 click box in simulation interface (as instructed in instruction panel).
        And so on through all steps listed in the instruction panel.
    I'm working on mocking something up using variables and advanced actions to achieve the dynamic instruction panel and want to overlay it on the left side of the screen. I'm thinking it would sit on top of the left panel in the Knockout.
    In various posts, I've seen that it's not advisable to insert a Captivate SWF into another project file, so it seems that Lieve's Knockout approach is the way to go. I am happy to tackle the technical aspects of this on my own, but first want to confirm that it is even possible with Captivate or if it would make more sense to use Flash. Has anyone done something similar or does anyone see any issues with this approach?
    Any input or suggestions would be greatly appreciated!
    Thanks in advance!
    Nancy

    Hi Lieve,
    Thanks for replying. I'm using Captivate 7.
    I'm hoping to work through it myself and then possibly post something to help others who may see value in something like this, so having you confirm that you believe it's possible is helpful - thank you.
    I've worked out the basic technical approach and now need to integrate my instruction panel with your Knockout approach. If I can get it working, I will definitely share.
    Nancy

  • Activate or skip "Record Results" and "Step Failure Cause Sequence Failure" for all steps of a step type

    Hello all,
    I am using teststand 3.1
    Is it possible to skip or activate ´"Record Results" and "Step Failure Cause Sequence Failure" for all steps of a step type.
    It is very much work to do this for all steps, because I have hundred of steps
    regards
    samuel

    hi,
    here is an example that will change the TS.NoResult. You just have to change this area of the sequence to suit your needs
    I haven't added any fancy stuff, such as adding a filedialog to get the seq file to change, you will find the various variables in the Locals.
    Hope it helps
    There is a version for 3.1 and 3.5.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    ChangeStepTypeRunMode.zip ‏30 KB

  • ODI11g Integration Step:  Insert flow into I$ Table failure: TNS: error

    The project/interfaces have been working successfully for quite sometime. After a server reboot, they are all failing on the Integration step
    Insert flow into I$ Table failure with:
    ODI-1228: Task xxxxx(Integration) fails on the target ORACLE connection xxxxxx.
    Caused By: java.sql.SQLException: ORA-12154: TNS:could not resolve the connect identifier specified
    I have verified the topology and the dblink/Data Server is what resides in the tnsnames.ora file (which also has not changed).
    Any ideas what else to look at, all topology connection tests are successful.
    Thank you.

    All connections were testing successfull. The problem ended up being with one of the database links, after the server reboot there were multiple tnsnames and the environment was not pointing to the correct one. After removing all tnsnames except for the correct, the problem was fixed.
    Thank you for your response.

  • I am trying to copy more or less 30G from my MacbookPro to an external hard drive and it is stuck in the "preparing to copy" step. But that for more than one hour. What should I do to make it faster? Thanks a lot in advance!

    I am trying to copy more or less 30G from my MacbookPro to an external hard drive and it is stuck in the "preparing to copy" step. But that for more than one hour. What should I do to make it faster? Thanks a lot in advance!

    Thanks Shootist007, by blockd files I mean files that I have changed to blocked and when I tried to move then for the first time, I had to unblock again. I am trying to backup my pictures, my songs and other files like word documents and excel tables. First I put all of them as blocked, what caused the first problems on trying to move them. Then, I've unchecked the block option and if I try to move one by one, there is no problem. The issue is to move all together, because it gets stuck in the preparing to copy files step. Anyway, if I cannot do all by once, I'll do it one by one, event though that was not suposed to happen if we are talking about technology, right? Anyway, I thank you again for trying to help me!

  • Dynamic af:inputListOfValues causes NullPointerException

    Hi Gurus,
    We are using JDeveloper 11.1.3. Currently we are building a dynamic LOV (sort of) based on an existing listOfValuesModel in PageDef.xml.
    The existing af:inputListOfValues was built at design time with the listOfValuesModel. The goal is to share this listOfValuesModel #{bindings.LOV} with dynamic LOVs. The code snippet from jspx works flawlessly:
    +<af:inputListOfValues id="nameId"+
    +popupTitle="Search and Select: #{bindings.LOV.hints.label}"+
    +value="#{bindings.LOV.inputValue}"+
    +label="#{bindings.LOV.hints.label}"+
    +model="#{bindings.LOV.listOfValuesModel}"+
    +required="#{bindings.LOV.hints.mandatory}"+
    +columns="#{bindings.LOV.hints.displayWidth}"+
    +shortDesc="#{bindings.LOV.hints.tooltip}"+
    +launchPopupListener="#{viewScope.FaParamConfigBean.onLaunchLov}">+
    +<f:validator binding="#{bindings.LOV.validator}"/>+
    +</af:inputListOfValues>+
    We have no problem to manually duplicate more +<af:inputListOfValues id="nameId1" model="#{bindings.LOV.listOfValuesModel}" .../>+ (under +nameId2+, +nameId3+, ...) based on the same +model="#{bindings.LOV.listOfValuesModel}"+. All these LOVs share the same binding variable.
    Then in our java code, we dynamically generate RichInputListOfValues for our form and set the model to #{bindings.LOV}.
    +private ListOfValuesModel lovModel = null;+
    +if ( this.lovModel == null) {+
    +//lovModel = (ListOfValuesModel) JSFUtils.resolveExpression(this.LOV_MODEL); // returns same result+
    +FacesCtrlLOVBinding lovBinding = (FacesCtrlLOVBinding) JSFUtils.resolveExpression("#{bindings.LOV}");+
    +lovModel = lovBinding.getListOfValuesModel();+
    +}+
    +RichInputListOfValues inputLOV = new RichInputListOfValues();+
    +inputLOV.setImmediate(false);+
    +inputLOV.setModel(lovModel);+
    +inputLOV.setValue(lovValue);+
    +inputLOV.setLabel(displayLabel);+
    +inputLOV.setId(randomLovUid);+
    +FacesContext fctx = FacesContext.getCurrentInstance();+
    +ELContext elctx = fctx.getELContext();+
    +Application application = fctx.getApplication();+
    +ExpressionFactory exprFactory = application.getExpressionFactory();+
    +MethodExpression methodExpr = exprFactory.createMethodExpression(elctx, "#{viewScope.FaParamConfigBean.onLaunchLov}",null,new Class[] {LaunchPopupEvent.class});+
    +inputLOV.setLaunchPopupListener(methodExpr);+
    +this.form.getChildren().add(inputLOV);+
    From here I exam the ListOfValuesModel instance.
    +public void onLaunchLov(LaunchPopupEvent launchPopupEvent) {+
    +FacesCtrlLOVBinding lovBinding = (FacesCtrlLOVBinding) JSFUtils.resolveExpression("#{bindings.LOV}");+
    +ListOfValuesModel lovModel2 = lovBinding.getListOfValuesModel();+
    +System.out.println("lovModel2=["+lovModel2);+
    +};+
    I notice every time I click pre-defined LOV components, they get a different address (i.e., oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ListOfValuesModelImpl@48ab7b) but the popup window always works fine. If I click dynamic LOVs, the popup will throw NPE. Compare the properties of static LOVs against dynamic LOVs, I also notice the following
    -_searchBinding is null for dynamic LOVs while static LOV's has PageDef._lovSearch_LOV of class *FaceCtrlSearchBinding* ;
    -_tableModel is null for both types of LOVs.
    So I conclude since I miss FaceCtrlSearchBinding in dynamic LOVs to cause this NPE issue. What we don't understand is, sharing the same #{bindings.LOV} works fine for static LOVs but not for dynamic LOvs. Can you help me to fix this?
    More interestingly, I would always get NPE if I set listOfValues's StaticList="true" in the binding file.
    +<listOfValues StaticList="false" IterBinding="ItasCompaniesVO1Iterator"+
    +Uses="LOV_Name" id="LOV"/>+
    Thanks a lot!
    Sam
    Edited by: user719281 on Nov 4, 2010 11:31 PM
    Edited by: user719281 on Nov 5, 2010 10:15 AM

    @sudipto : I have verified the scenerio by creating few components in a panelFormLayout and set the property(Visible-false). Then i make the comopents visible programmatically,but it does not rearrange itself rather it gets visible on the screen on the location it was created.
    @Timo : I need to arrange the LOV components that need to be added horizontally in a panelFormLayout. Therefore I have created a 4columns/1Row panel form Layout . There are two such panelFormLayouts created as i have six components that is to be added in a horizontal manner . The order in which the components are to be added cannot be determined at design time as it depends purely on the end user which components he wants to make visible on the screen , also in the order he wish to add. Hence adding the components in the panelFormLayout and using the switcher does not seem to be a feasible solution and creating the components programatically looks to be the only way as of now. Please suggest if i am missing something.
    Edited by: 907302 on Feb 7, 2012 2:11 AM

  • Workflow Step : Insert Outbox

    Hi,
    I want to know how we can make use of the Workflow Step : Insert Outbox.
    Would be nice if i can get some example for the same. Thanks.

    Hi,
    I think this step can't be used. If you try to use it you will get the below error message from the system.
    No maintenance interface exists for your chosen step type. This means that not all step types can be configured in the workflow configuration for example.
    System Response
    This is confirmed by the system with this message.
    Regards,
    Surjith

  • Problem in merge statement -ORA-27432 Step does not exist for chain

    Hi
    I m getting ORA-27432 Step does not exist for chain error in merge statement.Please explain the same.
    MERGE INTO fos.pe_td_hdr_sd B
    USING (
             SELECT ACTIVE, ADDUID, ADDUIDTIME,TDKEY         FROM pe.pe_td_hdr
              WHERE  (adduidtime like '20070104%' or edituidtime like '20070104%')
              AND NVL(legacy_td,'N')<>'Y'
              AND SUBSTR(adduidtime,1,4)='2007'
              AND AMENDMENT_NO=0)A ON ( B.TDKEY = A.TDKEY)
      WHEN MATCHED THEN
        UPDATE SET B.ACTIVE=A.ACTIVE,
    B.ADDUID=A.ADDUID,
            B.ADDUIDTIME=A.ADDUIDTIME
      WHEN NOT MATCHED THEN
                      INSERT
                              B.ACTIVE,
                              B.ADDUID,
                              B.ADDUIDTIME)
                        VALUES(
                              A.ACTIVE,
                              A.ADDUID,
                              A.ADDUIDTIME)This query is a short version of the main query.It is same but having 180 columns in original table.

    What version of Oracle are you using? This message does not appear in my 10.1 Error Messages document, but the other messages in that range seem to be about DBMS_SCHEDULER.
    Are you using scheduler somewhere around where you are getting the error message?
    John

  • How to insert a code for a function module into a Customer Exit Variable?

    I have two Key Figures viz., Net Prchs Rtl, and Net Prchs Unt. Both these Key figures have This Week (TW) and Last Week (LW). There is a variable for This week but there is no variable defined for Last week.
    I need to get data in the column LW (Last Week) for both the key figures.
    In function module EXIT_SAPLRRS0_001 one of the functions I have is:
    Get the previous Fiscal Week
              CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
    I need to create a new variable to get values in the Last week column for different key figures and use function “'DATE_TO_PERIOD_CONVERT'” in that variable.
    Can anyone please explain me the steps as to how to use a function module in a variable so that when the variable is used in a key figure it shows the output.
    In other words what I want to know is after creating a Customer exit variable of type Characteristic value how do I refer the above mentioned function moduel and insert the code for the function module into the Customer exit variable that I created.
    Thank you.
    TR.

    Hi Wond,
    Thanks a lot for your reply. I understand what you mean but I have never done this before so can you please explain it in a detailed manner. I have the following code:
    Get the previous Fiscal Week
              CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
                EXPORTING
                  i_date         = ld_date
                  i_periv        = lc_periv
                IMPORTING
                  e_buper        = ln_poper
                  e_gjahr        = ln_bdatj
                EXCEPTIONS
                  input_false    = 1
                  t009_notfound  = 2
                  t009b_notfound = 3
                  OTHERS         = 4.
              IF sy-subrc <> 0.
                MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ELSE.
                lc_poper = ln_poper.
                CONCATENATE ln_bdatj lc_poper+1(2) INTO wa_e_t_range-low.
                wa_e_t_range-sign = 'I'.
                wa_e_t_range-opt = 'EQ'.
                APPEND wa_e_t_range TO e_t_range.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
    I believe I should now use the above code in my customer exit variable. If that's right can you please explain me the steps as to how should I do this so that the variable gets populated.
    Thank you.
    Regards,
    TR.

  • How to dynamic field insert into intenal table?

    hi friends
    this is my urgent requirements .... how to dynamic field insert into internal table if it possible please tell me
    thanks & regards
    pauldharma

    Hi,
    Go through this
    REPORT  yusmm_text1  NO STANDARD PAGE HEADING
                         LINE-SIZE 199.
    T A B L E S
    TABLES: MARA,
            MAKT,
            THEAD.
    GLOBAL TYPE-POOLS
    TYPE-POOLS : SLIS.
       GLOBAL TYPES
    TYPES : BEGIN OF TP_FINAL,
           MATNR TYPE MARA-MATNR,
           BEGRU TYPE MARA-BEGRU,
           MTART TYPE MARA-MTART,
           MAKTX TYPE MAKT-MAKTX,
           SPRAS TYPE MAKT-SPRAS,
           LTXT(2000)  TYPE C ,
           SRNO TYPE N ,
          END OF TP_FINAL.
    TYPES : BEGIN OF TP_T002,
            SPRAS TYPE T002-SPRAS,
            LAISO TYPE T002-LAISO,
            SRNO TYPE N ,
            END OF TP_T002.
    TYPES : BEGIN OF TP_MARA_MAKT,
            MATNR TYPE MARA-MATNR,
            BEGRU TYPE MARA-BEGRU,
            MTART TYPE MARA-MTART,
            SPRAS TYPE MAKT-SPRAS,
            MAKTX TYPE MAKT-MAKTX,
           END OF TP_MARA_MAKT.
    Types: BEGIN OF tp_matnr,
           matnr TYPE mara-matnr,
           END OF tp_matnr.
       GLOBAL ELEMENTARY VARIABLES
    DATA : gv_date TYPE sy-datum.
    DATA : gv_repid TYPE sy-repid.
    DATA : g_var1(10) TYPE C.
    DATA : gv_index TYPE sy-tabix.
    DATA: gv_strg TYPE string,
          gv_strg1(2000) TYPE C.
    DATA : gv_lang TYPE sy-langu.
    DATA : g_v(3) TYPE N .
    DATA : gv_lines(3) TYPE N .
    DATA : gv_var(3) TYPE N .
    DATA : gv_var1(3) TYPE N.
    DATA: gv_str TYPE STRING.
    DATA: gv_str1 TYPE STRING.
    DATA : gv_li TYPE I,
           gv_lit TYPE I,
           gv_lin TYPE I.
    DATA: g_var11(3) TYPE N,
          gv_li1(3) TYPE N,
          g_var2(3) TYPE N.
    DATA : gv_i1 TYPE I.
    DATA : gv_i TYPE I.
    DATA: gl_lenght TYPE I.
       GLOBAL STRUCTURES
    DATA:   T_NEWTABLE TYPE REF TO DATA,
            T_NEWLINE  TYPE REF TO DATA,
            T_FLDCAT1   TYPE SLIS_T_FIELDCAT_ALV,
            T_FLDCAT   TYPE LVC_T_FCAT,
            WA_IT_FLDCAT TYPE LVC_S_FCAT,
            WA_IT_FLDCAT1 TYPE SLIS_FIELDCAT_ALV,
            WA_COLNO(2) TYPE N,
            WA_FLNAME(5) TYPE C,
            L_LT TYPE SLIS_LAYOUT_ALV.
       GLOBAL INTERNAL TABLES (WITH INCLUDE STRUCTURE)
    DATA : IG_MARA_MAKT TYPE STANDARD TABLE OF TP_MARA_MAKT,
           WG_MARA_MAKT TYPE TP_MARA_MAKT.
    DATA : IG_T002 TYPE STANDARD TABLE OF TP_T002,
           WG_T002 TYPE TP_T002.
    DATA : IG_FINAL TYPE STANDARD TABLE OF TP_FINAL,
           WG_FINAL TYPE TP_FINAL.
    data : IG_MATNR TYPE STANDARD TABLE OF TP_MATNR WITH HEADER  LINE,
           WG_MATNR TYPE TP_MATNR.
    DATA:BEGIN OF IG_THEAD OCCURS 0.
            INCLUDE STRUCTURE THEAD .
    DATA: END OF IG_THEAD.
    DATA:BEGIN OF IG_TLINE OCCURS 0.
            INCLUDE STRUCTURE TLINE  .
    DATA:END OF IG_TLINE.
    FIELD-SYMBOLS
    FIELD-SYMBOLS: <T_DYNTABLE> TYPE STANDARD TABLE,"Dynamic internal
                                                            "tablename
                   <FS_DYNTABLE>,  "Field symbol to create work area
                  <FS_FLDVAL> TYPE ANY.   " Field symbol to assign values
    COMPULSORY
    FIELD-SYMBOLS: <FS_DATA> TYPE REF TO DATA,
                   <FS_DATA1> TYPE REF TO DATA,
                   <FS_2>    TYPE STANDARD TABLE,
                   <FS_22>   TYPE STANDARD TABLE,
                   <FS_1>,
                   <FS_11>,
                   <F>,
                   <FA>,
                   <LWA_LINE_WA>,
                   <LWA_LINE_WA1>.
    ------- Create Dyn Table From FC
    DATA: LT_DATA        TYPE   REF TO DATA,
          LT_DATA1        TYPE   REF TO DATA,
          LWA_LINE       TYPE   REF TO  DATA,
          LWA_LINE1       TYPE   REF TO  DATA,
          LI_FIELD_CAT   TYPE   LVC_T_FCAT,
          LWA_FIELD_CAT  TYPE   LVC_S_FCAT.
       PARAMETERS & SELECT-OPTIONS
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_SPRAS FOR MAKT-SPRAS NO INTERVALS  DEFAULT 'EN'
                                                            OBLIGATORY ,
                     S_MATNR FOR MARA-MATNR,
                     S_MTART FOR MARA-MTART.
    PARAMETERS: GP_SIZE TYPE I DEFAULT '200'.
    SELECTION-SCREEN : END OF BLOCK B1.
       INITIALIZATION
    INITIALIZATION.
      gv_repid = sy-repid.
      gv_date = sy-datum.
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN.
      IF GP_SIZE < 0.
       MESSAGE E002(00).
      ENDIF.
      IF GP_SIZE > 50000.
       MESSAGE W130(26) WITH TEXT-004.
        SET CURSOR FIELD 'gp_size'.
      ENDIF.
    START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM FIELDCAT.
      PERFORM LAYOUT.
      PERFORM DATA_FETCH.
      PERFORM READ_DATA_TO_FINAL.
      SORT ig_final BY matnr spras.
      gv_lin = gv_li.
      gv_li = gv_li - 2.
      LOOP AT ig_final INTO wg_final.
        ASSIGN COMPONENT 1 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
        <FA> = 'Material Number'.
        ASSIGN COMPONENT 2 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
        <FA> = 'Authorization Group'.
        g_VAR11 = wg_final-srno + 2.
        gv_li1 = gv_li1 + 2.
        MOVE : g_var11 TO gv_i1.
        ASSIGN COMPONENT g_var11 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
        <FA> = 'MatDesc'.
        g_var2 = g_var11 + gv_lines.
        ASSIGN COMPONENT g_var2 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
        <FA> = 'BasicData'.
        APPEND <LWA_LINE_WA1> TO <FS_22>.
        EXIT.
       ENDLOOP.
      LOOP AT ig_final INTO wg_final.
        AT NEW matnr.
          gv_index = sy-tabix.
          ASSIGN COMPONENT 1 OF STRUCTURE <LWA_LINE_WA> TO <F>.
          <F> = wg_final-matnr.
          ENDAT.
        AT NEW MATNR.
        GV_INDEX = SY-TABIX.
        ASSIGN COMPONENT 1 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
        <FA> = wg_final-matnr.
         ENDAT.
        ASSIGN COMPONENT 2 OF STRUCTURE <LWA_LINE_WA> TO <F>.
        <F> = wg_final-begru.
        ASSIGN COMPONENT 2 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
        <FA> = wg_final-begru.
        gv_var = wg_final-srno + 2.
        gv_li = gv_li + 2.
        MOVE : gv_var TO gv_i.
        ASSIGN COMPONENT gv_var OF STRUCTURE <LWA_LINE_WA> TO <F>.
        <F> = wg_final-maktx.
        ASSIGN COMPONENT gv_var OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
        <FA> = wg_final-maktx.
        gv_var1 = gv_var + gv_lines  .
        ASSIGN COMPONENT gv_var1 OF STRUCTURE <LWA_LINE_WA> TO <F>.
       <F> = wg_final-ltxt.
        ASSIGN COMPONENT gv_var1 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
        <FA> = wg_final-ltxt.
        AT END OF matnr.
          APPEND <LWA_LINE_WA> TO <FS_2>.
          CLEAR <LWA_LINE_WA>.
        ENDAT.
        AT END OF matnr.
         APPEND <LWA_LINE_WA1> TO <FS_22>.
         CLEAR <LWA_LINE_WA1>.
        ENDAT.
      ENDLOOP.
      PERFORM display..
    *&      Form  data_fetch
          text
    -->  p1        text
    <--  p2        text
    FORM DATA_FETCH .
      SELECT matnr
              from mara up to gp_size rows
             appending corresponding fields of table ig_matnr
             where matnr in s_matnr
             and mtart in s_mtart.
    loop at ig_matnr.
      SELECT  MARA~MATNR
              MARA~BEGRU
              MARA~MTART
              MAKT~SPRAS
              MAKT~MAKTX FROM MARA INNER JOIN MAKT
        ON MARAMATNR = MAKTMATNR
       appending corresponding fields of TABLE ig_mara_makt  UP TO GP_SIZE
    ROWS
        WHERE makt~spras IN s_spras
        AND   mara~matnr IN s_matnr
        AND   mara~mtart IN s_mtart
        AND   mara~matnr EQ ig_matnr-matnr.
        endloop.
      IF sy-subrc = 0.
        SORT ig_mara_makt.
      ENDIF.
    ENDFORM.                    " data_fetch
    *&      Form  read_data_to_final
          text
    -->  p1        text
    <--  p2        text
    FORM READ_DATA_TO_FINAL .
      LOOP AT ig_mara_makt INTO wg_mara_makt .
        wg_final-MATNR = wg_mara_makt-MATNR.
        wg_final-BEGRU = wg_mara_makt-BEGRU.
        wg_final-MTART = wg_mara_makt-MTART.
        wg_final-SPRAS = wg_mara_makt-SPRAS.
        wg_final-MAKTX = wg_mara_makt-MAKTX.
        READ TABLE ig_t002 INTO wg_t002 WITH KEY spras = wg_final-spras.
        IF sy-subrc = 0.
          wg_final-srno = wg_t002-srno.
        ENDIF.
        CLEAR ig_thead[].
        ig_thead-TDOBJECT = 'MATERIAL'.
        ig_thead-TDNAME   = wg_final-matnr.
        ig_thead-TDID     = 'GRUN'.
        ig_thead-TDSPRAS  = wg_final-spras.
        CALL FUNCTION 'TEXT_READ'
          EXPORTING
            I_HEADER   = IG_THEAD
            I_READONLY = 'X'
          IMPORTING
            E_HEADER   = IG_THEAD
          TABLES
            T_LINES    = IG_TLINE[]
          EXCEPTIONS
            NOTFOUND   = 1.
        IF sy-subrc  EQ 0.
          LOOP AT  ig_tline.
            gv_strg = ig_tline-tdline.
            IF gv_strg1 <> ' '.
              CONCATENATE gv_strg1 ';' gv_strg INTO gv_strg1.
            ELSE.
              gv_strg1 = gv_strg.
            ENDIF.
          ENDLOOP.
          wg_final-ltxt = gv_strg1.
          APPEND wg_final TO ig_final.
          CLEAR wg_final.
          gv_strg1 = ' '.
        ELSE.
          APPEND wg_final TO  ig_final.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " read_data_to_final
    " read_data_to_final
    *&      Form  layout
          text
    -->  p1        text
    <--  p2        text
    FORM LAYOUT .
      CLEAR L_LT.
      L_LT-ZEBRA = 'X'.
      L_LT-COLWIDTH_OPTIMIZE = 'X'.
      L_LT-WINDOW_TITLEBAR = 'MATERIAL DETAILS'.
    ENDFORM.                    " layout
    *&      Form  fieldcat
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCAT .
      SELECT SPRAS
               LAISO FROM t002 INTO  CORRESPONDING FIELDS OF TABLE ig_t002
          WHERE spras IN s_spras.
      DESCRIBE TABLE ig_t002 LINES gv_lines.
      LOOP AT ig_t002 INTO wg_t002.
        g_v = g_v + 1.
        Wg_t002-srno = g_v.
        MODIFY ig_t002 FROM wg_t002 TRANSPORTING SRNO.
      ENDLOOP.
      LOOP AT ig_t002 INTO wg_t002.
        CLEAR WA_IT_FLDCAT.
        MOVE SY-INDEX TO WA_COLNO.
        CONCATENATE 'MD-' wg_t002-LAISO
                          WA_COLNO
                         INTO WA_FLNAME.
        WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
        WA_IT_FLDCAT-DATATYPE = 'CHAR'.
        WA_IT_FLDCAT-SELTEXT = WA_FLNAME.
        WA_IT_FLDCAT-INTLEN = 250.
        WA_IT_FLDCAT-TABNAME = '<FS_2>'.
        APPEND WA_IT_FLDCAT TO T_FLDCAT.
        CLEAR wg_t002.
        ENDLOOP.
      LOOP AT ig_t002 INTO wg_t002.
        CLEAR WA_IT_FLDCAT.
        MOVE SY-INDEX TO WA_COLNO.
        CONCATENATE 'BD-' wg_t002-LAISO
                           WA_COLNO
                        INTO WA_FLNAME.
        WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
        WA_IT_FLDCAT-DATATYPE = 'CHAR'.
        WA_IT_FLDCAT-SELTEXT = WA_FLNAME.
        WA_IT_FLDCAT-INTLEN = 250.
        WA_IT_FLDCAT-TABNAME = '<FS_2>'.
        APPEND WA_IT_FLDCAT TO T_FLDCAT.
        CLEAR wg_t002.
        ENDLOOP.
      MOVE 'MATNR' TO WA_FLNAME.
      WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
      WA_IT_FLDCAT-DATATYPE = 'CHAR'.
      WA_IT_FLDCAT-SELTEXT = 'Material No'.
      WA_IT_FLDCAT-INTLEN = 18.
      WA_IT_FLDCAT-TABNAME = '<FS_2>'.
      INSERT WA_IT_FLDCAT INTO T_FLDCAT INDEX 1.
      MOVE 'BEGRU' TO WA_FLNAME.
      WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
      WA_IT_FLDCAT-DATATYPE = 'CHAR'.
      WA_IT_FLDCAT-SELTEXT = 'Authorization Group'.
      WA_IT_FLDCAT-INTLEN = 4.
      WA_IT_FLDCAT-TABNAME = '<FS_2>'.
      INSERT WA_IT_FLDCAT INTO T_FLDCAT INDEX 2.
      DESCRIBE TABLE T_FLDCAT LINES gv_li.
      ASSIGN LT_DATA TO <FS_DATA>.
    Creating the Dynamic Internal Table
      CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG           = T_FLDCAT         " Fieldcatalogue
        IMPORTING
          EP_TABLE                  = <FS_DATA>   " Dynamic Internal Table
        EXCEPTIONS
          GENERATE_SUBPOOL_DIR_FULL = 1
          OTHERS                    = 2.
    Assign Dyn Table To Field Sumbol
      ASSIGN <FS_DATA>->* TO <FS_1>.
    Assigning the Internal Table TYPE ANY to Standard internal Table
      ASSIGN <FS_1> TO <FS_2>.
    Creating a Workarea
      CREATE DATA LWA_LINE LIKE LINE OF <FS_2> .
    Assigning the Content to the workares as a Pointer
      ASSIGN LWA_LINE->* TO <LWA_LINE_WA>.
      LOOP AT T_FLDCAT INTO WA_IT_FLDCAT.
        WA_IT_FLDCAT1-FIELDNAME = WA_IT_FLDCAT-FIELDNAME.
        WA_IT_FLDCAT1-TABNAME =  WA_IT_FLDCAT-TABNAME.
        WA_IT_FLDCAT1-SELTEXT_L = WA_IT_FLDCAT-SELTEXT.
       WA_IT_FLDCAT1-REF_TABNAME = 'MARC'.
        APPEND WA_IT_FLDCAT1 TO T_FLDCAT1.
        CLEAR : WA_IT_FLDCAT,WA_IT_FLDCAT1.
      ENDLOOP.
      ASSIGN LT_DATA1 TO <FS_DATA1>.
      CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG           = T_FLDCAT         " Fieldcatalogue
        IMPORTING
          EP_TABLE                  = <FS_DATA1>  " Dynamic Internal table
        EXCEPTIONS
          GENERATE_SUBPOOL_DIR_FULL = 1
          OTHERS                    = 2.
    Assign Dyn Table To Field Sumbol
      ASSIGN <FS_DATA1>->* TO <FS_11>.
    Assigning the Internal Table TYPE ANY to Standard internal Table
      ASSIGN <FS_11> TO <FS_22>.
    Creating a Workarea
      CREATE DATA LWA_LINE1 LIKE LINE OF <FS_22> .
    Assigning the Content to the workares as a Pointer
      ASSIGN LWA_LINE1->* TO <LWA_LINE_WA1>.
    ENDFORM.                    " fieldcat
    *&      Form  show
          text
    -->  p1        text
    <--  p2        text
    FORM Display .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
       I_INTERFACE_CHECK                 = ' '
       I_BYPASSING_BUFFER                = ' '
       I_BUFFER_ACTIVE                   = ' '
         I_CALLBACK_PROGRAM                = GV_REPID
        I_CALLBACK_PF_STATUS_SET          = 'PF_STATUS_SET'
        I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
       I_CALLBACK_TOP_OF_PAGE            = ' '
       I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
       I_CALLBACK_HTML_END_OF_LIST       = ' '
       I_STRUCTURE_NAME                  =
       I_BACKGROUND_ID                   = ' '
       I_GRID_TITLE                      =
       I_GRID_SETTINGS                   =
        IS_LAYOUT                         = L_LT
         IT_FIELDCAT                       = T_FLDCAT1[]
       IT_EXCLUDING                      =
       IT_SPECIAL_GROUPS                 =
       IT_SORT                           =
       IT_FILTER                         =
       IS_SEL_HIDE                       =
       I_DEFAULT                         = 'X'
       I_SAVE                            = ' '
       IS_VARIANT                        =
       IT_EVENTS                         =
       IT_EVENT_EXIT                     =
       IS_PRINT                          =
       IS_REPREP_ID                      =
       I_SCREEN_START_COLUMN             = 0
       I_SCREEN_START_LINE               = 0
       I_SCREEN_END_COLUMN               = 0
       I_SCREEN_END_LINE                 = 0
       I_HTML_HEIGHT_TOP                 = 0
       I_HTML_HEIGHT_END                 = 0
       IT_ALV_GRAPHICS                   =
       IT_HYPERLINK                      =
       IT_ADD_FIELDCAT                   =
       IT_EXCEPT_QINFO                   =
       IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
       E_EXIT_CAUSED_BY_CALLER           =
       ES_EXIT_CAUSED_BY_USER            =
        TABLES
          T_OUTTAB                          = <FS_2>
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " display
    FORM PF_STATUS_SET USING RS_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'DISPLAY' .
    ENDFORM. "PF_STATUS_SET
    *& Form Name: user_command *
    *& Form Desc: For Handling USER_COMMAND *
    FORM USER_COMMAND USING IF_UCOMM TYPE SY-UCOMM
                         IS_SELFIELD TYPE SLIS_SELFIELD.
      CASE IF_UCOMM.
        WHEN 'DOWNLOAD'.
          CALL FUNCTION 'POPUP_TO_CONFIRM'
            EXPORTING
      TITLEBAR                    = ' '
      DIAGNOSE_OBJECT             = ' '
              TEXT_QUESTION               = 'Data download to excel'
      TEXT_BUTTON_1               = 'Ja'(001)
      ICON_BUTTON_1               = ' '
      TEXT_BUTTON_2               = 'Nein'(002)
      ICON_BUTTON_2               = ' '
      DEFAULT_BUTTON              = '1'
      DISPLAY_CANCEL_BUTTON       = 'X'
      USERDEFINED_F1_HELP         = ' '
      START_COLUMN                = 25
      START_ROW                   = 6
      POPUP_TYPE                  =
    IMPORTING
      ANSWER                      =
    TABLES
      PARAMETER                   =
    EXCEPTIONS
      TEXT_NOT_FOUND              = 1
      OTHERS                      = 2
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
        BIN_FILESIZE                  =
              FILENAME                     = 'C:\Material-Text.xls'
             FILETYPE                      = 'ASC'
        APPEND                        = ' '
         WRITE_FIELD_SEPARATOR         = 'X'
        HEADER                        = '00'
         TRUNC_TRAILING_BLANKS         = 'X'
        WRITE_LF                      = 'X'
        COL_SELECT                    = ' '
        COL_SELECT_MASK               = ' '
         DAT_MODE                      = 'X'
       IMPORTING
         FILELENGTH                    = GL_LENGHT
            TABLES
              DATA_TAB                      = <FS_22>
      EXCEPTIONS
        FILE_WRITE_ERROR              = 1
        NO_BATCH                      = 2
        GUI_REFUSE_FILETRANSFER       = 3
        INVALID_TYPE                  = 4
        NO_AUTHORITY                  = 5
        UNKNOWN_ERROR                 = 6
        HEADER_NOT_ALLOWED            = 7
        SEPARATOR_NOT_ALLOWED         = 8
        FILESIZE_NOT_ALLOWED          = 9
        HEADER_TOO_LONG               = 10
        DP_ERROR_CREATE               = 11
        DP_ERROR_SEND                 = 12
        DP_ERROR_WRITE                = 13
        UNKNOWN_DP_ERROR              = 14
        ACCESS_DENIED                 = 15
        DP_OUT_OF_MEMORY              = 16
        DISK_FULL                     = 17
        DP_TIMEOUT                    = 18
        FILE_NOT_FOUND                = 19
        DATAPROVIDER_EXCEPTION        = 20
        CONTROL_FLUSH_ERROR           = 21
        OTHERS                        = 22
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          IF GL_LENGHT NE 0.
            MESSAGE S398(00) WITH 'DATA downloaded to EXCEL'.
          ENDIF.
    Thanks
      ENDCASE.
    ENDFORM.                    "user_command

  • Error while using dynamic pointers in STD_LOGIC_VECTORs and for sentences

    Hi Forum,
    I am having a few problems in the Synthesis cause I am using dynamic pointers in STD_LOGIC_VECTORs and for sentences.
    Here I show two examples: 
    1)
    indx := array_of_indexes(repeat_deep);
    aux_data(repeat_deep)(BUF_SIZE - indx*NUM_BITS downto BUF_SIZE-3 - indx*NUM_BITS) <= data_in_p;
    Here, my problem is that indx is a dynamic pointer so it works in the simulation but no in the Synthesis.
    aux_data is an array of STD_LOGIC_VECTORs
    2)
    for i_for in 0 to repeat_deep -1 loop
        indx := array_of_indexes(i_for);
        aux_data(i_for)(BUF_SIZE - indx*NUM_BITS downto BUF_SIZE-3 - indx*NUM_BITS) <= lasts_power(i_for);
        array_of_indexes(i_for) <= array_of_indexes(i_for) + 1;
    end loop;
    Here I have both problems, the 'repeat_deep' in the 'for' is dynimic, and the 'indx' in the STD_LOGIC_VECTORs.
    What can I do to solve the problem?
    Thanks!!
    Daniel

    "I am having a few problems in the Synthesis cause I am using dynamic pointers"
    If you're using Vivado, dynamic indexing is a known issue with Vivado Synthesis:
       Vivado Synthesis - Does Vivado Synthesis support non-constant (dynamic) range expression?
       http://www.xilinx.com/support/answers/52302.html
    -Brian

  • Step failure causes sequence failure Option

    Hi !
    I need some clarification about the Step failure causes sequence failure Option , I'm using TS 4.2 Under Win XP .
    Lets say i have a Seq with 4 steps in all of then Step failure causes sequence failure Option is Checked .
    Record Result in all of the3 steps is Checked , If the first step will fail will it perform the next steps ? and will it record the result for this steps ?
    Thank U . 
    Kobi Kalif
    Software Engineer

    Record Result in all of the3 steps is Checked , If the first step will fail will it perform the next steps ? YES
    and will it record the result for this steps ? YES
    What this is signifying, is if a Step fails then when the Sequence has completed and returned back to the caller the status of this step will be FAILED.
    If you need to jump to Cleanup then you will need to set the Post Action.
    regards
    Ray Farmer
    Regards
    Ray Farmer

  • Dynamic Command Parameter Prompts twice for Value

    I am having trouble in CR 2008 with command parameters.  Whenever I make the command parameter dynamic, I am prompted twice for the value: first I'm prompted to enter the value freehand, then the second prompt is a dropdown list with just the freehand value (or an error if the freehand value does not exist in the db).
    I need to use dynamic command parameters for two reasons: 1) to allow users to select the value from a dropdown list rather than a free-text value, and 2) to limit the record set returned from my initial command query.
    Any help on how to get dynamic command parameters to display all values in a dropdown list, and in one prompt, is appreciated!

    Hi
    If you create a parameter in your command it will be always static.  You can't make this as dynamic because, once your command get executed only you will get values in your report or in your list of values (dynamic parameter).
    There is a work around for this :
    --Create a report with command without any parameters at command level
    --Create a dynamic parameter at report level and do not place any fields in your report.
    --Now insert your orginal report as sub report in Report footer.
    --Right click on your sub report and go in change sub report links and link Main report dynamic parameter to your sub report command parameter.
    --Suppress all other section in your main report.
    Now when you refresh, it will execute your main report dynamic parameter with pick list.  Once user selects a value it will be passed to your command parameter.
    Thanks,
    Sastry

  • Dynamically set the soap address for web services

    Hi,
    I am developing an Oracle J2ee1.3 web service for Oracle application server 10.1.2.
    The web service needs to be deployed on to multiple servers. Hence the host and port for the soap:address needs to be changed for each server.
    Eg: For the 1st server the soap:address is http://www.server1.com/test/MyWebService
    For 2nd server the soap:address is http://www.server2.com/test/MyWebService
    Is there any way to dynamically change this address based on the server the Web Service is deployed to?
    Any help is highly appreciated.
    Thanks,
    Subashini

    It helps to post a link to a thread when you refer to it.  If you are trying to implement that solution though, you can look at the parameter of the corresponding method being called.  The parameter has type 'SIMPLE' which means that it is compatible with all of the predefined elementary ABAP types.  In this case, you should use 'STRING'.

  • OSD - USB insert media #1 for the task sequence

    Hi
    I'm creating a standalone media for USB
    Step that I did
    1. Create a Standalone media to .iso files
    2. Diskpart - I prepared the USB using the diskpart command
    3. Extract the standalone.iso files in the USB  (copy the contents)
    everything is work fine, exempt the packages that I included in the stanadlone TS is NOT installed and asking for "insert media #1 for the task sequence"
    This issue arise only when I used the USB
    Content of T.S  (stand alone task sequence)
    a. Windows 7 and company standard application
    b. Packages 1 : Install the 7Zip
    c. Packages 2 : Install the update for the acrobat reader
    I don't want to recreate the images due to minor changes and it will consume time also, that's why I added in the T.S place in USB
     Please advise , what is wrong
    Robert

    Hi,
    We also get the same problem, and at the time it occurs the USB stick does not show up in notepad, or in diskpart list disk.  
    It happens after the windows 7 image is apply just as it's trying to install the applications.

Maybe you are looking for