首页 > Windows开发 > 详细

CONVERT_BDCMSGCOLL_TO_BAPIRET2 - BDC消息转BAPIRET2消息

时间:2020-06-18 15:01:22      阅读:110      评论:0      收藏:0      [点我收藏+]
FORM bdc_transaction USING tcode ctumode.
  DATA: _ret TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.

  REFRESH messtab.
  CALL TRANSACTION tcode USING bdcdata
        MODE   ctumode"A:调试 N:不显示 E:错误时调试
        UPDATE ‘A‘"A:异步 B:同步 L:本地更新
        MESSAGES INTO messtab.

  LOOP AT messtab WHERE msgtyp = ‘S‘.
    IF  messtab-msgv1 = ‘内向交货‘ OR messtab-msgv3 = ‘已保存‘  .
      gs_do_header-vbeln = messtab-msgv2.
      EXIT.
    ENDIF.
  ENDLOOP.

  CALL FUNCTION ‘CONVERT_BDCMSGCOLL_TO_BAPIRET2‘
    TABLES
      imt_bdcmsgcoll = messtab
      ext_return     = _ret.

* PERFORM deal_bapi_ret TABLES _ret USING 1 CHANGING g_err_flag.

  REFRESH bdcdata.

ENDFORM.

CONVERT_BDCMSGCOLL_TO_BAPIRET2 - BDC消息转BAPIRET2消息

原文:https://www.cnblogs.com/imimjx/p/13157525.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!