Posts

Showing posts with the label SMARTFORMS

SAP ABAP: Smartforms/SAPscript formatting

Image
SAP Smartforms/SAPscript Smartforms Formatting Following are the few useful formatting options: Offset: N left-most characters of the symbol value will not be displayed. If symbol has the value 123456789, the following will be displayed: &symbol& -> 123456789 &symbol+3& -> 456789 &symbol+7& -> 89 &symbol+12& -> &symbol+0& -> 123456789   Output Length To define how many character positions should be copied from the value. If symbol has the value 123456789. &symbol(3)& -> 123 &symbol(7)& -> 1234567  The SYST-UNAME field contains the logon name of a user called Einstein. The Dictionary entry for this field contains an output length of 12. &SYST-UNAME&… -> Einstein… &SYST-UNAME(9)&… -> Einstein … &SYST-UNAME(*)&… -> Einstein … Omitting the Leading Sign The S option can be used to ensure that the value is formatted without the sign. The ITCD...

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