惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
博客园 - 【当耐特】
Engineering at Meta
Engineering at Meta
IT之家
IT之家
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
美团技术团队
S
SegmentFault 最新的问题
The GitHub Blog
The GitHub Blog
Martin Fowler
Martin Fowler
Recorded Future
Recorded Future
H
Help Net Security
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
博客园_首页
A
About on SuperTechFans
MongoDB | Blog
MongoDB | Blog
阮一峰的网络日志
阮一峰的网络日志
V
Visual Studio Blog
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
B
Blog
The Register - Security
The Register - Security
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
Last Week in AI
Last Week in AI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
有赞技术团队
有赞技术团队
Stack Overflow Blog
Stack Overflow Blog
Jina AI
Jina AI
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News - Newest:
Hacker News - Newest: "LLM"
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
W
WeLiveSecurity
Latest news
Latest news
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
博客园 - 叶小钗
L
Lohrmann on Cybersecurity
博客园 - Franky
Recent Commits to openclaw:main
Recent Commits to openclaw:main
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO

博客园 - 会东

EMW 性能优化二之---并发配置 EWM一个仓库号对应ERP多个PLANT的配置 Number Range 管理之并行缓冲 HU 参考错误修正:/SCWM/RCORR_HUREF EWM 强大的数据修复功能 EWM ODO清理功能 发布EWM RF ITS Mobile 相关服务 多个ERP系统连接一个EWM系统 SAP 函数生成测试数据 SAP EWM 性能优化-性能相关的Related Notes(二) SAP EWM 性能优化(一) 根据IDOC号查询处理日志 RFUI GUI显示技术信息 EWM RF(Radio Frequency Framework) 相关程序及事务 PI Function Library 应用,公共UDF开发 PI 安装升级后:JNLP文件中的JAR资源签名证书不一致 XI/PI 消息性能统计 招聘ABAP开发程序员 实现在一个SAP系统中调用其它SAP系统的功能
EWM RF 开发常用代码
会东 · 2012-10-28 · via 博客园 - 会东

1. 设置RF警告消息

/scwm/cl_rf_bll_srvc=>message(
               iv_msg_view = '1'
               iv_flg_continue_flow = 'X'
               iv_msgid           = '/SCWM/WHO'
               iv_msgty           = 'W'
               iv_msgno           = '539' ).

2. 查询商品

TRY.
CALL FUNCTION '/SCWM/MATERIAL_READ_SINGLE'
EXPORTING
          iv_matid      = ls_stock-matid
          iv_langu      = sy-langu
IMPORTING
          es_mat_global = ls_mat_global
          et_mat_uom    = lt_mat_uom.
CATCH /scwm/cx_md.
ENDTRY.

屏幕输入商品代码

DATA lv_matean TYPE /scwm/de_rf_ean11.

CALL FUNCTION '/SCWM/RF_PRODUCT_INPUT'
EXPORTING
input = selection-matnr40
IMPORTING
ev_matid = iv_matid
ev_matnr = selection-matnr40
ev_matean = lv_matean.
IF iv_matid IS INITIAL.
* Product doesn't exists
MESSAGE e195(/scwm/rf_en).
ENDIF.
    .

* get the product details
CALL FUNCTION '/SCWM/SELECT_STOCK'
EXPORTING
      iv_lgnum      = lv_lgnum
      it_matid      = lt_matid
      it_guid_lgpla = lt_guid_loc
IMPORTING
      et_huitm      = lt_huitm
EXCEPTIONS
OTHERS   = 2.

获得商品GUID

CALL FUNCTION 'CONVERSION_EXIT_MDLPD_INPUT'
EXPORTING
INPUT         = ZEWM_HUHDR_HP-HUMATID
IMPORTING
OUTPUT        = lv_matid
              .

3. RF屏幕参数相关代码

* Initiate screen parameter
  /scwm/cl_rf_bll_srvc=>init_screen_param( ).
* Set screen parameter
  /scwm/cl_rf_bll_srvc=>set_screen_param('CT_INQ_ST_LOOP').
****************************
  /scwm/cl_rf_bll_srvc=>set_screen_param('CS_INQ_ST_PRD').
