Quantcast
Channel: Microsoft Dynamics SL Forum - Recent Threads
Viewing all articles
Browse latest Browse all 2378

Printing Indented BOM from command line doesn't work

$
0
0

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...


Viewing all articles
Browse latest Browse all 2378

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>