Missing Parameter at PERFORM

I'm trying to create a measurement document with the ABAP function IMRG_WRITE_DOCUMENT invoked by JCo.
Does anyone know which fields must be filled to success? Everytime I try I'll get the error message "Missing Parameter at PERFORM" though I tried to fill every field of the input parameters.
Thanks for your help.
P.S.  Does there exist a BAPI function that provides the creation of measurement documents? I didn't find anything.
P.P.S. I'm using the IDES-PLM-System "R03 DMZ IDES Promise".

It appears the function module you are calling does not create measurement documents, but rather CHANGE documents. A quick scan in SE84 produced a list that includes MEASUREM_DOCUM_RFC_SINGLE_001 and _002. Take a look at function group IMR0 (zero).
Hope this helps

Similar Messages

  • Error creating vendor w/ JCo FM VENDOR_INSERT- Missing parameter w/ PERFORM

    Dear all,
    I have followed the following thread and found it very useful as we need to create vendors from an external system in R/3 using the JCo as well. We are doing all the steps specified in previous posts and calling FM VENDOR_INSERT but when I execute the function it returns an exception:
    JCoException: (104) RFC_ERROR_SYSTEM_FAILURE: Missing parameter with PERFORM.
    We have checked and all the needed BAPIs are enabled but we are stuck at this first step. I have tried a variety of things but nothing seems to work. Not sure how I can specify the PERFORM parameter using JCo. Did anyone else fase this issue?
    Here is what some of the relevant Java code looks like:
            JCoFunctionTemplate tmplt1 = repository.getFunctionTemplate("VENDOR_INSERT");
            JCoFunction vfunc = tmplt1.getFunction();       
            JCoParameterList vparams =  vfunc.getImportParameterList();
            JCoStructure jcs= vparams.getStructure("I_LFA1");
            try
                 LocalSupplier s = getSupplier1();
                 jcs.setValue("MANDT", "010");
                 jcs.setValue("NAME1", s.getSupName());
                 jcs.setValue("NAME2", s.getSupName2());
                 jcs.setValue("PSTLZ", s.getSupPostalCode());
                 jcs.setValue("ORT01", s.getSupCity());
                 jcs.setValue("LAND1", s.getIdCountry().getIsocode());
                 jcs.setValue("STRAS", s.getAddress1() +", " + s.getAddress2());
                 jcs.setValue("MCOD1", "test");
                 jcs.setValue("KTOKK", "ZKRE");
                 jcs.setValue("SPRAS", s.getIdmasterSupplier().getIdlanguage().getLocale());
                 jcs.setValue("STCD1", s.getIdmasterSupplier().getTaxId());
                 jcs.setValue("TELF1", s.getTelephone());
                 jcs.setValue("TELFX", s.getFax());
                 execute(vfunc, destination);             
            catch(Exception e)
                System.out.println(e.toString());
                e.printStackTrace();
                return;
          * Method execute will call a function. The Caller of this function has
          * already set all required parameters of the function
         public static void execute(JCoFunction function, JCoDestination dest) {
              try {
                   JCoContext.begin(dest);
                   function.execute(dest);
                   JCoContext.end(dest);
              } catch (JCoException e) {
                   e.printStackTrace();
    Any help from some of view that have succesfully implemented vendor creation using the JCo would be highly appreciated.

    Hi,
    as I just wrote in the previous thread,
    don't use function module VENDOR_INSERT.
    As written before it is an update task FM. And also it do not check any field validity.
    This is the best way to face inconsistencies in the future.
    As you have also noticed, troubles and difficulties will come very soon related to the address management.
    In standard there is NO FM or BAPI to do so.
    The only supported option is via batch-input or idocs. Eventually, LSMW could help
    See [note 384462|https://service.sap.com/sap/support/notes/384462]
    With ECC 2005, a synchronisation class can help a lot. See class VMD_EI_API.
    With ECC 2005 ehp3, you have an eSOA service to create vendor asynchronously. Not all fields are supported.
    In other words, just create a BAPI to transfert your own parameters then either make a batchinput which will call XK01/XK02 in batch, either trigger class VMD_EI_API
    BR
    Alain

  • 'Missing parameter with PERFORM' error with a function IN BACKGROUND TASK

    I am getting this error when calling a custom function in MIGO user exit ZXMBCU01.  When I remove the 'IN BACKGROUND TASK' the function works fine and there are no error messages.  When using 'IN BACK...' you can't debug within it to see where the message comes from.  I see the message with SM58.  I am working in an sap 4.7 environment.  I have not found any solutions from google searches.
    Here is the statement within ZXMBCU01:
        CALL FUNCTION 'Z_UPDATE_MATERIAL_AVAIL_STATUS' IN BACKGROUND TASK
          EXPORTING
            work_order = xmseg-aufnr.
    Here is the code for the function:
    FUNCTION Z_UPDATE_MATERIAL_AVAIL_STATUS.
    ""Update function module:
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(WORK_ORDER) LIKE  AUFK-AUFNR DEFAULT '0000000000'
    TABLES: eban, resb, aufk.
    -Global Types----
    TYPES: BEGIN OF t_data,
           rsnum TYPE resb-rsnum,
           rspos TYPE resb-rspos,
           aufnr TYPE resb-aufnr,          "Order Number
           bdmng TYPE resb-bdmng,          "Requirement Quantity
           enmng TYPE resb-enmng,          "Quantity withdrawn
           bsmng TYPE eban-bsmng,          "Quantity ordered against this purchase requisition
           END OF t_data.
    DATA:  gt_data TYPE t_data OCCURS 0,
           ga_data TYPE t_data.
    -Global Variables----
    DATA: gv_refused TYPE BAPIFLAG-BAPIFLAG,
          gs_caufvd  TYPE caufvd,
          g_text TYPE t100-text,
          gv_objnr LIKE aufk-objnr,
          gv_status LIKE  bsvx-sttxt,
          gv_trig_stat TYPE c.
    TABLES RETURNED FROM BAPI
    DATA:  BEGIN OF xreturn OCCURS 0.
            INCLUDE STRUCTURE bapiret2.
    DATA:  END OF xreturn.
      SELECT SINGLE objnr FROM aufk
         INTO gv_objnr
         WHERE  aufnr = work_order.
      CALL FUNCTION 'STATUS_TEXT_EDIT'
        EXPORTING
          flg_user_stat = 'X'
          objnr         = gv_objnr
          only_active   = 'X'
          spras         = sy-langu
        IMPORTING
          line          = gv_status.
      IF ( gv_status CS 'REL' ) AND
         ( gv_status NS 'NMAT' AND gv_status NS 'CNF' AND gv_status NS 'CLSD' AND
           gv_status NS 'TECO' AND gv_status NS 'DLFL' ).
        SELECT SINGLE *
          FROM AUFK
         WHERE aufnr = work_order AND
               ( auart = 'PM01' OR
                 auart = 'PM02' OR
                 auart = 'PM03' OR
                 auart = 'PM99' ).
        IF sy-subrc = 0.
          SELECT resbrsnum resbrspos resbaufnr resbbdmng resbenmng ebanbsmng
            INTO CORRESPONDING FIELDS OF ga_data
            FROM resb LEFT JOIN eban
              ON resbrsnum = ebanarsnr AND
                 resbrspos = ebanarsps
           WHERE resb~aufnr = work_order AND
                 resb~bdmng > 0.
        SELECT rsnum rspos aufnr bdmng enmng
          INTO CORRESPONDING FIELDS OF ga_data
          FROM resb
         WHERE aufnr = work_order
           AND bdmng > 0.
              SELECT SINGLE bsmng
                INTO ga_data-bsmng
                FROM eban
               WHERE arsnr = ga_data-rsnum
                 AND arsps = ga_data-rspos.
              IF sy-subrc <> 0.
                CLEAR ga_data-bsmng.
              ENDIF.
               IF ga_data-bdmng = ga_data-enmng OR
                  ga_data-bdmng = ga_data-bsmng.
                 "update status - but all items must pass
               ELSE.
                 gv_trig_stat = 'N'.
                 EXIT. "status won't change so get out now
               ENDIF.
         ENDSELECT.
       IF ga_data~bdmng > 0.
           IF ga_data-bdmng = ga_data-enmng OR
              ga_data-bdmng = ga_data-bsmng.
         IF gv_trig_stat <> 'N'.
              CALL FUNCTION 'CO_IH_USERSTATUS_SET'
                EXPORTING
                  I_AUFNR              = ga_data-aufnr    "'000005000263'
                  I_USR_STAT_INT       = 'E0002'
      I_USR_STAT_EXT       =
      I_SET_INACTIVE       =
      I_BUF_READ           =
                  I_SPRAS              = sy-langu
                IMPORTING
                  E_CHNG_REFUSED       = gv_refused
                  E_CAUFVD             = gs_caufvd
                TABLES
                  RETURN               = xreturn.
              LOOP AT xreturn
               WHERE type = 'E'.
              ENDLOOP.
              IF sy-subrc <> 0.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
                RETURN.
              ELSE.
                READ TABLE xreturn INDEX 1.
                CALL FUNCTION 'PI_BP_GET_MESSAGE_TEXT'
                  EXPORTING
                    iv_message_id     = xreturn-id
                    iv_message_type   = xreturn-type
                    iv_message_number = xreturn-number
                    iv_message_v1     = xreturn-message_v1
                    iv_message_v2     = xreturn-message_v2
                    iv_message_v3     = xreturn-message_v3
                    iv_message_v4     = xreturn-message_v4
                  IMPORTING
                    ev_message_text   = g_text.
              ENDIF.
         ENDIF.
         ENDIF.
           ENDIF.
         ENDSELECT.
        ENDIF.
      ENDIF.
    ENDFUNCTION.
    Does anyone have any ideas?  Thank you very much in advance.
    Glenn Allen
    Software Architect (specializing in SAP)

    I'd be starting a process of elimination... perhaps start with an "exit." right after
    SELECT SINGLE objnr
      FROM aufk
      INTO gv_objnr
      WHERE aufnr = work_order.
    exit.  "leave FM NOW
    and if that doesn't crash, work down the code down the code in the function e.g. comment out the BAPI_commit call... and / or build a little test harness report to call the Z function in background task... btw, does the ST22 dump point to anything more specific...?

  • "Missing parameter values."  --  Export and Print only...

    I have a web application and I am using CrystalReportViewer.  I am passing several parameters to Crystal using: 
    report.SetParameterValue(field.Name, Session[field.Name]);
    I have session variables which will hold parameters needed to pass into the report.  The session variables are populated from controls on my webpage after an onclick event.  This even not only populates session, but also passes parameters to the report with the following code: 
    ReportDocument report = new ReportDocument();
    Session["MapPathName"] = "./Reporting/CaseStudy.rpt";
    report.FileName = Server.MapPath(Session["MapPathName"].ToString());
    ParameterFields fields = new CrystalDecisions.Shared.ParameterFields();
    fields = report.ParameterFields;
    foreach (ParameterField field in fields)
          report.SetParameterValue(field.Name, Session[field.Name]);
    CrystalReportViewer1.ReportSource = report;
    This works great for reporting and is very extensible.  However, when clicking on the "Print" or "Export" buttons on the toolbar I get "Missing parameter values."  I attempted to export manually in code using the .ExportToStream function but I still get the error, "Missing parameter values." 
    I received this error also in Refresh, Search, and Navigate functions.  This was corrected by calling a function that supplies the above code block to these functions.  However, I do not see any events for controlling the Print nor the Export events. 
    QUESTION: How can I print or export a report when passing parameters using CrystalReportViewer?  Thanks in advance!
    P.S. - Crystal Reports XI Release 2
    Edited by: KyleSavant on Jun 18, 2009 5:42 PM

    There are no Export or Print events accessible for the viewer
    Since it sounds like you are creating the reportdocument object in your click event, the settings on this object become out of scope on successive postbacks executed by other events.
    to get around this without major changes, you can place your "report" object in session in this event and retrieve it from session on successive postbacks.  This should solve your problems around navigation, printing and exporting.  What you will need to do is check if the session object exists (usually in page_load or page_initialze) and if so, retrieve it from session and bind it to the viewer's reportsource.  If the session object does not exist, then do nothing (ie you have not clicked your button yet that retrieves the parameter values from session and loads the report).  Also, in your click event you can check if the report session object exists and if so, remove it so that it can be re-created with your new parameter values (ie i'm assuming the only time you want to set parameter values is in this event).
    Dan

  • Xcelsius missing parameter values (LO 26603)

    Hi experts,
    I've created a dashboard against a BW query using Live Office and a Crystal Report as the data source. Live Office and everything under it is using SAP authentication. When I click on the Refresh All Objects button in Live Office, I'm prompted for required parameters and then the data is refreshed successfully. However when I click Preview to generate the swf file, I get a "Cannot access external data.  Missing parameter values (LO 26603)" The Crystal Report's database config has been set to logon as a specific SAP user and refreshes successfully from Infoview.
    Business Objects Edge 3.1 SP3
    Xcelsius 2008 SP3
    SAP Int Kit SP3
    Any suggestions?
    Cheers
    Keith

    Which version of MS Office do you use? Any MS Office Service packs installed?
    Regards,
    Stratos

  • LO 26603 (missing parameter and db logon failed)

    Hi Experts,
    I am getting a known error discussed on the forum many times,this is my first stint with CR_LO-Xcelsius,getting stuck at the Error LO 26603.
    The dashboard is having a tab sets  (3 CR in each tab) and out of three, I am getting u201CParameter Value Missing for oneu201D and u201CDatabase Login Failed for two tabsu201D.
    I have already referred the following threads but none of them is answered..
    error LO 26603 crystal reports - live office - xcelsius
    Error Code: LO 26603
    Xcelsius missing parameter values (LO 26603)
    Database logon failed (LO 26603)
    The Task:
    Get CR into the embedded excel using Live Office. To show charts.
    The Problem:
    Once i preview the Dashboard, data is displayed for the default date.
    The CR Server login is popped upon refresh request (triggers from the dashboard) and providing the correct info (Admin user name and pwd) also the error is thrown Lo 26603.
    The parameters (3 in no.) are common for all the three reports: (All setting done from Prompt settings)
    1.     Date u2013 Data in the charts refreshes when the date is changed (I/P from Calendar in Xcelsius). Cell Binding (Option from Choose Excel Data Range)
    2.     Region u2013 Selected (All) from prompt setting in LO Excel (Choose Value List).
    3.     Products u2013 Selected (All) from prompt setting in LO Excel (Choose Value List).
    I have set the DB logon information for processing the report in CMC and not sure of using SSO to bypass the DB logon prompt.
    Please help, how I can troubleshoot this problem.
    Config.
    Crystal Server XI 3.1 SP2
    Xcelsius 2008 5.3.3.0
    SAP Integration Kit SP2
    Live Office XI 3.1 SP2
    Rgds
    Sam

    Go to CMC
    Go to your CR
    Right-click and select database configuration
    Hardcode logon credentials
    This should solve your issue.
    Regards,
    Rohan

  • Use of layout when more than one parameter - Error Missing Parameter Values

    Hi,
    Is it possible to use a crystal report which has more than one parameter as the layout for the bill of materials report.
    I have 3 parameters
           1. DocKey@       The Bill of Materials to be printed
           2. Number of levels to be printed
           3. type of levels to print.
    When I try to print it gives me the error Missing Parameter Values.
    I have tried changing the DocKey@ to CodeKey@ but the same error.
    Does anyone now where to find a list of these tokens?
    Thanks
    Chris

    I looked at the crystal report conversion to try to find what parameters it used and found none.
    I have managed to create and use a crystal report to replace the production order using DocKey@ as the parameter.  This works within SAP.  However I have converted the system production order to crystal reports and from the converted report I cannot see any parameters at all.
    How and where can you find out what paramters you need to use to replace any PLD report?  Several reports have multiple selection criteria before the report prints.  How can you find out what their tokens are called?  I am starting to pull my hair out.  I am getting great help from this forum, but do you know any documentation which actually explains this area.
    Thanks
    Chris

  • Why do I get Missing Parameter Values error from CrystalReportViewer in VS2005

    Post Author: eseidel
    CA Forum: .NET
    Hi everyone,
    I have spent way to much time trying to figure this problem out and am getting no where now. I was hoping someone with more experience in CR for VS2005(I think v.9) and VS2005 may be able to help.  I have a report with 10 parameters that Im setting in code.  I have another 3 parameters in a subreport(with same names as 3 in main report) that are being pushed in(I hope) through my ApplyParams() method.  I have checked the output of each parameter before and after it is assigned in ApplyParams.  All values are being set....So why do I keep getting an error when I run it for Missing Parameter Values no matter what I do?  The error comes after SetDBLogonForReport(myConnectionInfo).  I have been struggling with this problem for almost 3 days now and have tried numerous approaches.  If I remove the subreport it works ok.  Why is subreport not getting parameters(I think this is where the problem stems from)?  Please any advice would be greatly appreciated.  Thank you. If need be I can e-mail the report but I don't know how much that will help without being able to access the datasources.
    Eric
    Code Snippet
    Private _Parameters As New System.Collections.Specialized.StringDictionary
    Public Property Parameters() As System.Collections.Specialized.StringDictionary
         Get
             Return (_Parameters)
         End Get
         Set(ByVal Value As System.Collections.Specialized.StringDictionary)
            If (Value Is Nothing Or _Parameters Is Nothing) Then Exit Property
            For Each entry As DictionaryEntry In Value
                _Parameters.Add(entry.Key, entry.Value)
            Next
       End Set
    End Property
    Private Sub SetParameters()
        Parameters("kiPerformance") = rptKi.ToString
        Parameters("PreparedBy") = rptPreparedBy
        Parameters("SupplierName") = rptSupplierName
        Parameters("Supplier") = rptSupplier  'Param in subreport too
        Parameters("ApprovedBy") = rptApprovedBy
        Parameters("kiPerformanceGoal") = rptKiThisGoal.ToString
        Parameters("kiForecastGoal") = rptKiForecast.ToString
        Parameters("kiNextGoal") = rptKiNextGoal.ToString
        Parameters("kiBegRange") = rptBegDate.ToString("d") 'Param in subreport too
        Parameters("kiEndRange") = rptEndDate.ToString("d") 'Param in subreport too
    End Sub
    Public Function ApplyParams()
        Me.SuspendLayout()
        Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportDocument = _
        crv.ReportSource
        If (rpt Is Nothing OrElse _Parameters Is Nothing) Then Return False
        Dim crParameterFieldDefinitions As ParameterFieldDefinitions = rpt.DataDefinition.ParameterFields
         If (crParameterFieldDefinitions Is Nothing) Then Return False
         For Each crParameterFieldDefinition As ParameterFieldDefinition In crParameterFieldDefinitions
             If ((Not crParameterFieldDefinition.IsLinked) And _
                 _Parameters.ContainsKey(crParameterFieldDefinition.Name)) Then
                   Dim crParameterValues As ParameterValues = _
                   crParameterFieldDefinition.CurrentValues
                   If Not (crParameterValues Is Nothing) Then
                         Dim crParameterDiscreteValue As New ParameterDiscreteValue
                         crParameterDiscreteValue.Value =  _Parameters.Item(crParameterFieldDefinition.Name)
                         crParameterValues.Add(crParameterDiscreteValue)
                         'Console.WriteLine(crParameterFieldDefinition.Name & ": " & crParameterDiscreteValue.Value)
                        crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
                  End If
              End If
           Next
           crv.ReportSource = rpt
           Me.ResumeLayout()
           Return Nothing
    End Function
    Private Sub ConfigureCrystalReports()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo
            Dim pFields As New ParameterFields()
             Dim pField As New ParameterField()
             Dim disVal As New ParameterDiscreteValue()
             'Connection stuff,sorry I can't show you this part
             'Bind report
            rptCard = New ReportCard
           LoadDataSource()
           rptCard.SetDataSource(dsOcc)
           rptCard.Subreports("FailOcc").SetDataSource(dsOcc)  'Ive tried without this line as well
           rptCard.PrintOptions.PaperSize = PaperSize.Paper11x17
           rptCard.PrintOptions.PaperOrientation = PaperOrientation.Landscape
           crv.ReportSource = rptCard
           'Load parameters for report
           SetParameters()
           crv.RefreshReport()
           SetDBLogonForReport(myConnectionInfo)
    End sub
    Private Sub SetDBLogonForReport(ByVal conn As ConnectionInfo)
             Dim tableLogOnInfos As TableLogOnInfos = crv.LogOnInfo
             For Each myTableLogOnInfo As TableLogOnInfo In tableLogOnInfos
                  myTableLogOnInfo.ConnectionInfo = conn
             Next
    End Sub
    Private Sub crv_Error(ByVal source As Object, ByVal e As CrystalDecisions.Windows.Forms.ExceptionEventArgs) Handles crv.Error
          MsgBox(e.Exception.Message)
          e.Handled = True
    End Sub
    Private Sub crv_ReportRefresh(ByVal source As Object, ByVal e As CrystalDecisions.Windows.Forms.ViewerEventArgs) Handles crv.ReportRefresh
           ApplyParams()
    End Sub

    Post Author: mewdied
    CA Forum: .NET
    By any chance are the parameters in your subreport stored procedure parameters?
    There was a specific fix for stored procedure parameters available from:ftp://ftp1.businessobjects.com/outgoing/CHF/crnet20win32x86_en_chf.zip
    The specific fix is described in the readme under Problem ID # ADAPT00532856

  • ReportDocument.ExportToStream raises "Missing Parameter Values" exception

    Hi,
    I have a web app built using VS 2008 which runs many reports developed in CR 2008. Most of these reports take parameters and many have embedded subreports. Many of the reports can either be viewed directly or e-mailed. For the latter, I use ReportDocument.ExportToStream(ExportFormatType.PortableDocFormat) to export a PDF file which then gets attached to the e-mail.
    One set of reports works fine when viewed directly, but raises a "Missing Parameter Values" exception when I try to generate the PDF.  All the other reports, seemingly similar in most respects, including the number and type of parameters, work fine when calling ExportToStream.
    Here is the really strange part: the exception is spurious. I wrapped the whole thing in a try/catch block to better examine the exception, hoping to find which parameter value is actually missing.  I could not identify the missing parameter value, but once I handled the exception, the report runs fine and converts to PDF.
    Any hints as to what could be causing this problem?  It seems like a really bad hack to solve the problem using a try/catch in this way.
    Thanks.
    Dan

    Thanks for the quick response. Your code was very instructive, but did not help yet.  Here is what I have:
    (This response is too long for a single post, so I will split it and finish in the next post.)
    ReportDocument rptDoc = new ReportDocument();
    rptDoc.Load(strReportSourceFolder + strReportName + ".rpt");
    rptDoc.SetParameterValue("ClientID", lngKeyFieldID);
    rptDoc.SetParameterValue("Role", "Client");
    This is followed by an amazing chunk of code, provided to me by a guy at SAP Tech Support, who said it was necessary to pass database credentials programatically.  It iterates the tables in the ReportDocument and individually sets the LogonInfo. (I say "amazing" because it astounds me you have to jump through such hoops for something that should be routine and easy.)  The commented lines are just to help in debugging.
    ConnectionInfo conn = new ConnectionInfo();
    conn.ServerName = "myServer";
    conn.DatabaseName = "myDB";
    conn.UserID = "myUserID";
    conn.Password = "myPassword";
    Tables tables = rptDoc.Database.Tables;
    foreach (Table table in tables)
      //string str= table.TestConnectivity().ToString());
      TableLogOnInfo tableLogonInfo = table.LogOnInfo;
      tableLogonInfo.ConnectionInfo = conn;
      table.ApplyLogOnInfo(tableLogonInfo);
      //table.Location = table.Location;                        
    This is followed by the viewer stuff:
    CrystalReportViewer1.DisplayGroupTree = false;
    CrystalReportViewer1.DisplayToolbar = true;
    CrystalReportViewer1.HasToggleGroupTreeButton = false;
    CrystalReportViewer1.HasToggleParameterPanelButton = false;
    CrystalReportViewer1.Page.Title = strReportName;
    CrystalReportViewer1.ReportSource = rptDoc;
    Up to here, it works fine, displaying the report.  If the report is also to be e-mailed, the following is executed:
    if (bEmail)
      //  export to PDF, then mail that
      SmtpClient client = new SmtpClient();
      MailAddress from = new MailAddress(ConfigurationManager.AppSettings["ReportMailFrom"].ToString());
      MailMessage message = new MailMessage();
      message.From = from;
      message.SubjectEncoding = System.Text.Encoding.UTF8;
      message.Subject = "E-mail BackOffice report: " + strReportName;
      try
        foreach(ParameterField field in rptDoc.ParameterFields)
          Logger.LogEvent("test", "", field.ToString(), "Trace", null, true, true);
          Logger.LogEvent("test", "", "Name: " + field.Name, "Trace", null, false, false);
          Logger.LogEvent("test", "", "PromptText: " + field.PromptText, "Trace", null, false, false);
          Logger.LogEvent("test", "", "IsOptionalPrompt: " + field.IsOptionalPrompt, "Trace", null, false, false);
        MemoryStream memStream = (MemoryStream)rptDoc.ExportToStream(ExportFormatType.PortableDocFormat);
        Attachment data = new Attachment(memStream, MediaTypeNames.Application.Pdf);
        ContentDisposition disposition = data.ContentDisposition;
        disposition.CreationDate = DateTime.Now;
        disposition.ModificationDate = DateTime.Now;
        disposition.FileName = strReportName + ".pdf";
        disposition.DispositionType = DispositionTypeNames.Attachment;
        message.Attachments.Add(data);
      catch (Exception ex)
        Logger.LogEvent("error", "Page_Load", strReportName + " Exception: " + ex.Message, "Trace", null, true, true);
      //  ...  do the rest of the stuff to create & send the e-mail
    (The rest of this message will be in the following post.  Sorry it is so long.)

  • Crystal Runtime exception: Missing parameter values

    Our company did a PeopleTools upgrade at one of our clients recently. We upgraded them to PeopleTools 8.50.08. We had to convert all the Crystal Reports to the 2008 format using the RPT converter which is included in the Client install of PeopleTools.
    The only problem now is that a lot of the Crystal processes in PeopleSoft are failing with the following error:
    Crystal Runtime exception: Missing parameter values.
    I've checked the parameters which are being passed to the report and I see both parameters are filled:
    E:\HR881\BIN\CLIENT\WINX86\PSCRRUN.EXE -CTORACLE -CDHRMKPDEV -COPSDUT -CPOPRPSWD -I218609 -RP"PUP202K" -OT6 -OP"G:\PS\PSPRCS\log_output\HRMKPDEV\CRW_PUP202K_218609" -LGDUT -OF2 -ORIENTL "2000-10-01" "2002-06-30"
    Database type is Oracle. HRMS version is 8.8. I can run the Query which gets the data in just fine and I can also run the report from Crystal fine. This only happens with Crystal reports which have a date field as a parameter/prompt in the report.
    There's currently an SR open at Oracle, but I was hoping that someone here can help me nail this issue. I'm not too happy with the quallity of Oracle support, but that's a whole different story.

    <s>Just to be sure, did you put a space after each parameter name or is it a typo over here ?
    E:\HR881\BIN\CLIENT\WINX86\PSCRRUN.EXE -CT ORACLE -CD HRMKPDEV -CO PSDUT -CP OPRPSWD -I 218609 -RP "PUP202K" -OT 6 -OP "G:\PS\PSPRCS\log_output\HRMKPDEV\CRW_PUP202K_218609" -LG DUT -OF 2 -OR IENTL "2000-10-01" "2002-06-30"</s>
    Nicolas.
    sorry, it was wrong assumption.
    Edited by: N Gasparotto on Jun 2, 2010 5:11 PM

  • Error printing Check - "Missing Parameter Values. Error During Printing"

    Dear friends,
    Our client is in SAP B1 8.81 Pl07 and is facing an error while printing checks designed in Crystal Reports. As soon as they click on "Print" button, we are getting an error "Missing Parameter Values. Error During Printing".
    We have checked the Crystal Reports and all the parameters are given.
    Can anyone help me regarding this?
    Thanks and regards,
    Bharath S

    hi,
    Quoted from Note 1555170
    1555170 - Error 'Missing parameter values' printing with CR layout
    Symptom
    When you print on add any stock transactions document, with Crystal report layout, you receive error message:'Missing parameter values' and then 'Error during the printing; ensure all parameters are defined'
    Step by Step scenario:
    1.Go to Administration / System Initialization / Print preferences and select the tab per document.
    2.Select the document stock transfer and tick the box print document when adding document and click on update.
    3.Go to stock management / stock transactions / stock transfer
    set the Crystal report template as default.
    Note:
    - The issue is reproduced also for Goods Receipt and Good Issue.
    - The issue is reporduced with any Crystal Report Template  for the     above documents.
    Cause
    Program error
    Solution
    This issue is candidate for a change in a future release of SAP Business One.
    Workarounds:
    1.Use PLD for printing the stock transactions.
    2.Convert the PLD layout to Crystal reports with Crystal converter.
    3.Print the document after adding it.
    Other terms
    sap business one, printing issues, good issue, good receipt, stock transfer, crystal report, print preferences, print when adding, dockey, missing parameter
    Header Data
    Released on     07.02.2011 13:27:30
    Release status     Released for Customer
    Component     SBO-REP-CR Crystal Reports 2008 for SAP Business One
    Other Components     
    SBO-GEN-PRT Printing Issues
    Priority     Correction with low priority
    Category     Program error
    Validity
    Software Component
    Version
    SAP BUSINESS ONE
    8.8
    8.81
    you can download the PLD to Crystal Converter [here|http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/108305a7-1555-2d10-8289-9a178d441c71]
    regards,
    Fidel

  • CRVS2010 Beta - Missing parameter values

    I want to export my report to pdf file and I want to set some parameters in report in runtime.
    But when I try to do it I have exception "Missing parameter values".
    Productversion: Visual Studio 2010 + Crystal Report 2008 + service pack v3.
    I read that problem was resolved in service pack v2.
    But now I don't have any idea how to fix my problem.
    I create report and add parameters ("MyParameter") as string.
    My test project:
    //Load report
    //Set db connection
    try
                            ParameterValues crParameterValues = report.DataDefinition.ParameterFields["MyParameter"].CurrentValues;
                   ParameterDiscreteValue crParameterDiscreteValue = new ParameterDiscreteValue {Value = "SBSUrl"};
                   crParameterValues.Clear();
                   crParameterValues.Add(crParameterDiscreteValue);
                   report.DataDefinition.ParameterFields["MyParameter"].ApplyCurrentValues(crParameterValues);
                   report.VerifyDatabase();
                   report.Refresh();
                      string reportFileName = string.Format(@"D:\CrystalReport\CRResult-{0}.pdf", DateTime.Now.Ticks);
                      ExportOptions rptExportOption;
                      var rptFileDestOption = new DiskFileDestinationOptions();
                      var rptFormatOption = new PdfRtfWordFormatOptions();
                      rptFileDestOption.DiskFileName = reportFileName;
                      rptExportOption = report.ExportOptions;
                           rptExportOption.ExportDestinationType = ExportDestinationType.DiskFile;
                           rptExportOption.ExportFormatType = ExportFormatType.PortableDocFormat;
                           rptExportOption.ExportDestinationOptions = rptFileDestOption;
                           rptExportOption.ExportFormatOptions = rptFormatOption;
                      report.Export(); //  I have exception here ("Missing parameter values.")
                 catch (Exception e)
                      Console.WriteLine(e);
              private void SetCurrentValuesForParameterField(ReportDocument reportDocument, ArrayList arrayList)
                   ParameterValues currentParameterValues = new ParameterValues();
                   foreach (object submittedValue in arrayList)
                        ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue();
                        parameterDiscreteValue.Value = submittedValue.ToString();
                        currentParameterValues.Add(parameterDiscreteValue);
                   ParameterFieldDefinitions parameterFieldDefinitions = reportDocument.DataDefinition.ParameterFields;
                   ParameterFieldDefinition parameterFieldDefinition = parameterFieldDefinitions["MyParameter"];
                   parameterFieldDefinition.CurrentValues.IsNoValue = true;
                   parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
    Could anybody help me with this exception?

    Make sure you log on to the database, set the parameter, then export.
    See the following KBases:
    [1244475 - Error: Missing parameter value when exporting a Crystal Report with optional parameters using the CR .NET SDK|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    [1215426 - Err Msg: Missing parameter value when printing or exporting in VS .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    [1215536 - Err Msg: Missing parameter field current value when exporting/printing in .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    [1216546 - Err Msg: Missing Parameter Field Current Value when viewing a report in VS.NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    Also, see the following forum thread for possible solutions:
    Passing Parameters CR 2008 VS 2008 ASP.net
    Ludek

  • CrystalReportViewer: "Missing parameter values with implemented error event

    I'm using the CrystalReportViewer in APS.net (C#), and try to display a report in it.
    I've implemented the error event of the viewer to show the user a different error message than the viewer itself does.
             this.CrystalReportViewer.Error += new CrystalDecisions.Web.ErrorEventHandler(CrystalReportViewer_Error);
          protected void CrystalReportViewer_Error(object source, CrystalDecisions.Web.ErrorEventArgs e)
             var msg = "Error in CrystalReportViewer\r\n{0}".FormatInvariant(e.ErrorMessage);
             throw new InvalidOperationException(msg);
    But.... Now if I want to show a report that has parameters in it, the parameter page does not appear before the report itself. How can I make my code work (without removing the implementation of the error event), so the viewer first shows the parameter page, before showing the actual report?

    And in the Page_Load method:
    this.CrystalReportViewer.Error += new CrystalDecisions.Web.ErrorEventHandler(CrystalReportViewer_Error);
    I've done this so i can show my own error page to the user of the website. Otherwise the CRViewer shows his own error, and I do not want the user of the website to see this 'technical' error.
    So i've implemented the CrystalReportViewer.Error method:
    protected void CrystalReportViewer_Error(object source, CrystalDecisions.Web.ErrorEventArgs e)
       // Missing parameter values.
       var discardToShowParameterPrompt = (e.ErrorMessage.ToUpperInvariant() == "Missing parameter values.".ToUpperInvariant())
         || (e.ErrorMessage.ToUpperInvariant() == "Ontbrekende parameterwaarden.".ToUpperInvariant());
       if (discardToShowParameterPrompt)
          _Log.Debug("The parameter screen should be displayed now.");
       else
          var msg = "Error in CrystalReportViewer: {0}".FormatInvariant(e.ErrorMessage);
          throw new InvalidOperationException(msg);
    If I load a report with no params in the report, the page shows immediately the report.
    If I load a report with params in the report, the params page is shown, the user can enter the param values, and after pressing OK, the report is shown.
    If an error occurs (for example the report cannot connect to the database), the viewer does NOT show the error (because i've implemented the _error event) but my code throws an InvalidOperationException, and this is handled by code so the error is logged to a file, and the user gets a user friendly message on the website.
    If i do not implement the _error event, the user will see the technical error in the crystal reports viewer.
    If I comment out the code where I'm looking for the string "Missing parameter values." (or "Ontbrekende parameterwaarden") the parameter page will not be shown, and an error will be thrown by the Crystal Reports viewer.
    If I put e.handled = true in the _error event, and there is an error (for example the database cannot be found), no error will be thrown, and there is nothing to see in the viewer.
    So for now the only way to get the params page is to implement the _error event the way i've done in the above code, checking the error message on a string value.

  • Error Missing Parameter Values

    I am very inexperinced in VB and ASP.Net.
    That being said I have used forums and tutorials to develop the code below.
    In the code I have hard coded some values to be passed to the report for testing...see num_inv and ser_inv.
    When I run the code I get an error "Missing Parameter Values".
    If I remove the lines that setparamervalues and turn on the enableparamaterpromt the report works fine and I can manually enter the values and see my completed report.
    More Details...
    The Crystal Report uses an ODBC connection to a SQL Server.  I am only using one view to feed the report and there are no subreports.  I am buidling the web app in VS2010 with the crystal reports version for VS2010 installed.
    Dorry if I didn't give enough information...I don't know what else is relavant.
    Any help would be greatly appreciated!
        Private Const PARAMETER_FIELD_NAME_1 As String = "Invoice"
        Private Const PARAMETER_FIELD_NAME_2 As String = "Serial"
        Private Sub WebForm2_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            ConfigureCrystalReports()
        End Sub
        Private InvoiceReport As ReportDocument
    Private Sub ConfigureCrystalReports()
            Dim num_inv As Integer
            Dim num_ser As Integer
            num_inv = 880822
            'Request.QueryString("inv")
            num_ser = 1
            'Request.QueryString("ser")
            InvoiceReport = New ReportDocument()
            Dim reportPath As String = Server.MapPath("S36 Invoice.rpt")
            InvoiceReport.Load(reportPath)
            InvoiceReport.SetParameterValue(PARAMETER_FIELD_NAME_1, num_inv)
            InvoiceReport.SetParameterValue(PARAMETER_FIELD_NAME_2, num_ser)
            CrystalReportViewer1.ReportSource = reportPath
        End Sub

    I would start by enabling the parameter prompt and passing the parameters in code.  You will only be prompted for the parameters that did not receive an acceptable value.  This will let you see if your code to set the values is working for one or neither of your parameters.  Calling the setparametervalues method will not return an error if the value isn't accepted. 
    Also, make sure your datatype is the same as defined in the report, and make sure you have no differences in the parameter names.  Note, if the parameters are automatically created in the report because they came from a stored procedure, you need to include the @ symbol in the name as you see in the designer.

  • Error: Missing Parameter Values on

    I've started experiencing the "Missing Parameter Values" error on a report containing a subreport. All of my other reports can export just fine, but just not the one with the subreport. The report (and the subreport) both use a stored procedure to retrieve their data, with 4 parameters. The first three parameters are linked directly from the report to the subreport. The 4th parameter is optional, and is linked to the subreport with a Formula Field.
    When I delete the subreport, the report exports just fine, so the issue is definitely with the subreport ?configuration?
    I'm using Visual Studio 2005, with Crystal Reports for VS 2005. I've been searching the forums, and I downloaded and installed a package: crnet20win32x86_en_chf.zip, but it didn't solve my problem. Just to be sure, I restarted and installed it with nothing running, in case that could be a factor.
    Is there anything I can do to work through this? Any other fix I'm missing?
    Thanks
    Alex

    Thanks for the tip. I did that just now, and I found the [Hot Fix|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313339333533393334%7D.do]
    That particular Hot Fix describes my situation exactly, in that a report Stored Procedure parameter is "supposed" to be passed on to the Subreport. However, the Hot Fix describes prompting, which isn't occurring in my case, since I'm exporting the report entirely in code. My situation is just the error, Missing Parameter Values.
    In any case, I've already run that entire Hot Fix package (twice), and I've found that I have 2 of the crpe32.dlls. Neither one is the version specified in the Hot Fix, (Version 10.2.0.1256). The second dll listed below seems to be of a version prior to the Hot Fix, I don't know if it could be the reason why it still doesn't work after applying the Hot Fix.
    C:Program FilesCommon FilesBusiness Objects2.7Bin (Date 1/11/2007, version: 10.2.0.1624) and
    C:Program FilesCommon FilesCrystal Decisions2.5Bin (Date 10/5/2005, version: 10.0.5.1177).
    I've checked all the versions of references in my projects, and they all reference the 2.7 dlls, but I'd like to know if there is a way to replace the 2.5 version, just in case.
    As far as the other search results, they hinted at things I've already tried. What else can I try?
    Thanks,
    Alex

Maybe you are looking for

  • Creation of text variants to be used in bex broadcasting

    Hello Can someone tell me the process of creating new text variants which can be used in the subject and content fields in the bex broadcaster Wizard. I can see some standard text variants there but need to create my own. Thanks

  • Mac OS X Lion Problems (Sound, Resolution, Missing Partition, and Crashes)

    Ohia everybody! So recently I installed Mac OS X Lion (GM) on my Mac Mini. It's been installed for about 2 weeks, but I quickly noticed a couple of problems with it. Problem 1 - Screen Resolution: When I had Snow Leopard installed and I held alt to s

  • Translation keys for 'save as type' in 'save as...' dialog

    Hi all, I am currently working on a custom "save as..." dialog using the ISaveFileDialog interface. On a certain point I have to insert the various types to which you can save an object. In an AddType() method I get a ISaveFileDialog *dlg as a parame

  • Update Custom fields in MSEG in MIGO through MB_MIGO_BADI

    Hi All, I have to update my custom fields in MSEG table after getting them from user in MIGO transaction. I am using BADI--> MB_MIGO_BADI for this. There is method called POST_DOCUMENT in BADI but it is having MSEG as importing parameter. Also, How c

  • Trying to post images to Facebook from within Lightroom

    I know that this will work, but unfortunately I have not been able to get this to work, and after spending nearly 3 hours with technical support, I am no closer than when I started the call. I get the following error message This content is currently