pegaga1979
21st December 2018, 11:50
Hi,
I would like to use standard session "Print bill of material multilevel" to print by bom. However, I would like report print only for 2 item groups only.
as i can't amend the session, i would like to put instruction at report.
Does anyone can advice me on this?
Thank you.
mark_h
21st December 2018, 15:48
Wait for someone who know LN.
What I would do in 4c4 is either create my own session and use AFS code to print them in the background. Or I would create a new session copy the form to the new session and restrict options on it - but use the actual script from standard code. And a third option I have is to use Qkey(source extender) and just put code it to restrict the report option to what I want. Now wait for someone who knows LN - it probably has a better option.
Ajesh
25th December 2018, 20:22
Well, you could use wrapper, but that would be a customized session and not standard.
Also,Not sure, if you have extensibility in your system as it is 10.1 but you could give it a try , putting it in before print.data or continue.process, resetting Item Group as the one which you want.
pegaga1979
27th December 2018, 04:58
Hi Mark and Ajesh,
Thank you for the feedback.
Actually i tried to copy the session but can't copy the script from the session.
Seems i need to create new session for this.
However, I do not know how i want to assign the session to read from the table as it is show only a single bom.
That's why i'm thinking to use the current session and just add code at report that only print out if .mitm is either these 2 item groups.
mark_h
27th December 2018, 16:52
If I did not own source code I can add a field on the form - but it would have to be one that is defined in the session script. Then add the field to the report - then only print those records that match. The problem is that the session script has to send the data to the report with each record. A wrapper script is best, but I did this one with one baan session. In my case I was able to add a field to the form and then in the report just skip everything that did not match what as on the input field. Not very efficient because basically you were running the report wide open - then not filtering until you got the report.
bdittmar
28th December 2018, 11:22
Hello,
is your requirement based on session tibom1411m000.
If you don't own sourcecode, you have to develop your own session within the logic of tibom1411.
I will give you some hints when i have access to my Infor - Systems next week.
Session dhbom1411m000 is extended with selection of tcibd001.citg and tcibd001.dscb for mitm.
Form attached.
Regards
Ajesh
30th December 2018, 03:50
You could copy the standard report also, and in the customized report, based on the condition, do latr.print = false.
bdittmar
30th December 2018, 17:04
Therefor you have to select all tibom010.mitm in the range from
"" to "ZZZZZZZZZZZZZZZZZZZZZZZZ......"
Should comsume a lot of time.
Regards
pegaga1979
15th January 2019, 09:04
Hi,
I'm using session tibom1411m000 to print all.
pegaga1979
15th January 2019, 10:24
You could copy the standard report also, and in the customized report, based on the condition, do latr.print = false.
i'm trying to do that, but it still print at the header.
every mitm is separated by page.
so, i just able not print the details but not the header/skip the page.