‎2007 Jun 27 7:23 AM
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....
‎2007 Jun 27 7:37 AM
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' '.
‎2007 Jun 27 7:25 AM
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
‎2007 Jun 27 7:25 AM
Hi,
please check out the following link it might help you
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/content.htm
http://www.planetsap.com/Tips_and_Tricks.htm#PBUTTON
******please reward points if the information is helpful to you*********
‎2007 Jun 27 7:31 AM
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 .
‎2007 Jun 27 7:33 AM
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^
‎2007 Jun 27 7:33 AM
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!
‎2007 Jun 27 7:34 AM
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
‎2007 Jun 27 7:38 AM
‎2007 Jun 27 7:37 AM
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' '.