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

Interactive report

Former Member
0 Likes
631

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

6 REPLIES 6
Read only

Former Member
0 Likes
606

try to use PF-STATUS to create toolbar...

Read only

Former Member
0 Likes
606

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>

Read only

Former Member
0 Likes
606

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.

Read only

0 Likes
606

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

Read only

Former Member
0 Likes
606

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^

Read only

Former Member
0 Likes
606

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*******