Parameters of SXPG_CALL_SYSTEM

Hi,
SXPG_CALL_SYSTEM has two importing parameters, status and exitcode.
status is describes in the documentation, whereas exitcode is not.
Is it sufficient to check status and sy-subrc for successful execution? What does exitcode contain?

Hi,
I guess it is the exitcode that is returned from the called program or script.
static int Main(string[] arguments)
            //return exit code
            // 0  : case 0
            // 1  : case 1
            // 2  : case 2
            // -1 : error occured
            return exitCode;
/Simo

Similar Messages

  • How to use FM: SXPG_CALL_SYSTEM

    Hi all.
    i used the FM SXPG_CALL_SYSTEM  as below
    w_ext_cmd = 'ZREMSH'.
    w_params = 'HARP -L BATCHMGR LS -L ~ORDER_BOOKING/PMAIL/DV4/*.TXT'.
    CALL FUNCTION 'SXPG_CALL_SYSTEM'
          EXPORTING
            commandname                = w_ext_cmd
            additional_parameters      = w_params
    ZHREMSH was already added by BASIS.
    the output was ERROR:
                          18  permission denied.
                          44  External program terminated with exit code 1
    i loggen in into my user Account.
    can u please provide me the process how i can execute it successfully. If possible with a sample program.
    thanks,
    Ajay

    Hi Ajay,
    Refer below code snippet :
    DATA: DIR_PREFIX(40) TYPE C VALUE '/usr/sap/trans/SID/BACCHUS',
            FROM_FILE(125) TYPE C,
            TO_FILE(125) TYPE C,
            W_MESS_AREA LIKE TSL1D-AREA VALUE 'LC',
            W_MESS_AREA_SUB LIKE TSL1D-SUBID VALUE '0',
            W_CMD    LIKE SXPGCOLIST-NAME,           "cmd name
            W_STATUS LIKE BTCXP3-EXITSTAT, "cmd exit status
            W_PARM   LIKE SXPGCOLIST-PARAMETERS.           "cmd parameters
      DATA:  RTAB LIKE BTCXPM OCCURS 20 WITH HEADER LINE.
    * Logical command name
      MOVE: COMMAND TO W_CMD,
            IN_FILE TO FROM_FILE,
            OUT_FILE TO TO_FILE.
    * Check directory prefix
      REPLACE 'SID' WITH SY-SYSID INTO DIR_PREFIX.
      CONDENSE DIR_PREFIX NO-GAPS.
      IF FROM_FILE(24) NE DIR_PREFIX(24) OR
           TO_FILE(24) NE DIR_PREFIX(24).
        MESSAGE ID 'ZBCSTANDARD' TYPE 'E' NUMBER 107 WITH FROM_FILE(24).
      ENDIF.
      CONCATENATE FROM_FILE
                  TO_FILE
                  INTO
                  W_PARM
                  SEPARATED BY SPACE.
      CALL FUNCTION 'SXPG_CALL_SYSTEM'
           EXPORTING
                COMMANDNAME                = W_CMD
                ADDITIONAL_PARAMETERS      = W_PARM
           IMPORTING
                STATUS                     = W_STATUS
    *           EXITCODE                   =
           TABLES
                EXEC_PROTOCOL              = RTAB
           EXCEPTIONS
                NO_PERMISSION              = 1
                COMMAND_NOT_FOUND          = 2
                PARAMETERS_TOO_LONG        = 3
                SECURITY_RISK              = 4
                WRONG_CHECK_CALL_INTERFACE = 5
                PROGRAM_START_ERROR        = 6
                PROGRAM_TERMINATION_ERROR  = 7
                X_ERROR                    = 8
                PARAMETER_EXPECTED         = 9
                TOO_MANY_PARAMETERS        = 10
                ILLEGAL_COMMAND            = 11
                OTHERS                     = 12.
      IF SY-SUBRC NE 0.
        IF SY-SUBRC EQ 4.
          MESSAGE ID 'ZBCSTANDARD' TYPE 'E' NUMBER 105 WITH SY-SUBRC
                                                            FROM_FILE.
        ELSE.
          MESSAGE ID 'ZBCSTANDARD' TYPE 'E' NUMBER 106 WITH SY-SUBRC
                                                            TO_FILE.
        ENDIF.
      ELSE.
        IF W_STATUS EQ 'O'.
    *     Command executed
          READ TABLE RTAB INDEX 1.
          IF RTAB-MESSAGE CO '1234567890 '.
          ELSE.
    *       Executed command came back with an error
            MESSAGE ID 'ZBCSTANDARD' TYPE 'E' NUMBER 108 WITH RTAB-MESSAGE.
          ENDIF.
        ELSE.
    *     Command not executed
    *     MESSAGE ID 'ZBCSTANDARD' TYPE 'E' NUMBER 109 WITH w_status
    *                                                       to_file.
        ENDIF.
      ENDIF.
    ENDFORM.                               " MOVE_FILE
    Regards
    Abhii

  • Copy command called through FM SXPG_CALL_SYSTEM not performed properly

    Hi  Gurus,
    I am calling the FM SXPG_CALL_SYSTEM with the command name as COPY maintained for windows NT server and I am passing the additional parameters with the file names ( source file <space> destination file). Source files can be picked using wild characters (for eg:filename_o_*.wrk) and all the files fetched from Source has to be placed into the one target file specified in the destination.
    While performing this FM, we are getting error sometimes. suppose if there are two files present in the source, first part of first file and second part of second file is copied and not the whole file. So we are missing second part of first file and first part of second file. This happens randomly like once in a day. Can you please suggest how to rectify this error?
    This is in High priority.  Any immediate response is highly appreciated.
    Please advice me the right forum for posting this if this is not the right forum.

    Thx for the explanation, you're right! (very surprising to me)
    Well, I tried on my XP SP 3 system:
    When we use * or ?, then there's the issue you mention:
    - For the test, I created 2 files named source1 and source2, one containing AAAA\[CTRLZ\]BBBB in my local encoding (cp1252), and the other CCCC\[CTRLZ\]DDDD.
    - If I use COPY source* result, a new file "result" is created containing AAAACCCC\[CTRLZ\]. Note that \[CTRLZ\] is always added once at the end.
    - If I do it with only one file but with a generic character (COPY sourc?1 result), there's the same issue.
    - Same issue also if I copy a whole directory to a file (COPY directory result)
    When I use COPY source1 result (only one source file, and no generic character * or ?), there's no issue.
    When I use /b (COPY /b source* result), it works well. Note: be careful with /b position, COPY source* result /b, /b is ignored if it is at the end.
    Doesn't explain why the beginning of a file was not copied, though.

  • Using SXPG_CALL_SYSTEM  to execute Unix 'MV' command not working

    Here is the code (method - params begin with "p_").  This returns no error but yet the file is not moved (called in a test program).  Any ideas?
    DATA: lv_sourcepath TYPE rlgrap-filename,
            lv_targetpath TYPE string,
            lv_fname      TYPE rlgrap-filename,
            lv_path       TYPE rlgrap-filename,
            lv_paramstr   TYPE sxpgcolist-parameters,
            lv_status     TYPE extcmdexex-status,
            lv_execproto  TYPE TABLE OF btcxpm.
      " Get physical path to archive folder
      lv_targetpath = zcacl001_utilities=>get_appserver_path( 'ZDIR_KHRIS_INTF_ARCV' ).
      " Type casting needed for function module call below
      lv_sourcepath = p_sourcepath_in.
      " Split filename from path in source
      zcacl001_utilities=>parse_file_path( EXPORTING
                                              p_fullname_in   = lv_sourcepath
                                           IMPORTING
                                              p_filename_out  = lv_fname
                                              p_path_out      = lv_path ).
      " Concatenate filename to target path
      CONCATENATE lv_targetpath lv_fname INTO lv_targetpath.
      " Build parameter string
      CONCATENATE '-f' lv_sourcepath lv_targetpath INTO lv_paramstr SEPARATED BY space.
      CALL FUNCTION 'SXPG_CALL_SYSTEM'
        EXPORTING
          commandname                = 'mv'
          additional_parameters      = lv_paramstr
          trace                      = space
        IMPORTING
          status                     = lv_status
          exitcode                   = p_exitcode_out
        TABLES
          exec_protocol              = lv_execproto
        EXCEPTIONS
          no_permission              = 1
          command_not_found          = 2
          parameters_too_long            = 3
          security_risk                  = 4
          wrong_check_call_interface = 5
          program_start_error            = 6
          program_termination_error      = 7
          parameter_expected         = 8
          too_many_parameters            = 9
          illegal_command                = 10.

    Try to put this type of entry in the Object request.
    Prog Obje Objectname
    R3TR EXCC commandname
    I am not sure, weather this will work or not.
    Regards,
    Naimesh Patel

  • Wildcard in rm with SXPG_CALL_SYSTEM

    Hello everyone
    I'm calling function SXPG_CALL_SYSTEM for a system command without parameters.
    This command is defined in sm69 and is stated:
    command: rm
    parameters: -r /Gedis/Interfaces/GD1/DOC1/tre/*
    extra parameters: no.
    The function executes and the result i get is: 
    rm: /Gedis/Interfaces/GD1/DOC1/tre/*: A file or directory in the path name does not exist.
    We double- and  triplechecked the writing, and that's ok.
    Could it be that the wildcard '*' can not be executed ?
    Thanks in advance.
    Merijn.

    Well even i tried once for executing a wild card search parameter for a call to an external global data system for fetching vendor details through SXPG_CALL_SYSTEM. And we convinced the client that it was not possible and changed the bussiness requirement. Lets wait and see if someone comes up with a solution if it exists.
    Virkanth

  • Retriving only hidden parameters from request.getParameter

    Hi,
    I want to retrive only the hidden parameters from previous JSP page into current JSP page. The problem here is that my hidden parameters in privious page are dynamically generated (parameter names are decided based on values retrived from the database) and I cannot retrive them using "request.getParameter(<parametername>)"
    Can I find the parameter type (i.e. text box, text area, checkbox, radio or hidden) from the request.getParameter() or request.getParameterNames() methods? or is there any other way to find it.
    Thanks in advance for any help

    You can use the getParameterNames() or getParameterMap() methods from javax.servlet.ServletRequest to get all the parameters in the request. Even if they're dynamically generated, and you don't know the names in advance, these methods will ferret them out.
    getParameterMap() returns name String, values String [] pairs, so you'll have to work with String arrays to get the input out. It's got to be that way to accomodate checkboxes and other HTML form elements that can send more than one value for a given name.
    I prefer getParameterMap, because I don't like using Enumerations as much. - MOD

  • [Interface] - Passing variety parameters/input to PL/SQL report

    Hi,
    I've the PL/SQL report which can allow passing in the parameter, i use '&'.
    the report is given to the end user who do not have the IDE for PL/SQL. the machanism of the report is generated into the spool file and import into excel format.
    now i am wondering how to create a tool using SQL or PL/SQL to allow the end user to choose the parameter(s) dynamically and passing into the PL/SQL to generate the report based on the input selected.
    the parameters like below:
    package code :
    week no :
    year :
    department :
    all the above parameters, the data would be selected from the existing lookup table. the user is allow to select more than 1 input for specified parameter for instance i want to spool report for week 1 until week 5.
    pls advise any solution on this topic. thanks

    hi scoot,
    thank for reply.
    yep, i'm using sql*plus and also sql navigator 4.0 .
    the user don't have the software to interact. i'm thinking of build an simple interface using VB and passing in the parameter then initiate the sql*plus to run the program in background mode.
    but if you have any other solution which not need to use other software to wirte such program , pls let me know immediately. thank

  • Report should prompt me for parameters, please help.

    Hi All,
    I am using Crystal version 10, So is there any way I can get the behaviour of my parameters as dynamic parameter? I have this requirement because when I am deploying the Report on BO server, and try to open the report from InfoView, it is not prompting me for parameters, rather it is giving me the copy which we had scheduled earlier. To get the fresh data with different parameters, we again need to schedule the report.
    What I want is simple, Whenever user clicks on the report link in infoview, I should be promted for the parameters my report is using.
    Please help..
    Thanks
    -Azhar

    Hi
    It would prompt whenever it's refreshed.
    You can refer to Business View manager guide from [here|http://help.sap.com/businessobject/product_guides/boexir2/en/xir2_bv_admin_en.pdf ] for detailed information.
    Hope this helps!!
    Regards
    Sourashree

  • How to avoid the parameters accepting screen generated by crystal report

    Hi ,
    I designed one rpt file which will take one parameter and trying to run that file from java servlets. But I am getting one problem. I am passing parameters from jsp and setting those to the crystal report but, instade of generating the report, it is generating one jsp page which is having text feild , after enter the parameter value onece I submit this page then only I am getting required output.
    anybody please help me in this. Below I am placing my code.     
                   ReportClientDocument reportClientDocument = new ReportClientDocument();
                   CrystalReportViewer viewer = new CrystalReportViewer();
                   ServletContext cxt = req.getSession().getServletContext();
                   String fileName = "C:/Documents and Settings/Administrator/Desktop/lib-so/ix_sample2.rpt";
                   try
                        String realPath = fileName;
                        reportClientDocument.open(realPath, 0);
                        viewer.refresh();
                        viewer.setReportSource(reportClientDocument.getReportSource());
                   catch(Exception e)
                        System.out.println("inside catch block...");
                        e.printStackTrace();
                   IReportSource reportSource = reportClientDocument.getReportSource();
                   Fields oFields = new Fields();  
                   ParameterField portfolio = new ParameterField();
                   portfolio.setName("Portfolio");
                    Values oValues = new Values();
                      ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
                       oParameterFieldDiscreteValue.setValue(new Integer(16));
                       oValues.add(oParameterFieldDiscreteValue);
                       portfolio.setCurrentValues(oValues);
                       portfolio.setReportName(fileName);
                       oFields.add(portfolio);
                          viewer.setOwnPage(false);
                               viewer.setParameterFields(fi);
                       try {
                             viewer.processHttpRequest(req, res, cxt, res.getWriter());
                             viewer.dispose();
                       catch (ReportSDKExceptionBase e) {
                             e.printStackTrace();
    thanks,
    Mallikarjun
    Edited by: mallikarjuna.ch1 on May 17, 2009 9:58 AM

    Thanks a lot for worthful suggetion Neeraj.
    I got resolved my problem. I have one more issue, please give a clarification about that.
    my doublt is,
    For parameterized rpt file running purpose I need to set the database details . every jar file is placed in application lib only. And my CRConfig.xml file also placed bellow.
                  <?xml version="1.0" encoding="utf-8"?><CrystalReportEngine-configuration>
        <timeout>1</timeout>
        <ExternalFunctionLibraryClassNames>
              <classname> </classname>
              <classname> </classname>
        </ExternalFunctionLibraryClassNames>
    <keycode>B6W60-01CS200-00GCPT0-0JY1</keycode>
    <Javaserver-configuration>
    <DataDriverCommon>
         <JavaDir>D:\inventex\crystal_report\Business Objects\j2sdk1.4.2_08\bin</JavaDir>
        <Classpath>$</Classpath>
         <IORFileLocation>$</IORFileLocation>
         <JavaServerTimeout>1800</JavaServerTimeout>
         <JavaServerStartupTimeout>30</JavaServerStartupTimeout>
         <JVMMaxHeap>64000000</JVMMaxHeap>
         <JVMMinHeap>32000000</JVMMinHeap>
         <NumberOfThreads>100</NumberOfThreads>
    </DataDriverCommon>
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:sqlserver://10.0.0.65:1433;DatabaseName=reportmanager</JDBCURL>
         <JDBCClassName>com.microsoft.sqlserver.jdbc.SQLServerDriver</JDBCClassName>
         <JDBCUserName>malli</JDBCUserName>
         <JNDIURL></JNDIURL>
         <JNDIConnectionFactory></JNDIConnectionFactory>
         <JNDIInitContext>/</JNDIInitContext>
         <JNDIUserName>weblogic</JNDIUserName>
         <GenericJDBCDriver>
              <Default>
                   <ServerType>UNKNOWN</ServerType>
                   <QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>Standard</LogonStyle>
              </Default>
              <Sybase>
                   <ServerType>SYBASE</ServerType>
                   <QuoteIdentifierOnOff>OFF</QuoteIdentifierOnOff>
                   <DriverClassName>com.sybase.jdbc2.jdbc.SybDriver</DriverClassName>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>MySQL</LogonStyle>
              </Sybase>
         </GenericJDBCDriver>
    </JDBC>
    <XML>
         <CacheRowSetSize>100</CacheRowSetSize>
         <PreReadNBytes>4096</PreReadNBytes>
         <XMLLocalURL></XMLLocalURL>
         <SchemaLocalURL></SchemaLocalURL>
         <XMLHttpURL></XMLHttpURL>
         <SchemaHttpURL></SchemaHttpURL>
    </XML>
    <JavaBeans>
        <CacheRowSetSize>100</CacheRowSetSize>
         <JavaBeansClassPath></JavaBeansClassPath>
    </JavaBeans>
    </Javaserver-configuration>
    </CrystalReportEngine-configuration>
    still it is showing "Error finding JNDI name (sql server) " error. I am solving this problem setting these paramers through program.

  • SSRS with DAX - parameters multivalue vs total element

    Hi all,
    I'm using SSRS on top of a SSAS tabular model to create intuitive dashboards for management department.
    One thing I'm struggling with is the lack of a "total" on parameters. What I'm doing is, based on the fact table, I create the datasets that will feed each parameter, so it only has the dimension members available on the fact table. That is fine
    performance wise, you only have 1 element and it renders very quickly.
    For a management perspective at a higher level it is important to view the totals to have the big picture of the information. In my project we are in a University, so I have the parameters Year, school (there are several schools in the university campus)
    and the course (computer sciences, math, statistics, etc).
    At first glance, if I'm a course coordinador I want to pick my course and have a global view, and I'm achiveing that, but imagine now, that I am the school coordinator, or the university coordenator.
    I want to see the aggregate values by all courses or by all schools.
    In my view I have 2 ways to do this and I come from a tradition cubes background:
    1 - I would use the all element the cubes hierarchy have on each attribute
    2 - I would use multivalue parameters with StrToSet (worse performance)
    Using DAX what is your approach?
    Best regards

    Hi AsifMehmood,
    Per my understanding you have create an SSRS report with SharePoint list, now you don’t know to create the distinct parameters by using CAML query,  right?
    For the CAML language doesn’t have any reserved word (or tag) to set this particular filter to remove duplicate results, but we can use the custom code to do this function. I have tested on my local environment and we can do that by create one hidden parameter(Param1)
    to get all the values from the fields which will  add the filter and then create another parameter(Param2) to get the distinct values based on the Param1, we use the custom code to do the deduplication.
    Step by Steps information in below thread for your reference to create the parameters and the custom code:
    "How to get distinct values of sharepoint column using SSRS"
    Other similar thread for your reference:
    https://audministrator.wordpress.com/2014/02/17/sharepoint-list-add-distinct-parameter-value/
    If your problem still exists, please feel free to ask and also try to provide us more details information.
    Regards
    Vicky Liu

  • Error while creating a BO Universe (using IDT) on top of SAP HANA Calculation View with Input Parameters

    Hi All..
          We are trying to create a Universe (using IDT-Version4.0) on top of the HANA Calculation view. The Calculation view has 4 input parameters, So
    in Universe side we have created the respective prompts. For the creation of derived table we have used the following code
    SELECT *
    FROM "_SYS_BIC"."<schema_name>.<CV_Calculation_View_test>"
    'PLACEHOLDER'=('$$IP_A$$','@Prompt(A)'),
    'PLACEHOLDER'=('$$IP_B$$','@Prompt(B)'),
    'PLACEHOLDER'=('$$IP_C$$','@Prompt(C)'),
    'PLACEHOLDER'=('$$IP_D$$','@Prompt(D)')
    While validating the above code we are getting an error.
    I have attached the snapshot of that error for your reference. Please find the attachment and help me in resolving it.
    Thanks in advance.

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • Using a variable not in the Export,Import, table Parameters in USER EXIT

    Hi all,
       During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log.  In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS.  There is a user-exit   CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'.  But the import, export or Table Parameters does not have XVBFS.
      How can I use XVBFS inside the User exit?..
    Please help.
    Regards,
    Asha

    Hi,
    I dont know whether this will help u...
    write this in user exit...to access variables/tables of main program..
    FIELD-SYMBOLS: <komv>.
    ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
    where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
    regards
    Sukriti....

  • Error while Driving a view using parameters from other view

    Hi,
    I have created a report with streamlist and Barchart view.Driving option is used in streamlist to drive the barchart. The driving works well untill i dont use any filters in the Streamlist.Once i use parameters in streamlist , the driving works only for the default values set.When Second set of values are chosed for the parameter,the values are displayed correctly , but once they are selected for driving,the current values are replaced by the results of the default parameter settings.
    I have already done the tutorials for driving and it worked well untill i use filters in the main view,from where the driving is done.
    I would really appreciate if someone could give a solution for this problem.
    Regards,
    Lathika

    Hi,
    Login as i.e. sys as sysdba. Standard password is change_on_install.
    Or you can login in using user that has CREATE VIEW WITH ADMIN OPTION and then grant CREATE VIEW privilege to user to want.
    Peter D.

  • Hard drive i/o error, spinning beachballs. PASSES Smart test, but fails two specific parameters:

    I'm on a Macbook from early 2007.
    First off, I'm fully aware that my HD is probably on its last legs and I have two gigantic TB external HDs on which there are multiple images of the entire drive, so data loss is not currently a problem for me. I've also just finished college assignments for the summer so I can afford to mess around with this a bit before taking the plunge and replacing it.
    What intrigues me is this. The machine has been extremely slow for a long time. Recently I disabled swapping and the speed rocketed, presumably due to the HD being utilized less during usage. Now the downside to disabling swapping is that when Safari Web Content gets out of control as it always eventually does, you can have a full on system hang which requires a forced shutdown through the power button. So it's very possible that the issues I'm currently experiencing are to do with the machine being improperly shut down one too many times and somehow damaging the drive itself.
    But anyway, this is the interesting aspect. Using TTP I ran a SMART test on the internal HD from one of the bootable partitions on one of the external ones, and to my astonishment, it actually PASSES the smart test. The only two parameters which fail are the following:
    Raw Read Error Rate
    Write Error Count
    An image of the SMART test results is attached:
    Now to give you an example of the kind of issues I'm having, in order to take that screenshot I used "Grab". When searching for Grab in spotlight it gave me results from the internal HD and from all the various backup drives I have attached. I opened the internal copy and one from a backup partition on another drive (neither of which currently booted from). The one from the backup bounced and opened. The one from internal bounced about 15 times, the spotlight bar hung with a spinning beacball, and I ended up force quitting because I got sick of waiting for it. That's the major symptom of the issue I'm having.
    Now here's the reason I'm posting. As I say I know this drive is about to go so there's no need to lecture me about that, I can't replace it immediately but plan to in the very near future when I have a chance. My question is this. Those two specific failed SMART results, what exactly would cause them in terms of HD problems? Bearing in mind that it passes every single other SMART parameter, am I looking at unmapped bad blocks, a physical problem with the head, a loose wire, a bad motor, or what? I'm just wondering specifically what might be wrong with the drive, out of pure curiosity more so than anything else. The fact that most parameters pass suggests to me that it's one very specific malfunction as opposed to the drive generally imploding.
    A surface scan from TTP crashed, but not before giving me about 30 "Used block is not a file" messages.
    Finally, to temporarily use this drive, what's the procedure? If it's unmapped bad blocks, to I erase and install, or do I go into the whole "zero all data, then reformat" option? I have a backup image taken last night from the external drive which I can restore to the internal any time I want, and as I say with so many backups and so few deadlines ahead of me I don't mind messing around a bit and experimenting.
    So if it IS a bad block issue, what does one do to force it to map them?

    Had a feeling. As I say it's already fully backed up and ATM I'm running the machine off a partition on the external. But as I say, I'm curious as to what's actually wrong with it - what type of damage / failure would cause those specific smart parameters to fail but not the rest? The motor, the head, the disk surface, what?

  • Reporting Services web service complex xml type report parameters

    Hi,
    I have the following xml type parameter in my request query that I use in reporting services.
    <Parameter Name="accountDetails" Type="XML" xmlns:d4p1="thevalue" xmlns:i="thevalue">
    <DefaultValue>
    <d4p1:AccountDetailDto>
    <d4p1:AccountNumber>12345</d4p1:AccountNumber>
    <d4p1:AccountType>Sales</d4p1:AccountType>
    </d4p1:AccountDetailDto>
    </DefaultValue>
    I want to know how I can assign values to the accountDetails parameter from report parameters, I've tried to call it from the dataset parameter properties but it doesn't return any values. I created Parameters!accountDetails.Value on the dataset parameters
    properties and assigned it the following value: it only returns empty columns
    ="<AccountDetailDto><AccountNumber>"& Parameters!AccountNumber.Value &"</AccountNumber><AccountType>"& Parameters!AccountType.Value &"</AccountType></AccountDetailDto>"
    You're help will be highly appreciated as I've been trying to solve this for a while now

    Hi Alisa,
    Perhaps I should explain my problem clearly...
    This is my query request that I send to the webservice:
    <Query>
    <Method Name="GetPerAccountAssetAllocation" Namespace="http://tempuri.org/">
    <Parameters>
    <Parameter Name="accountDetails" Type="XML" xmlns:d4p1="thevalue" xmlns:i="thevalue">
    <DefaultValue>
    <d4p1:AccountDetailDto>
    <d4p1:AccountNumber>12345</d4p1:AccountNumber>
    <d4p1:AccountType>JSE</d4p1:AccountType>
    </d4p1:AccountDetailDto>
    </DefaultValue>
    </Parameter>
    </Parameters>
    </Method>
    <SoapAction>http://tempuri.org/IPortfolioManagementService/GetPerAccountAssetAllocation</SoapAction>
    <ElementPath IgnoreNamespaces="true">*</ElementPath>
    </Query>
    It works well when I run it just like this, that is without specifying any parameters in the report data dialogue window or on the dataset parameters properties, it returns the values and columns correctly.
    So my problem is, I need to find out how(xml parameter syntax, steps e.t.c)
    I can do to allow users to specify the accountDetails parameter, its quite tricky for me coz its an xml type parameter, Im not sure if I should just specify the AccountNumber and
    ReportType parameters separately:
    I've tried the following without any success:
    1. Under the dataset properties:  I tried not to specify a default value for the accountDetails parameter on the xml query, then I added a parameter called "accountDetails" under the dataset parameters properties, then under parameter
    value I added the following xml value :
    <d4p1:AccountDetailDto>
    <d4p1:AccountNumber>Parameters!AccountNumber.Value</d4p1:AccountNumber>
    <d4p1:AccountType>Parameters!AccountType.Value</d4p1:AccountType>
    </d4p1:AccountDetailDto> 
    (I also added the AccountNumber and AccountType parameters under the report data dialogue window)
    This returns empty columns, is there something I'm missing, or am I doing this incorrectly?

Maybe you are looking for