jayugandhi
9th August 2014, 12:33
Hi all Finance masters,

I am doing a bank transaction transaction through session tfgld1101m000>tfcmg2500m00>tfacp2103s000.

now I want to change the value of "tax ledger account" value of session tfacp2103s000(tfacp203.leac)

but when I am trying do this from afs I am getting an error "company number 000 is not valid financial company".

pls help me if any value is to be pass.
thanks

mark_h
10th August 2014, 04:44
Since it looks like you are on LN are there any dal functions that you might be able to use? Do you have source code? Do any of the sessions you mention ask for a financial company? You might want to post your code. Sometimes the way you control the sessions makes a difference - but not always. I just did one on purchase order batch process that was very difficult to get to work - in some cases I do not control the session at all. As a matter of fact the session generates a BW error message at one point, but continues to work. For the life of me I cannot figure out how to eliminate it - hoping the service pack we are going to put in solves it.

I can't remember why but in 4c4 we never start with tfgld1101m000 - we go with tfgld1100m000, then to tfgld1101s000 - then to the various transactions. Not sure that is related to your problem, but thought I would mention it.

bhushanchanda
11th August 2014, 15:15
Hi,

I guess, you were getting some other error a few days back.

Thread (http://www.baanboard.com/baanboard/showthread.php?t=66567)

So, did you resolve that? If yes, kindly post your solution. Also, for this error, first check whether you are running the program from a proper finance company and then as Mark said, the DAL hooks might be causing problems due missing some DLL calls. If possible post your code snippet.Also, try switch.to.company() and switch to current company before starting the AFS calls to the problematic part of code.

ahawtin
11th August 2014, 18:15
Check that the ledger account you are using has a finance company in the chart of accounts.