Month: July 2016

request description with icon

You may have seen requests with icon on request description and wonder how to make this. This feature arise from the fact that WRITE command forms the related icon when it meets an @ character in ABAP code. Therefore in order to generate an icon for text elements for list screens( with WRITE command) you have to find the character counterpart of the icon. You can find this code in ICON.

LEAVE TO SCREEN 0 does not work in selection screen

Yesterday we discovered a very popular problem by chance. After selection screen we were calling a dialog screen and then with ‘BACK’ button we tried to come back to selection screen. However the program goes to an empty list screen without any element. Soon after with an investigation i have found out that selection screen involves a list screen element which is SKIP n command. I guess this command is misused on behalf of SELECTION-SCREEN SKIP n command.
Therefore there is two alternative to solve this issue.

trigger email send immediately without SOST

If you have read send email with attachment from an ABAP program post you will see how to send a mail with an attachment. Using SAP mail server and Business Communication Service namely CL_BCS we can send mails from SAP. These sent mails drop into a pool and wait to be executed by a background program. You can monitor all mails and communication related requests in SOST . The background job that executes waiting request according to period configuration by basis team. Duration period can be 15 minutes or 1 hour or any custom number according to your companys need.

create report variant from ABAP program dynamically and call the report with that variant

I have described the use of SUBMIT command variantions here. In that post VIA SELECTION-SCREEN variant was aimed to be used for reports with an already created variant. What if we want to create our variant in run-time according to our input. In that case we can use RS_CREATE_VARIANT in order to dynamically create a report variant and then we are able to call our ABAP report with that variant.