Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SBT Error in Close Period and Year

Status
Not open for further replies.

acdc12

MIS
Sep 23, 2012
4
PH
Good Day


Im Newbie of SBT 5.0i version

can you please help me


im trying to close period and year end but there is an error in GL in the system manager like this

" Error 1324: Subscript out of bounds
called from: L_CVTVAR Line Number:2227
Program Code Causing Error:
IIF(A_sycdat.applid$"PO^SO^MC^",SEEK("IC"+A_sycdat.compid,"a_sycda2"),.T.)"


THATS The error im encountered

please help me how to fix it


Thanks
M.I.S HEAD



 
Subscript out of bounds"
Usually means index problems.
Reindex all applications files, and system files.

Edgar
Integrted Bar Code Systems, Inc.
 
Hi sir


i also try to reindex sbt in system manager but it didnt work,



Please HELP!

Thanks
M.I.S Head
 
That line of code is from program SMPCLS.PRG. The program is checking to see if your system contains the PO, SO and MC modules but not the IC module. If this is true, SBT will not close the period and you will get a warning message to this effect. But this has nothing to do with GL period closing.

Here is the code:

*-- Check for PO, SO, or MC with no matching IC installed
SELECT a_sycdat
LOCATE FOR a_sycdat->applid $ "PO^SO^MC^" AND NOT ;
SEEK("IC" + a_sycdat->compid, "a_sycda2")

*-- If any records found
IF FOUND("a_sycdat")
*-- Display alert
DO g_dspalt WITH "Unable to close PO or SO if IC is not" + ;
gc_oseol + "installed for the same company.", 2
ENDIF

This code runs long before the program branches to the GL closing code. And it has nothing to do with SUBSCRIPT or function L_CVTVAR which is odd.

I'd re-compile SM\SMPCLS if you have a copy of Visual Foxpro 5.0 and try again. If you don't have a copy, I can do it for you.

If that fails, I'd put some debugging code into SMPCLS.PRG to see what is really happening. This is real work, not a simple task.

Your SBT Pro 5.0 is approximately 15 years old. The fact that it still runs at all is remarkable. You should not be too surprised if small things like this fail from time to time. If it is at all possible, I'd think about an upgrade.

Matthew Lefkowitz
Lefkowitz Systems, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top