![]() ![]() ![]() * Ensure you always declare your email parameters using AD_SMTPADR. Parameters: p_email type AD_SMTPADR default ' '. Parameters: p_keydat type datum DEFAULT sy-datum. SELECT-OPTIONS: so_pernr for pa0001-pernr. SELECTION-SCREEN BEGIN OF block block1 WITH FRAME title text-001. ABAP code to send ALV report as PDF *& TITLE: Display ABAP report of pernrs and email output as PDF *&-* *& Report ZREP_EMAIL_ALV_SPOOL *&-* *& *& SAP ABAP report functionality used *& ********************************** *& Email address input selection screen fields *& Display ALV report using Objects cl_salv_table *& Add custom ALV column header *& Change colour of ALV rows based on user start year *& Get ALV Spool from background execution *& Convert Spool to PDF and send as Email *& Submit an ABAP report in background *& ABAP report submits itself in background to create spool *& Pass parameter and select option to report submit *& Delete SAP spool request *&-* ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |