ABAP

Email ALV PDF using ABAP report of pernrs then email output as attachment

Useful ABAP code example to demonstrate how to display an SAP ALV report which displays alist of PERNR details and then automatically allows the user to email ALV PDF as a document attchement. The code covers the following SAP ABAP report functionality: Email address input selection screen fields Display ALV report using Objects cl_salv_table Add

Email ALV PDF using ABAP report of pernrs then email output as attachment Read More »

Display URL in SAP ABAP report using class method

*&———————————————————————* *& Report  ZDISPLAY_URL *& *&———————————————————————* *& *&———————————————————————* REPORT  Zdisplay_url. CALL METHOD CL_ABAP_BROWSER=>SHOW_URL EXPORTING URL          = ‘http://www.se80.co.uk’ *    TITLE        = *    SIZE         = CL_ABAP_BROWSER=>MEDIUM *    MODAL        = ABAP_TRUE *    PRINTING     = ABAP_FALSE *    BUTTONS      = NAVIGATE_OFF *    FORMAT       = CL_ABAP_BROWSER=>LANDSCAPE *    POSITION     = CL_ABAP_BROWSER=>TOPLEFT *    CONTAINER    = *    CONTEXT_MENU = ABAP_FALSE .

Display URL in SAP ABAP report using class method Read More »

Payroll control record PA03

The payroll information displayed via transaction PA03 is stored within tables T569V, T549A and T549Q. They can also be retrieved using Function module PA03_PCR_READ Another useful function module could be HR_MX_GET_PAYROLL_PERIOD which retrieves payroll period dates based on the current date, irrespective of what is set in SAP transaction PA03. CALL FUNCTION ‘HR_MX_GET_PAYROLL_PERIOD’ EXPORTING PAYROLL_AREA         = ld_abkrs *   DATE

Payroll control record PA03 Read More »