Posted: Sun Nov 25, 2007 12:49 pm Post subject: Display the transports of a specified period
Tree structure graphics with drill down functions to display the transports of a specified period
Code:
*
* This program uses a tree structure to dispaly the
* transports of a specified period. You can drill
* down in a tree to display the transports by type,
* number and date and to display the objects inside.
*
REPORT ZTRPLIST.
TABLES: E070, E071.
PARAMETERS: STRDAT TYPE D DEFAULT SY-DATUM,
ENDDAT TYPE D DEFAULT SY-DATUM.
DATA: BEGIN OF ITAB OCCURS 100,
TRFUNCTION LIKE E070-TRFUNCTION,
AS4DATE LIKE E070-AS4DATE,
TRKORR LIKE E070-TRKORR,
PGMID LIKE E071-PGMID,
OBJECT LIKE E071-OBJECT,
OBJ_NAME LIKE E071-OBJ_NAME,
END OF ITAB.
DATA: BEGIN OF SITAB OCCURS 100,
TRFUNCTION LIKE E070-TRFUNCTION,
AS4DATE LIKE E070-AS4DATE,
TRKORR LIKE E070-TRKORR,
PGMID LIKE E071-PGMID,
OBJECT LIKE E071-OBJECT,
OBJ_NAME LIKE E071-OBJ_NAME,
END OF SITAB.
DATA: C(3), TEXT1(50), TEXT2(50), COL1 TYPE I, COL2 TYPE I, LEVEL TYPE
I, F15 TYPE C, LEN1 TYPE I, LEN2 TYPE I, COUNT TYPE I.
DATA: BEGIN OF TREE OCCURS 100.
INCLUDE STRUCTURE SNODETEXT.
DATA: END OF TREE.
SELECT-OPTIONS SRC_SYTS FOR C NO INTERVALS DEFAULT 'DEV'.
START-OF-SELECTION.
SET PF-STATUS 'LIBS1'.
SELECT * FROM E070 WHERE AS4DATE >= STRDAT AND
AS4DATE <= ENDDAT
ORDER BY TRFUNCTION AS4DATE.
SELECT * FROM E071 WHERE TRKORR = E070-TRKORR AND
PGMID <> 'CORR'.
MOVE-CORRESPONDING E070 TO ITAB.
MOVE-CORRESPONDING E071 TO ITAB.
APPEND ITAB.
ENDSELECT.
ENDSELECT.
LOOP AT ITAB.
SITAB = ITAB. APPEND SITAB.
ENDLOOP.
DATA: BEGIN OF STRUCC OCCURS 500.
INCLUDE STRUCTURE SNODETEXT.
DATA: END OF STRUCC.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.