‎2007 Oct 12 9:59 AM
Hi,
I am working on interactive report. i created selection scrren and basiclist. my question is i want to create application tool bar in the secondary list and when i click the button in the application tool bar it disply secondary list and when i double click the basic list item it display the secondary list.
Regards
Srinu
‎2007 Oct 12 10:00 AM
‎2007 Oct 12 10:04 AM
Hi
Create a New GUI status & call that before displaying the output using SET PF-STATUS 'ZNEW'.
use set pf-status '1000' and click on 1000 and it will go menu painter
Check this for push button
DATA: ITAB_CODE LIKE SY-UCOMM OCCURS 0 WITH HEADER LINE.
Dummy condition..
IF SY-SUBRC = 0.
A & B will be the function code that you gave in the menu painter..
ITAB_CODE = 'A'.APPEND ITAB_CODE.
ITAB_CODE = 'B'. APPEND ITAB_CODE.
THis will remove the function codes A & B from the menu bar.
SET PF-STATUS EXCLUDING ITAB_CODE.
Check this link
<b>Reward if usefull</b>
‎2007 Oct 12 10:07 AM
You have to write the following....
write
SET PF-STATUS 'SREE'. in the report program
Now Double click on the'SREE'.
It will ask whether you want to create object or not....click yes.
A window will come....enter details and alick yes.....
Now you will get a screen where there an application tool bar button....click there
you will see some boxes...click there inthe first one write any function code say'DETAIL'....now double click....select icons...fill the details....save....activate..come back to editor screen
now write the following
AT USER COMMAND.
CASE SY-UCOMM.
WHEN 'DETAIL'.
WINDOW STARTING AT 10 5
ENDING AT 55 5.
WRITE: / SY-LIESEL.
ENSCASE.
‎2007 Oct 12 10:17 AM
Hi,
I created appliation tool bar.After that i written code in the perform. Can i written the code at user-command and sy-ucomm in the perform.
Regards
Srinu
‎2007 Oct 12 10:34 AM
hi
good
try this
you can try this:
TABLES: SSCRFIELDS.
TYPE-POOLS: ICON.
*
PARAMETERS: P_MATNR LIKE MARA-MATNR.
SELECTION-SCREEN: FUNCTION KEY 1.
INITIALIZATION.
CONCATENATE ICON_PRINT 'Print'
INTO SSCRFIELDS-FUNCTXT_01.
AT SELECTION-SCREEN.
CASE SSCRFIELDS-UCOMM.
WHEN'FC01'.
with this you can start-of-selection, if you want
SSCRFIELDS-UCOMM = 'ONLI'.
here you can do what you want.
ENDCASE.
START-OF-SELECTION.
WRITE / P_MATNR.
reward point if helpful.
thanks
mrutyun^
‎2007 Oct 12 11:06 AM
set the PF-STATUS FOR THE SECONDARY LIST .
USE BELOW EVENTS TO TRIGER DISPLAY THE SECONDARY LIST.
/*********************************
AT LINE-SELECTION.
AT UCOMM.
CASE SY-UCOMM.
/********************************
USE THE BELOW CODE IN BOTH THE EVENTS.
WINDOW STARTING AT 10 5 ENDING AT 55 5.
WRITE: / SY-LIESEL.
******CODE*******