Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Budget Import using Transaction Import Dynamics SL

(0) ShareShare
ReportReport
Posted on by 105

Hi,

Can anyone help me how to do a Budget import using the Transaction Import Module in Dynamics SL?  Right now, I am doing data entry for each code and department in the Budget Maintenance screen, which is mundane work.  I entered our Q4 2013 budget in one ledger ID for each expense account and 15 departments.  I also entered the 2014 budget for all 12 months for each expense account and 15 departments in a different ledger ID.  So your help in automating this process will save me. :)

My e-mail address is rlumbao@maproyalty.com.

Thank you!

-Lyn

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Budget Import using Transaction Import Dynamics SL

    Can you look through this coding for the CTL file? I don't understand some of the lines that display "currently disabled".

    'ControlMacroType: VBAComplete

    ' VBComponent: ThisScreen, ComponentType: 100 **********************************************************

    '01250 Control Macro

    Sub ProcessImportLine( LevelNumber%, Retval% )

     select Case LevelNumber

       case TI_Start

         call AliasConstant( "Level0", "Budget" )

       case 0 ' 0 of 0

       'Level 0 if of Type N

         ' cacct is a key field for level 0

         ' Field mask is UUUUUUUUUU

         ' NOTE  -- This field is a required field

         serr = SetObjectValue( "cacct", ImportField(1) )

         ' csub is a key field for level 0

         ' Field mask is WW-WW-WW

         ' NOTE  -- This field is a required field

         serr = SetObjectValue( "csub", ImportField(2) )

         ' cledgerid is a key field for level 0

         ' Field mask is UUUUUUUUUU

         ' NOTE  -- This field is a required field

         serr = SetObjectValue( "cledgerid", ImportField(3) )

         ' cfiscyr is a key field for level 0

         ' Field mask is 9999

         ' NOTE  -- This field is a required field

         serr = SetObjectValue( "cfiscyr", ImportField(4) )

         ' cbdgtrvsndate is a Date Field Type

         serr = SetObjectValue( "cbdgtrvsndate", ImportField(5) )

         serr = SetObjectValue( "cannbdgt", ImportField(6) )

    'Currently Disabled cTotPtdBdgt

         serr = SetObjectValue( "cbdgtper", ImportField(7) )

         serr = SetObjectValue( "cbdgtper(1)", ImportField(8) )

         serr = SetObjectValue( "cbdgtper(2)", ImportField(9) )

         serr = SetObjectValue( "cbdgtper(3)", ImportField(10) )

         serr = SetObjectValue( "cbdgtper(4)", ImportField(11) )

         serr = SetObjectValue( "cbdgtper(5)", ImportField(12) )

         serr = SetObjectValue( "cbdgtper(6)", ImportField(13) )

         serr = SetObjectValue( "cbdgtper(7)", ImportField(14) )

         serr = SetObjectValue( "cbdgtper(8)", ImportField(15) )

         serr = SetObjectValue( "cbdgtper(9)", ImportField(16) )

         serr = SetObjectValue( "cbdgtper(10)", ImportField(17) )

         serr = SetObjectValue( "cbdgtper(11)", ImportField(18) )

    'Currently Disabled cbdgtper(12)

    'Currently Disabled cTotPtdBdgtTmp

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Budget Import using Transaction Import Dynamics SL

    I see a couple of things.  First of all, it appears you made the control file using the "simple" file method.  While that should work, I have always utilized the "intelligent" format for my clients.  The main thing I noticed, however, is that your 5th field of the CSV file should be a date value and you have some sort of odd values (e.g., 140, 240, 160, etc.) in that field.  I suspect your budget started out as an Excel file and that column (E) is being translated on you.  SL is not going to see this as a date which I think is going to mess up the transaction import.  The other thing I see is that you last field contains the letter M (for manual distribution).  That may be fine but I have never supplied that field in my import CSV file.  You do not have to supply all the trailing fields called for in the CTL file.

    Also, I assume you had transaction import utilize screen id 0125000 but you did not actually say that one way or the other.

    So, first fix up field 5 to be valid date (matching your date format) and see if that takes care of your problem.  If not, try creating the intelligent control file format and try that.

    Let me know if that works or not.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Budget Import using Transaction Import Dynamics SL

    Budget,3183,0,Budget,2016,140,5971995.050,480864.892,498597.890,503200.690,355441.430,549797.820,502097.950,487335.160,526419.170,576397.550,530402.950,535802.080,425637.490,,M

    Budget,4020,0,Budget,2016,240,167742.220,13978.519,68674.000,68674.000,68674.000,68674.000,68674.000,68674.000,68674.000,68674.000,68674.000,68674.000,68674.000,,M

    Budget,4025,0,Budget,2016,240,656344.440,54695.370,8241.000,8241.000,5494.000,5494.000,5494.000,5494.000,5494.000,5494.000,5494.000,5494.000,5494.000,,M

    Budget,4040,0,Budget,2016,160,15096.800,1677.422,19400.000,17600.000,500.000,29975.000,17781.500,16095.500,30637.250,24947.000,17149.250,18203.000,500.000,,M

    Budget,4041,0,Budget,2016,250,59071.000,6563.444,459.930,459.930,459.930,459.930,459.930,459.930,459.930,459.930,459.930,459.930,459.930,,M

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Budget Import using Transaction Import Dynamics SL

    control file

    Budget,cacct,csub,cledgerid,cfiscyr,cbdgtrvsndate,cannbdgt,cbdgtper,cbdgtper,cbdgtper,cbdgtper,cbdgtper,cbdgtper,cbdgtper,cbdgtper,cbdgtper,cbdgtper,cbdgtper,cbdgtper,cDistMethod

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Budget Import using Transaction Import Dynamics SL

    Please post a line or two of your import file and your CTL file as what you are describing should not be happening if both are correct.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Budget Import using Transaction Import Dynamics SL

    Actually, I just noticed that Period 12 (the last one in the data) is being placed into Period 1. So, it is skipping over Periods 1 - 11

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Budget Import using Transaction Import Dynamics SL

    I am having a problem with the upload reading past period 1. Everything thing looks right when I view the data file in Notepad...commas are correct. Any ideas?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Budget Import using Transaction Import Dynamics SL

    Thank you Rick.  It worked!

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Budget Import using Transaction Import Dynamics SL

    Deborah,

    Just in case, I have run into that issue when the file I am trying to import is still open by another program (e.g., Excel).  this may not be your issue but I thought it best to share this.

    In you posting where you gave the complete path, that field does have a size limitation and I notice that your post does not show a file extension so my next thought is that the path name combined with the file name could be too long.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Budget Import using Transaction Import Dynamics SL

    Ok, I got it to go through the CTL file, now I'm getting the error of "Unable to open the file" D:\PROGRAM FILES\MICROSOFT DYNAMICS\SL\DATA IMPORT\BUDGET\2016BUDGET.

    It's in the same location that I had it in last year when I imported.  Different name.  

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans