Skip to Content
author's profile photo Former Member
Former Member

Variables Mandatory (*) - Remove the (*)

Hello,

This is a silly question....We are in version 3.0B and when you use a variable that is setup as "mandatory" when you run the report and the pop up screen comes up, the variable shows up with "()". Currently our users do not want to see that....they want us to replace "()" with (Mandatory). The "(Mandatory)" part is easy to do...Just added to the description of the variable. But because the "(*)" is a default, how can I get rid of it?

Is there a way? Please let me know.

Thanks,

Helena

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 09, 2005 at 02:16 PM

    Hi Helena,

    is this a custom defined variable or SAP standard?

    It sounds like there is a default value posted to it. So maintain the variable and take the default out.

    regards

    Siggi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 09, 2005 at 02:41 PM

    The question isn't silly. Do you mean the (*) in the web variable screen? Unfortunately the only way is a modification.

    Try SE80 -> Class/Interface -> CL_RSR_WWW_VARIABLE_SCREEN Method GET_MANDATORY. The Coding looks like

    method GET_MANDATORY .
      if i_s_definition-ENTRYTP ne 0.
        concatenate c_content '(*)' into c_content separated by space.
      endif.
      escape c_content.
    endmethod.
    

    Simply replace the '(*)' by '(Mandatory)' and you're done.

    But don't forget: This is a modification, there is no support, you need to check it after support packages etc. I don't even know if it really works because I couldn't implement the modification, I only found the coding. But it's worth a try.

    Best regards

    Dirk

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2005 at 12:02 PM

    Helena,

    if you don't want to change the SAP standard (issue with support, support packages, upgrade....) :

    - do NOT define your variable as mandatory (so you won't have a *)

    - have "(mandatory)" in the description of the variable

    - check by user exit that the variable is not empty.

    This is possible in exit ZXRSRU01 with i_step = 3

    Look at how to guide "Verify the Variable Input"

    in service.sap.com/bw

    Services&Implementation

    HOW to guides

    Guide list SAP BW 2.x

    Regards from France

    Philippe

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 11, 2005 at 12:44 AM

    Hi Helena,

    I think the most simple answer to this problem is a mere "NO" answer to the users. Users sometimes request the most out of this world thing that they are unaware of the repercussions. Simply explain to them that by standard, SAP does not support this and by doing so will void support etc. etc. Just offer an alternative. The TEXT label say "Article No. (Mandatory)" should be enough. If explained well, they would surely understand.

    --Jkyle

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      which method in CL_RSR_WWW_VARIABLE_SCREEN is used for populating the query variable screen header. When we use the global template the query header show's up as 'Cariables for Adhoc Query', we were trying to get the query name in place of the "Adhoc Query".

      Thanks.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.