Monday, December 2, 2013

SAP ABAP tip of the Day...

TIP 1: We often do upload or downloading of files. We sometimes save the files or the output of a program as a local file. Whenever we click on ‘Save as local file’, by default it shows up the SAP default working directory. We can change this default directory to the directory we need as follows. We can setup these directories according to the upload or download of files. To change the default directory for the uploading of files : Goto SU3 t-code. Click on ‘Parameters’ tab. Enter the parameter ‘GR9’ and enter the directory you want in the ‘Value’ field. Save the data. To change the default directory for the download of files, use the parameter GR8 and repeat above steps. TIP 2: When you try to download data from ALV grid display output (i.e. if you choose Local file then Spread sheet option is chosen) then default file extension will comes with “.TXT” if you want to change this extension with “.XLS” by default in order to save it in excel file then add below parameter LIST_CONVERT_TO_DAT with value ‘XLS’ in SU3 -> parameters tab.