DYNAMICALLY MAKE A parameter OBLIGATORY

CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY i m not defining that parameter obligatory in declaration but i want when i execute this parameter become obligatory

Hi,
Here is the code.
parameters : p_abc type i.
at selection-screen on p_abc.
if <condition1>.
  if p_abc is initial.
    message e001 .
  endif .
endif.
Regards,
Richa

Similar Messages

  • CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY

    CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY

    Hello Bhupinder
    If the field is on a selection screen you can use the following coding:
    AT-SCREEN OUTPUT.
      IF ( <condition is true> ).
        LOOP AT screen.
          IF ( screen-name = 'my field name' ).
            screen-required = '1'.
            MODIFY screen.
         ENDIF.
        ENDLOOP.
      ENDIF.
    The same logic can be applied for dynpro fields (also code in a PBO module).
    Regards
      Uwe

  • Dynamic Number of Parameter Report

    <p>Hi</p><p>We have to develop a module where the scenario is as follows:</p><p>The User will create his own report using <strong>Crystal Report Designer</strong> or <strong>Visual Studio 2003 Designer </strong>.</p><p>there will be a module where the RPT will be uploaded to a web server.</p><p>Ther will be a web page where the Parameters will be sent based the RPT file selected. (There will be Dynamic no of Parametes sent to the RPT files)</p><p>Please suggest us is there any way to link these Parameters and RPT files created seperately by the user (out side our development environment.</p><p>Please respond to this issue ASAP.</p><p>Regards,</p><p>Jagadish S </p><p>&#160;</p><p>&#160;</p><p>&#160;</p>

    <p>It&#39;s not clear what you are trying to do. Do you simply want to pass the parameter values entered by your users to that particular report? If so, this is a core workflows supported by the CR .NET runtime. </p><p>There are a lot of resources on the BOBJ support site and the DevLibrary that shows how to pass parameters to a report. I recommend search for kbases/sample apps on the support site or look at the <a href="http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crtsktutorialssamplecode.htm" target="_blank">tutorials</a> found on the DevLibrary. </p><p>-MJ</p>

  • How to make a parameter base report?

    I am making a report on employees and departments but i want to choose employees for some required departments for that i need to use parameter, and i need help that how will i make a parameter in reports builder 10g.
    I am able to do it by writing a where clause in query but now i want to do it from user parameters. Seek help here.
    Maz

    Here is a list of things to do. Let me know if anything is not clear.
    1) In your main query create a lexical parameter at the very end of you where clause ( dont put and &p_where just &p_where)
    &p_where
    2)Create a user parameter with datatype character and width 200
    ex: P_departments
    3) Create a field on the Paper Parameter Form
    4) Click on that field and go to the List of Values (if you want a lov...) and insert the following
    Ex:
    select 'All',' All Departments' from dual
    union
    select to_char(department),to_char(department)||' - '||department_name
    from departments
    order by 1
    5) Go to Report Triggers > After Parameters and insert the following
    Ex:
    begin
    :p_where := null;
    if :p_departments not like '%All%' then
    :p_where := :p_where ||' and table.department = '||:p_departments;
    end if;
    return (true);
    end;
    This will allow you to select a department or leave it at the default of all departments. It will also allow you to remove the hardcoded statement in your where clause such as
    where department = 'HR'
    Edited by: DOUBLE U on Aug 3, 2011 3:32 PM

  • How to lock a customer master and how to make a parameter checkbox as defau

    how to lock a customer master and how to make a parameter checkbox as default checked?

    The Account Groups is the one which maintains the field status for the customer master. In case you want to change the field status (i.e. changage the mandatory field to optional field) you need to maintain the same (i.e. changage the mandatory field to optional field) by navigating to the field status screen and then to the general data tab. Here you can change the status of the your field by selecting the 'OPTIONAL' radio button for the respective field and then save the transaction.
    Reward Points if useful.

  • Make a parameter mandatory when you choose a particular value from pameter2

    Hello,
    How do I make a parameter mandatory in sql script?
    I have 2 optional parameters:
    1) parameter1 (&1)
    2) parameter2 (&2)
    parameter1 has 4 values:
    1) East
    2) West
    3) North
    4) South
    paramete2 has 3 values:
    1) 123
    2) 456
    3) 789
    when I choose a value (North) from parameter1 the parameter2 has to become mandotory. If i choose any values from parameter1 other than North, parameter2 should be optional.
    Any help would be greatly appreciated.
    Thank you

    We do not currently support mandatory parameters in the standalone release. Its in the works thou
    tim

  • Dynamic export table parameter

    Hi all
    Currently im having this issue whereby i need a dynamic export table parameter in the function module. this is because there is a dynamic selection from the database and then i do not know what is the reference type for the exporting table. how to define a dynamic reference type. btw im developing on 4.6C

    If you are using an RFC FM it would be different 'cause you always have to type all the parameters.
    In case it's not an RFC, of course you can do it.
    FUNCTION ZJMOTERO.
    *"*"Interfase local
    *"  IMPORTING
    *"     REFERENCE(I_RUTA) TYPE  ZJMOTERO3
    *"  TABLES
    *"      TABLE
    field-symbols: <fs> type table.
    data: a type ref to data.
    data: tabla type table of pa0001.
    select * into table tabla from pa0001 where pernr eq 1.
    assign tabla to <fS>.
    table[] = <fs>[].
    ENDFUNCTION.

  • How to make selection parameter gray out, not changeble mode

    Hi Experts,
      Selection screen having parameters, I am putting default values in that parametrs.
    How to make this parameter gray out, not changeable mode.
    Thanks in advance
    mahahe.
    See comments below
    Edited by: Rob Burbank on Jul 1, 2009 12:43 PM

    Hi,
    For the parameters required, while declaring them use the MODIF ID, lets say you have choosen the modif id as SC1.
    i.e. parametes: p_mat type matnr DEFAULT '100' MODIF ID SC1.
    Then in the initialization event, code as below.
        LOOP AT SCREEN.
          IF screen-group1 = 'SC1'.
            screen-input = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    It will work.
    Regards,
    Nangunoori.

  • How to make a parameter grey

    How to make a parameter(text box) uneditable by enduser.

    Hhi,
    SELECTION-SCREEN COMMENT [/]pos(len) comm [FOR FIELD f]
                                              [MODIF ID key].
    This statement writes the comm comment on the selection screen. For comm, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length len. The field must be filled before the selection screen is called. You must always specify the pos(len) addition. Only if there are several elements in one line can you omit pos.
    The text comm  will be displayed, starting in column pos, for a length of len. If you do not use a slash (/), the comment is written into the current line; otherwise a new line is created.
    You use FOR FIELD f to assign a field label to the comment. f can be the name of a parameter or a selection criterion. As a result, if the user requests help on the comment on the selection screen, the help text for the assigned field f is displayed.
    Regards
    Sudheer

  • How can we make screen fields obligatory?

    hi, guru's
             how can we make screen fields obligatory while desiging a screen in screen painter (se51)?
    regards,
         satheesh.

    Hi,
    Go to attributes of the field in layout..
    go to program tab and check input field..
    and in drop downlist put required..
    Thats it..
    Reward points if it helps..
    Regards,
    Omkar.

  • Make a parameter invisible

    how to make a parameter invisible on a selection screen?

    Some ways to process
    - Use the [NO-DISPLAY|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=no-display&adv=false&sortby=cm_rnd_rankvalue] option of the PARAMETERS statement (deactivate)
    - In the PBO ([AT SELECTION-SCREEN OUTPUT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=atSELECTION-SCREENOUTPUTLOOPATSCREEN&adv=false&sortby=cm_rnd_rankvalue]) hide (SCREEN-INVISIBLE = 1.) or deactivate the parameter (SCREEN-ACTIVE = 0.) in a [LOOP AT SCREEN|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=atSELECTION-SCREENOUTPUTLOOPATSCREEN&adv=false&sortby=cm_rnd_rankvalue] block.
    - Create a [variant|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=reportvarianttransaction&adv=false&sortby=cm_rnd_rankvalue] which hides or protects the parameter and assign it to the transaction.
    Deactivate parameter may only be filled by a calling program, invisible and input field will look like a password field.
    Also make a [little search on sdn @sap.com|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=invisibleparameterselection-screen&adv=false&sortby=cm_rnd_rankvalue]
    Regards

  • Make MultiValue Parameter Dynamically Enable/ Disable

    Hi,
    I have two MultiValue  parameters in SSRS report. Both the parameters are independant of each other.  If I choose value from first parameter, Second parameter should be disabled dynamically. If I choose  value from second parameter, First
    parameter should be disabled dynamically.
    Can this be achieved in SSRS ?
    Is there a workaround to achieve the above scenario ?
    Regards
    G. R. Venkatesh

    Using nulls is one way. Another way is to set a default value say NotApplicable. Just set below expression for default value
    IIF(Len(Parameters!SecondParameter.Value) > 0,"NotApplicable",Nothing)
    Similarly for the other parameter
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    Hi Visakh,
    I am new to SSRS.
    Could you please share a workaround sample for my scenario
    I tried to implement the expression for Multivalue  parameter1 default value, The parameter1 has below expression
    =IIF(Len(Parameters!SecondParameter.Value) > 0,"NotApplicable",Nothing)
    and Parameter2 has below expression
    =IIF(Len(Parameters!FirstParameter.Value) > 0,"NotApplicable",Nothing)
    I get a error saying "The expression references the parameter 'parameter2' which doesn not exist in the parameters collection. Letters in the names of parameters must use correct case"

  • Based from my selection-screen, how can I make the parameter dynamic?

    Hi experts,
    Based from my code below and logic, I have to modify the loop at screen without removing the original IF condition in such a way that the parameter p_code will only be available for input if the radiobutton pr_edit is clicked by the user.
    Again, thank you guys and have a great day!
    SELECTION-SCREEN BEGIN OF BLOCK box1 WITH FRAME TITLE text-001.
    PARAMETERS: pr_upld RADIOBUTTON GROUP grp MODIF ID id3.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 03(30) text-a11 FOR FIELD p_flnme MODIF ID id3.
    PARAMETERS: p_flnme LIKE rlgrap-filename DEFAULT 'C:\' MODIF ID id3.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(32) text-002 FOR FIELD p_dcode MODIF ID id1.
    PARAMETERS: p_dcode LIKE vbak-kunnr MODIF ID id1,
                p_name1 LIKE kna1-name1 MODIF ID id1.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: pr_list RADIOBUTTON GROUP grp MODIF ID id4,
                pr_add  RADIOBUTTON GROUP grp MODIF ID id2,
                pr_edit RADIOBUTTON GROUP grp MODIF ID id5.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 03(30) text-a12 FOR FIELD p_code MODIF ID id2.
    *PARAMETERS: p_kunnr LIKE zts0001-kunnr.
    PARAMETERS: p_code LIKE zts0001-cdseq MODIF ID id6.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK box1.
    IF v_compflag EQ space.
        LOOP AT SCREEN.
          IF screen-group1      = 'ID1'.
            screen-input        = '0'.
            screen-output       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID2'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID3'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID4'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID5'.
            screen-active       = '1'.
            MODIFY SCREEN.
         ELSEIF screen-group1  = 'ID6'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF v_compflag NE space.
        LOOP AT SCREEN.
          IF screen-group1      = 'ID1'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID2'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID3'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID4'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID5'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID6'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

    Write the below code in  selection Screen Output Event
    AT SELECTION-SCREEN OUTPUT.
      IF pr_edit EQ 'X'.
        LOOP AT SCREEN.
          IF ( screen-group1 = 'ID6' ).
            screen-input = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    ENDIF.
    Enjoy Coding.
    Thomas.

  • How to make required parameter dynamically?

    Hello,
    I have 3 parameters for a report:
    1st parameter (mandatory): Run Report has 2 values: By Department, By Country
    2nd parameter: Department
    3rd parameter: Country
    If user selects By Department, then I want Deparment becomes mandatory with asterisk next to it.
    If user selects By Country, then I want Country becomes mandatory with asterisk next to it.
    How can this be achieved?
    thanks
    Lei

    Why not have only one parameter as a dropdown list box with the choice of running by department or by country. The user will only be able to pick one or the other.
    Assuming you call the parameter pSORTBY you can then have your SQL look like this.
    ORDER BY :pSORTBY

  • Date parameter values cleared when dynamically populating string parameter

    Software: Crystal Reports XI Release 1 with SP4, with MS SQL Server 2008
    I've created a report that asks for three parameters, 2 dates, and a string which is dynamically populated. The report has two tables added in the database expert.
    The first table in the database expert is a command object which passes the two date parameters to a stored procedure:
    exec sp_MyStoredProcedure {?startdate},{?enddate}
    The second table in the database expert is a stored procedure object used to populate the string parameter {?_users}. The criteria for the string parameter are:
    Prompt with Description only: False
    Allow multiple values: True
    Allow discrete values: True
    Allow range values: False
    This stored procedure object requires nothing to be passed, it was originally a view in the database, but the same problem occurs whether i dynamically populate the string parameter options from either a view or a stored procedure.
    The string parameter is used for defining the record selection formula:
    IF {Command.user_name} in {?_users} THEN true ELSE false.
    The two table objects are not linked in the database expert, but linking them does not seem to solve the problem I am having with this report, the problem being this:
    No matter which order I set the parameters, it always first displays a form showing only the prompts for the date values. After entering these, it then shows a form prompting for the date values again (the previously selected date information now cleared), along with the list of users from which to select. On this 2nd form, the parameters are displayed in the order I set using the field explorer option presented when I right click on the Paramter Fields heading. After entering the date parameter values a 2nd time, and selecting the users from the dynamically generated list, the report performs as intended. After subsequently running the report  (prompting for new parameter values by pressing F5),  it does not clear the date parameters on the 2nd form's appearance.
    What I need is to be able to enter in these values the first time around, without having the date parameters cleared. Am i going about this incorrectly, or is this a bug?

    What you are experiencing is not a bug... Passing a multi-valued parameter to a Command or SP is not supported in any version of CR prior to CR 2008.
    Your options are #1) Upgrade to CR 2008 or #2) Jump through the necessary hoops to make it work in CR XI
    Check out this link...[SQL Command Parameter - Multiple Value|Re: SQL Command Parameter - Multiple Value]
    It has some good examples a good step by step.
    HTH,
    Jason

