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

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Importing SOP History Directly to SQL Tables

(0) ShareShare
ReportReport
Posted on by

I'm importing SOP History from one GP company to another (merging the companies).  So far I've identified the following tables:

  • RM00401
  • RM30101
  • SOP10101
  • SOP10102
  • SOP10103
  • SOP10105
  • SOP10107
  • SOP30100
  • SOP30200
  • SOP30300

I'm changing the invoice number by adding a 1 in the first digit so INV000030 becomes INV1000030.  This will avoid duplicate invoice numbers.  CustomerIDs are also being changed.

When I'm in "Receivables Transaction Inquiry" window and I enter the invoice number, the invoice shows up in the scrolling window.  However, when I try to zoom back on the Document Number, the SOP Inquiry window opens, but then I get a message box saying that the Invoice was deleted from SOP History.  So I'm guessing that I missed a table, but have no idea which one.  The information shows up fine when using SalesPad to look it up.

I prefer not to import into a batch and post it because that causes a lot of setup issues such as inventory/site combinations.  Also it will effect inventory levels.  I know I can delete the GL batch, or not even post to GL, not sure if the same is true for inventory.  But in any case, I'd still like to go directly to the tables since this is almost working.

I'm using SmartConnect to read the data from one company and import directly to the tables of another company.

Thank you for any help you can provide!

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Importing SOP History Directly to SQL Tables

    You need to run a sql trace, and figure which tables it is reading.  congrats man, you are going where no one has gone before!

  • Community Member Profile Picture
    on at
    RE: Importing SOP History Directly to SQL Tables

    I did that -- that's how I found the RM30101 table :)

    But I wasn't able to find any other tables.  What events do you suggest I monitor?

  • Community Member Profile Picture
    on at
    RE: Importing SOP History Directly to SQL Tables

    1) in trace, monitor: sp starting, sp stmt starting.   tsql: batch starting, stmt starting

    2) also do a dex sql trace

  • Community Member Profile Picture
    on at
    RE: Importing SOP History Directly to SQL Tables

    Jon,

    Thank you!  I forgot about dex sql trace!  That gave me the clue I needed.  It looks like GP picks up the TRXDSCRN field from the RM30101 table and uses that to lookup the SOPNUMBE in the SOP30200 table.  I changed the TRXDSCRN in the RM30101 to the new document number and it works perfectly now!

  • Community Member Profile Picture
    on at
    RE: Importing SOP History Directly to SQL Tables

    if you post that code online somewhere... you'll be famous, your story will be retold for decades.

  • Community Member Profile Picture
    on at
    RE: Importing SOP History Directly to SQL Tables

    I used SmartConnect to integrate directly to the tables.  Could have used SSIS, but the customer already has integrations with SmartConnect and I thought it would be best to keep the all in one place.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans