Function Module for Progress bar

Do you know while your report is progressing during run a one indicator can represent the total progress just write a simple function module for it. DATA: A LIKE SY-UCOMM. DO 100 TIMES.DO 300 TIMES.GET TIME.ENDDO.A(3) = SY-INDEX.A+3 = ‘%’.CALL FUNCTION ‘SAPGUI_PROGRESS_INDICATOR’EXPORTINGPERCENTAGE = SY-INDEXTEXT = A.ENDDO. WRITE: / ‘Complete’. Some Other Standard Important Function Module … Read more

SAP Function modules Related to Files

WS_UPLOAD – File transfer from presentation server file to internal table WS_DOWNLOAD – File Transfer From Internal Table to Presentation Server File WS_DOWNLOAD – Save Internal Table as File on the Presentation Server WS_FILE_DELETE – Delete File at the Frontend WS_FILENAME_GET – Call File Selector FILENAME_GET – popup to get a filename from a user, … Read more

SAP Function Module for Date and Time

Get a date DATE_GET_WEEK Returns week for a date WEEK_GET_FIRST_DAY Returns first day for a week RP_LAST_DAY_OF_MONTHS Returns last day of month FIRST_DAY_IN_PERIOD_GET Get first day of a period LAST_DAY_IN_PERIOD_GET Get last day of a period RP_LAST_DAY_OF_MONTHS Determine last day of month Date calculations DATE_COMPUTE_DAY Returns a number indicating what day of the week the … Read more

Function modules Related to Amount and Currency

CURRENCY_AMOUNT_SAP_TO_IDOC – Convert currency to IDOC format CONVERT_TO_LOCAL_CURRENCY – Conversion of currency CLOI_PUT_SIGN_IN_FRONT Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like allcharacter fields), not right justifed as numbers normally are. CONVERT_TO_FOREIGN_CURRENCY Convert local currency … Read more