SAP Adobe Form Tutorial. Part XVI.

SAP Adobe Form Tutorial. Part XVI. Practical Use Case of FormCalc and JavaScript

In this article, we would exhibit the utilization of Aggregate in FormCalc and afterward progressively change text style involving JavaScript in SAP Adobe structures

The fundamental benefit of utilizing prearranging is that we can further develop usefulness and can oversee structures at runtime powerfully.

SAP Adobe form supports 2 scripting languages:

  • FormCalc
  • JavaScript


Both prearranging dialects are having advantages and hindrances so we can conclude in view of our necessities which prearranging language to be utilized. In this blog, we will give not many normal business situations from both the prearranging dialects.

If it’s not too much trouble, note, we have previously distributed and article on utilization of JavaScript in Adobe Structure. You might allude it for greater lucidity.

Additionally Read: Powerfully Stow away and Show Fields involving Javascript in Adobe Structure In view of Conditions

Requirements:

Fundamental information on SAP Adobe structure with Tables
Essential comprehension of JavaScript and FormCalc capabilities
ABAP programming abilities
Business Requirements:

  1. In the definite explanation shipped off clients, we might want to show aggregate sum and absolute units as subtotal at end of all details.
  2. In the depiction segment of an assertion, we might want to show header results of the order as Striking and in various style so that recognizing the header item in entire statement is simple.Solution:
    We would have to make an Adobe structure and Point of interaction with worldwide information. We will add some test information in these worldwide information interior tables in interface “code instatement” and later tie these worldwide interior tables with UI tables in adobe structure format.

P.S. – We could likewise accomplish this by composing handling rationale in driver program and pass the necessary interior table as import boundaries of adobe structure. Since this blog is more on utilization of contents, we have not considered the best methodology for information handling.

Step by Step Process

  • Make a structure interface ZPB_TEST_SCRIPTS utilizing T-Code SFP
  • Make Worldwide Information for Subtleties and depictions inside table
  • Structure for Depiction
  • Structure for Subtleties
  • Go to code instatement and fill test information in inner tables as follow :
  • Drag Worldwide information of connection point from passed on side board to Setting of structure in right side board
  • Presently Go to Design of Adobe structure and make table utilizing these setting information planned with Worldwide factors in interface. Kindly follow the underneath steps :

a. Go to Information View Ranges from toolbar

b. Select GT_DETAILS table as featured and drop on Detail page of structure design

c. You would see a table made and naturally binded with GT_DETAILS.

d. Make a Footer Column for “Subtotal”. For that, goto Order ranges, Grow GT_DETAILS Table and make another column after Information. Go to Protest Ranges for the new column ( DATA[1] )and change the line type as “Footer”.

Kindly note that assuming we will make table component utilizing table collaborator , Footer will be made consequently. Since I went through Information view ranges, I needed to physically make footer.

Presently, we will do the intriguing step. Compose Formcalc Content to ascertain Aggregate for all detail.

  • Select text field in footer under NET_UNITS and go to prearrange supervisor
  • Presently go to Show Occasions drop down and you will find all occasions are turned gray out. WHY?
  • This is on the grounds that for few UI fields, prearranging isn’t permitted and that is the reason every one of the occasions are in show mode as it were. To empower the occasions and compose the content rationale, we really want to change the kind of UI component from “Text” to “text Field”.


Check the beneath picture. At the point when the Sort is Text, the Show occasions are turned gray out.

At the point when we transformed it to Text Field, every one of the occasions got empowered.

  • Change the UI type for NET UNITS and Absolute Eminences fields in Footer line as “Text Field”

You can see that for featured fields above, line variety has been changed to red and for different fields, it stayed blue. It is a marker to recognize text UI or textField UI.

Presently, rehash the stage 8 and 9 for choosing suitable occasion to compose a prearranging rationale.

Do you recollect our business necessity? We might want to compute the amount of all the details and show in footer line as subtotal.

  • Select Ascertain occasion from all occasions dropdown , lang. as Formcalc and compose the underneath code :
  • Presently, make a test pilot program to produce the outcome pdf ( if it’s not too much trouble, allude the past web journals to make a driver program for testing Adobe structures ) and create a pdf with subtotal :

