Thursday, August 12, 2010

Basic FMs regularly used in Programs

Simple Pop up message with YES No selection


lv_text = text-116.
    popup_to_confirm text-032 lv_text c_true lv_answer.
    CHECK lv_answer EQ '1'



FM to convert date into User Profile date

CALL FUNCTION '/SAPDII/SPP05_CONVERT_DATE'


EXPORTING
if_date = lv_date
IMPORTING
ef_date = lv_date.




Finding the Last day of a Month: 





    CALL FUNCTION 'LAST_DAY_OF_MONTHS'
      EXPORTING
        day_in            = w_order_ccard-cc_valid_t
      IMPORTING
        last_day_of_month = w_order_ccard-cc_valid_t
      EXCEPTIONS
        day_in_no_date    = 1
        OTHERS            = 2.


  • DATE_COMPUTE_DAY
  • GET_WEEK_INFO_BASED_ON_DATE

Language Key:
CONVERSION_EXIT_ISOLA_INPUT Convert two-digit ISO language -> one-digit SAP language key
 CONVERSION_EXIT_ISOLA_OUTPUTConvert One-digit SAP Lang. Key to Two-digit ISO Lang. Key

Currency Key:
CURRENCY_CODE_ISO_TO_SAP Translates ISO currency key into the SAP internal currency key

CURRENCY_CODE_SAP_TO_ISO Translates an SAP internal currency key into the ISO code

UOM:
UNIT_OF_MEASURE_ISO_TO_SAP     Convert an ISO measurement unit code into the SAP code
UNIT_OF_MEASURE_SAP_TO_ISO     Converts an SAP measurement unit code into ISO code

ISO_TO_SAP_CURRENCY_CODE





Report to check the status of Object : RSDDCHECK

No comments:

Post a Comment