polarhas.blogg.se

Interactive reports in abap pdf
Interactive reports in abap pdf













interactive reports in abap pdf
  1. #INTERACTIVE REPORTS IN ABAP PDF PDF#
  2. #INTERACTIVE REPORTS IN ABAP PDF SOFTWARE#
  3. #INTERACTIVE REPORTS IN ABAP PDF CODE#

The createTable function does the following,ġ.

#INTERACTIVE REPORTS IN ABAP PDF CODE#

The javascript code is fired in the formready event of DIS subform. Having done this, we need a small, but a bit complicated js code in place to parse the JSON string and then automatically build table using instance managers. The form has a very simple interface where data is passed as a JSON string, we did incorporates more fields in the interface to help us manipulate the form using Java script. We had also made certain other dressups like the header, footers, and the logo. It just has a subform with a table contained in it, the table has one row and a colum Cell which is wrapped in repeatable subform name Column. The next step was to design the form which will render dynamically based on the JSON String. Tested the class and this brought out what we exactly required. So, as the first step we cloned the class CL_TREX_JSON_SERIALIZE to ZCL_TREX_JSON_SERIALIZER and made modifications to recurse method to put single quotes across data. Browsing adobe forums helped a lot to come up with a solution, I came know that JavaScript Object Notation(JSON) is way of representing data as a string object model and the same can be parsed using javascript, now I needed to find a way to convert SAP data to JSON format, browsing and searching we found a class in ABAP which converts an internal table into a JSON string and that is exactly what we wanted, but we had to clone and modify the class a bit as the JSON produced by it was not being interpreted by javascript correctly. I was aware that adobe forms can be dynamically manipulated using javascript or formcalc, and have also come across concepts of dynamically rendering sub forms using instance manager scripts.

#INTERACTIVE REPORTS IN ABAP PDF PDF#

There were also possibilities in SAP by spooling the data and converting to PDF or use of a pdf printer, but those solution had some inherent shortcomings, because as a developer we have no control on the form per se, and many finer requirements could not be met using that approach.įrom my previous experiences with Adobe forms I knew that such a requirement cannot be met just by ABAP, we need to have a multi-faceted approach, yes, we needed more arrows in the quiver.

#INTERACTIVE REPORTS IN ABAP PDF SOFTWARE#

Though initially we cowered a bit, we planned to take it as a challenge as it hurts the pride of an ABAPer when a comparison is drawn with other legacy software applications which can do such things immaculately. Off late there was bolt from the blue requirement from the client which sent a chill down the spine as we were on the verge of completion of the build, the requirement from their perspective was simple, they wished or rather wanted all the ALV reports to be displayed in PDF. Recent times has been like a storm has passed over you and am lucky to be still alive 🙂, with clients demanding more bang for the buck and difficult to appease we need to find some innovative ways to stay afloat.

interactive reports in abap pdf

Sometimes we need we come out of our shell and explore the new possiblities of combining technologies to reach a solution.

interactive reports in abap pdf

Even treading into OO ABAP is uneasy feeling and best avoided, but as time ticks on we try to keep pace with the changing technology lest we are left miles behind. For Old school developers in ABAP like myself who have found comfort working on ABAP for a decade become so ingrained in it that we fail to think out of the box, and find solace in what we know. It was quite a while that something interesting came up like this one.















Interactive reports in abap pdf