Can anyone explain these codes for me?

no1see

Active Member
BSFN:B0900104
the ERROR 0002 hit on me.I wanna know why the error 0002 occurred.
I don't know the exact meaning of these codes.
Can anyone put these codes in a simple word?
Thanks.



/* Load Key structure */
jdeStrncpy(dsKey3_F0901.gmaid, (const JCHAR *)(lpDS->szAccountId),
DIM(dsKey3_F0901.gmaid));

idJDBReturnCode = JDB_FetchKeyed(hRequestF0901,
ID_F0901_ACCOUNT_ID,
(void *)&dsKey3_F0901,
1,
(void *)&dsColF0901,
FALSE);

if (idJDBReturnCode != JDEDB_PASSED)
{
jdeSetGBRError(lpBhvrCom, lpVoid, IDERRszAccountId_1, _J("0002"));
JDB_CloseTable(hRequestF0901);
JDB_FreeBhvr(hUser);
return ER_ERROR;
}
 
Hi no1see,

You can check with the application 'P92002 - Work With Glossary Items' for the description of error codes.
Give the error code (0002 in your case) in the QBE of DD Item.

Hope this helps!!
 
Hi Gov ,
Thanks for ur reply.
I know the Error Code-'0002' stands for.
What i wanna know is the exact meaning of the codes.
I know that it is relevant to the Account Id,but i can't understand the codes exactly.
I wanna someone tell me the meaning of the codes in simply words.[the logic of the codes]

P.S. the error 0002,Record Invalid hit in P0011 opening the Batch.
 
Hi no1see,

Error Code: 0002
"Record Invalid"
"CAUSE . . . . The record being processed either already exists for an 'ADD'
function or does not exist for an 'INQUIRY', 'CHANGE' or
'DELETE' function.
RESOLUTION. . If you are attempting to inquire, change or delete a record you
previously added, there may be data base problems in your
production library. You should notify your data processing
department."


I suppose, JDB_FetchKeyed(hRequestF0901) did not find record with the passed Account ID (AID) value in F0901 table.

Regards,

Zoltán
 
Hi.
jdeStrncpy --> Copy the string from Function Structure (lpDS->szAccountId) to F0901 Key Field dsKey3_F0901.gmaid.

/* Load Key structure */
jdeStrncpy(dsKey3_F0901.gmaid, (const JCHAR *)(lpDS->szAccountId),
DIM(dsKey3_F0901.gmaid));


Now the code mad one Fetch Single using the Index ID_F0901_ACCOUNT_ID, using the AID Key (dsKey3_F0901) and
receive tha data using the Structure dsColF0901.

idJDBReturnCode = JDB_FetchKeyed(hRequestF0901,
ID_F0901_ACCOUNT_ID,
(void *)&dsKey3_F0901,
1,
(void *)&dsColF0901,
FALSE);

If the File IO Status from the Fetch Single will be ERROR the function will show the ERROR 0002

if (idJDBReturnCode != JDEDB_PASSED)
{
jdeSetGBRError(lpBhvrCom, lpVoid, IDERRszAccountId_1, _J("0002"));
JDB_CloseTable(hRequestF0901);
JDB_FreeBhvr(hUser);
return ER_ERROR;
}
 
Back
Top