SAP has a function that you can use rather than having to gather up all the data from the several tables (you can look at the function for the tables, if you require them). SAP also has a expired qualifications report, 'RHXPE_EXPIRED_QUALI', which may meet your needs. Following is a simple test example of cutom code, which lists qualifications or expired qualifications.
Code:
REPORT YZZQUALI LINE-SIZE 170 LINE-COUNT 58.
TABLES: PERNR, HRP1000, SSCRFIELDS.
INFOTYPES: 0000, 0001, 0105.
CONSTANTS: YES(1) VALUE 'X'.
DATA: PERSONS LIKE HRSOBID OCCURS 0 WITH HEADER LINE,
QUALI LIKE HRPE_PROFQ OCCURS 0 WITH HEADER LINE,
BEGIN OF EMP OCCURS 0,
PERNR LIKE PERNR-PERNR,
PLANS LIKE P0001-PLANS,
EMAIL LIKE P0105-USRID_LONG,
END OF EMP,
SNAME LIKE P0001-ENAME,
SPERNR LIKE PERNR-PERNR,
SPLANS LIKE P0001-PLANS,
SEMAIL LIKE P0105-USRID_LONG.
INCLUDE <ICON>.
SELECTION-SCREEN BEGIN OF BLOCK QUAL_FILTER WITH FRAME TITLE TEXT-101.
SELECT-OPTIONS: S_QUAL FOR HRP1000-OBJID NO-DISPLAY.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 01(15) TEXT-C01.
SELECTION-SCREEN PUSHBUTTON 17(4) QUAL USER-COMMAND QUAL.
SELECTION-SCREEN PUSHBUTTON 23(4) CLR USER-COMMAND CLR.
SELECTION-SCREEN COMMENT 46(4) TEXT-C02.
PARAMETERS: P_FROM LIKE SY-DATUM OBLIGATORY.
SELECTION-SCREEN COMMENT 63(2) TEXT-C03.
PARAMETERS: P_TO LIKE SY-DATUM OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF BLOCK X WITH FRAME.
PARAMETER P_EXPIRE RADIOBUTTON GROUP A DEFAULT 'X'.
PARAMETER P_SEARCH RADIOBUTTON GROUP A.
SELECTION-SCREEN END OF BLOCK X.
SELECTION-SCREEN END OF BLOCK QUAL_FILTER.
INITIALIZATION.
PNPTIMED = 'D'.
CLEAR PNPSTAT2.
MOVE 'I' TO PNPSTAT2-SIGN.
MOVE 'EQ' TO PNPSTAT2-OPTION.
MOVE '3' TO PNPSTAT2-LOW.
APPEND PNPSTAT2.
P_FROM = SY-DATUM + 45.
P_TO = P_FROM.
AT SELECTION-SCREEN OUTPUT.
WRITE ICON_CANCEL AS ICON TO CLR.
DESCRIBE TABLE S_QUAL LINES SY-TFILL.
IF SY-TFILL GT 0.
WRITE ICON_DISPLAY_MORE AS ICON TO QUAL.
ELSE.
WRITE ICON_ENTER_MORE AS ICON TO QUAL.
LOOP AT SCREEN.
IF SCREEN-NAME = 'CLR'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
AT SELECTION-SCREEN.
CASE SSCRFIELDS-UCOMM.
WHEN 'QUAL'.
PERFORM DISPLAY_TREE.
WHEN 'CLR'.
REFRESH S_QUAL.
ENDCASE.
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.