Passing additional data into setValue

I want to send additional data from outside of a datagrid
alongside the normal item object that goes inside the setValue
function of a cellrenderer.
Specifically, I have an XML node that has some properties in
its parentNode, when I send the node itself into the setValue, I
need to get some values from its parent node, only that its parent
node is outside of the datagrid, in a repeater (that builds
multiple datagrids).
Any idea about how to do that?

Hello again:
I think saisri2k2's suggestion has put me on the right track, although working on this for the past couple of days has not solved the problem.
If anyone wants to look at this, the project is here, http://www.timos.com/LeCreuset/LeCreuset.html and View Source is enabled. The file you want to look at is src > renderers > ProductThumb.mxml.
If you are looking at source, know that I have tried the following:
the variable ‘filterCount’ as public static;
the function ‘showsSalePrice()’ inside the get data getter instead of on the dataChange event;
invalidateProperties() in various places.
None of the above has worked: the filterCount is correct when you select a new category. When you select a category with fewer than 16 products, the tiles change to a state where they are bigger (as they should). But once they have turned bigger, they don not want to return to a state where they should be smaller when you switch to a category with more products. If you try changing categories using the ComboBox you will see this.
So I don’t know what else to try. I have a hunch this may have something to do with the fact that the renderers are recycled when the containing list uses the virtualization (which apparently you can’t turn of in an s:List).
If anyone has any ideas/suggestions, I would love to hear them.
Thanks and greeting to y’all,
Carlos

