Tag Archives: ABAP

[转载]SAP MM Purchasing: Send Purchase Order by mail to vendor in SAP

昨天系统里采购订单邮件发送给供应商的功能突然不能用了,协助相关人员核查原因,折腾了有4、5个小时。最终原因是和负责pd文档f存储的Content Server相关,不过期间查了N多notes和google,对与如何实现采购订单邮件发送给供应商的原理也有了比较清楚的认识,下面的这篇文章说的已经比较细致了。 原文链接: SAP MM Purchasing: Send Purchase Order by mail to vendor in SAP This blog explains the steps involved in SAP ECC to send purchase order by email to a vendor as an attachment. Sending Purchase order by email to a vendor is called as an “External Send” in SAP. To achieve this [...]

debug update mode function module

1. Update mode function module will be excuted until commit work statement is excuted. 2. In order to debug in update mode function module, you have to setting “Update debugging ” to on status. 3. You can create a breakpoint when a function module is called. For more information, please refer to Update debugging or [...]

Push button on selection screen’s toolbar

REPORT z_test9 NO STANDARD PAGE HEADING . TABLES: sscrfields. SELECTION-SCREEN FUNCTION KEY 1.SELECTION-SCREEN FUNCTION KEY 2. PARAMETERS: P_TEST(8) TYPE C. INITIALIZATION. sscrfields-functxt_01 = ‘button1′. sscrfields-functxt_02 = ‘button2′. AT SELECTION-SCREEN. CASE sy-ucomm. WHEN ‘FC01′. P_TEST = ‘FC01′. WHEN ‘FC02′. P_TEST = ‘FC02′. ENDCASE.

Using tabstrip on selection screen

This is a simplest exmaple: REPORT zdemo_sel_screen_with_tabstrip. * SUBSCREEN 1SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.PARAMETERS: p1(10) TYPE c, p2(10) TYPE c, p3(10) TYPE c.SELECTION-SCREEN END OF BLOCK b1.SELECTION-SCREEN END OF SCREEN 100. * SUBSCREEN 2SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.PARAMETERS: q1(10) [...]

[转载]Configuration of the SAP-Oracle Database Interface

from:http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f01e743e-a7bf-2c10-399a-bd3cf2074ff3?QuickLink=ora&overridelayout=true pdf文件本地链接:http://filer.blogbus.com/1064822/resource_10648221275442443a.pdf 与上篇for all entries clause相关部分内容: Important paramters: rsdb/prefer_union_all = FALSE | TRUE = 0 | 1 a OR b or UNIONrsdb/prefer_in_itab_opt = FALSE | TRUE = 0 | 1 IN (a, b, …)rsdb/prefer_join = FALSE | TRUE = 0 | 1 FROM join_tablersdb/max_blocking_factor = 5 | n max. num. OR or UNIONrsdb/max_in_blocking_factor = 5 [...]

[转载]Disadvanges of “for all entries“ abap clause

from: http://it.toolbox.com/blogs/sap-on-db2/for-all-entries-vs-db2-join-8912 All abap programers and most of the dba’s that support abap programmers are familiar with the abap clause “for all entries”. Most of the web pages I visited recently, discuss 3 major drawbacks of the “for all entries” clause: 1. duplicate rows are automatically removed2. if the itab used in the clause is [...]

About cl_gui_cfw=>flush

记性真的不好了,连自己写的代码都看不懂了。 例如下面让用户选择文件夹的代码: CALL METHOD cl_gui_frontend_services=>directory_browse CHANGING selected_folder = folder. CALL METHOD cl_gui_cfw=>flush. why should we call the flush method? here is some notes about this mehtod, from http://blog.csdn.net/xyfchris/archive/2007/06/29/1671481.aspx “In OO approach, calling a Control-method does not imply that the method is automatically executed at runtime. Initially, the system buffers methods in a queue, referred to [...]

information about background job steps

from : http://help.sap.com/saphelp_smehp1/helpdata/en/c4/3a7f05505211d189550000e829fbbd/content.htm “In general, job steps run sequentially and synchronously in the order they’re entered in a job: the first step starts, runs, and is completed, then the second step starts, and so on. The only exception is when you schedule an external program to run asynchronously. In this case, the background processing system [...]

About Function Module ALSM_EXCEL_TO_INTERNAL_TABLE

这个FM立意很好,把Excel的内容直接转换为内表,不过有诸多限制,如: 一是每个CELL只能导入前50个字符,二是如果超过9999行,行号会初始化为从零开始 其实我觉得这不是大问题,最不好使用的是他的输出内表的结构,是行号、列号和值的形式,在程序里面只能动态访问,代码看起来很不直观。 看这个FM的源代码实现还是很有特点的,使用了剪贴板的功能,这样在操作Excel中大的数据量的时候性能会比较好。因为没有特别仔细看源代码,对使用TAB做字符串SPLIT有点疑惑,如果单元格内容中有TAB如何处理?

Set parameter as listbox in report program

1. Syntax of defining the parameter. PARAMETERS: p_werks TYPE mard-werks AS LISTBOX VISIBLE LENGTH 6 USER-COMMAND ON_CHANGE_WERKS DEFAULT ’1000′ OBLIGATORY. The addition USER-COMMAND can be used to assign a function code fcode to the dropdown list box. The function code fcode must be specified directly and can have a maximum length of 20 characters. 2. [...]