Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Printing Indented BOM from command line doesn't work

(0) ShareShare
ReportReport
Posted on by

Step 1:  Find a BOM

Step 2:  Verify can print indented BOM From the ROI Screen (Report number: 11600, format is 11600I)

  Notice - Pre process honors the kit.kitid = ? criteria, so doesn't run for all BOMs

Step 3 - Try through command line (found needed two ' in order to have show in the RPTRunTime)

e.g.  

"C:\Program Files (x86)\Microsoft Dynamics\SL\Applications\ROI.EXE" 1 11600/RUN 11600I/FORMAT ({kit.kitid} = ''F102-A117-S-02-1-00-0-00-00-A'' )/WHERE /PSCRN


this runs, but explodes every BOM Due to the pre-process 1160000.exe

At client site, with a couple of thousand BOMs, goes from ~5 seconds in step 2 to > 15 minutes (Eventually crashes, due to Int overflow)

RPT Runtime DB Record: (Wrk first, then fail)

AccessNbr Acct       Banner BatNbr     BegPerNbr BusinessDate CmpnyName                      ComputerName          CpnyID     DatabaseName         DocNbr     EndPerNbr LongAnswer00                                                                     LongAnswer01                                                                     LongAnswer02                                                                     LongAnswer03                                                                     LongAnswer04                                                                     NotesOn PerNbr RepBegDate              RepEndDate              ReportDate ReportFormat                   ReportName                     ReportNbr ReportTitle                    RI_BEGPAGE RI_CHKTIME RI_COPIES RI_DATADIR            RI_DICTDIR            RI_DISABLEDS RI_DISABLEQS RI_DISPERR RI_ENDPAGE RI_ID  RI_INCLUDE RI_LIBRARY                                                                       RI_NOESC RI_OUTAPPN RI_OUTFILE                                                                                                                                                                                                                                                      RI_PRINTER RI_REPLACE                                                                                                                                                                                                                                                      RI_REPORT                      RI_STATUS RI_TEST RI_WHERE                                                                                                                                                                                                                                                         RI_WPORT                                                                                                                                                                                                                                                        RI_WPTR                                                                                                                                                                                                                                                         RI_WTITLE                      SegCustMask      SegCustTitle     SegInvenMask               SegInvenTitle              SegSubMask                             SegSubTitle                            SegVendMask      SegVendTitle     ShortAnswer00 ShortAnswer01 ShortAnswer02 ShortAnswer03 ShortAnswer04 Sub                      SystemDate SystemTime UserId                                          tstamp
--------- ---------- ------ ---------- --------- ------------ ------------------------------ --------------------- ---------- -------------------- ---------- --------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ------- ------ ----------------------- ----------------------- ---------- ------------------------------ ------------------------------ --------- ------------------------------ ---------- ---------- --------- --------------------- --------------------- ------------ ------------ ---------- ---------- ------ ---------- -------------------------------------------------------------------------------- -------- ---------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------ --------- ------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------ ---------------- ---------------- -------------------------- -------------------------- -------------------------------------- -------------------------------------- ---------------- ---------------- ------------- ------------- ------------- ------------- ------------- ------------------------ ---------- ---------- ----------------------------------------------- ------------------
WRK88                F                 201708    8/11/2017    ### TST TEST SYSTEM ###        TSTTESTRDP-Tcp#8      SRSD       SRSDP                           201708                                                                                                                                                                                                                                                                                                                                                                                                                         0       201708 1900-01-01 00:00:00     1900-01-01 00:00:00     08/11/2017 Indented                       11600I                         11600     Bill of Material Lists         1          R          1         SRSDP                                       0            0            T          9999       3                                                                                                  F                                                                                                                                                                                                                                                                                   D          <<({kit.kitid} = 'F102-A117-S-02-1-00-0-00-00-A')>>,                                                                                                                                                                                                            Bill of Material Lists         1                                                                                                                                                                                                                                                                                  nul:                                                                                                                                                                                                                                                            Send To OneNote 16                                                                                                                                                                                                                                              Bill of Material Lists         @R XXXXXXXXXX    Customer ID      @R XXXXXXXXXXXXXXXXXXXXXXX Inventory ID               @R X-XX-XX                             Subaccount                             @R XXXXXXXXXX    Vendor ID        FALSE         FALSE         FALSE         FALSE         FALSE                                  8/11/2017  03:44pm    MAXQ                                            0x0000000B648C8093
FAI89                F                 201708    8/14/2017    ### TST TEST SYSTEM ###        TSTTESTRDP-Tcp#9      SRSD       SRSDP                           201708                                                                                                                                                                                                                                                                                                                                                                                                                         0       201708 1900-01-01 00:00:00     1900-01-01 00:00:00     08/14/2017 Indented                       11600I                         11600     Bill of Material Lists         1          R          1         SRSDP                                       0            0            T          9999       3                                                                                                  F                                                                                                                                                                                                                                                                                              <<({kit.kitid} = 'F102-A117-S-02-1-00-0-00-00-A')>>,                                                                                                                                                                                                            Bill of Material Lists         1         F       ({kit.kitid} = 'F102-A117-S-02-1-00-0-00-00-A')                                                                                                                                                                                                                  nul:                                                                                                                                                                                                                                                            Send To OneNote 16                                                                                                                                                                                                                                              Bill of Material Lists         @R XXXXXXXXXX    Customer ID      @R XXXXXXXXXXXXXXXXXXXXXXX Inventory ID               @R X-XX-XX                             Subaccount                             @R XXXXXXXXXX    Vendor ID        FALSE         FALSE         FALSE         FALSE         FALSE                                  8/14/2017  08:07am    MAXQ                                            0x0000000B648C8E11


Note the Where clause is removed when run through ROI

actual code that launches it:

XParmStr = "ROI.EXE " + PRMSEP + "11600/RUN" + PRMSEP + "11600I/FORMAT" + PRMSEP _
	   + "({kit.kitid} =" + RTrim(SParm(strKitID)) + ")/WHERE"
XParmStr = XParmStr + PRMSEP + "/PSCRN"
serr = Launch(XParmStr, True, True, 0)


I've tried a trigger to catch the changes to RPTRuntime, SQL Traces, running from command line.  Fails same way on multiple machines, fails same way if launch through RDT rather than VBA, fails if run from command line too

Parameters to exe seem to be the same (Fun to get, too:)

Fails:
"C:\Program Files (x86)\Microsoft Dynamics\SL\Applications\BM\1160000.EXE"  4	68656	3	PRINT	Y
Works:
"C:\Program Files (x86)\Microsoft Dynamics\SL\Applications\BM\1160000.EXE"  4	527474	3	PRINT	Y


 

Looking for ideas, really rather not write my own replacement pre-process...

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Printing Indented BOM from command line doesn't work

    This is in SL 2015, 9.02.41201.02

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

#1
Community Member Profile Picture

Community Member 136

#2
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 102 Super User 2025 Season 1

#3
REUser Profile Picture

REUser 8

Featured topics

Product updates

Dynamics 365 release plans