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

HI

Former Member
0 Likes
796

Hi friends,

i got a program,where in output there should be one Pushbutton "Report".And after pressing "Report" either one classical or one interactive report to be generated...please tell me the logical steps for this....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
774

HI,

THIS CODE MIGHT HEALP YOU OUT

START-OF-SELECTION.

SET PF-STATUS 'ABC'.

WRITE 'BASIC LIST'.

TOP-OF-PAGE.

WRITE 'REPORT'.

AT USER-COMMAND.

CASE SY-UCOMM.

WHEN 'CLASSICAL REPORT'.

WRITE ' '.

WHEN 'INTERACTIVE REPORT'.

WRITE' '.

8 REPLIES 8
Read only

Former Member
0 Likes
774

Hi,

create a pf-status and add a push button.

use at user-command event.

in this event-check for the function code of this push button.

and depending on the value code for classical/interactive report.

Regards,

Richa

Read only

Former Member
0 Likes
774
Read only

0 Likes
774

Hi Go to SE41 transaction .

There in the menu painter create a button give button name as report.

Now in the report, set this status as the report status.

Now in sy-ucomm write the code for displaying the new data .

Read only

Former Member
0 Likes
774

hi

good

follow this steps

1->crete a selection screen using se51

2->design the screen having one button and give the name of the button as report.

3->Create the report either classical or interactive.

4->Use the action to call that report by clicking the button

thanks

mrutyun^

Read only

Former Member
0 Likes
774

Hi Reema,

Simply write:

SELECTION-SCREEN INCLUDE PUSHBUTTON [/][pos](len) button_text

[USER-COMMAND ucom]

[MODIF ID modid]

[ID id].

Likewise you will create two push buttons and in

AT USER-COMMAD

check ucomm.

Reward if useful!

Read only

Former Member
0 Likes
774

Hi Reema.

first of all u must be having two separate reports one classical and one interactive.

Now on ur screen drag a push button and assign a function code to it say"REPT".

Now in the PAI of ur screen use the following code:

*********begin of Code

AT USER-COMMMAND.

IF SY-UCOMM = 'REPT'

SUBMIT <REPORT 1>.

ELSE SUBMIT <REPORT2>.

ENDIF.

**********END OF CODE.

Here report 1 and report 2 are the names of ur reports.

Reward if useful.

Regards Abhi

Read only

0 Likes
774

Thanks Abhi

this is fixed...

Read only

Former Member
0 Likes
775

HI,

THIS CODE MIGHT HEALP YOU OUT

START-OF-SELECTION.

SET PF-STATUS 'ABC'.

WRITE 'BASIC LIST'.

TOP-OF-PAGE.

WRITE 'REPORT'.

AT USER-COMMAND.

CASE SY-UCOMM.

WHEN 'CLASSICAL REPORT'.

WRITE ' '.

WHEN 'INTERACTIVE REPORT'.

WRITE' '.