Posts

Showing posts with the label SAP

SAP ABAP - Shirts

Image
Click Here to Buy

SAP ABAP - Custom Enhancement Switch Framework

Image
Enhancement implementation process The execution of every enhancement will be controlled based on entries in tables, for module-specific parameters (Sales Org, Company Code, etc.). Each enhancement will check if a flag is active or not for the module parameters in the table, for that specific enhancement. Only if the flag is active, the enhancement is executed. Features    1) Custom BADIs: We may come across requirements for which our custom logic can be implemented in a user exit or customer exit. However, so as to create multiple implementations and provide flexibility for country-specific logic, no code will be written directly in the exit. Instead, custom BADIs will be used.  2) Enhancement points inside custom programs: Custom programs for which country-specific logic is expected in the future roll-outs, enhancement points will be created and embedded in required sections of the program. This will ensure that the original program logic will not be changed for each co...

SAP ABAP - Generating Excel file for downloading or sending over email

Creating excel content from data in an internal table?  Getting the following message when opening an excel created out of SAP - "The file you are trying to open, ‘filename.xls’ is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?" Below is the best solution. This solution is based on the approach used by standard SAP to created excel content from ALV. Once any ALV is displayed, you can get the data into excel using the menu bar option LIST -> EXPORT -> SPREADSHEET.  If there are any questions, put them in the comments.  Sample working code: *&---------------------------------------------------------------------* *& Report Y_EXCEL *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT  Y_EXCEL ...

SAP ABAP - Resetting Program Buffer

Image
Resetting Program buffer - Program code has been updated but it's taking the old code when executed? Input code  /$PXA in the command field to fix this issue.