By utilizing only a solitary Total capability and with next to no ABAP rationale, we can compute the all out of details in a table in Adobe structures and print likewise utilizing FormCalc prearranging.

There are additionally different capabilities accessible in FormCalc like Normal, Rate and so on

Time to mess with some JS (JavaScript) coding in script manager

  • Kindly recurrent stage 7 from a-c and make one more table for portrayal utilizing setting table GT_DESCRIPTION from information view.

Recollect another business necessity? We really want to set header Item in the portrayal field as Striking and with various text style and things as italic in view of Strong/ITALIC settings at runtime.

  • Select Information line of GT_DESCRIPTION table from Order and go to prearrange manager.
  • Select “structure : prepared” occasion , language as “javascript” and compose the underneath code :
  • Run the driver program made in sync 12 and actually take a look at the outcomes:

For text to be changed in Italic in view of itlalic banner, rehash ventures from stage 15 :

  1. Select “structure : prepared” occasion , language as “javascript” and compose the beneath code :

Result from Driver program :

Result

This article was to give genuine case models which engineers can imitate in their SAP scene. Subsequent to going this instructional exercise, anybody can evaluate in their own framework and utilize Java scripts and FormCalc prearranging dialects in Adobe structures. In the event that, you actually face issue, kindly go ahead and compose your inquiries in the remarks segment underneath or reach us straightforwardly at elearningsolutions.co.in.

Assuming you think our page is useful, remember to impart our connections to your companions, partners and colleagues. Do like our facebook page and follow us at twitter and instagram. Kindly buy into our youtube feed with the expectation of complimentary start to finish video courses.

YOU MAY LIKE THIS

SAP ABAP Checkpoint Group – Chase the Mysterious SAP Issues with a Smile

Best Practices for SAP ABAP Development: A Comprehensive Guide

4 Useful Tips on ABAP and ABAP on HANA

₹25,000.00

SAP SD S4 HANA

SAP SD (Sales and Distribution) is a module in the SAP ERP (Enterprise Resource Planning) system that handles all aspects of sales and distribution processes. S4 HANA is the latest version of SAP’s ERP suite, built on the SAP HANA in-memory database platform. It provides real-time data processing capabilities, improved…
₹25,000.00

SAP HR HCM

SAP Human Capital Management (SAP HCM)  is an important module in SAP. It is also known as SAP Human Resource Management System (SAP HRMS) or SAP Human Resource (HR). SAP HR software allows you to automate record-keeping processes. It is an ideal framework for the HR department to take advantage…
₹25,000.00

Salesforce Administrator Training

I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
₹25,000.00

Salesforce Developer Training

Salesforce Developer Training Overview Salesforce Developer training advances your skills and knowledge in building custom applications on the Salesforce platform using the programming capabilities of Apex code and the Visualforce UI framework. It covers all the fundamentals of application development through real-time projects and utilizes cases to help you clear…
₹25,000.00

SAP EWM

SAP EWM stands for Extended Warehouse Management. It is a best-of-breed WMS Warehouse Management System product offered by SAP. It was first released in 2007 as a part of SAP SCM meaning Supply Chain Management suite, but in subsequent releases, it was offered as a stand-alone product. The latest version…
₹25,000.00

Oracle PL-SQL Training Program

Oracle PL-SQL is actually the number one database. The demand in market is growing equally with the value of the database. It has become necessary for the Oracle PL-SQL certification to get the right job. eLearning Solutions is one of the renowned institutes for Oracle PL-SQL in Pune. We believe…
₹25,000.00

Pega Training Courses in Pune- Get Certified Now

Course details for Pega Training in Pune Elearning solution is the best PEGA training institute in Pune. PEGA is one of the Business Process Management tool (BPM), its development is based on Java and OOP concepts. The PAGA technology is mainly used to improve business purposes and cost reduction. PEGA…
₹27,000.00

SAP PP (Production Planning) Training Institute

SAP PP Training Institute in Pune SAP PP training (Production Planning) is one of the largest functional modules in SAP. This module mainly deals with the production process like capacity planning, Master production scheduling, Material requirement planning shop floor, etc. The PP module of SAP takes care of the Master…
X
WhatsApp WhatsApp us
Call Now Button