[转]通过替代实现根据在miro中录入的分配来确定财务凭证中应当填的成本中心
星期五, 09月 11th, 2009*———————————————————————** FORM U801 **———————————————————————** Check account document line item **———————————————————————*FORM U801.DATA: LV_AUTH LIKE USRBF2-AUTH.DATA: LV_VON LIKE UST12-VON.*{ INSERT PRDK900214 1DATA: lv_zuonr TYPE dzuonr.FIELD-SYMBOLS: <fs_z
SAP的校验和替代(validations and substitutions)[转]
I. Creating, activating and transporting validations and substitutions1. Which transactions are required to use validation or substitution functions?GGB0 Validation MaintenanceGGB1 Substitution MaintenanceGCVZ Rule MaintenanceGGB4 Action selection for validation/substitution, for example, activation of application areas, use of all messages or substituted fieldsGCX2 Definition of the Includes for user exitsOB28 Activation of FI validationsOBBH Activation of FI substitutionsOBBZ Activation of cos
[转]ABAP Memory/SAP Memory/Shared Buffer/Database
ABAP提供了IMPORT/EXPORT 和 SET/GET PARAMETER语句,可对用户内存/服务器内存/数据库进行存储和访问。不过可能很多人对此还不是很了解,下面我们通过实例来测试它们的区别和联系。 1. ABAP Memory用户登陆后,最多一个系统可以开6个窗口,这在SAP中称为External Mode。而同一个窗口中,运行某程序后,可以通过CALL TRANSACTION/SUBMIT或其他代码跳转到其他程序,这个称为Internal Mode。Internal Mode的调用栈最多为9层。那么ABAP Memory,它是属于Internal Mode间可以共享的数据,而External Mode间无法共享。 例子. 创建程序A,输入:D
[转]Automatic IDOC generation whenever a PO is created/changed
This document details about the step-by-step procedure in generating an IDOC whenever a PO is either created or changed. 1. Go to transaction NACE. 2. Select the row “EF Purchase Order” and click on “Procedures”. 3. From the above screenshot, it is evident that there are 2 procedures for the application EF (Purchase Order). To proceed further, we would need to find out the procedure that is currently active.Go to transaction SPRO. In this, navigate as following:Materials manag
[转]SAP: Create SO automatic reference PO IDoc
SAP: Create SO automatic reference PO IDoc1. Configure PO IDoc:1.SPRO->Basis Components->Application Link Enabling(ALE)->Sending andReceiving systemLogical Systems->Define Logical SystemLog.System: SAPDEV100Name: CML SAP 61.144.248.136 client 1002.SPRO->Basis Components->Application Link Enabling(ALE)->Sending andReceiving system->Logical Systems->Assign Client to Logical SystemChoose client 100 and click details逻辑系统: SAPDEV1003.SM59->TCP/IP 连接->SAP
[转]整理的SAP参数文件
SAP 系统参数设置 path: /usr/sap/PRD/SYS/profile profile: PRD_DVEBMGS00_sapapp 如果您想查看所有的参数及当前设定,可使用SA38 执行程序 RSPARAM 修改附加配置 T-CODE:RZ10 进行SAP系统参数的设置,设置后需激活参数并重启SAP实例,配置参数才会生效 login/system_client 登录时默认的Client号 login/password_expiration_time 密码有效期 login/fails_to_user_lock 密码输错多少次后锁定 login/failed_user_auto_unlock 用户失效后多长时间解锁 rdisp/mshost 状态栏中显示的系统名称 rdisp/rfc_use_quotas 是否激活配额资源分配
[转]OBYC中的Transaction key详细解释以及用法
OBYC中的Transaction key详细解释以及用法关键字: mmThe following list shows the individual transactions with examples of how they are used:Agency business: income (AG1)This transaction can be used in agency business for income deriving from commission (e.g. del credere commission). The account key is used in the calculation schemas for agency business to determine the associated revenue accounts.Agency business: turnover (AG2)This transaction can be used in agency business if turnover (business vo
c# Invoke和BeginInvoke 区别(转载)
Control.Invoke 方法 (Delegate) :在拥有此控件的基础窗口句柄的线程上执行指定的委托。Control.BeginInvoke 方法 (Delegate) :在创建控件的基础句柄所在线程上异步执行指定委托。以下为实际应用中碰到的问题,在主线程中启动一个线程,然后在这个线程中启动serviceForm,然而在线程启动后,往serviceForm发送指令,serviceForm.IsHandleCreated老是报serviceForm = null,无法执行指令,采用延时的办法可以解决此问题,但不是高效的办法,后来在serviceForm.Load += new EventHandler(serviceForm_Load);serviceForm_Load事件中添加指令,发
[原创] LINUX ES4.0 中限制TELNET连接数
1.系统对所有资源的限制 /etc/security/limits.conf 这里 maxlogins 可以限制某个用户的最大登陆数 如:mfg - maxlogins 1 这就限制MFG这用户最多能登陆1次,但由于对应的pam-0.75-51软件包中存在BUG故可登陆2次。2.系统可以限制实例数,这样不论你用FTP,telnet ,或者其他服务的连接数都要受他限制,如假如实例数为20,我连接FTP10个,TELNET 10个后,就不能再FTP或TELNET上去了,这时可修改/etc/xinetd.conf 把 instances = 60改成更大的数[@more@]
[ 转载]常用数据库JDBC连接写法
1. MySQL(http://www.mysql.com)mm.mysql-2.0.2-bin.jarClass.forName( "org.gjt.mm.mysql.Driver" ); cn = DriverManager.getConnection( "jdbc:mysql://MyDbComputerNameOrIP:3306/myDatabaseName", sUsr, sPwd ); 2. PostgreSQL(http://www.de.postgresql.org)pgjdbc2.jarClass.forName( "org.postgresql.Driver" ); cn = DriverManager.getConnection( "jdbc:postgresql://MyDbComputerNameOrIP/myDatabaseName", sUsr, sPwd ); 3. Oracle(http://www.oracle.com/ip/deploy/database/oracle9
[转载]T-SQL学习笔记-程序设计基础-游标
游标的引入 1 .在数据的开发过程中,从某一结果集中逐一读取一条记录,用游标解决,游标占资源大,确定不用后将其释放。 2 .声明游标(四个组成部分)( 1 ).declare游标( 2 ).open游标( 3 ).从一个游标中fetch信息( 4 ).close或deallocate游标一、声明游标主要内容:( 1 ).游标名字( 2 ).数据来源表和列( 3 ).选取条件( 4 ).属性仅读或可修改 1 .语法格式: declare 游标名称 [ scroll ] cursor [ local|global ] [ forward_only|scroll ] for 选择语句 [ for[read_only|update [of 字段名称1,字段名称2, ] ]]其中: 1 > .lo
Progress syntax : How to Determine if a Directory Exists!
Fixes: In order to determine if a particular directory exists, use the FILE-INFO handle.For example, the code:/* Set the directory name in question */ FILE-INFO:FILE-NAME = "dirname". /* display the attributes of "dirname" */ MESSAGE FILE-INFO:FILE-TYPE VIEW-AS ALERT-BOX. will display 'D' if the directory exists and a '?' if it does not exist. 如果存在的目录则显示"DRW" , 如果存在文件"FRW",假如是不存在的文件和目录则为? RW应该为可读写.[@more@]
[原创] SQl2000与XP SP2一起工作时TCP/IP中1433没监听
由于今天要写一个程序大概是要用到MS 的SQL与JDBC直接Class.forName( "com.microsoft.jdbc.sqlserver.SQLServerDriver" ); cn = DriverManager.getConnection( "jdbc:microsoft:sqlserver://MyDbComputerNameOrIP:1433; databaseName=master", sUsr, sPwd ); 故此当我直接telnet 127.0.0.1 时发现1433没开始监听,但我发现SQL2000中服务器网络实用工具中已经开启了命名管道和TCP/IP1433了,且另外一台WIN2000SP4和SQL2000的机子也是相同的配置但没有这问题.后来到MICROSOFT中下载了SQL2000 SP3的补丁并安装完后问题解决
[转载] 使用String.split方法时要注意的问题
在使用String.split方法分隔字符串时,分隔符如果用到一些特殊字符,可能会得不到我们预期的结果。我们看jdk doc中说明public String[] split(String regex) Splits this string around matches of the given regular expression. 参数regex是一个 regular-expression的匹配模式而不是一个简单的String,他对一些特殊的字符可能会出现你预想不到的结果,比如测试下面的代码:用竖线 | 分隔字符串,你将得不到预期的结果 String[] aa = "aaa|bbb|ccc".split("|"); //String[] aa = "aaa|bbb|ccc".spli
[转载]防止JAVA程序重复启动的一个另类解决办法
我们项目中有一个后台任务处理程序,是java开发application,用以处理网站提交的一些批量数据文件,因为这些数据文件数据量一般都比较大,所以写了这个批量处理程序,用以异步处理这些批量数据文件。这个程序设计成插件式的,处理各种不同数据文件的功能单独作为一个插件,然后使用Spring来粘合各个组件,这样就可以很方便地对该程序进行扩展。 今天客户提出一个要求:需要控制这个程序在同一主机上只能启动一个实例。 为了实现客户要求,我首先想到就是在数据库中建一张表,程序启动时往该表中写入一个标志,等程序结束时再
COM+安装时出现错误" typelib不能加载"
从新注册一下dimas.dll[@more@]
在AIX5.2安装samba-3.0.4.0.bff出错
利用smitty 安装samba-3.0.4.0.bff时出错,错误restore: 0511-119 There is a missing header block.这是因为从http://www.bullfreeware.com/ 下载到本地时用2进制,但上传到AIX时没用2进制造成的.[@more@]
PROGRESS83C中使用MERANT3.7驱动出现错误SYSTEM ERROR 126
copy %dlcbinesql32.dll as winntsystem32prosql32.dlland set DLC environment[@more@]
HOW TO PRINT FILE TO NOTEPAD IN GUI?
DEFINE VARIABLE ReturnCode AS INTEGER NO-UNDO.PROCEDURE WinExec EXTERNAL "KERNEL32.DLL":DEFINE INPUT PARAMETER ProgramName AS CHARACTER.DEFINE INPUT PARAMETER VisualStyle AS LONG.DEFINE RETURN PARAMETER StatusCode AS LONG.END PROCEDURE./**************************************************//* NOTE: VisualStyle parameters are as follows: *//* 1 = Normal *//* 2 = Minimized *//**************************************************/RUN WinExec (INPUT "notepad c:log.txt", INPUT 1, OUTPUT
How to set up printers for GUI?
1. Printing to local Windows Printers (36.13.2) Printer Setup Maintenance Printer Definition Output to: Myprinter Printer type: HP LASER Description: Local Printer LJ4SI Lines/Page: 60 Max Pages:0 Scroll Output: no Device Pathname: LPT1 Spooler: no Printer control