常用Function Module

weilish發表於2010-12-21

版權宣告:轉載時請以超連結形式標明文章原始出處和作者資訊及本宣告
http://qiqeloveyou.blogbus.com/logs/28206901.html

SD_VBAP_READ_WITH_VBELN                                 根據銷售訂單讀取表vbap中的資訊

EDIT_LINES                                     把READ_TEXT返回的LINES中的行按照TDFORMAT=“*”重新組織

VIEW_MAINTENANCE_CALL                                     維護表檢視

F4IF_INT_TABLE_VALUE_REQUEST                          顯示檢索help

READ_TEXT                                                                    讀取長文字

CONVERSION_EXIT_CUNIT_OUTPUT                       單位轉換

SJIS_DBC_TO_SBC                                                        全形轉半形

SJIS_SBC_TO_DBC                                                       半形轉換為全形

CO_R0_CHECK_DECIMAL_POINT                            根據單位檢查資料的小數位

POSTAL_CODE_CHECK                                              檢查郵政編碼

CONVERSION_EXIT_ALPHA_INPUT                        全數字則在前面補0

CONVERSION_EXIT_ALPHA_INPUT                        和上面相反

GET_JOB_RUNTIME_INFO                                           獲得job相關資訊

TERMINAL_ID_GET                                                         獲得端末id

DATE_CONVERT_TO_FACTORYDATE                     把輸入日期轉為工廠日曆日期

MESSAGE_TEXT_BUILD                                             把訊息轉為文字

POPUP_TO_CONFIRM                                                  彈出確認視窗

POPUP_TO_DECIDE_LIST                                         彈出供選擇視窗

CONVERSION_EXIT_MATN1_INPUT                     物料號碼轉換函式

CONVERSION_EXIT_MATN1_OUTPUT                 同上相反

CONVERT_TO_LOCAL_CURRENCY                    按照指定日期匯率轉換金額為指定貨幣型別

SSF_FUNCTION_MODULE_NAME                     根據form名取得對應的函式名(SmartForm)

DATE_CHECK_PLAUSIBILITY                            日期CHECK

cl_gui_frontend_services=>gui_upload                        上傳到伺服器

cl_gui_frontend_services=>gui_download                   下載到服本地

SSF_FUNCTION_MODULE_NAME                SMARTFORMS 輸出報表時,生成一個函式名稱,然後CALL這個名稱 

DDIF_FIELDINFO_GET                                      獲得欄位的相關資訊

DDIF_NAMETAB_GET                                       獲得欄位的相關資訊(不包含text)

DDIF_TABL_GET                                                獲得表的相關資訊 

CLOI_PUT_SIGN_IN_FRONT                              將負號提前

EPS_GET_DIRECTORY_LISTING                         獲得某路徑下的檔案列表

BAPI_COMPANYCODE_GET_PERIOD                獲得公司的會計年度以及過賬日期

MARA_SINGLE_READ                                           讀取物料資訊

KNA1_SINGLE_READ                                             讀取customer表資訊

ADDR_GET_COMPLETE_ALL_TYPES                   獲得地址的相關資訊

READ_VBFA                                                              取得document flow(省得select了)

SD_VBAK_SINGLE_READ                                        讀取銷售訂單表頭資訊

LIKP_READ                                                                 Delivery Header Data

CURRENCY_AMOUNT_SAP_TO_DISPLAY             Convert currency value from SAP to display
CURRENCY_AMOUNT_DISPLAY_TO_SAP                      與上面功能相反

DD_TBFD_GET                                得到資料庫表的結構

TEXT_CONVERT_XLS_TO_SAP                              excel檔案格式轉成sap內表

CSAP_MAT_BOM_READ                                 讀取bom資訊

FI_ITEMS_MASS_CHANGE                                      修改財務憑證(BSEG)

CHANGE_DOCUMENT                                               修改憑證(BKDFBKPFBSECBSEDBSEGBSET
UNITS_STRING_CONVERT                              根據當前使用者的金額顯示方式,將帶有分隔符的金額(字元型)轉換為P型別的數值。例如:將“1,000.123” 轉換為 1000.123

DATA: l_clabs TYPE p DECIMALS 3,
           l_dcpfm LIKE usr01-dcpfm.


SELECT SINGLE dcpfm INTO l_dcpfm
      FROM usr01
      WHERE bname = sy-uname.


CALL FUNCTION 'UNITS_STRING_CONVERT'
  EXPORTING
    units_string       = '123,456.789'
    dcpfm              = l_dcpfm       "此時為X
*     MLLN               = 'M'
*     TSND               = 'T'
  IMPORTING
    units              = l_clabs
  EXCEPTIONS
    invalid_type       = 1
    OTHERS             = 2.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16794144/viewspace-682238/,如需轉載,請註明出處,否則將追究法律責任。

相關文章