* Transfer table name into RF framework
  /scwm/cl_rf_bll_srvc=>set_screen_param('/SCWM/TT_RF_INQ_ST_LOOP').
CALL METHOD /scwm/cl_rf_bll_srvc=>set_line
EXPORTING
      iv_line = 1.
CALL METHOD /scwm/cl_rf_bll_srvc=>set_screen_param
EXPORTING
      iv_param_name = 'LS_INQ_ST_LOOP'.

4. 设置代码调试

  BREAK-POINT ID /scwm/rf_inquiry.

5. 获得用户资源

CALL FUNCTION '/SCWM/RSRC_RESOURCE_MEMORY'
EXPORTING
      iv_uname = sy-uname
CHANGING
      cs_rsrc  = ls_rsrc.

6. 转换日期和时间字段

*********** Conversion of Timestamp into date and time field
APPEND :lt_lagp-idatu TO lt_timestamp,
          lt_lagp-cleared_at TO lt_timestamp,
          lt_lagp-moved_at TO lt_timestamp.
CALL FUNCTION '/SCWM/CONVERT_TIMESTAMP'
EXPORTING
      iv_lgnum       = lv_lgnum
      it_timestamp   = lt_timestamp
IMPORTING
      et_date_time   = lt_timedate
EXCEPTIONS
      input_error    = 1
      data_not_found = 2
OTHERS         = 3.

LOOP AT lt_timedate INTO ls_timedate.
CASE sy-tabix.
WHEN 1.
WRITE ls_timedate-date DD/MM/YY TO cs_inq_st-idatu_d.
MOVE ls_timedate-time TO cs_inq_st-idatu_t.
WHEN 2.
WRITE ls_timedate-date DD/MM/YY TO cs_inq_st-cleared_d.
MOVE ls_timedate-time TO cs_inq_st-cleared_t.
WHEN 3.
WRITE ls_timedate-date DD/MM/YY TO cs_inq_st-moved_d.
MOVE ls_timedate-time TO cs_inq_st-moved_t.
ENDCASE.
ENDLOOP.

7. 获得功能代码

lv_fcode        TYPE /scwm/de_fcode,

lv_fcode = /scwm/cl_rf_bll_srvc=>get_fcode( ).

8. 设置仓库号

CALL METHOD /scwm/cl_tm=>set_lgnum( ls_rsrc-lgnum ).

9. 查询源HU信息

CALL FUNCTION '/SCWM/TO_READ_SRC'
EXPORTING
        iv_lgnum   = ls_rsrc-lgnum
        iv_huident = selection-huident
IMPORTING
        et_ordim_o = lt_ordim_o
        et_ordim_c = lt_ordim_c.

10. 查询目前的HU信息

CALL FUNCTION '/SCWM/TO_READ_DES'
EXPORTING
        iv_lgnum   = ls_rsrc-lgnum
        iv_huident = selection-huident
IMPORTING
        et_ordim_o = lt_ordim_o
        et_ordim_c = lt_ordim_c.

CALL FUNCTION '/SCWM/TO_READ_HU'
EXPORTING
        iv_lgnum       = ls_rsrc-lgnum
        iv_huident     = selection-huident
IMPORTING
        et_ordim_o_src = lt_ordim_o
        et_ordim_o_des = lt_ordim_o_des
        et_ordim_c_src = lt_ordim_c
        et_ordim_c_des = lt_ordim_c_des.

11. RF确认对话框

CALL METHOD /SCWM/CL_RF_BLL_SRVC=>POPUP_TO_CONFIRM(

IV_TITLE = ‘’,

IV_TEXT=’’

IV_FLG_CANCEL=’X’,

RV_ANSWER = RV_ANSWER)

/scwm/cl_rf_dynpro_srvc=>display_message(

iv_msgid = sy-msgid

iv_msgno = sy-msgno

iv_msgty = 'Q'

iv_msgv1 = sy-msgv1

iv_msgv2 = sy-msgv2

iv_msgv3 = sy-msgv3

iv_msgv4 = sy-msgv4 ) = /scwm/cl_rf_bll_srvc=>c_answer_yes