on 03-25-2009 4:37 PM
Hi,
using the user fields personnalisation, I'm able to put the account number in the lines during PO creation. The account number is selected by a user table. The account number is existing in the chart of accounts.
When I want to add the PO, the process is stopped, I must type manually the account number (but the same !) in order to finally create the PO.
Any idea ?
This limitation is from SQL server not B1. Do you have any SP in place too?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't understand where are the incompatibilities. Can you help me ? here is the query used in then approval procedure :
SELECT 'True' Where $[OPOR.U_CodeProjet]='CER001' AND ($[OPOR.DocTotalSy.number]-$[OPOR.VatSumSy.number]<10000)
and the Query used to build the GL Account :
SELECT T0.[U_CodeComptable] FROM [dbo].[@QDX_PROJ_SUBPROJ] T0 WHERE T0.Code=$[OPOR.U_PROJ]
I don't understand why the queries exclude each other and where is the SQL limitation ...
Now I understand it. The problem is existing in your query. This field you try to update by FMS is actually the Field of FormatCode. You have to give the right value instead of AcctCode.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just checked my UserTable and in the 'CodeComptable' column I put FormatCode.
then the query get the formatcode and put it in the GL Account of the line. After add button I've an error. If I put manually the formatCode (the same), there's no error... strange ...
other information, No error if approval procedures are desactivated.
Your question is not quite clear. If your have FMS for your UDF, post your query here.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I'll try to explain the problem more clearly.
My configuration is :
- a user defined table (QDX_PROJ_SUBPROJ) with 2 columns, ProjectCode, and AccountNumber(CodeComptable).
- on the PO form, I display the User Defined Fields in which there is a field the user enter the projectCode,
- The PO is configured as "Service"
- the GL Account column is filled using a query leaving the Price Column. The Query is : SELECT T0.[U_CodeComptable] FROM [dbo].[@QDX_PROJ_SUBPROJ] T0 WHERE T0.Code=$[OPOR.U_PROJ].
Now, the scenario is :
- I open the PO form,
_ I enter a project code in the UDF,
- I select a Vendor,
- I enter a description,
- I enter the price, I leave the column, the GL Account is automatically filled by the query,
- I click "Add" button
- comments are asked because of workflow,
then I have a error message at the bottom of the general windows : " No matching record found (ODBC -2028) [Message 131-183]
I tried this :
1- before clicking "Add" button, I enter manually the GL account number, exactly the same (filled by the query), and It is OK.
2- other test, I unactivate the approval procedures and it is ok.
I think there is someting with approval procedures, but I am not able the see what ...
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.