Enter parameter values screen

Hi, I have used Crystal for several years and now trying the Visual Studio's 2010 version I have this problem: using a WIndows Forms App with the Crystal viewer when I generate a report that contains at least one parameter and run the app a screen with the parameter is asking me for the value but I have already set it in code, this is the code in VB. As you can see I have used several methods to pass parameters but I always got the parameters screen... please I need to know how to hide this screen !!
        Dim rptReporte As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        rptReporte.Load("test.rpt")
        Dim myParameterFieldDefinitions As ParameterFieldDefinitions = rptReporte.DataDefinition.ParameterFields
        Dim myParameterFieldDefinition As ParameterFieldDefinition = myParameterFieldDefinitions("Empresa")
        Dim pvCol1 As New CrystalDecisions.Shared.ParameterValues
        Dim pdvEmpresa As New CrystalDecisions.Shared.ParameterDiscreteValue
        pdvEmpresa.Value = "Integrama"
        pvCol1.Add(pdvEmpresa)
        ' I have always use this with previous versions and worked fine
        'rptReporte.DataDefinition.ParameterFields("Empresa").ApplyCurrentValues(pvCol1)
        ' I have tried with this and does not work
        'rptReporte.SetParameterValue("Empresa", "Integrama")
        ' I have tried with this and does not work
        myParameterFieldDefinition.ApplyDefaultValues(pvCol1)
        myParameterFieldDefinition.ApplyCurrentValues(pvCol1)
        rptReporte.ReportOptions.EnableSaveDataWithReport = False
        crwViewer.ReportSource = rptReporte

I found the solutions in this post:
VS2010 Cannot pass Parameters Programmatically

