pentium100
pentium100 · 共 33 篇文章
在spring webmvc的controller读取context:property-placeholder定义的属性
SPRING 的context分两块, 一个是root webapp context, 一块是servelet app context, Controller属于后面这块, 在controller里要读取的@value属性值, 必须定定在servelet app context里。 参见:http://stackoverflow.com/questions/3652090/difference-between-applicationcontext-xml-and-spring-servlet-xml-in-spring 和 http://stackoverflow.com/questions…
2015-08-06 13:39 · JAVA · 评论(0)
intellji IDEA的remote debug.
转自:http://my.oschina.net/u/237554/blog/214663 问题: 最近访问grails.org,看到grails framework已经发展到2.3.x了,不免想尝尝鲜。下载了最新的grails-2.3.x之后,创建了一个新的grails app。 添加Book domain对象后有自动生成了BookController和相关gsp views。在对BookController进行调试的时候,发现无法进入设定的断点。起先以为是IDE版本(IntelliJ IDEA12.x.x ultimate)和Grails 2.3.x不兼容,但全部换上最新的Intelli…
2015-01-20 23:09 · JAVA · 评论(0)
金蝶EAS系统树的生成
第一次将开发完的程序部署到正式机,发现还真不容易, 还好在网上搜到两篇文章,总算部署成功。 特转载两篇文章。 顺道感谢两位前辈。 SubSystem_bos.xml 文件需要更新的内容可以从本地开发文件夹下同名文件里复制出来。不用手工编辑。 转自: http://njkf-hp.iteye.com/blog/808265 将2次开发模块拷贝新解决方案下,如果单据少的话可以重新发布每一张单据,可如果2次开发单据比较多时,就比较麻烦,而且发布业务单据费时费力又容易出错;最近将原来做的一个2次开发模块拷贝到新解决方案下(由于平台升级、元数据、bong工具升级原因),重新生成子系统,部署程序,发现在…
2014-11-10 08:55 · 金蝶BOS · 评论(0)
如何从类方法中返回动态内表。
如何从类方法中返回动态内表。 class-methods aggregation importing value(i_table) type table exporting value(o_table) type table value(o_table2) type ref to data . types: begin of t_line, col1 type i , col2 type i , col3 type i , end of t_line. data: l_line type t_line. data: lt_line type table of t_line. field-sy…
2014-11-06 11:20 · SAP R/3 · 评论(0)
ALV GRID修改字段长度后, 没有生效?
修改了一张透明表的字段长度, 从3改成4, 在测试机上, 一切正常, 前台输入的界面长度变成4了. 到了生产机, 居然没有变化, 还是3 看了透明表, 长度确确实实变成4了. 原来, ALV GRID的field catlog 是有缓存的. https://websmp130.sap-ag.de/sap(bD16aCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=122975 需要执行报表:BALVBUFDEL , 来更新buffer.
2013-07-26 18:48 · SAP R/3 · 评论(0)
XDocReport 生成WORD文件, 报numbering.xml有错误。
把DOCX文件打开, 找到numbering.xml,发现里面有类似以下的片断: <w:lvl w:ilvl="2" w:tplc="040C0005" w:tentative="1"> <w:start w:val="1" /> <w:numFmt w:val="bullet" /> <w:lvlText w:val="飩� /> 后来查了xdocreport的源代码, 发下有以下字符: https://code.google.com/p/xdocreport/source/browse/document/fr.opensagres.xdocreport.document.docx/src…
2013-07-24 16:04 · JAVA · 评论(0)
用flexjson转换对象时,出错Error trying to deepSerialize
不是每次必错,有时错有时不错, 根据错误堆栈,调试 ObjectTransformer.java 将path变量打印出来, 发现原来是在序列化handler和hibernateLazyInitializer出错, 这两个应该 和hibernate的延迟加载有关, 在serializer.exclude(" .handler)和.execulde(" .hibernateLazyInitializer").后解决问题。
2012-10-16 12:54 · JAVA · 评论(1)
SAP GTM读取可关联合同的程序在:SAPLWB2_ASSO_PROCESS
SAP GTM读取可关联合同的程序在:SAPLWB2_ASSO_PROCESS LINE 29
2012-08-16 15:52 · SAP R/3 · 评论(0)
传请求到测试机, 死活没动静, 也不报错.
原来是测试机上的BDG进程被占满了..之前也有过这样的事情. 以后再遇到要检查一下目标机器上的空闲进程是否足够.
2012-04-10 18:26 · SAP R/3 · 评论(0)
How to change exchange rate in miro manually?
原来要先改好汇率, 才能填参考凭证. 先填了参考凭证, 就不能改汇率了. You can change the exchange rate filling its field before entering the PO reference. Procedure: 1 - Fill the Basic Data screen, including the amount. 2 - Go to the Details screen 3 - Enter the exchange rate manually 4 - Press ENTER 5 - Enter the PO Reference
2012-04-09 12:58 · SAP R/3 · 评论(0)
maven compile 时报错, 找不到符号!
查了一晚上... :cry: :cry: :cry: :cry: 居然是因为用ext designer时把时候调到以前,所以报错, 把时间调回来就正确了... 天啊..这是什么道理啊..
2012-03-05 22:33 · JAVA · 评论(0)
Simulate login from spring web mvc controller
code as below: List<GrantedAuthority> grantedAuthorities = new ArrayList<GrantedAuthority>(); grantedAuthorities.add(new GrantedAuthorityImpl("USER")); UsernamePasswordAuthenticationToken uat = new UsernamePasswordAuthenticationToken( "john", "admin", grantedAuthorities); uat.setDetails(user); Secu…
2012-02-14 15:50 · JAVA · 评论(0)
extjs4 checkbox getvalues 返回on?
标准的程序界面, 先一个grid panel做list, 双击某条记录后,调出详细的编辑界面。 编辑界面上是一个formPanl, 上面有一个checkbox控件, 用户保存数据后, 得到formpanl, 通过formPanl取form上的values, form.getValues() 默认得到checkbox 的value 是on, 由于后台是一个boolean值, record.setValues时, 不把on识别为ture, 结果永远都是false, 后来发现, 原来checkbox上有个config叫inputValue, 是用来控制这个的。 改成true 就ok了。
2012-02-14 15:47 · EXT JS · 评论(0)
Tab character as delimiter in ABAP string
转自: http://www.kerum.pl/infodepot/00014 Tab character as delimiter in ABAP string It can be a bit difficult to use tabulator character (hex code 0x0009) in ABAP strings. On the other hand it is often used as separator in various interface files and you need tab character to split the lines into fie…
2012-02-01 11:24 · SAP R/3 · 评论(0)
How to change storage location in inbound delivery use bapi?
The paramater ITEM_DATA for bapi_inb_delivery_change has not a field named lgort. so we use BADI SMOD_V50B0001, in this BADI has a method EXIT_SAPLV50I_009, use to change data in likp and lips. So if you want to change the lgort or werks in the lips, you need to do below steps: 1/ you need to pass …
2011-12-30 13:53 · SAP R/3 · 评论(0)