cancel
Showing results for 
Search instead for 
Did you mean: 

Variables Mandatory (*) - Remove the (*)

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

Jkyle,

right you are !

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Dirk,

Thanks very much for your suggestion! I'm going to give it a try.

Regards,

Helena

tom_francis2
Active Participant
0 Kudos

I was just wondering, why don't you enter as default value (Mandatory)?

Tom

Former Member
0 Kudos

> I was just wondering, why don't you enter as default

> value (Mandatory)?

>

> Tom

This is a good idea for char fields but doesn't work for NUMC fields like periods.

Best regards

Dirk

Former Member
0 Kudos

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