Posts

Showing posts with the label PRINT

SAP ABAP How to create double rule line in Smartforms print output using table line?

Image
Working with SAP ABAP has been great and challenging. The euphoric feeling when the end user start using your program and they were awed by the output far beyond their imagination. But sometimes, all those great achievements just turn into dust when they want a simple request, from their point of view, just a very simple request, and yet you could not deliver it. Take for example the "Double Rule" in accounting reports, most specifically, the Financials Reports. FI Functional and end-user pushes that report should show the double rule line. In order to satisfy their needs, I just put '=' after printing the grand total. Though it's okey for them, but on my part I still feel uneasy for not able to deliver what they want. The very simple request were unattainable! After experimenting Smartforms, table lines and Smartstyle, Gotcha! I was able to find the solution or trick to able to show "double rule" in printing reports. Here is my simple solut

SAP ABAP Smartforms Print : How to reset page numbering

Image
Requirements: Create a print report using Smartforms. Reset page counter for every documents. Example: 1) PO # 0001 has 3 pages.    Page 1 of 3    Page 2 of 3    Page 3 of 3 2) PO # 005 has 2 pages    Page 1 of 2    Page 2 of 2 and so on... Got a quick google about the said matter and my quick search turn into hours and hours reading forums and blogs. Good thing I was able find the solution but sad part is, I was not able to bookmarked nor got the URL for the solution as I was overly excited to apply what I have found after hours of scratching my head. So for the sake of giving back, I decided to post it here hoping it could help for those soul want to learn SAP ABAP and probably to my two daughters. I could not help myself to smile while writing this stuff, imagining in the future to come, my daughters would came across reading this stuff. Anyways, here it is. The trick here is to have a header table and the detail table, wherein you have to loop in the header