nadeem69
Member
I have just customized the P4211 program. The customization was related to Transfer orders/ purchase orders. We wanted to have a work order for every line Transfer order line. This doesn’t happen with the standard functionality of delivered by JD-Edwards. It makes only two work orders for first two lines and after that it stops creating work orders. Now I have customized it, that is creates always a work order for every line of the transfer order.
The problem is:
1. I place a order with 4 lines
it creates 4 work orders: fine
2 - I edit the order and add 5 more lines
it creates 4 work orders for last 4 lines: misses 1st line of the last 5 lines added.
I am using:
F4801 Begin Document
F4801 Edit Line
F4801 End Document
On debugging these business functions I get error_code = 2 in event rules after “F4801 Edit Line”.
On debugging in C also get error on these lines of C code:
JDEBFRTN (ID) JDEBFWINAPI F4801EndDocument (………….)
. . . .
if ((lpDS->cProcessEdits != NO_EDITS) && (idReturnCode == ER_SUCCESS))
{
Returns Error here on the following if statement
if (jdeCacheGetNumRecords(dsInternal.hCaches[MAIN_CACHE]) > 0)
{
idReturnCode = IX4801_OpenCursor(&dsInternal, MAIN_CURSOR, MAIN_CACHE);
}
else
{
idReturnCode = ER_ERROR;
}
if (idReturnCode == ER_SUCCESS)
{
idReturnCode = IX4801_DetermineProcessing(lpDS,
&dsInternal,
&dsCache,
&dsWorkCache);
}
}
Please help someone.
The problem is:
1. I place a order with 4 lines
it creates 4 work orders: fine
2 - I edit the order and add 5 more lines
it creates 4 work orders for last 4 lines: misses 1st line of the last 5 lines added.
I am using:
F4801 Begin Document
F4801 Edit Line
F4801 End Document
On debugging these business functions I get error_code = 2 in event rules after “F4801 Edit Line”.
On debugging in C also get error on these lines of C code:
JDEBFRTN (ID) JDEBFWINAPI F4801EndDocument (………….)
. . . .
if ((lpDS->cProcessEdits != NO_EDITS) && (idReturnCode == ER_SUCCESS))
{
Returns Error here on the following if statement
if (jdeCacheGetNumRecords(dsInternal.hCaches[MAIN_CACHE]) > 0)
{
idReturnCode = IX4801_OpenCursor(&dsInternal, MAIN_CURSOR, MAIN_CACHE);
}
else
{
idReturnCode = ER_ERROR;
}
if (idReturnCode == ER_SUCCESS)
{
idReturnCode = IX4801_DetermineProcessing(lpDS,
&dsInternal,
&dsCache,
&dsWorkCache);
}
}
Please help someone.