Sum on Parameter field Help

Post Author: Jedit
CA Forum: General
I need a total sum for a shared number variable let me explain.
I have jobs (JWO-1,JWO-2 JWO-3 etcu2026..) that have items being scrapped at different operations.
I have a main report that shows all jobs with scrap & has two sections in it, detail section A & B.
My sub report is located in section A with the following fields
JOB | OP | QTY_SCRAP | COST.
The sub report lists all lines (operations) that have been completed for a job & filters on QTY_SCRAP being >0 then sums the cost filed for all completed operations up to the operation the item/s were scrapped.
I have a shared numbervar (linetotal) that Iu2019m using to pass the summed value back to my main report. 
Syntax for variable is
whileprintingrecords;shared numbervar linetotal:=Sum ({table.Cost})
Back in my main report in detail section B.
I have some other fields that describes why the item/s were found to be faulty with a cost centre, the linetotal field from the sub report appears here & I reference it up with variable linetotal in my main report as
whileprintingrecords;shared numbervar linetotal
For any job, my report shows items being scraped at different operations with a cost & a reason for the scrap.
I now grouped on a Job Number & try to sum all the linetotal parameter fields.
Itu2019s at this point I have the difficulty?
I also want to use the values in a chart & have the same problem, the field is not available for a chart & canu2019t be summed????
I know itu2019s a bit verse & chapter but hopefully this will help?

Dear Gary,
IMHO we can't use a structure type as a parameter ,
especially when the structure does not consist of string fields only.
This is the case why there is the need to define several select-options in the selection screen pointing to the same table ( ie : s_vbeln for vbak-vbeln, s_auart for vbak-auart ) .
In case of yours, if the parameter has a basic type, then the internal table definition should be just fine .
====
I have just read this thread again and find out that your requirement is to define a dynamic table .
In that case, you can ignore this reply
Rgds,
Tuwuh Sih Winedya
Message was edited by:
        TUWUHSIH WINEDYA

