【SAP】ABAP Submit调用报表程序

  • Post author:
  • Post category:其他


背景:新建接口,根据日期对报表程序进行查询,将查询结果返回给接口。

FUNCTION z_sd1052_foreign_delivery.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     VALUE(WADAT_LOW) TYPE  WADAT_IST
*"     VALUE(WADAT_HIGH) TYPE  WADAT_IST
*"  EXPORTING
*"     VALUE(EV_FLAG) TYPE  CHAR1
*"     VALUE(EV_MESS) TYPE  CHAR255
*"  TABLES
*"      ET_DATA STRUCTURE  ZSD_S_1052_DETAIL
*"----------------------------------------------------------------------
  m_rfc_ipara 'Z_SD1052_FOREIGN_DELIVERY' .

  TYPES: BEGIN OF ls_outtab.
  TYPES: celltab TYPE lvc_t_styl.
  TYPES: style TYPE lvc_t_styl. "
          INCLUDE STRUCTURE zdb_015.
  TYPES: bezei1 LIKE tvakt-bezei.
  TYPES: END OF ls_outtab.

  DATA:lt_outtab TYPE TABLE OF ls_outtab,
       wa_outtab TYPE ls_outtab.

  RANGES: r_wadat FOR zdb_015-wadat_ist_1.
  r_wadat-low = wadat_low.
  r_wadat-high = wadat_high.
  r_



版权声明:本文为Mona_1220原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。