Monday, April 30, 2012

start and shutdown jboss 4.3 EAP

start jboss AS is simplely involke a bat file or sh file,but shutdown need provide a user name and it's password save in server's props\jmx-console-users.properties file,like this

shutdown.sh -S -u admin -p admin

Friday, April 27, 2012

SAP DOCTYPE means


The document type is used for the following functions in General Ledger Accounting (FI-GL), Accounts Receivable (FI-AR), and Accounts Payable (FI-AP) components:
  • Differentiating the business transactions to be posted
All vendor invoices, for example, are posted using the same document type.
  • Controlling document storage
This is the main function of the document type. You must specify a number range for every document type. The original documents from a number range are stored together.
  • Posting invoices with the vendor net procedure
The document type determines whether or not the net procedure is used when posting a vendor invoice. With the vendor net procedure for posting, the system automatically subtracts cash discount from the corresponding offsetting entries when the document is posted.The document type is entered in the document header and applies to the whole document.
Document types are defined at client level. The standard system already contains document types which you can use or change.

search in cvs commited comments

worked for a while,just forget one of the change i made lost somewhere,need to find it out,
so nee to earch based on cvs commits comments,following command satisfy the request
cvs log -S -N 
it will list all comment,use a search tool,ot grep or give a -d parameter to limit the result

Thursday, April 26, 2012

JCO Connection Error while SAP server IP changes

while using SAP server's Name for JCO connection,suddenly got following errors


SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM  GWHOST=vmsapqa03, GWSERV=sapgw00, SYSNR=00

LOCATION    CPIC (TCP/IP) on local host
ERROR       partner 'vmsapqa03:3300' not reached
TIME        Wed Apr 25 09:41:03 2012
RELEASE     720
COMPONENT   NI (network interface)
VERSION     40
RC          -10
MODULE      nixxi.cpp
LINE        3286
DETAIL      NiPConnect2: 10.21.66.56:3300
SYSTEM CALL connect
ERRNO       10060
ERRNO TEXT  WSAETIMEDOUT: Connection timed out
COUNTER     1

it is not related to any code, it is the IP address been tied with the host name changed by network administrator,solution is using full name for the machine.,like vmsapqa03.groupname.com.

Monday, April 2, 2012

analyze the code to calculate key

004010B4 XOR EBX,EBX
004010B6 XOR ESI,ESI
004010B8 CMP DWORD PTR DS:[402173],13
004010BF JL SHORT ReverseM.004010F7
004010C1 MOV AL,BYTE PTR DS:[EBX+40211A]
004010C7 CMP AL,0
004010C9 JE SHORT ReverseM.004010D3
004010CB CMP AL,46
004010CD JNZ SHORT ReverseM.004010D0
004010CF INC ESI
004010D0 INC EBX
004010D1 JMP SHORT ReverseM.004010C1
004010D3 CMP ESI,7
004010D6 JL SHORT ReverseM.004010F7
004010D8 JMP ReverseM.00401205