cancel
Showing results for 
Search instead for 
Did you mean: 

Text Variables in WAD

Former Member
0 Kudos

Hi All,

I have created some text variables for my report which will change according to the user input. These are working perfectly when I execute the report in BEx. But when I run the same in WAD they are working for only some user choices and not for others.

Can someone try to help me in solving this please...

Best Regards,

James.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member188975
Active Contributor
0 Kudos

Hi James,

Could you please explain a bit more when you say "in WAD they are working for only some user choices and not for others."

Former Member
0 Kudos

Hi Bhanu,

I have created some text variables to change the column headings depending upon the user entry. The User has

2 choices to select Legal Valuation View and Profit Centre View. When user selects the option and run the query the colum headings will change as below:

Legal View: Material Cost, Labor Cost etc...

Prfit Centre View: Material PCV Cost, Labor PCV Cost etc...

When I run the query in BEx the Column headings are being changed upon the user choice but when I run the same query in WAD the headings are being changed only if the user selects "Leagal View" but not changing if they selects "Profit Center View". When the user selects "Profit Centre View" the variable name i.e &VNME& is appearing in the column headings. I have no idea why this is happening?

Any suggestions please? Is there any possibility to debug the Web report and see whats going wrong?

Rgds,

James.

former_member188975
Active Contributor
0 Kudos

Hi James,

You can put a breakpoint in the variable code and then turn on external debugging: Menu Utilities > Settings > ABAP Editor Tab > Debugging Tab > check mark for Actv in the External Debugging box.

Hope this helps...

Former Member
0 Kudos

Hi Bhanu,

R u talking about the settings in the User Exit? If so, do I need to set a breakpoint somewhere in the code before making these settings?

Rgds,

James.

former_member188975
Active Contributor
0 Kudos

Yes, I think you created the Text variable with a user exit, correct? Then you will need to put a breakpoint in the code, activate. Turn on the exteral debugging and then execute the web report.

Hope this helps...

Former Member
0 Kudos

Hi Bhanu,

Thanks for all ur suggestions. I have solved it now. It was a coding error. In BEx the Key value of the Legal Valuation is "0" where as in WAD it is taking as "#". I have coded only for "0" and not for "#". Now, I have added the extra code for that and it solved now.

Thanks a lot again.

Best Regards,

James.