Similar Messages

  • Date format in a parameter field (help)

    Post Author: binsk
    CA Forum: Formula
    Hi Guys,
    Newbie in CR world.
    I need help in changing the date format in parameter field. present setting is YYYY/MM/DD. I need it in DD/MM/YYYY. How is it to be done? My db is running in oracle. I'm using the CR XI version.
    Thanks ahead.
    Alex

    Post Author: Aman
    CA Forum: Crystal Reports
    Thank you for your response Yangster. 
    However, the below formula did not work, it gives me a message that "this field name is not known" {?end_date}.
    date_field in dateadd("d", -100, {?end_date}) to {?end_date}
    Am I not inputing this right? or do need a different formula/method?
    Please help...
    Thank you,

  • Sales Order and obligatory material's parameter fields - help!!!

    Hi,
    My problem is:
    I've got to create material in MM by using BAPI_MATERIAL_SAVEDATA, so that this material can be later used as an item in Sales Order (SD). Do you know what parameter fields from which structures are obligatory in my case? I've already passed quite a lot of data to this BAPI, but I still get following error:
    "Material myMaterial is not defined for sales org. 4000, distr.chan. 01, language FI"
    Any suggestion will be appreciated and properly rewarded if useful.
    My Java source-code is available below. Check this out and let me know what is missed.
                    * HEADDATA FOR BASIC VIEW
                   Structure headData = input.getStructure("HEADDATA");
                   headData.setValue(_material, "MATERIAL");
                   headData.setValue("1", "IND_SECTOR");
                   headData.setValue(_matl_type, "MATL_TYPE");
                   headData.setValue("X", "BASIC_VIEW");
                   headData.setValue("X", "SALES_VIEW");
                   //headData.setValue("X", "MRP_VIEW");
                   headData.setValue("E", "INP_FLD_CHECK");
                    * CLIENTDATAX FOR BASIC VIEW
                   Structure clientDatax = input.getStructure("CLIENTDATAX");
                   clientDatax.setValue("X", "MATL_GROUP");
                   clientDatax.setValue("X", "OLD_MAT_NO");
                   // clientdatax.setValue("X", "PROD_HIER");
                   clientDatax.setValue("X", "BASE_UOM_ISO");
                   clientDatax.setValue("X", "NET_WEIGHT");
                   clientDatax.setValue("X", "UNIT_OF_WT_ISO");
                   clientDatax.setValue("X", "ITEM_CAT");
                   clientDatax.setValue("X", "PUR_VALKEY");
                   clientDatax.setValue("X", "LABEL_TYPE");
                   clientDatax.setValue("X", "LABEL_FORM");
                   clientDatax.setValue("X", "DIVISION");
                    * CLIENTDATA FOR BASIC VIEW
                   Structure clientData = input.getStructure("CLIENTDATA");
                   clientData.setValue("02", "MATL_GROUP");
                   clientData.setValue("testmaterial", "OLD_MAT_NO");
                   // clientdata.setValue("1000000790","PROD_HIER");
                   clientData.setValue("PCE", "BASE_UOM_ISO");
                   clientData.setValue(0.111, "NET_WEIGHT");
                   clientData.setValue("KGM", "UNIT_OF_WT_ISO");
                   clientData.setValue("NORM", "ITEM_CAT");
                   clientData.setValue("UV03", "PUR_VALKEY");
                   clientData.setValue("1", "LABEL_TYPE");
                   clientData.setValue("E1", "LABEL_FORM");
                   clientData.setValue("01", "DIVISION");
                    * SALESDATAX
                   Structure salesDatax = input.getStructure("SALESDATAX");
                   salesDatax.setValue("4000","SALES_ORG");
                   salesDatax.setValue("01","DISTR_CHAN");
                   salesDatax.setValue("X","ITEM_CAT");
                   salesDatax.setValue("X","DELYG_PLNT");
                    * SALESDATA
                   Structure salesData = input.getStructure("SALESDATA");
                   salesData.setValue("4000","SALES_ORG");
                   salesData.setValue("01","DISTR_CHAN");
                   salesData.setValue("NORM","ITEM_CAT");
                   salesData.setValue("4200","DELYG_PLNT");
                    * PLANTDATAX
                   Structure plantDatax = input.getStructure("PLANTDATAX");
                   plantDatax.setValue("4200", "PLANT");
                   plantDatax.setValue("X", "MRP_TYPE");
                   plantDatax.setValue("X", "MRP_CTRLER");
                   plantDatax.setValue("X", "REORDER_PT");
                   plantDatax.setValue("X", "MINLOTSIZE");
                   plantDatax.setValue("X", "LOADINGGRP");
                    * PLANTDATA
                   Structure plantData = input.getStructure("PLANTDATA");
                   plantData.setValue("4200", "PLANT");
                   plantData.setValue("ND", "MRP_TYPE");
                   plantData.setValue("001", "MRP_CTRLER");
                   plantData.setValue("0", "REORDER_PT");
                   plantData.setValue("100", "MINLOTSIZE");
                   plantData.setValue("0001", "LOADINGGRP");
                    * MATERIALDESCRIPTION EN
                   Table materialDesc = tables.getTable("MATERIALDESCRIPTION");
                   materialDesc.appendRow();
                   materialDesc.setValue("ENGLISH", "LANGU");
                   materialDesc.setValue("EN", "LANGU_ISO");
                   materialDesc.setValue(_material+" - test for sales order", "MATL_DESC");
                    * MATERIALDESCRIPTION FI
                   materialDesc.appendRow();
                   materialDesc.setValue("FINNISH", "LANGU");
                   materialDesc.setValue("FI", "LANGU_ISO");
                   materialDesc.setValue(_material+" - test FI", "MATL_DESC");
                   // materialdesc.insertRow(0);
                   // MeasureX
                   Table measurex = tables.getTable("UNITSOFMEASUREX");
                   measurex.appendRow();
                   measurex.setValue("X", "ALT_UNIT_ISO");
                   measurex.setValue("X", "UNIT_DIM_ISO");
                   measurex.setValue("X", "LENGTH");
                   measurex.setValue("X", "WIDTH");
                   measurex.setValue("X", "HEIGHT");
                   measurex.setValue("X", "VOLUME");
                   measurex.setValue("X", "VOLUMEUNIT_ISO");
                   measurex.setValue("X", "GROSS_WT");
                   measurex.setValue("X", "UNIT_OF_WT");
                   measurex.setValue("X", "UNIT_OF_WT_ISO");
                   // measurex.insertRow(0);
                   // Measure
                   Table measure = tables.getTable("UNITSOFMEASURE");
                   measure.appendRow();
                   measure.setValue("PCE", "ALT_UNIT_ISO");
                   // measure.setValue("X","DEL_FLAG");
                   measure.setValue("CMT", "UNIT_DIM_ISO");
                   measure.setValue(0.111, "LENGTH");
                   measure.setValue(0.111, "WIDTH");
                   measure.setValue(0.111, "HEIGHT");
                   measure.setValue(0.3, "VOLUME");
                   measure.setValue("CMQ", "VOLUMEUNIT_ISO");
                   measure.setValue(0.111, "GROSS_WT");
                   measure.setValue("KGM", "UNIT_OF_WT");
                   measure.setValue("KG", "UNIT_OF_WT_ISO");
                   //Tax classifications
                   Table tax = tables.getTable("TAXCLASSIFICATIONS");
                   tax.appendRow();
                   tax.setValue("FI", "DEPCOUNTRY");
                   tax.setValue("FI", "DEPCOUNTRY_ISO");
                   tax.setValue("MWST", "TAX_TYPE_1");
                   tax.setValue("1", "TAXCLASS_1");
                   //tax.setValue("01", "TAX_IND");
                   tax.appendRow();
                   tax.setValue("EN", "DEPCOUNTRY");
                   tax.setValue("EN", "DEPCOUNTRY_ISO");
                   tax.setValue("MWST", "TAX_TYPE_1");
                   tax.setValue("2", "TAXCLASS_1");

    Hi Alistair,
    I have a full access to SAP, so I can create and extend material whenever I want through MM01/MM02, but my target is to develop a method in Java, which creates a fully functional material to be used later in Sales Order.
    A code listed in my prevoius post shows most of my method. I've got to indicate that my method works correctly and creates material. I've checked it through MM03 - I mean my material created with my method exists.
    Moreover both sales org. and distr. channel are passed to BAPI, as you may see in the following code:
                    * SALESDATA
                   Structure salesData = input.getStructure("SALESDATA");
                   salesData.setValue("4000","SALES_ORG");
                   salesData.setValue("01","DISTR_CHAN");
                   salesData.setValue("NORM","ITEM_CAT");
                   salesData.setValue("4200","DELYG_PLNT");
    But the problem occurs when I wanna create Sales Order (VA01) and when I choose the item. Material created by my method causes error:
    "Material myMaterial is not defined for sales org. 4000, distr.chan. 01, language FI"
    I don't understand why? I'm not SAP specialist, but in my opinion I've passed necessary data.
    Do you any idea?
    Thanks in advance. Every helpful suggestion will be properly rewarded.
    BR,
    Rafal

  • Adding f4-help to selection screen parameter field

    Hi all.
    I need to add search help to a parameter field on selection screen:
    PARAMETERS:
                 p_reciv LIKE soos7-recnam.
    What is the easiest way?
    tia, regards

    You can give F4 help by two ways:
    1. Using internal table
    2. Refering db table field.
    Following are e.gs:
    F4 help – using internal table example:
    DATA: BEGIN OF LI_FABGRP OCCURS 0,
    FABGRP LIKE ZAPO_FABGRP-FABGRP,
    BEGDA LIKE ZAPO_FABGRP-BEGDA,
    END OF LI_FABGRP.
    DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE,
    L_RETFIELD TYPE DFIES-FIELDNAME.
    parameters : S_FABGR like ZAPO_FABGRP-FABGRP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_FABGR.
    SELECT FABGRP BEGDA FROM ZAPO_FABGRP INTO table LI_FABGRP.
    SORT LI_FABGRP BY FABGRP ASCENDING BEGDA DESCENDING.
    Henter de mulige fabriksgrupper med nyeste BEGDA *indenfor hver
    DELETE ADJACENT DUPLICATES FROM LI_FABGRP COMPARING FABGRP.
    L_RETFIELD = 'FABGRP'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = L_RETFIELD
    DYNPPROG = SY-REPID
    DYNPNR = '1000'
    DYNPROFIELD = 'S_FABGR'
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    TABLES
    VALUE_TAB = LI_FABGRP
    RETURN_TAB = T_RETURN
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3.
    F4 help – using field example:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_FABGR.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname                   = mara
        fieldname                 = matnr
      SEARCHHELP                = ' '
      SHLPPARAM                 = ' '
      DYNPPROG                  = ' '
      DYNPNR                    = ' '
      DYNPROFIELD               = ' '
      STEPL                     = 0
      VALUE                     = ' '
      MULTIPLE_CHOICE           = ' '
      DISPLAY                   = ' '
      SUPPRESS_RECORDLIST       = ' '
      CALLBACK_PROGRAM          = ' '
      CALLBACK_FORM             = ' '
      SELECTION_SCREEN          = ' '
    IMPORTING
      USER_RESET                =
    TABLES
      RETURN_TAB                =
    EXCEPTIONS
      FIELD_NOT_FOUND           = 1
      NO_HELP_FOR_FIELD         = 2
      INCONSISTENT_HELP         = 3
      NO_VALUES_FOUND           = 4
      OTHERS                    = 5
    Select-options: s_rcode FOR g_grund . "Reason code
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_rcode-low.
    Validation for Reasoncode
    PERFORM sub_get_F4_rcodehelp .
    FORM sub_get_f4_rcodehelp .
    STRUCTURES Declarations
    TYPES: BEGIN OF ty_rcode ,
    grund TYPE mb_grbew,
    grtxt TYPE grtxt,
    END OF ty_rcode.
    *Internal Table declaration
    DATA : li_rcode TYPE STANDARD TABLE OF ty_rcode WITH HEADER LINE.
    SELECT grund grtxt
    INTO TABLE li_rcode
    FROM t157e
    WHERE spras = sy-langu .
    *Help functions for external use
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'fieldname'
    dynpprog = 'programname
    dynpnr = '1000'
    dynprofield = 'S_PCODE'
    value_org = 'S'
    TABLES
    value_tab = li_rcode
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    OTHERS = 3 .
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " sub_get_F4_rcodehelp

  • How can we provide F4 help for parameter field.

    Hi All,
    How can I provide F4 help for parameter field.
    Regards,
    Amar

    hi,
    different ways of applying search help are :
    you can use anyone:
    1)   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    or
    2) 
    can follow these simple steps for search help:
    go to se11==> put some name after ticking search help radiobutton==> create==>
    then tick " elementery search help " and press enter ===>then put description and table name in selection method ===>then put the field on which u want search help
    in search help parameter==> tick IMP EXP ==> write 1 in lpos and spos===>save and activate===> double click on table name ===>  select that field and press *search help tab* above===> then copy
    3 )
    methods of applyind search help:
    For search help sometimes we use MATCHCODE----->when we apply it directly to parameter or select option.they are obselete now ii.For search help sometimes we CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' ??------->if we want to populate data of internal table as search help.
    iii.For search help sometimes we declare tablename-fieldname in selection?------>if that field in that table is having seach help or check table ..F4 will be avaliable directly.
    also:
    Fixed value of domain can also work as search help.
    i hope it will help u a lot
    thaks and regards
    rahul sharma

  • Need help with parameter fields and report selection.

    Hi all:
    I hope some one can help me with the problem I am having with my parameter field and record selection.
    First, can anyone explain to me why my parameter field CustStart, which is dynamic and is based on the field Customer in the table CustMaster.  There are over 1800 records in the CustMaster table but the drop down list only shows maybe about half of them and there is no way to scroll down to the last customer record.  What am I doing wrong?
    Second, is there any way to base a parameter field on a formula field on my report?  On my report I have created a field Cust that is the customer name and number joined together in one field.  I would very much llike to use this formula in my record selection and in my parameter field.  Can it be done?
    All help is greatly appreciated
    Thanks,
    FatMan

    Hi,
    You can use the following for changin increasing the LOV.
    Crystal Reports XI BusinessObjects Enterprise XI
    For performance reasons, in Crystal Reports XI Release 1 and Release 2 the maximum number of values that are returned for a list of values is set to 1000. If you have a cascading List of Values (for example Country > Region > City), the lowest level (in this case City) will only display a maximum of 1000 values. This means that the higher-level prompts may display far fewer values than you expect. The list of values provides the data for the dynamic parameter list.
    How can you modify the maximum number of values available in a dynamic parameter list?
    Resolution
    To increase the maximum number of values available in a dynamic parameter list, you must add a registry key.
    CAUTION     The following resolution involves editing the registry. Using the Registry Editor incorrectly can cause serious problems that may require you to reinstall the Microsoft Windows operating system. Use the Registry Editor at your own risk. For information on how to edit the registry key, view the 'Changing Keys and Values' online Help topic in the Registry Editor (Regedit.exe).
    It is strongly recommended that you make a backup copy of the registry files (System.dat and User.dat on Win9x computers) before you edit the registry.
    Crystal Reports XI Release 1
    1.     Create a registry key HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\DatabaseOptions\LOV.
    NOTE     Alternatively, you can create the registry key HKEY_CURRENT_USER\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\DatabaseOptions\LOV and that key will override the settings of the HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\DatabaseOptions\LOV key.
    2.     Add a string value "MaxRowsetRecords" and set the value to the maximum number of values that you desire for your report. For example, a value of 2000 will return up to 2000 values in the lowest level of a cascading parameter. NOTE: The value 0 (Unlimited) will not work with BusinessObjects Enterprise XI or Crystal Reports Server XI, you must specify another value.
    NOTE     The higher the number of values is, the longer it will take the Enter Values dialog box to populate with values.
    3.      After making changes to the registry, restart the affected service or application as required.
    Crystal Reports XI Release 2
    1.     Create a registry key HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\DatabaseOptions\LOV.
    NOTE     Alternatively, you can create the registry key HKEY_CURRENT_USER\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\DatabaseOptions\LOV and that key will override the settings of the HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\DatabaseOptions\LOV key.
    2.     Add a string value "MaxRowsetRecords" and set the value to the maximum number of values that you desire for your report. For example, a value of 2000 will return up to 2000 values in the lowest level of a cascading parameter. 
    NOTE     The value 0 (Unlimited) will not work with BusinessObjects Enterprise XI or Crystal Reports Server XI, you must specify another value.
    3.     After making changes to the registry, restart the affected service or application as required.
    I hope this helps you.
    Regards,
    Prashant

  • Passing a value to a Parameter Field From a VB Form

    Post Author: as1971
    CA Forum: General
    Hello everyone
    I'm using Visual Basic 6.0 and Crystal Report 9.0
    I built a report using Crystal Report and named it Player_Statement.rpt. I then included it to my VB project and named it Player_Statement.Dsr
    In this report I have a Parameter Field called P_Player_ID which I'm using in Record Selection Formula.
    I'm using the following code to pass a value to the parameter:
    Dim Report As CRAXDRT.ReportSet Report = New Player_StatementReport.ParameterFields.GetItemByName("P_Player_ID").AddCurrentValue CLng(cmbPlayerNB.BoundText)
    When I execute the application I get the error message "The value or range you are adding has already existed" at the last line of code (Where I'm assigning the parameter a value)
    Could anybody help me please

    Post Author: VinoTinto
    CA Forum: General
    Dim Report As CRAXDRT.ReportSet Report = New Player_StatementReport.GetItemByName("P_Player_ID").ClearCurrentValueAndRange                                               Report.ParameterFields.GetItemByName("P_Player_ID").AddCurrentValue = CLng(cmbPlayerNB.Boundtext)

  • Sum of a field in ALV List

    Hello Guys,
    I'm using 'REUSE_ALV_GRID_DISPLAY' in my prog.
    There is a field in output table which is of type P(8) Decimals 3.
    When I'm trying to get the sum of this field in ALV Display it gives the message " Desired operation cannot be performed for column 'Converted Quantity' ".
    I have also tried do_sum = 'X'.
    But it is not working. Please help guys.
    Regards,
    Abhinav

    Thanks a lot guys for your inputs.
    The program is working now.
    Now I'm using :
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'QUAN'.
    *  wa_fieldcat-ref_tabname = 'I_OUT2'.
    *  wa_fieldcat-tabname = 'I_OUT2'.
      wa_fieldcat-qfieldname = 'MEAS'.
      wa_fieldcat-qtabname = 'I_OUT2'.
      wa_fieldcat-outputlen = '15'.
      wa_fieldcat-seltext_l = text-052.
      APPEND wa_fieldcat TO i_fieldcat.
    The program is working fine now.
    I have commented tabname and -ref_tabname , and the program is working fine now.
    Thanks a lot.

  • Error while adding Parameter Field to CrossTab report in CR 2008

    Hello Experts,
    I'm getting an error - "Not supported" while I'm trying to add a paremeter to the Crosstab report. It is a simple report with no further complications.
    Is there any special way to add a parameter field to Crosstab? Any help appreciated.
    TIA
    arjun

    Hi,
    What version of Crystal Report are you using? 
    Kindly refer SAP Note 1376117 & 1454192  and verify if you are on the approriate patch.
    Regards,
    Nakul

  • Parameter Field Value Elimination Based on Another Parameter

    I'd like to make 3 grouping parameters with static values to produce 3 drop downs in the user prompt.  The problem is, I'd like for the second drop down to eliminate the choice made from the first drop down and the third drop down to have been eliminated to only one choice.  Is there a way to edit the parameter field values from the formula workshop?...Or maybe this would be better handled in the group selection formula area.  Any help would be very much appreciated.

    Can't be done unless you use one of the 3rd-party Crystal viewers listed at http://kenhamady.com/bookmarks.html
    A simpler approach is to have a record selection formula that causes no records to be retrieved if 2 parameters have the same selected value.  You can then unsuppress a text object telling the user their parameter selections can't be the same.

  • Modify default value for static parameter field programmatically

    Hi,
    I have my Crystal Reports stored in a BO Enterprise system. I have written a java programm that scans the repository, loads the CR reports one by one into a ReportClientDocument, modifies the data source and then stores the updated report back to repository (it overwrites the existing objects).
    I was even able to modify the default values for the parameters, which are used for scheduling of each report.
    But what I am trying to do know is to overwrite the default value used when invoking the report interactively. This should be the value found under the Default Value field, when the Properties window of the parameter is opened in the CR designer.
    This is what I have tried so far:
    Option 1: First I tried to set the default values using com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.getDataDefinition().getParameterFieldController().getField(...).getDefaultValues() . The only thing I have managed to do using this approach is to modify the static LOVs that are associated to static parameters. The actual selected value (shown under Default Value in the Properties window for the given parameter field) remained unchanged, when invoking the report in the InfoView or opening it in the CR designer.
    Option 2: I have used com.crystaldecisions.sdk.plugin.desktop.report.IReport.getReportParameters().get(ik).getDefaultValues() to change the default values. I was able to see my changes in the BO repository (using a query on CI_INFOOBJECTS), still the changes did not really have an impact to what is displayed as default value when invoking the report in the InfoView.
    Any help will be appreciated.
    It would be great to know if someone of you has already implemented successfully such a use-case.
    Regards,
    Stratos
    Edited by: Efstratios Karaivazoglou on Dec 9, 2009 8:52 AM
    Edited by: Efstratios Karaivazoglou on Dec 15, 2009 11:33 PM

    Hi,
    For Crystal Design related queries, close this thread and start the thread in the [SAP Crystal Reports Design forums|http://forums.sdn.sap.com/forum.jspa?forumID=300&start=0]
    - Bhushan

  • Getting Error with date parameter field -"Invalid DATE"

    Hi
    I created a report with 9.2 version. And  i created 2 date parameter fields in it. And within crystal reports it works fine.
    But If, I call from the VS2005 crystalreport.net(report document) SDK , i am getting error as Invalid Date" enter a Date Value". Actually it is a dtp control. how can i modify it.

    <p>There&#39;s not enough details to get a good understanding of your scenario, but it sounds like you&#39;re using some kind of date control to retrieve the date value and pass it to the report&#39;s parameter field at runtime. </p><p>If this is correct, it sounds like the format of the date value from the control may not be what the report is expecting. To debug, I would first use hardcoded values when you set the report parameter fields to see what works. Then compare that to what the return value is from the control to see if they match. I suspect the formats differ. </p><p>I did a quick search on the BOBJ kbase and found a couple of articles that may help you. I recommend searching as there are lots of information on how to set parameter fields at runtime. </p><p><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010247&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010247</a></span><span style="margin-left: 5px"><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010251&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010251</a></span></span></p><p>-MJ</p>

  • Length of parameter field

    Hello all,
    I'm having trouble with a parameter on a selection-screen. I have a field in which the user must enter a filename/path to a workstation file. The length of the parameter field is 128 (RLGRAP-FILENAME), but on the screen, the parameters appears only in length 45 scrollable. Since our users are using loooooong directory pathes, they would like to see the complete filepath/name without scrolling. Is there any possibility to show all 128 digits of the parameter on the screen without manually editing the selection screen?
    Thank you for your help, kind regards, Kathrin!

    You can use the object/method version of the file F4 help and there is one for directory and one for file name i think. directory_browse for the directory and FILE_OPEN_DIALOG
    ***************************directory
    *Selecting a Directory
    data: gd_path(500) type c.
    parameters: p_path like rlgrap-filename.
    at selection-screen on value-request for p_path.
        CALL METHOD cl_gui_frontend_services=>directory_browse
            EXPORTING window_title = 'File Directory'
                            initial_folder = 'C:'
            CHANGING selected_folder = gd_path.
        CALL METHOD cl_gui_cfw=>flush.
        concatenate gd_path '' into p_path.
    file
    *Selecting a File, plus inserting default file extension
    tables rlgrap.
    data: it_tab type filetable,
          gd_subrc type i.
    select-options so_fpath for rlgrap-filename.
    at selection-screen on value-request for so_fpath-low.
    REFRESH: it_tab.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
        EXPORTING
            WINDOW_TITLE = 'Select File'
            DEFAULT_FILENAME = '*.txt'
            MULTISELECTION = 'X'
        CHANGING
            FILE_TABLE = it_tab
            RC = gd_subrc.
    loop at it_tab into so_fpath-low.
        so_fpath-sign = 'I'.
        so_fpath-option = 'EQ'.
        append so_fpath.
    endloop.
    Hope this helps
    Regards mart

  • Prefix parameter field

    I have been provided with a report that requires the parameter field to be populated with the word u2018Weeku2019 and followed by the week number i.e. Week 02
    I have an automated system for exporting reports via email, and I can set the parameters to enter dates or part of dates, however I am at a loss of how to have the word u2018Week u2018 (with a space at the end, thus before the week number).
    Is there anyway in which I can prefix a parameter field.....so for the parameter of u201840u2019 the Select Expert would actually be checking u2018Week 40u2019 against the database?

    Hi Jonathan,
    This can be done like..
    In existing report Go in Database Expert Create New ConnectionDouble click on Add Command
    Write SQL as follows :
    Select 'Week '+Week_no As Week from Table
    It will create a command object, Now create a Dynamic Parameter based on the above command object Week.
    In Record Selection check the Database field agains this parameter like ..
    = Totext(right(New_Parameter,2)
    Hope this will help you.
    Thanks,
    Sastry

  • How to hide the Parameter field during Run time?

    Hi,
    How to hide the Parameter field during Run time?
    I have a parameter field which behaves differently depending on the User logged in.
    I am using reports 10G
    For ex: I have 3 field created in JSP
    CUSTOMER
    PROVIDER
    FROM DATE
    END DATE
    If the user = 'SUPER show all the parameter
    CUSTOMER
    PROVIDER
    FROM DATE
    END DATE
    If the user is 'GATEKEEPER" Just show
    PROVIDER
    FROM DATE
    END DATE
    Can I do that?
    Please help
    Thanks.
    KK

    hi, i'm not familiar much with JSP. but i think workaround is to create two window one which have 4 fields and the other which have 3. if user is SUPER then call the first screen otherwise if user is GATEKEEPER then call the second screen.

Maybe you are looking for

  • Addine New Dimension In An Existing Cube

    Hi fellows, Im not an expert so need you feedback. I am supporting a cube that was built a decade ago using Essbase 6.5. It has 7 dimensions (3 dense, 4 sparse). With the new reporting requirement, I need to add a new dimension to be called "BaseTime

  • My iPhone 4 suddenly shut of and it won't turn back on

    my iPhone 4 suddenly shut of and it won't turn back on. when i try charging it the apple comes up but then it shuts of and a few seconds later the apple will come up again but my phone won't turn on! it hasnt been water damaged and i have tried holdi

  • Fining PATH (and MANPATH) once and for all

    I think the correct list of directories in PATH should be: I am trying to sort thru the endless confusion and set up PATH (and MANPATH) right, once and for all. Every package I install seems to have its own idea of what these variables should be. I c

  • Installing Oracle 8.1.5 in Red Hat Linux 6.2

    Hi, I'm trying to install Oracle 8.1.5 in Red Hat Linux 6.2. But when I run the runInstaller command it gives the following error & quit. [oracle@localhost cdrom]$ ./runInstaller Initializing Java Virtual Machine from /usr/local/jre/bin/jre. Please w

  • What are these features and how can I use them?

    Why do I have SDM Profile, Dyanmic private IP, Pay per message, Mobile Hotspot provisioning,   My mom is on the same account and does not have these.  Everything I look at points to enterprise stuff and administration.  I'm not aware of any of that.