Difference between revisions of "SAP HCM ABAP REPORTES"

From SapWiki
 
Line 23: Line 23:
 
   rp-provide-from-last p0007 space pn-begda pn-endda.
 
   rp-provide-from-last p0007 space pn-begda pn-endda.
  
   perform process,
+
   perform process.
  
 
END-OF-SELECTION.
 
END-OF-SELECTION.

Latest revision as of 21:23, 22 May 2024

Programa ejemplo

REPORT  YHCM_EX001.
* usar base de datos PNP

TABLES: pernr.

INFOTYPES: 0001,0002,0007,2001,0082.

INITIALIZATION.
*only select employees who have not left the company when the 
*report selection screen is displayed.

  rp-sel-ein-aus-init.

  RP-SET-DATA-INTERVAL 0001 SY-DATUM SY-DATUM.
*  rp-set-data-interval 'ALL' low-date pn-endda.

START-OF-SELECTION.

GET pernr.
  rp-provide-from-last p0001 space pn-begda pn-endda.
  rp-provide-from-last p0002 space pn-begda pn-endda.
  rp-provide-from-last p0007 space pn-begda pn-endda.

  perform process.

END-OF-SELECTION.
  perform display_alv.

Report Programming in HR