Similar Messages

  • How to suppress "enter parameter values" screen in crystal reports for Visu

    Hi,
        I am passing parameters to the report through program.  But still the "Enter Parameter Values" Dialog is shown every time I run the application.  Code used to pass parameters is given below:
                    rptCBBookRpt objRptCBBook = new rptCBBookRpt();
                    objRptCBBook.SetParameterValue("@Branch", strBranch);
                    objRptCBBook.SetParameterValue("@CoName", mdlFinIF.objCommon.CoName);
                    objRptCBBook.SetParameterValue("@Heading", strHeading);
                    objRptCBBook.SetParameterValue("@UserInfo", mdlFinIF.objCommon.ReportInfo());
    How can I suppress the "Enter Parameter Values" dialog.  Please help.
    Cris Evan

    Well, no. But this being a community, not technical support, you may get a response, perhaps even an actual answer, or you may not...
    If you are not getting a response or an answer, you may want to consider obtaining a dedicated support here:
    http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100?resid=S6I@hgoHAkEAAGsiyVkAAAAR&rests=1282226845369
    Look at samples here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Check out the [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23] - it will apply to your version of CR...
    And of course, developer help files.
    - Ludek

  • How to disable "Enter Parameter Values" for optional paramters?

    I'm having issues getting the Crystal Reports .NET Viewer to suppress the "Enter Parameter Values" dialog for optional parameters.  I have templates created using Crystal Reports 2008 and am linking against the CR for VS 2010 runtime.
    Within the report template the optional paramter has "Optional Prompt" set to "True".  This particular parameter also allows multiple values and is used in record selection.  Within the record selection it is using HasValue().
    It seems the parameter is set up properly as I have other parameters that are set within the code that are not prompted for.  If I pass in the optional parameter through the code the "Enter Paramater Values" dialog also does not appear and the report is generated correctly.  All of the parameters are set using ParameterFields and they are set before the ReportSource is set.
    Looking through the .NET API documentation it seems like the CrystalReportViewer should have an "EnableParameterPrompt" property that would do what I want however it doesn't seem to be a valid parameter as I get compile errors when I try to use it...  Not sure if it matters or not but I am using managed C++ and our application is built using Visual Studio 2005.  Could that maybe have something to do with it?
    Thanks,
    -Ben

    OK, I'm going to answer my own question as with a little more digging I was able to find out that I needed to set some stuff on the report document to specify that there are no values.  Still not sure why "EnableParameterPrompt" is not valid for me though as it seems like that would work as well.  At any rate here is what I needed to do:
    ReportDocument->ParameterFields[<Optional Parameter Name>]->CurrentValues->Clear();
    ReportDocument->ParameterFields[<Optional Parameter Name>]->CurrentValues->IsNoValue = true;
    -Ben

  • Disabling the Enter Parameter Value dialog box

    I'm developing Crystal Reports in a WPF application using CRVS2010
    The issues I'm having are the following:
    I am attempting to pass parameter values to a report. I have been able to set a several paramater values by using the following syntax:
    ReportObject.SetParameterValue("ParameterName1", ParameterValue1);
    ReportObject.SetParameterValue("ParameterName2", ParameterValue2);
    ReportObject.SetParameterValue("ParameterName3", ParameterValue3);
    ReportObject.SetParameterValue("ParameterName4", ParameterValue4);
    Issue #1:
    Each time I run the application sometimes the report will display with the report data and parameter values; Other times, just before the report displays, it will prompt me to "Enter Parameter Value".
    How do I prevent this dialog box from displaying so that the programmed parameter values will display instead?
    Issue #2:
    When the Refresh button on the Viewer control menu is clicked a dialog box prompts ask if the new parameter values should be used or to use the old parameter values.
    How do I prevent this dialog box from displaying and refresh the paramater values?
    I know that there is a ReuseParameterWhenRefresh property that's part of the ViewCore class but I'm not sure how to use it to eleviate the issue I'm having on the refresh.
    Any help that can be provided with this most urgent matter (on my part of course) would be most appreciated.
    Marlon

    One issue per thread please see See [Rules Of engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].
    Take a look at the [sample applications for CR for VS 2010|http://www.sdn.sap.com/irj/boc/samples?rid=/library/uuid/5050d3d0-19dd-2d10-ffb2-ddcd30a3e655].
    Passing parameter sample app woould be able to resolve your issue.
    Hope this helps,
    Bhushan.

  • Dynamic Cascading Parameters - cannot select/enter parameter value

    I am rather new working with Crystal Reports and am having problems with Dynamic Cascading Parameters.
    I am using CR 2008 SP2, Version 12.2.0.290.  Data is from SQL server.
    I have a report to print labels for parts in an order.  I want to be able to enter the ShipTo ID then the contract number.  From there I would like a list of the parts on the contract and be able to select multiple parts to print labels for.
    I right clicked on Parameter Fields and chose New.  I named it ShipToContractPartNo, Type String, List of Values=Dynamic. 
    I added the values as follows:
    ShipToID - Editable, Allow Multiple=False, Allow Discrete=True (cannot be changed), Allow Range=False
    ...ContractNo - Allow Multiple=False, Allow Discrete=True (cannot be changed), Allow Range=False
    ... ...CustPartNo - Allow Multiple=True Allow Discrete=True (cannot be changed), Allow Range=False
    I added the Customer Part parameter to the label.
    When I test the label the parameter Enter Values window looks good but the drop down for Enter ShipToID does not have any ShipTo ID's to choose from and I cannot enter a value, therefore I cannot continue.  I also do not have a Cancel button and always have to end through Task Manager but that's probably a different, unrelated issue.
    I have tried this with and without entering Select Expert records.
    Could someone please tell me if I have missed a step or if there is a known issue?  I searched this site, I looked in CR Help, I referred to the book I have and I googled but have not found this speciic issue.
    Thanks in advance for your assistance.  Let me know if additional information is necessary.
    Jan

    OK.  I have rejoined/relinked all my tablesas follows (with abbreviated names for ease of reading). The actual SQL is at the end.
    ..Job_Hdr JOINED to Job_Shipto
    .....Job_Shipto JOINED to Job_Line
    ........Job_Line JOINED to Job_Bin
    ............Job_Line JOINED to Inv_Mast
    When I create a Dynamic Cascading Parameter prompt on just ContractNo (parent - from table Job_Hdr) and ShipTo (child - from table Job_ShipTo) then it gives me list of Contracts to select from and then a list of ShipTo's for that Contract to select from.  I place them in the Report Header.  I do not add them to the Select Expert.  This works great.
    Now I need to be able to select the parts necessary from the Contract/ShipTo.  When I try to create a Dynamic Cascading Parameter with ContractNo and ShipTo (set up the same as above)  and add in ContractPartNumber (from table Job_Bin) to the parameter then my ContractNo and ShipTo parameters no longer work.  It gives me only 1 contract number to choose from, which isn't the one I want.
    I have tried so many different things and I cannot get the parameters to work when I try to add PartNo into the parameters.
    Any suggestions now?
    Jan
    SELECT "p21_view_inv_mast"."item_desc", "p21_view_job_price_line"."customer_part_no", "p21_view_job_price_hdr"."contract_no", "p21_view_job_price_bin"."min_qty", "p21_view_job_price_bin"."reorder_qty", "p21_view_job_price_bin"."line_station", "p21_view_job_price_line"."row_status_flag", "p21_view_job_price_bin"."line_feed", "p21_view_job_price_bin"."row_status_flag", "p21_view_job_price_bin"."contract_bin_id"
    FROM   ((("Prophet21"."dbo"."p21_view_job_price_hdr" "p21_view_job_price_hdr"
    INNER JOIN "Prophet21"."dbo"."p21_view_job_price_customer_shipto" "p21_view_job_price_customer_shipto" ON "p21_view_job_price_hdr"."job_price_hdr_uid"="p21_view_job_price_customer_shipto"."job_price_hdr_uid")
    INNER JOIN "Prophet21"."dbo"."p21_view_job_price_line" "p21_view_job_price_line" ON "p21_view_job_price_customer_shipto"."job_price_hdr_uid"="p21_view_job_price_line"."job_price_hdr_uid")
    INNER JOIN "Prophet21"."dbo"."p21_view_job_price_bin" "p21_view_job_price_bin" ON ("p21_view_job_price_customer_shipto"."ship_to_id"="p21_view_job_price_bin"."ship_to_id") AND ("p21_view_job_price_line"."job_price_line_uid"="p21_view_job_price_bin"."job_price_line_uid"))
    INNER JOIN "Prophet21"."dbo"."p21_view_inv_mast" "p21_view_inv_mast" ON "p21_view_job_price_line"."inv_mast_uid"="p21_view_inv_mast"."inv_mast_uid"
    WHERE  "p21_view_job_price_bin"."row_status_flag"=704 AND "p21_view_job_price_line"."row_status_flag"=704
    ORDER BY "p21_view_job_price_bin"."line_feed", "p21_view_job_price_bin"."line_station"

  • Exception is thrown while launching report , after entering parameter value

    I have a cystal report, which prompts for parameter value to be entered. When I enter the value and hit okay, an exception is generated. The call stack of the exception :-
    at CrystalDecisions.Windows.Forms.ParameterFieldInfo.get_isDCP()
    at CrystalDecisions.Windows.Forms.ParameterValueEditControl.Start()
    at CrystalDecisions.Windows.Forms.ParameterUnit.AddEditControl(ParameterValue pv)
    at CrystalDecisions.Windows.Forms.ParameterUnit.UpdateControls()
    at CrystalDecisions.Windows.Forms.ParameterUnit.set_ParameterFieldInfo(ParameterFieldInfo value)
    at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowParameters()
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowInteractiveParameters()
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowReport()
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.OnPaint(PaintEventArgs evtArgs)
    at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
    at System.Windows.Forms.Control.WmPaint(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.UserControl.WndProc(Message& m)
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.WndProc(Message& msg)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Can you please help me with this. Its strange that I do not have similar issue with other reports which prompt for parameter , However in this case the issue lies with show dialog box button in the parameter panel menu which throws an exception if the user clicks the show advanced dialog box button)

    Thank you . I used the MSI listed. Sorry to bother, but couple of questions ., firstly I cleaned up my system to make sure that I do not have any crystal reports assembly in GAC.
    Then I installed the msi per link suggested above and it did install crystal report 2008 sp3. After installing , I noticed that the gac contained 2 versions of assembly for CrystalDecisions.CrystalReports.Engine (Version - 12.0.1100.0 and File version 12.3.1101.684) and the other
    CrystalDecisions.CrystalReports.Engine (Version 12.0.2000.0 and File version 12.3.2001.684).
    I am little confused, why does it install 2 different version of assemblies.
    Also my application needs reference to the crystal reports assembly and since after installing the MSI, it was registered with GAC, I had to copy the content of GAC to a different folder (temp folder )and referenced the dll from temp folder.
    When I copied the contents of GAC, I could copy the Version 12.0.1100 only but not the other one. I want to use the version 12.0.2000.0 and see what happens, but how ?
    FYI - I tested with version 12.0.1100.o and file version 12.3.1101.684, the issue still exists.
    I hope you can help me
    Thanks.

  • Crystal Report Prompt For Enter Parameter Values

    Hi,
    I did a report with 2 subreports embeded in VS2005 using VB and it worked fine but when I ported the whole application to VS2008 the above problem occurs. Here are some codes:
        Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPreview.Click
            Dim viewer As New frmReportPreview
            Dim rpt As New ReportDocument
            Try
                rpt.Load("C:\Report\crptMain.rpt")
                rpt.SetParameterValue("Code", Me.cbxCode.Text)
                rpt.SetParameterValue("Code", Me.cbxCode.Text, "crptSubReport1.rpt")
                rpt.SetParameterValue("Code", Me.cbxCode.Text, "crptSubReport2.rpt")
                viewer.report = rpt
                viewer.WindowState = FormWindowState.Maximized
                viewer.ShowDialog()
            Catch crptEx As CrystalDecisions.CrystalReports.Engine.EngineException
                MessageBox.Show(crptEx.Message, "Crystal Report Errors...")
            Catch ex As Exception
                MessageBox.Show(ex.Message, "Crystal Report Errors...")
            End Try
        End Sub
    Private Sub frmReportPreview_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            Try
                Me.CrystalReportViewer.ReportSource = m_report
                Me.CrystalReportViewer.RefreshReport()
            Catch ex As Exception
                MessageBox.Show(ex.Message, "Error...")
            End Try
        End Sub

    Subreport Parameters are contained within the Main Report's ParameterFieldDefinitions collection. Passing Subreport Parameter values directly to the Subreport will result in the values not being applied and the user being prompted at runtime to provide new values.
    Ludek

  • Sub report linking definition based on result, not on parameter value

    Dear all,
    I have created a report with CR 2008 SP6. The parameters from the referring BI query are period and customer. After the user enter parameter values, the report provides then Customer and product information.
    I have add a sub report with additional information for product. I can transfer the parameter value (user input) for Customer to the sub report, but not for product, due to the fact that in the main report Product is not selected as parameter, but is a result set after the report is executed.
    Is there a way to define in the Sub report linking exactly these result values of Product as new parameter for the sub report.
    In the sub report linking definition I only see the possibility of defining the parameter as linking object, but not the report result set. See also the screenshot.
    Any idea would be great. Best regards,
    Stefanos from Munich/Germany

    Hi Stefanos,
    Where is the Subreport placed on the report?
    Do you have a prompt in the Subreport for 'product'?
    If yes, then here's open the 'Change Subreport Links' window > Move the Product field to the Pane on the right > From the drop down at the bottom left that says 'Subreport parameter field to use', choose the Product prompt.
    If you don't have a prompt for product in the Subreport, then just move the Product field to the Pane on the right > From the drop down at the bottom right that says 'Select data in Subreport based on field', choose the Product field from the drop-down.
    -Abhilash

  • Can the Parameter Enter Value screen size be adjusted?

    I have a report that will have up to 4 to 5+ different individual Parameters that will require the users to populate. 
    Since I am using a larger number of parameters the Enter Value screen size is small and not all of the parameters are displayed on one screen.   the users are required to scroll down in order to see and populate the other Parameter selections. 
    Is there a way to adjust the default size of the Parameter enter Value screen that the end users will see when using the Cyrstal Report Viewer?

    Try Service Pack 3, if still not then it's likely the type of parameters you are using.
    Bottom line is if there is no option to change the size of that window. I believe someone asked for this and I entered it in as an enhancement request. Some future version may eventually have the ability to auto-size.
    At the top of this forum you'll see a Feature Request link, add your suggestion there, search first though in both of the links.
    Thank you
    Don

  • Entering mulitple values for a single user parameter

    Hello,
    Can anyone explain to me how to allow multiple values for a single parameter?
    For example, say I want to allow the report to display a list of employees based on their employee id. I want to allow the user to enter mulitple
    employee id's into a single field to get their report. SO the user would enter "241, 459, 832" to return the list of those 3 employees. I have the SQL set up below, but obviously I need to set up something different to break it out into 3 separate values. Any help would be greatly appreciated!
    SELECT * FROM EMPLOYEE
    WHERE EMPLOYEE_ID IN (:P_EMP_ID)

    Hi,
    Another way to do this is to use the lexical parameter, but then you have to create the parameter form in Forms. Your SQL would look like this for example:
    select * from emp where empno is not null &empno
    where &empno is a lexical parameter.
    Then on your parameter form you would have a text field F_empid, say 200 character long, allowing the user to enter multiple values separated by a ",".
    Then in the trigger that calls the report you would create a parameter list, and a variable that holds the values read from the form, this variable is where you define the value to be passed to the report's lexical parameter. For example:
    declare
    v_empid varchar2(200); (consistent with the length of the lexical parameter in the report).
    begin
    v_empid:='and empno in ('||F_empid||')';
    then you pass v_empid to &empno in the call to the report.
    This method works well. Good luck.

  • Problem in getting parameter value from selection screen in web dynpro abap

    Hi,
    I am facing problem in getting parameter value from selection screen.
    Please find my code below:
    DATA LT_PAR_ITEM TYPE IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
    FIELD-SYMBOLS:<FS_PAR_ITEM> LIKE LINE OF LT_PAR_ITEM,
                                 <FS_OBJ_USAGE>    TYPE REF TO data.
      WD_THIS->M_HANDLER->GET_PARAMETER_FIELDS( IMPORTING ET_FIELDS = LT_PAR_ITEM ).
      LOOP AT LT_PAR_ITEM ASSIGNING <FS_PAR_ITEM>.
        CASE <FS_PAR_ITEM>-M_ID.
          WHEN `OBJ_USAGE`.
             ASSIGN <FS_PAR_ITEM>-M_VALUE->* TO <FS_OBJ_USAGE>.      
    [ Here, sy-subrc is 4,  <FS_OBJ_USAGE> is not assigning.]
        ENDCASE.
      ENDLOOP. 
    So, can any one solve this problem.
    Thanks in advance,
    Radhika

    Hi Radhika,
    Try using GET_RANGE_TABLE_OF_SEL_FIELD...
    Please Refer below code..
       DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA: RT_CARRID TYPE REF TO DATA.
      DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
      DATA: WSFLIGHT TYPE SFLIGHT.
      FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
    Retrieve the data from the select option
      RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
    Assign it to a field symbol
      ASSIGN RT_CARRID->* TO <FS_CARRID>.
      CLEAR ISFLIGHT. REFRESH ISFLIGHT.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
                           WHERE CARRID IN <FS_CARRID>.
      NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
      NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
    Thanks,
    Regards,
    Kiran

  • Force a user to enter a value for a parameter.

    Hi,
    I have a report with a bunch of parameters and I want to force the user to enter values for two parameters amongst all of them. Like for example when the user doesn't select values for those 2 parameters he should get a dialog box saying "please enter value for xyz parameter" or something like that, which will force the user to enter a value for the parameters before he can see the report.
    Please let me know if BI Publisher can do this.
    Thanks,
    DY

    Thanks for your replies BIPUser. I have recently started working on BI Publisher without a lot of help around.
    The information in the link is what I was thinking of, if there is no such feature I'll have a default value for those 2 parameters.
    Thanks,
    DY

  • How can we prevent a user from entering a value in Parameter Field?

    how can we prevent a user from entering a value in Parameter Field and Select-options Field?

    make it invisible, make it inactive, make it display only.
    if the field is not there or not to be seen the user WILL have problems inputting data.
    BUT once the field is there you can NOT prevent that the user fills it with data.
    all you can do is on PAI check if the data the user inputted was good or bad, and clear his inputs, but you can NOT prevent him inputting something.

  • Display internal table as per value entered in selection screen

    hi experts,
       i need help on this issue. I have an internal table like this.
         f1  f2   f3  
         a   2    5
         b   3    4
         c   4    3
         d   5    2
         e   2    6
    totf2 =16  totf3= 20
    i am getting this sum displayed using AT END OF.
    Now there is a provision to enter a value for totf2, totf3 in selection screen. so based on this value entered for eg. if totf2 = 9 and totf3 = 13, is entered, then my internal table display shd b like:
    f1  f2  f3
    a   2  5
    b   3  4
    c   4  3
    totf2 = 9, tot f3= 12.
    someone plz help quick.
    thanks.

    Hi,
    Try this..
    DATA: v_totf2 TYPE I.
    DATA: v_totf3 TYPE I.
    * Create a internal table similar to your internal table.
    DATA: ITAB_FINAL LIKE TABLE OF itab.
    LOOP AT itab INTO wa.
    * Sum up the total for fields 2 and 3
      v_totf2 = v_totf2 + wa-f2.
      v_totf3 = v_totf3 + wa-f3.
    * If total exceeds for the field 2 and 3 than given in the selection screen.Then exit.
      IF v_totf2 >= p_totf2.     " p_totf2 - selection screen value
              OR
          v_totf3 >= p_totf3.    " p_totf3 - selection screen value
        EXIT.                         " Exit out of the loop.
      ENDIF.
    * Move the values to the final internal table.
      APPEND wa to ITAB_FINAL.
    ENDLOOP.
    * ITAB_FINAL will have the final values.
    Thanks
    Naren

  • How to get parameter value from report in event of value-request?

    Hi everyone,
    The customer want to use particular F4 help on report, but some input value before press enter key are not used in event of "at selection-screen on value-request for xxx", How to get parameter value in this event?
    many thanks!
    Jack

    You probably want to look at function module DYNP_VALUES_READ to allow you to read the values of the other screen fields during the F4 event... below is a simple demo of this - when you press F4 the value from the p_field is read and returned in the p_desc field.
    Jonathan
    report zlocal_jc_sdn_f4_value_read.
    parameters:
      p_field(10)           type c obligatory,  "field with F4
      p_desc(40)            type c lower case.
    at selection-screen output.
      perform lock_p_desc_field.
    at selection-screen on value-request for p_field.
      perform f4_field.
    *&      Form  f4_field
    form f4_field.
    *" Quick demo custom pick list...
      data:
        l_desc             like p_desc,
        l_dyname           like d020s-prog,
        l_dynumb           like d020s-dnum,
        ls_dynpfields      like dynpread,
        lt_dynpfields      like dynpread occurs 10.
      l_dynumb = sy-dynnr.
      l_dyname = sy-repid.
    *" Read screen value of P_FIELD
      ls_dynpfields-fieldname  = 'P_FIELD'.
      append ls_dynpfields to lt_dynpfields.
      call function 'DYNP_VALUES_READ'
        exporting
          dyname     = l_dyname
          dynumb     = l_dynumb
        tables
          dynpfields = lt_dynpfields
        exceptions
          others     = 1.
      check sy-subrc is initial.
    *" See what user typed in P_FIELD:
      read table lt_dynpfields into ls_dynpfields
        with key fieldname = 'P_FIELD'.
    *" normally you would then build your own search list
    *" based on value of P_FIELD and call F4IF_INT_TABLE_VALUE_REQUEST
    *" but this is just a demo of writing back to the screen...
    *" so just put the value from p_field into P_DESC plus some text...
      concatenate 'This is a description for' ls_dynpfields-fieldvalue
        into l_desc separated by space.
    *" Pop a variable value back into screen
      clear: ls_dynpfields.
      ls_dynpfields-fieldname  = 'P_DESC'.
      ls_dynpfields-fieldvalue = l_desc.
      append ls_dynpfields to lt_dynpfields.
      call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname     = l_dyname
          dynumb     = l_dynumb
        tables
          dynpfields = lt_dynpfields
        exceptions
          others     = 0.
    endform.                                                    "f4_field
    *&      Form  lock_p_desc_field
    form lock_p_desc_field.
    *" Make P_DESC into a display field
      loop at screen.
        if screen-name = 'P_DESC'.
          screen-input = '0'.
          modify screen.
          exit.
        endif.
      endloop.
    endform.                    "lock_p_desc_field

Maybe you are looking for

  • How do I install the Content DVD in CS4 Web Premium?

    I can't find anything about this on the forum. Sorry if it has been asked before (I know it's a very basic question), but can anyone tell me how I install the Content DVD in CS4 Web Premium, please? This is the DVD that contains the PDF manuals, Font

  • BFILE From SqlDataSource

    I'm using Orale 10.2. on a Win2K server in ODP.NET V Beta Release 10.2.0.2. I'm trying to insert a record in the db with a BFILE field using a SqlDatasource. The insert statement is: InsertCommand='INSERT INTO "MYTABLE" ("FIELD1_ID", "FIELD2_ID", "NO

  • Encoder noise problems

    I am using a 6602 card with a counter in a simple pulse generation mode, and a rotary magnetic encoder. I am trying to send a pulse after the certain position change. we have a standard encoder, and we are using the 6602 card with a programmed single

  • Stock transfer without billing using delivery

    Hii. I have a requirement for transfer the materail from one plant to another withen the same plant using the sd route. i need to incorporate the cost of transportation in the materail cost, do i need to configure mm pricing procedure and assign it t

  • Ingesting avchd from sony hdr-sr11-Editing 1080i 60 need a workflow

    Hello all, So I have successfully ingested some test shots into fcp for a cousins wedding that i am shooting in a couple of weeks. The footage looks great once transcoded to apple pro res 422. I do have a few questions. 1) In the log and transfer win