Maybe you are looking for

  • New to HD Editing and CS, building a PC to suit requirements of HD edit. Experienced help wanted :-)

    Firstly let me say hi and thanks in advance to all that read and assist with my questions A Bit about me.. I have recently acquired the need for video editing at a much higher level with both having a family now (baby daughter) and a very active hobb

  • Multiple iTunes Libraries on single Mac

    I have somehow managed to create libraries of music/podcasts/videos in 5 different places on my iMac. I would like to consolidate all of them into one spot that can be shared by all accounts. Is there a way to merge them easily, that is without copyi

  • How to Report on transactions performed in SRM_MDM catalog (SRM5 MDM2)

    What is the recommended way to do reporting for transactions performed INSIDE SRM_MDM catalog ( SRM5,  MDM2.0) Users inside SRM_MDM catalog can search for and select Product ABC and u201Ccompareu201D between 2 or more suppliers. Where do I get report

  • How to disable ATP when changing pricing date

    When header pricing date in a sales order is changed, system triggers ATP. How can this be disabled? Edited by: Jennifer Lua on Feb 22, 2010 10:10 AM

  • Crashing when moving layers

    Hiya, I'm having an issue with Photoshop crashing when I move layers up or down. I'm using a macbook with lion. I know it's probably something simple but it's driving me kerrrazy! [ signature removed by forum host - promotional links not permitted ]