Monthly Archives: July 2007

MD62修改特性比例时的DUMP处理

运行MD62修改特性的比例保存后,出现DUMP信息:Double owner: Contact LO-VC development 处理方法:Notes 520995,Afterwards implement Note 527913 and start report RCUIB_CORRECT_OWNER

发现一本ABAP开发好书,如果有影印版我一定要买!

下面内容摘自SDN的WIKI: Next Generation ABAP Development Book Book Content So what we ended up with was something amazingly close to the original table of contents. We adjusted it some to include some of the very good ideas that Rich had brought to the table during our work on the SDN Days session. But more important than [...]

物料的MRP范围相关数据说明

物料与MRP范围对应关系:MDMAMRP范围主数据表:MDLVMRP范围的配置:IMG -> 生产 -> 物料需求计划 -> 主数据 -> MRP区域 -> 定义MRP运行区域

关于ViewCluster

1、创建:SE54,选择Edit Viewcluster 2、查看:SM34 3、FunctionModule调用:VIEWCLUSTER_MAINTENANCE_CALL Notice: 1、In detail table, create a foreign key for linking to master table 2、You can create Field dependence information of detail table manually when a automaic generate error occurs.

理解SAP的Enhancement Framework

Enhancement Framework的目的:在不改变(或尽量少改变)SAP标准程序的情况下满足客户的定制开发需求。Keep less Modification. Enhancement Framework的基本概念: Ehancement Spot: 用来组织Enhancement options,it's a container of Enhancement options. Enhancement Implementation:用来组织Enhancement options的实现代码。 Implicit and Explict Enhancement:隐式和显式增强 隐式增强就是系统内置的Enhancement options,有一点AOP的味道,但只能针对单个对象。Implicit enhancements comprise class enhancements, function group enhancements and predefined enhancement points at particular predefined positions such as the end of a report, a function module, an include or a structure and [...]

生活感悟–摘自新东方印建坤老师的博客

为师之道: 对于一个师者而言,他是无法用短暂的时间来改变你的任何既有状态的,他能做的就是竭尽全能的地用科学合理的方法去启发你,去帮助你寻找到一个适合你的学习之道。正所谓,师傅引进门,修行在个人。 我很忙!但是: 在这个世界上,永远不会有一个时间或者空间会允许我们去只做一件事情,所以在任何情况下,我们必须要学会去协调各种事情的先后顺序,并学会去从生活中挤时间。我经常问自己时间是怎么没了的,我问了千万次之后才发现,原来时间是被无数的无聊没有意义的思考和忧郁给占据而浪费掉的。 原文地址:写给我所有不爱完成课后作业的学生们!

A sample of Serializing ABAP Object into XML via ST

关于ST的OnlineHelp,请查看:http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm 1、创建Transformation,事务码:STRANS,Transformation Type选择为Simple Transformation,名称假定为Z_LOOP_TEST1,内容如下: <?sap.transform simple?><tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined"> <tt:root name="root"/> <tt:root name="header"/> <tt:template> <header> <date> <tt:value ref="HEADER.DATUM" /> </date> <time> <tt:value ref="HEADER.UZEIT" /> </time> </header> <material> <tt:loop ref="ROOT" name="line"> <matnr> <tt:value ref="$line.matnr" /> </matnr> <maktx> <tt:value ref="$line.maktx" /> </maktx> </tt:loop> </material> </tt:template></tt:transform> 2、创建调用程序,注意Internal Table不能带Header Line,内容如下: *&———————————————————————**& Report Z_TRANSFORMATION_TEST1*&*&———————————————————————**&*&*&———————————————————————* REPORT z_transformation_test1LINE-SIZE 500. DATA: xml_string TYPE [...]

Unit Test in ABAP

公司上CRM项目后,在Netweaver平台上ABAP终于支持Unit Test,相对于JUnit相比,ABAP Unit有自己鲜明的特点: 1、ABAP Unit是语言级的支持,不像JUnit是以第三方类库的形式出现。 2、ABAP Unit可以和主程序写在一个文件中,而且是推荐这样做的。 3、在TestCase里面可以定义两个pseudo comments,其中Risk_Level是必须定义的。 SDN上面有一个不错的教程:https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1088 下面是一个具体的例子: *&———————————————————————**& Report Z_UNIT_TEST1*&*&———————————————————————**&*&*&———————————————————————* REPORT z_unit_test1. TABLES: but000. DATA: it_but000 LIKE TABLE OF but000 WITH HEADER LINE. PARAMETERS: price TYPE p. PERFORM minus_ten_percent CHANGING price. WRITE price. SELECT *INTO TABLE it_but000FROM but000. *&———————————————————————**& Form minus_ten_percent*&———————————————————————** text*———————————————————————-** –>FPRICE text*———————————————————————-*FORM minus_ten_percent CHANGING fprice TYPE p.* price = [...]

纠正自己一个对Junit的错误认识

因为没有深入使用过JUnit,我一直以为setUp和tearDown方法对每个TestCase是只执行一次的,昨天看《DEVELOPMENT: A PRACTICAL GUIDE》这本书提到JUnit的扩展的时候,才意识到自己错了。事实上,对每一个需要运行测试的Method,setUp和tearDown方法都会执行一次。 PS: 今天上午特地写了个例子进行了验证。