rohan_rege
18th October 2002, 18:42
hi ,
I have written a interface program using AFS for the whole Maintain Transaction ..process in baan....
After I am read the ASCII file and try inputting the fields into session in API mode......if i get a error inserting a record ...
i write the current record to a ascii file and append the error message to it .
but the problem is the record comprises of field values delimited by tilde's ~ , so it looks something like following :
D~128~~~~~~~11112090~~~~~~75~L
Above record(13) generated the following error:
tfacp1120s000 Insert: Input is mandatory tfglds0192 LedgerAccount or Dimensions have to be entered
This ofcourse is not a good readable error message , for the enduser who will be using the error log file to find which invoice no. had a error .....
also the ascii file that i am reading from has records in two formats ;
first is the Invoice Header fields
and then it is followed by Invoice detail fields...
the error might occur in either of the two types of record types
I have been asked to get this ascii error file that i gets created by my prog ..into a more readable format...with columns names...
i dont know , how to go abt it ......any suggestions
basically can this ascii file convrted into a Excel sheet or something on similar lines so that it becomes beter to read...
If anyone has done something simillar..pls post me the sample code or email it to me ...so that i can start working on the same lines
rgds
Rohan
I have written a interface program using AFS for the whole Maintain Transaction ..process in baan....
After I am read the ASCII file and try inputting the fields into session in API mode......if i get a error inserting a record ...
i write the current record to a ascii file and append the error message to it .
but the problem is the record comprises of field values delimited by tilde's ~ , so it looks something like following :
D~128~~~~~~~11112090~~~~~~75~L
Above record(13) generated the following error:
tfacp1120s000 Insert: Input is mandatory tfglds0192 LedgerAccount or Dimensions have to be entered
This ofcourse is not a good readable error message , for the enduser who will be using the error log file to find which invoice no. had a error .....
also the ascii file that i am reading from has records in two formats ;
first is the Invoice Header fields
and then it is followed by Invoice detail fields...
the error might occur in either of the two types of record types
I have been asked to get this ascii error file that i gets created by my prog ..into a more readable format...with columns names...
i dont know , how to go abt it ......any suggestions
basically can this ascii file convrted into a Excel sheet or something on similar lines so that it becomes beter to read...
If anyone has done something simillar..pls post me the sample code or email it to me ...so that i can start working on the same lines
rgds
Rohan