研究、分享我学习零售业SAP的历程
------------打造中国第一个零售SAP博客
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.


posted on 2007-08-18 16:11  会东  阅读(1857)  评论(0编辑  收藏  举报