Similar Messages

  • Passing variable data into XSLT

    Hai all, I am trying to pass variable contents into a XSLT. I am trying the procedure given in the link below.I am not able to pass the parameter values into XSLT file.I am failing in the last step.
    Has anyone tried this example
    http://blogs.oracle.com/rammenon/2007/05/passing_bpel_variable_contents.html
    or
    Is there any other way to pass variable data into XSLT. Kindly help.
    Thank You

    True, the sample also uses the same function that I mentioned :
    <!-- convert Invoice to PO using XSLT service -->
              <assign name="transformVehicle">
              <copy>
                   <from expression="ora:processXSLT('InvToPo.xslt',bpws:getVariableData('input','payload') )"/>
                   <to variable="output" part="payload"/>
              </copy>                    
              </assign>

  • How to pass table data into below code for alv

    hi
    i want to pass table data into alvgrid
    i dont know how to pass table data.
    here instead of passing ABC into internal table
    i want to pass table data .
    please help me
    ialv-test1 = 'ABC'.
    form get_data.
    ialv-test1 = 'ABC'.
    ialv-test2 = 'DEF'.
    append ialv.
    ialv-test1 = 'GHI'.
    ialv-test2 = 'JKL'.
    append ialv.
    ialv-test1 = '123'.
    ialv-test2 = '456'.
    append ialv.
    endform
    thanks in advanced.

    Have a look at below links. It gives you sample code of alv grid.
    http://sap.niraj.tripod.com/id64.html
    http://www.sap-img.com/abap/sample-programs-on-alv-grid.htm
    Have a look at below links for SAP Help.
    http://help.sap.com/saphelp_nw04/helpdata/en/8d/e994374c9cd355e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/12/904f42d5f811d2b469006094192fe3/content.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Passing XMLType Data into oracle stored procedure using JDBC

    Hi Friends,
    I have requirement where my oracle stored procedure accepts XML file as an input. This XML File is generated in runtime using java, I need to pass that xml file using JDBC to oracle stored procedure. Please let me know the fesibile solution for this problem.
    Following are the environment details
    JDK Version: 1.6
    Oracle: 10g
    Server: Tomcat 6.x
    Thanks in Advance

    user4898687 wrote:
    I have requirement where my oracle stored procedure accepts XML file as an input. This XML File is generated in runtime using java, I need to pass that xml file using JDBC to oracle stored procedure. Please let me know the fesibile solution for this problem.As stated - no.
    A 'file' is a file system entity. There is no way to pass a 'file' anywhere. Not PL/SQL. Not java.
    Now you can pass a file path (a string) in java and to PL/SQL.
    Or you can pass xml data (a string) in java and to PL/SQL. For PL/SQL you could use eithe a varchar2, if the xml is rather small, or a blob/clob.

  • Passing array data into datagrid

    Hi,
    I need to pass data from an Array ( of Strings) into a datagrid. I have used the following text:
    <mx:DataGrid id="dg1" x="400" y="50" dataProvider="{myArray}">
    <mx:columns>
              <mx:DataGridColumn headerText="Names" />
    </mx:columns>
    </mx:DataGrid>
    The DataGrid does not show any data as I have not mentioned the dataField. Can you please tell - what woud the dataField be in this case as the array contains simple strings.

    Because your adding an Object to the arrayCollection you can add as many field names as you like as below.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]
                private var ac:ArrayCollection = new ArrayCollection();
                private function init():void {
                    var obj:Object = new Object();
                    obj.name = 'Andrew';
                    obj.town = 'Taunton';
                    obj.sex = 'Male';
                    var obj1:Object = new Object();
                    obj1.name = 'Jane';
                    obj1.town = 'Glastongury';
                    obj1.sex = 'Female';
                    ac.addItem(obj);
                    ac.addItem(obj1);       
            ]]>
        </mx:Script>
        <mx:DataGrid x="42" y="47" dataProvider="{ac}">
            <mx:columns>
                <mx:DataGridColumn headerText="Name" dataField="name"/>
                <mx:DataGridColumn headerText="Town" dataField="town"/>
                <mx:DataGridColumn headerText="Sex" dataField="sex"/>
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>
    In yours you just need to loop through your data source and create the objects and add them to the collection.
    Andrew

  • Upload additional data into existing material number.

    Hi Experts,
    I want to upload an additional info about Material (valuation category and valuation type), where the material ids are already exists.
    There are 87 data which i have to upload to their corresponding material numbers from notepad.
    So please suggest what should i follow to upload BDC or LSMW and also suggest how to do ...
    Thanks,
    Deepanshu Mathur
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Jun 24, 2011 10:07 AM

    Hi,
    MANDT is always added as one of the fields to make the table client specific and it has to be a primary key.
    As rest of your fields are non-primary key fields, your table will have duplicate records for all the fields. You shall not get any error even if you enter duplicate entries.
    As a general practice, it is always good to have at least one primary key on a a table apart from MANDT. This ensures faster data access and provides uniqueness for each record.
    Also, if your table does not have at least one primary key apart from MANDT, you shall not be able to maintain the table via SM30 even if you create a Table Maintanence.
    Regards,
    Danish.

  • In B2c - How to Pass Additional Data from UI to the Backend Systems in SAP?

    Just wondering in SAP b2c how can I set/transfer data from UI to the back end database/SAP after confirmation step?
    Edited by: Sayed Ahmed on Jul 27, 2008 6:47 AM

    Hi,
       Just use extension data methods to send the data to backend systems.
    This method is clearly mentioned in the above links.
    If you want to send the data to a new function module then follow this process.
    [How To Call Function Module in E-Commerce|https://wiki.sdn.sap.com/wiki/display/Snippets/HowToCallFunctionModuleinE-Commerce]
    and
    [How To Import and Export data to Function Module|https://wiki.sdn.sap.com/wiki/display/Snippets/HowToImportandExportdatatoFunctionModule]
    Regards,
    Sateesh Chandra

  • How to pass csv data from file into DLL using TestStand

    Hi,
    We have data files which are of CSV format. Each row contains
    about 9 items of data, and have about 5 rows of this data (ie, 5
    test points) :
    eg
    TErrAdd1,UUT,UUT,STM1E,AU4/FR,PRBS23,BIT,10,60
    TErrAdd2,UUT,UUT,STM4O,AU3/UNFR,PRBS15,B1,20,60
    TErrAdd3,UUT,UUT,STM16O,AU4_16C/UNFR,PRBS9,BIT,7,60
    TErrAdd4,UUT,UUT,STM0E,AU3/UNFR,PRBS20,B2,5,60
    TErrAdd5,UUT,UUT,STM64O,AU4_4C/FR,PRBS11,B1,6,60
    What we want to do is to be able to directly pass each
    row of data to a C/C++ DLL. The DLL fn accepts this
    data as a vector of strings.
    eg.
    void DLLTestFn( vector const & configData )
    However, we can write a wrapper for the DLL as I don't
    think TestStand will know about vectors.
    We don't really want to have to hardcode individial references
    to each item of data in TestStand. Is this possible?
    Just read in a row from a data file, and sent it direct
    to the DLL?

    Hi Richardi,
    the principle is quite simple, however, you still need to use a programming language to make the initial file read.
    Once you've done this, you could have it as an array of strings, and pass this directly to a wrapper DLL, which would then pass the data into a string vector.
    Look up the examples\AccessingArrays\PassingArrayParametersToDll\AccessingArrays.seq
    to see how to do this without passing the sequence context.
    If you've read in the details into a container type structure already, then I've made an example which demonstrates this principle and what you'll need to pass it to a vector. (Similar principle can be used to fill in the container when you read the file in the first place.
    You cannot go directly to a vector, since TestStand doesn't understand them.
    Vector classes are difficult to export polymorphically from a DLL since the template class doesn't export, and needs specifically defining. This is what I'm assuming you're ultimately trying to do. (see ref :
    How to Export STL components inside and outside of a class
    I've used VIsual C++ 6 and TestStand 3.0
    Please let me know if this helps to answer your query.
    Thanks
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer
    Attachments:
    for hannah vectors.zip ‏1619 KB

  • Passing data into a variable

    Hi, 
    All I want to do is pass numerical data into a variable, and then access it later. 
    Specifically, I use the Read Vector Space Position VI to find the X and Y positions of my motors. When I press a button, I want the X and Y position at that moment to be saved, so that I can access this information later.
    I would like to do this in a subVI.
    I have read tutorials on functional global variables, but so far they have been quite confusing. Specifically I do not know how to place/use uninitialized shift registers. 
    If someone could create a simple example code, that would be extremely helpful. I am using Labview 2011.
    Thanks

    Action Engine <- must read nugget
    If you don't understand shift registers...
    3 Hour Introduction
    6 Hour Introduction
    LabVEW Basics
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to Get data into I_ table which is Created dynamically

    Hi Guys ,
    I created one dynamic internal table , now I am want to display same internal table in my ALV? , how can I populate data into this internal table from my internal table based on some condition.
    My Requirement is?
    I have to display like this
    1.This is my heading (field_cat of my ALV in which pack size may varry based on the flavor).
    Plant flavor pack_size1----
    pack_size-n
    2. I have internal table( itab2) with all the pack-sizes and plant details.
    3. how can I pass the these data into (itab1) which going to display in ALV ?
    I can loop at itab2.
    How to pass this data into itab1 relevent fields ?
    Looking for Val. Inputs
    With Best Regards
    Prabhu
    TC-Team SAP
    Pepsi India
    [email protected]

    Hi,
    This is a code snippet.
        DATA: r_dyn_table      TYPE REF TO data,
              r_wa_dyn_table   TYPE REF TO data,
              l_fields_table type SOI_FIELDS_TABLE.
        FIELD-SYMBOLS: <t_dyn_table>    TYPE STANDARD TABLE,
                       <wa_dyn_table>   TYPE ANY,
                       <w_field1>        TYPE ANY,
                       <w_field2>        TYPE ANY.
        DATA: l_oref_structure TYPE REF TO cl_abap_structdescr,
              l_abap_compdescr type abap_compdescr.
        data: check1 type i,
              check2 type i,
              l_range(20).
        r_dyn_table = IL_DYNDATA-r_dyn_table.
        ASSIGN r_dyn_table->* TO <t_dyn_table>.
        CREATE DATA r_wa_dyn_table LIKE LINE OF <t_dyn_table>.
        ASSIGN r_wa_dyn_table->* TO <wa_dyn_table>.
        l_oref_structure ?= cl_abap_typedescr=>describe_by_data(
                             wa_supl ).
        loop at il_fill_itab into wa_supl.
          loop at l_oref_structure->COMPONENTS into l_abap_compdescr.
            ASSIGN COMPONENT l_abap_compdescr-name
                   OF STRUCTURE wa_supl TO <w_field1>.
            check1 = sy-subrc.
            ASSIGN COMPONENT l_abap_compdescr-name
                   OF STRUCTURE <wa_dyn_table> TO <w_field2>.
            check2 = sy-subrc.
            if check1 = 0 and check2 = 0.
              <w_field2> = <w_field1>.
            endif.
          endloop.
          APPEND <wa_dyn_table> TO <t_dyn_table>.
        endloop.
    You can access your dynamic internal table via a field symbol.
    Svetlin

  • Loading wave file data into array

    Greetings
    For starters, I'm still learning java, so forgive me if this is a trivial question. I've been using the documentation on the java sound api as a guide. What I am trying to do is to load a wav file data into a byte array and eventually I will need it to have it in an int array so I can pass the data into a demodulation algorithm to display as an image. This wave file is a recorded signal from a NOAA satellite. Here is my code thus far:
    public boolean loadFile(File soundFile) {
              int totalFramesRead = 0;
              boolean result=false;
              File fileIn = new File(soundFile.getPath());
              try {
                   AudioInputStream ais = AudioSystem.getAudioInputStream(soundFile);
                   int bytesPerFrame = ais.getFormat().getFrameSize();
                   // Set an arbitrary buffer size of frames.
                   int numBytes = 1024*bytesPerFrame;
                   byte[] audioByte= new byte[numBytes];
                   try {
                        int numBytesRead = 0;
                        int numFramesRead = 0;
                        // Try to read numBytes bytes from the file.
                        while ((numBytesRead = ais.read(audioByte)) != -1) {
                             // Calculate the number of frames actually read.
                             numFramesRead = numBytesRead / bytesPerFrame;
                             totalFramesRead += numFramesRead;
                             return(result= true);
                   } catch (Exception ex) {
                   JOptionPane.showMessageDialog(desk, " Error Loading File" ,"Error",
                             JOptionPane.WARNING_MESSAGE);
                   ais.close();
                   throw ex;}
              } catch (Exception ex) {
                   JOptionPane.showMessageDialog(desk, " Error Loading File" ,"Error",
                             JOptionPane.WARNING_MESSAGE);
              return result;
         }

    You can find oracle documentation for sqlldr (11g) here:
    http://docs.oracle.com/cd/B28359_01/server.111/b28319/ldr_concepts.htm#SUTIL003
    If you have questions on details you should post your question in the special sqlldr forum:
    Export/Import/SQL Loader & External Tables
    hm

  • Is it possible to convert LabView data into OLE variant?

    Hi. I'm using Activex Data Objects (ADO) to communicate with MySQL. Some ActiveX methods give OLE variant output, with "Variant Type" like "VT_ARRAY|VT_UI1", "VT_UI1" or "VT_BSTR". With some deduction and trial and error is relatively simple to extract data from this OLE variants and convert them to LabView data types. The problem is when I try to input variant data to some ActiveX methods, it almost always give me errors, I suppose because it expects the same type of the outputs, this is: OLE variants. Now, the question is: ¿Is there any way to convert LabView data into OLE variant data? ¿How?
    I've been searching and found a lot of posts about problems when passing variant data into ActiveX, saying that sometimes SAFEARRAYs are needed, sometimes saying that there were some bugs in LV6, giving some workarounds to this bug and saying that it is fixed in LV7.1, but the supposed workarounds don't work and the bug is still present in LV7.1, if it is really a bug.
    I think that if I could put LV data into OLE variant shape I may find an answer and solution to this matter.
    Thank you
    Daniel R.
    UdeC - Chile

    Below I describe how to handle OLE Variants, but I wanted to mention that LabVIEW does have a Database Connectivity toolkit (http://sine.ni.com/nips/cds/view/p/lang/en/nid/6429) that has already created a set of VIs for ADO. You might check that out first.
    However, handling OLE Variants in LabVIEW is automatic. LabVIEW itself has a variant datatype. When you use the ActiveX property or invoke nodes and one of the parameters is an OLE Variant, it is automatically converted to a LV Variant. You can then use the LV Variant VIs (such as "Variant to Data" and "To Variant").
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Bringing php data into flash file

    I've got a php file, below is the code from it:
    <?php
    $dir = "photos/";
    // Open a known directory, and proceed to read its contents
    if (is_dir($dir)) {
    if ($dh = opendir($dir)) {
    $fileList = "";
    while (($file = readdir($dh)) !== false) {
    if ($file != "." && $file != "..") {
    If ($fileList == "") {
    $fileList = $file;
    else
    $fileList = $fileList . ", " . $file;
    echo "&newVar=$fileList";
    closedir($dh);
    ?>
    it returns a full list of files in a specified directory on
    the server.
    I need to pass that data into flash, so that it can build an
    array, and do
    other things with it.
    i can use:
    loadVariables("filename.php", "");
    and then create a text box with the variable value of
    "newVar" and it will
    display the file list, but I can't seem to get that string
    into a workable
    variable that i can do things to it.
    could someone point me to how to do this, or let me know if
    you need more
    info on it.
    thanks.

    I'm able to get the list into flash as it's currently
    written, but I can
    only get it to display in a text box instead of haveing it in
    a format that
    i can do things go.
    fileListArray = fileList.split(",");
    I've been using this code to split the php's return into an
    array of the
    file names. I just can't seem to get it to work with the
    loadvars/loadvariables stuff.
    for example, the below code works perfectly:
    var fileList:String;
    var fileListArray:Array;
    fileList = "01.jpg,02.jpg,03.jpg,04.jpg,05.jpg,06.jpg";
    fileListArray = fileList.split(",");
    when i try to display fileListArray[2] as the above code is
    written, it
    displays the correct .jpg file name. i just can't seem to
    find a way to get
    the php's return to work the same way.
    "DMennenoh **AdobeCommunityExpert**"
    <[email protected]> wrote in
    message news:f0amga$ldh$[email protected]..
    > You're close, but you don't want to return all the files
    in one variable -
    > return them all as something like file1 - filen. Then
    you can iterate file
    > in your onLoad.
    >
    > Change your PHP like so:
    >
    > <?PHP
    > $dir="photos/";
    >
    > // Open a known directory, and proceed to read its
    contents
    > if (is_dir($dir)) {
    > if ($dh = opendir($dir)) {
    > $ind = 1;
    > $fileList = "";
    > while (($file = readdir($dh)) !== false) {
    > if ($file != "." && $file != "..") {
    > $fileList .= "&file$ind=".$file;
    > $ind++;
    > }
    > }
    > echo($fileList);
    > closedir($dh);
    > }
    > }
    > ?>
    >
    >
    > Now, in your onLoad function you can do like so:
    >
    > myLoader.onLoad = function(success){
    > var ind = 1;
    > while(this['file' + ind]){
    > trace(this['file' + ind]);
    > ind++;
    > }
    > }
    >
    > Of course, you can then stick the files into an array...
    >
    >
    > HTH
    >
    > --
    > Dave -
    > Head Developer
    >
    http://www.blurredistinction.com
    > Adobe Community Expert
    >
    http://www.adobe.com/communities/experts/
    >

  • Transferring data into WF container

    Hi All ,
    Now I am trying to Pass some field values into a container element by using the below statement.
    in my ABAP program.
    SWC_SET_ELEMENT t_cont 'L_DATE' WA_PROC01-SPPDAT.
    where I am fetching a date value into the workarea wa_proc01.
    L_DATE is my WF Container element and t_cont is of type swcont.
    And while debugging the method I wrote in the method or the BO as below.
    DATA :w_task TYPE swwwihead-wi_rh_task VALUE 'WS90600050'.
    SWC_GET_ELEMENT t_cont 'L_DATE' WA_PROC01-SPPDAT.
    CALL FUNCTION 'SAP_WAPI_READ_CONTAINER'
    to read the values of the container at runtime.
    But I dont see any container elements in there.
    Pls let me knw where I am gettting wrong.
    I did this much seeing some previous threads.
    Regards,
    Krishna.

    Thanks for your interest.
    Below is the code of the Method.
    Actually in thtis method I want to fetch the data from the DB table for a Project definition and Expence category.
    I am entering the details in a custom screen and then trying to pass those screen values into this WF container elements so that I can Send Mails and create mised deadline steps based on the values of the Elements.
    For triggering the workflow I am using SWE_EVENT_CREATE and Passing the data into WF container using
    SWC_SET_ELEMENT t_cont 'L_DATE' WA_PROC01-SPPDAT.
    and triggering WF also from program using
            CALL FUNCTION 'EWW_WORKFLOW_START'.
    I also tried triggering on event creating using in the WF.
    It triggers all the things fine but I am confused how to use my WF elements etc.
    1  *****           Implementation of object type ZPS_ORPF             *****
    2  INCLUDE <OBJECT>.
    3  BEGIN_DATA OBJECT. " Do not change.. DATA is generated
    4  * only private members may be inserted into structure private
    5  DATA:
    6  " begin of private,
    7  "   to declare private attributes remove comments and
    8  "   insert private attributes here ...
    9  " end of private,
    10    BEGIN OF KEY,
    11        PROJECTDEFINITION LIKE ZPS_PROC-PSPID,
    12    END OF KEY.
    13  END_DATA OBJECT. " Do not change.. DATA is generated
    14
    15  BEGIN_METHOD ZGET_DATE CHANGING CONTAINER.
    16   TYPES: BEGIN OF TP_ZPS.
    17      INCLUDE structure zps_proc.
    18  TYPES: END OF TP_ZPS.
    19  TYPES: BEGIN OF TP_ZPS01.
    20          INCLUDE STRUCTURE ZPS_PROC01.
    21  TYPES: END OF TP_ZPS01.
    22
    23  DATA : L_SPNDAT TYPE ZSPNITPPUBDAT,
    24         L_ZCT TYPE ZCAT_TYPE,
    25         L_ZPP TYPE ZPACKAGE.
    26  DATA : T_ZPS01 TYPE TABLE OF TP_ZPS01 WITH HEADER LINE INITIAL SIZE 0.
    DATA : T_ZPS TYPE TABLE OF TP_ZPS WITH HEADER LINE INITIAL SIZE 0.
    DATA : L_PSPID TYPE PS_PSPID.
    data : wa_proc01 like line of T_ZPS01.
      GET PARAMETER ID 'PSP' FIELD L_PSPID.
      GET PARAMETER ID 'ZCT' FIELD L_ZCT.
      GET PARAMETER ID 'ZPP' FIELD L_ZPP.
    CLEAR T_ZPS.
    break CLSTORPF1.
    data:
    w_task TYPE swwwihead-wi_rh_task VALUE 'WS90600050',
    t_cont  TYPE TABLE OF swcont.
    data :w_task1 like SWR_STRUCT-WORKITEMID value 'WS90600050'.
    SWC_GET_ELEMENT t_cont 'L_DATE' WA_PROC01-SPPDAT.
    CALL FUNCTION 'SAP_WAPI_READ_CONTAINER'
      EXPORTING
        WORKITEM_ID                    = W_TASK1
      TABLES
        SIMPLE_CONTAINER               = t_cont.
    SELECT * FROM ZPS_PROC INTO CORRESPONDING FIELDS OF TABLE
                  T_ZPS WHERE PSPID EQ L_PSPID.
    select * from zps_proc01 into corresponding fields of table t_zps01
                where pspid = l_pspid and expcat = l_zct.
                if sy-subrc eq 0.
                endif.
    ******For testing purpose only
        data: exit type c.
          do.
          if exit = 'X'.
          exit.
          endif.
          enddo.
    ENDFORM.
    I am trying to learn this.Pls accept my apologies if I am doing very simple mistakes.
    Regards,
    Krishna.

  • Need help pass in date parameter into bat file.

    Is it possible to schedule sql job to execute bat files and pass in date below.
    I want to take a system date and pass into the bat file below.  A Schedule Job will run on Monday at 9 P.M.
    I want to automate this process instead manually enter into the bat file.  Is that possible?
    Any suggestions is appreciate.  SQL 2012
    Thank you so much in advance.
    SQL Schedule job
    DECLARE @sMonday VARCHAR(25) = REPLACE(CONVERT(VARCHAR(10), GETDATE(), 1), '/', '')
    SET @sMonday = @sMonday + '_qa48_Clonedb'
    SELECT @sMonday
    --021315_qa48_Clonedb
    DECLARE @sPrevMonday VARCHAR(25) = CAST(REPLACE(CONVERT(CHAR(10), DATEADD(DAY, - (DATEPART(dw, GETDATE() ) - 1), GETDATE() ),1), '/', '') AS CHAR(6))
    SET @sPrevMonday= @sPrevMonday + '_qa48_Clonedb'
    SELECT @sPrevMonday
    --020815_qa48_Clonedb
    Result want:
    -- Testbatfile.bat
    REM 021615_qa48_Clonedb
    SET sToday = @sMonday        
    SET sPreviousWeek = @sPrevMonday
    SET sNumOfDay=07
    DiskMirror -l snapsrvcfdba n4brec01a -i privkey.ppk "snap rename sql32oltp_repl_dataf sqlsnap__brpRMSDVS050a__recent %sToday% "
    DiskMirror -l snapsrvcfdba n4brec01a -i privkey.ppk "snap rename sql32oltp_repl_logf  sqlsnap__brpRMSDVS050a__recent %sToday% "
    DiskMirror -l snapsrvcfdba l9ABC01d -i privkey.ppk "snap rename sql100oltp_repl_dataf %sPreviousWeek% sqlsnap__ABCPWSCVR050a__%sNumOfDay% "

    See
    https://sharminjahan625.wordpress.com/2013/08/30/384/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • Creative Labs: A Boy's St

    Hi everyone, I came to these forums after I heard of the recent developments from Creative Labs. After reading what many people wrote, I?thought I would share?the story of how Creative became a part of my life. I was twelve years old when I first lea

  • Creating a smart folder with Terminal?

    What I'm trying to do might not be possible, which wouldn't surprise me at all. What I'd like to do is one of the following: 1. Create a smart folder that contains everything in the "/" folder. 2. Create a smart folder that is populated with every vo

  • Dual pairing in OS X and Windows

    If I understand the bluetooth pairing process correctly, the MAC addresses of a bluetooth receiving device (the bluetooth adapter itself) and a bluetooth emitting device (in this case, the Magic Trackpad) are paired shared a randomly selected 16-bit

  • Username and password not validated

    I can not use my apps because I keep getting this message. I have validated my address and so has boostmobile support. I give, can someone help me. Dayna J

  • Defaulting dummy bidder

    I have to default a dummy Bidder , in BBP_BID_INV I have added the following code in in DOC CHANGE BADI implementation     IF et_partner IS INITIAL.         SELECT SINGLE partner partner_guid FROM but000 INTO wa_dummy WHERE            bu_sort1 = 'DUM