Good day experts...
Actually this problem puzzled me since yesterday when I am developing a customized printout for PO.
Right now, we have an existing form for our PO.. The management asked me to do another PO form for the second company. Thus, there will be two layouts of PO... Since the content are just the same, I just copied the program of our existing PO and make the necessary adjustment for the new layout for our new PO. My problem now is the Main Window for the second PO...
As far as I know, only One main window is allowed in every Page. So what I did was, I created two tables (let say Table 1 and Table 2.) inside the main window. I just placed condtions on the condition tab of both tables that when user selected company A, Table 1 will be displayed. Otherwise Table 2 will be displayed if company B is selected.
Now, I have produced correct output. My only problem now is, the height of the second window which must be shorter than the first PO. I am aware that the main window's height is fixed and cant be changed dynamically.
Before I write this post, I google(search) the net to view some possible solutions. One option that it was suggested is to create another page, say Page2... On that second page, create another main window which is smaller in height.. This would be the second PO. On the main window of the first Page, insert a command line. Then, pinpoint to the second page when the condtion is true.
This technique was not successful when I tried. Since when i try to see the prinout of the PO, the first page is blank and the detail of the PO is on the second page which should NOT be.
Another possible way to solve this problem that I think is , create a separate smartform for the second company. In this case, no worry about the height of the main window. However, my problem that I forsee is, how can I implement on ME23N, to pinpoint two separate smartforms?
Thanks in advance experts... I hope to hear your wonderful ideas...