Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Report Writer Doubt

Former Member
0 Likes
1,485

Hi Experts,

Can anybody tell me how to make a selection field of a _REPORT WRITER_ as obligatory(mandatory).

<REMOVED BY MODERATOR>

Thanks in advance.

Edited by: babloo on Feb 9, 2008 1:33 AM

Edited by: babloo on Feb 11, 2008 10:25 PM

Edited by: babloo on Feb 11, 2008 10:26 PM

Edited by: Alvaro Tejada Galindo on Feb 11, 2008 5:48 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,452

parameters : eid(10) modif id A.

at selection-screen output.

loop at screen.

if screen-group1 = 'A'.

screen-required = '1'.

endif.

modify screen.

endloop.

Hi Experts,

Can anybody tell me how to make a selection field of a _REPORT WRITER_ as obligatory(mandatory).

<REMOVED BY MODERATOR>

Thanks in advance.

Edited by: babloo on Feb 9, 2008 1:33 AM

Edited by: babloo on Feb 11, 2008 10:25 PM

Edited by: babloo on Feb 11, 2008 10:26 PM

Edited by: Alvaro Tejada Galindo on Feb 11, 2008 5:48 PM

11 REPLIES 11
Read only

Former Member
0 Likes
1,452

PARAMETERS: LIFNR LIKE LFA1-LIFNR OBLIGATORY.

SELECT-OPTIONS:LIFNR FOR LFA1-LIFNR OBLIGATORY.

Read only

0 Likes
1,452

I don't think we can do coding in REPORT WRITER,

can we?

Read only

Former Member
0 Likes
1,452

Hi,

tables: kna1.

parameters:

p_kunnr type kunnr obligatory.

select-options:

s_kunnr for kna1-kunnr obligatory.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 11, 2008 4:52 PM

Read only

0 Likes
1,452

I don't think we can do coding in REPORT WRITER,

can we?

Read only

Former Member
0 Likes
1,453

parameters : eid(10) modif id A.

at selection-screen output.

loop at screen.

if screen-group1 = 'A'.

screen-required = '1'.

endif.

modify screen.

endloop.

Read only

0 Likes
1,452

I don't think we can do coding in REPORT WRITER,

can we?

Read only

0 Likes
1,452

You are correct. There is absolutely no coding in a report writer report.

For your concern regarding making a field in a selection screen mandatory, one solution I can provide is that -

In selection screen , click on SAVE.

There is a column Required Field. Check the box corresponding to the field that you want to make mandatory.

SAVE the variant with a name.

Your fields will be made mandatory.

Users have to use this variant. And the fields will be mandatory.

Hope this may satisfy for the time being.

Read only

0 Likes
1,452

Hi Subin,

Thank you very much for the solution.

I tried the procedure as you explained. It works!

Your solution partially solved my issue.

Now the issue is creating that 'Variant' as default.

How can I tell the report to execute only with variant and specify that variant as default, in which I enforced 'Required field'.

I hope you understood my issue.

Please reply ASAP.

Regards,

Babloo

Read only

0 Likes
1,452

Well, even I am researching or trying to find out what exactly you have asked - To make any report group execute with a default variant.

I am yet to find a solution. Will inform you once I get it. Expecting vice versa from you.

Thank you for awarding my first points.

Regards,

Subin.

Edited by: subin john on Mar 18, 2008 12:31 PM

Read only

0 Likes
1,452

Hi

I found out the solution to execute the report group with a default variant.

For this you need to create a Transaction code for the report group and the trick lies while creating the Transaction code.

Step:

1. Go to Transaction SE93.

2. Put a Transaction Code ( Eg: Z_CF01 )

3. Click on Create.

4. Under "Default values for" tab

a. Transaction START_REPORT

b. Check "Skip Initial Screen"

c. Screen 0

5. Under "Classification tab" Check "Inherit GUI attributes"

6. Under "Default Values"

Name of Screen field Value

a. D_SREPOVARI-REPORTTYPE RW

b. D_SREPOVARI-REPORT CF01

c. D_SREPOVARI-VARIANT TESTMANDATORY

7. Save.

8. Execute the T-code and the Report group will execute with the variant TESTMANDATORY.

Try

Regards,

Subin.

Read only

0 Likes
1,452

Great crooked idea!

It works!

seedhe ungli se jab ghee nahi nikaltha..

tho ungli ko theda karna padtha hai..

Thanks,

Subin