摘要:
转换为:REPORT z_barry_test_fieldsymols .TYPE-POOLS: slis.TABLES: mseg,mkpf.DATA: gd_fieldcat TYPE slis_t_fieldcat_alv.DATA: sla TYPE slis_layout_alv , ivariant LIKE disvariant, i_repid LIKE sy-repid , i_excluding TYPE slis_t_extab.TYPES: BEGIN OF ty_sum , werks LIKE mseg-werks , matnr LIKE mseg-matnr , 阅读全文
摘要:
ABAP常用函数集锦函数名 描述 SD_VBAP_READ_WITH_VBELN 根据销售订单读取表vbap中的信息EDIT_LINES 把READ_TEXT返回的LINES中的行按照TDFORMAT=“*”重新组织VIEW_MAINTENANCE_CALL 维护表视图函数名 描述 DY_GET_FOCUS 获得屏幕焦点 DY_GET_SET_FIELD_VALUE 获得或者设置屏幕字段的值函数名 描述 F4IF_INT_TABLE_VALUE_REQUEST 显示检索help READ_TEXT 读取长文本CONVERSION_EXIT_CUNIT_OUTPUT 单位转换SJIS_DBC_T 阅读全文
摘要:
*选择屏幕REPORTYAOTEST012.TYPE-POOLS:VRM.DATA:LNAMETYPEVRM_ID,ILISTTYPEVRM_VALUES,"ITABLILISTLIKELINEOFILIST.DATA:PS_T(10)TYPEC.PARAMETERS:PS(10)ASLISTBOXVISIBLELENGTH10.ATSELECTION-SCREENOUTPUT.LNAME='PS'.LILIST-KEY='1'.LILIST-TEXT='LINE1'.APPENDLILISTTOILIST.LILIST-KEY= 阅读全文
摘要:
以RM07为例,整理一下,前200个RM07156H 设置表T156H的计数器RM0721AI dRM0721AX 用于Release 2.1A的库存管理XPRA报告RM0721BX 用于Release 2.1B的库存管理XPRA报告RM0730AA 用于库存管理的XPRA(Release 3.0)RM0730AN 对于库存管理Release 3.0的XPRA:输出/移动类型正文RM0730AX 用于库存管理的XPRA(Release 3.0)RM0730AY 用于库存管理的XPRA(Release 3.0)RM0730AZ 用于库存管理的XPRA(Release 3.0)RM0740AX 版 阅读全文
摘要:
Try this program...it may help you to change the font ..etc.Code:REPORT ZSIRI NO STANDARD PAGE HEADING.* this report demonstrates how to send some ABAP data to an* EXCEL sheet using OLE automation.INCLUDE OLE2INCL.* handles for OLE objectsDATA: H_EXCEL TYPE OLE2_OBJECT, " Excel object H_MAPL TY 阅读全文
摘要:
PARAMETERS : p_file LIKE rlgrap-filename MODIF ID fil DEFAULT 'C:\Z0001.xls'. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file. PERFORM frm_filename_get USING p_file. DATA: l_intern TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE. PERFORM frm_excel_to_table USING p_file. PERFORM frm_fill_itab.* 阅读全文
摘要:
TYPES: BEGIN OF SELEKTION, OBJECTCLAS LIKE CDHDR-OBJECTCLAS, OBJECTID LIKE CDHDR-OBJECTID, USERNAME LIKE CDHDR-USERNAME, FROM_DATE LIKE CDHDR-UDATE, TO_DATE LIKE CDHDR-UDATE, PLNTY LIKE PLKO-PLNTY, PLANOBJEKTE TYPE I OCCURS 20, END OF SELEKTION.DATA: icdred LIKE cdred OCCURS 100 WITH HEADER LINE. CA 阅读全文
摘要:
ABAP日期函数应用 根据当前时间如何找到上月的第一天和最后一天?CALL FUNCTION 'FIMA_DATE_CREATE' EXPORTING I_DATE = SY-DATUM I_MONTHS = '-1' I_SET_LAST_DAY_OF_MONTH = 'X' IMPORTING E_DATE = LASTDATE.LASTDATE是上个月最后一天。 FIRSTDAY是上月第一天CONCATENATE LASTDATE+(6) '01' INTO FIRSTDAY.当天是当年的第几周DATE_GET_WEEK 得 阅读全文
摘要:
调用CALL TRANSACTION 只能在原窗口打开如 SET PARAMETER ID 'AUN' FIELD it_vbap-vbeln. CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.使用以下方法可以在新的窗口打开: DATA: c_para TYPE string. CONCATENATE 'VBAK-VBELN =' it_vbap-vbeln INTO c_para SEPARATED BY space. CALL FUNCTION 'TH_CREATE_MODE' EX 阅读全文