Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Business Potal Queries do not display values using the decimal place setting in Inventory / Purchasing / Order Management related queries


Symptoms

When running Business Portal Queries which diplay cost and price values, the values display as whole numbers. The queries should use the Decimal place values from Purchasing Setup / Accounts Payable Setup.

↑ Back to the top


Cause

Business Portal does not have the appropriate rights to select the values from the Accounts Payable Setup table. Since the values cannot be obtained the query will not display the values correctly.

↑ Back to the top


Resolution

Run the bfgroup script against the Dynamics SL Application and System database. See the script in More Information.

↑ Back to the top


More Information

if

not exists (select * from sysusers where name = 'BFGROUP' and issqlrole = 1)

exec

sp_addrole 'BFGROUP'

GO

declare

@cStatement varchar(255)

declare

G_cursor CURSOR for select 'grant select,update,insert,delete on "' + convert(varchar(64),name) + '" to BFGROUP' from sysobjects

where (type = 'U' or type = 'V') and uid = 1 order by name

set

nocount on

OPEN

G_cursor

FETCH

NEXT FROM G_cursor INTO @cStatement

WHILE

(@@FETCH_STATUS <> -1)

begin

print @cStatement

EXEC

(@cStatement)

FETCH NEXT FROM G_cursor INTO @cStatement

end

DEALLOCATE

G_cursor

GO

declare

@cStatement varchar(255)

declare

G_cursor CURSOR for select 'grant execute on "' + convert(varchar(64),name) + '" to BFGROUP' from sysobjects

where (type = 'P') and uid = 1 order by name

set

nocount on

OPEN

G_cursor

FETCH

NEXT FROM G_cursor INTO @cStatement

WHILE

(@@FETCH_STATUS <> -1)

begin

print @cStatement

EXEC

(@cStatement)

FETCH NEXT FROM G_cursor INTO @cStatement

end

DEALLOCATE

G_cursor

GO

↑ Back to the top


Keywords: kbmbsmigrate, kbmbspartner, vkball, kb

↑ Back to the top

Article Info
Article ID : 2420729
Revision : 2
Created on : 2/2/2017
Published on : 2/3/2017
Exists online : False
Views : 147