detroit1
Active Member
Hi,
Can someone help me how to add a sort by Location to the Business Function B3102270, I have identified the location where data is being pulled from F3111, but I am lacking the appropriate coding to do the sorting before the data is pulled. Any help would be welcome, a portion of the code is copied below for reference.
memset((void*) &dsGetItemBranch, (int) _J('\0'), sizeof(dsGetItemBranch) ) ;
memset((void*) &dsKEY1_F3111, (int) _J('\0'), sizeof(dsKEY1_F3111) ) ;
memset((void*) &dsF3111, (int) _J('\0'), sizeof(dsF3111) ) ;
memset((void*) &dsB3102270IDX, (int) _J('\0'), sizeof(dsB3102270IDX) ) ;
memset((void*) &dsB3102270BOM, (int) _J('\0'), sizeof(dsB3102270BOM) ) ;
ZeroMathNumeric(&mnTOTIS);
MathCopy(&dsKEY1_F3111.wmdoco, &lpdsWorkCache->mnOrderNumber);
JDEDBResultF3111 = JDB_FetchKeyed(hRequestF3111,
(ID)IndexIDF3111,
(void *)(&dsKEY1_F3111),
(short)(1),
(void *)(&dsF3111),
(int)(NULL));
/* end else cache did not exist */
JDEDBResultF3111 = JDB_FetchMatchingKey(hRequestF3111, (void *)(&dsKEY1_F3111),
(short)(1),
(void *)(&dsF3111),
(int)(NULL));
} /* end while records exist in F3111 */
Thanks,
Can someone help me how to add a sort by Location to the Business Function B3102270, I have identified the location where data is being pulled from F3111, but I am lacking the appropriate coding to do the sorting before the data is pulled. Any help would be welcome, a portion of the code is copied below for reference.
memset((void*) &dsGetItemBranch, (int) _J('\0'), sizeof(dsGetItemBranch) ) ;
memset((void*) &dsKEY1_F3111, (int) _J('\0'), sizeof(dsKEY1_F3111) ) ;
memset((void*) &dsF3111, (int) _J('\0'), sizeof(dsF3111) ) ;
memset((void*) &dsB3102270IDX, (int) _J('\0'), sizeof(dsB3102270IDX) ) ;
memset((void*) &dsB3102270BOM, (int) _J('\0'), sizeof(dsB3102270BOM) ) ;
ZeroMathNumeric(&mnTOTIS);
MathCopy(&dsKEY1_F3111.wmdoco, &lpdsWorkCache->mnOrderNumber);
JDEDBResultF3111 = JDB_FetchKeyed(hRequestF3111,
(ID)IndexIDF3111,
(void *)(&dsKEY1_F3111),
(short)(1),
(void *)(&dsF3111),
(int)(NULL));
/* end else cache did not exist */
JDEDBResultF3111 = JDB_FetchMatchingKey(hRequestF3111, (void *)(&dsKEY1_F3111),
(short)(1),
(void *)(&dsF3111),
(int)(NULL));
} /* end while records exist in F3111 */
Thanks,