web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Import bulk invoices into multiple GP companies at once

(0) ShareShare
ReportReport
Posted on by

Hello. We had someone recently go into the hospital who was the only one who knows the process on how to do this and we cannot figure it out. We would like to know how to create invoices for the same amount over multiple companies in bulk. For instance:

We have 300 companies/SQL databases for different properties we manage

We have an excel file similar to the below that outlines the invoice doc number, amount, companyID and description. Below shows only 3 but the excel file is roughly 200 rows long with different doc numbers and company ids.

IncDocNumb              InvAmt           InvCompanyId        Descr

883748                        196.65            A51                          Monthly

883749                        196.65            B89                          Monthly

883750                        196.65            C23                          Monthly

We need to import all of the excel file into each individual company at once rather than having to key each invoice in manually. We cannot use integration manager since you can only integrate in the company you are logged into. Is there a way to manually do this in SQL?

*This post is locked for comments

I have the same question (0)
  • MattPaulen Profile Picture
    6,912 on at

    Do you own something like Smartconnect?  That can do multiple databases simultaneously.  I'd be surprised if that was done straight through SQL since that would bypass the business logic.

  • Community Member Profile Picture
    on at

    Not that I know of. I don't know of any other way it can be done other than straight through SQL, but it was being done somehow.

  • Suggested answer
    Community Member Profile Picture
    on at

    e Connect call can be made through direct SQL Calls.    

    For example  below call to create RM distribution.....

    DECLARE @return_value int,
    @O_iErrorState int,
    @oErrString varchar(255)

    EXEC @return_value = [dbo].[taRMDistribution]
    @I_vRMDTYPAL = 1,
    @I_vDOCNUMBR = N'SALES000000000037',
    @I_vCUSTNMBR = N'100001',
    @I_vSEQNUMBR = 1005,
    @I_vDISTTYPE = 9,
    @I_vDSTINDX = 125,
    @I_vDEBITAMT = 0,
    @I_vCRDTAMNT = 1000,
    @O_iErrorState = @O_iErrorState OUTPUT,
    @oErrString = @oErrString OUTPUT

    SELECT @O_iErrorState as N'@O_iErrorState',
    @oErrString as N'@oErrString'

    SELECT 'Return Value' = @return_value

    EXEC @return_value = [dbo].[taRMDistribution]
    @I_vRMDTYPAL = 1,
    @I_vDOCNUMBR = N'SALES000000000037',
    @I_vCUSTNMBR = N'100001',
    @I_vSEQNUMBR = 1006,
    @I_vDISTTYPE = 3,
    @I_vDSTINDX = 125,
    @I_vDEBITAMT = 1010,
    @I_vCRDTAMNT = 0,
    @O_iErrorState = @O_iErrorState OUTPUT,
    @oErrString = @oErrString OUTPUT

    SELECT @O_iErrorState as N'@O_iErrorState',
    @oErrString as N'@oErrString'

    SELECT 'Return Value' = @return_value


    EXEC @return_value = [dbo].[taRMDistribution]
    @I_vRMDTYPAL = 1,
    @I_vDOCNUMBR = N'SALES000000000037',
    @I_vCUSTNMBR = N'100001',
    @I_vSEQNUMBR = 1007,
    @I_vDISTTYPE = 13,
    @I_vDSTINDX = 125,
    @I_vDEBITAMT = 0,
    @I_vCRDTAMNT = 10,
    @O_iErrorState = @O_iErrorState OUTPUT,
    @oErrString = @oErrString OUTPUT

    SELECT @O_iErrorState as N'@O_iErrorState',
    @oErrString as N'@oErrString'

    SELECT 'Return Value' = @return_value
    GO

    Cheers!

    Sanjay

  • Community Member Profile Picture
    on at

    I'm not sure I follow. How would I use this to import from an excel sheet?

  • kdraper Profile Picture
    on at

    If you do not have access to a developer skilled with eConnect you would need SmartConnect from eOne or something equivalent.  It is designed for this.

    http://www.eonesolutions.com/smartconnect/overview/

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi LEDIC,

    Agreed with Sanjay kumar.

    If you have planning to use integration tool, you can refer the following my post.

    http://bit.ly/1pyvrlK

    -Brian

  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    Could you check if you have any customization? or any 3rd party dictionary installed? because it could be done by that by any 3rd party window interface (definitely SQL procedures running at the backend).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans