头图

A set of step-by-step learning tutorials for SAP UI5 beginners

About the Author

Jerry Wang, joined the SAP Chengdu Research Institute after graduating from the University of Electronic Science and Technology of China with a master's degree in computer science in 2007. Jerry is a SAP Community Mentor and a SAP China Technology Ambassador. In his 15-year career in SAP standard product development, Jerry has participated in the research and development of standard products such as SAP Business ByDesign, SAP CRM, SAP Cloud for Customer, SAP S/4HANA, and SAP Commerce Cloud (e-commerce cloud).

Jerry uses ABAP, Java, JavaScript and TypeScript for development, and has in-depth research on various SAP self-developed frameworks including SAP UI5.

Tutorial Directory

illustrate

Jerry has been in contact with SAP UI5 since joining the CRM Fiori development team of SAP Chengdu Research Institute in 2014. He has published many articles on the working principle and source code analysis of SAP UI5 in the SAP community and the WeChat public account "Wang Zixi".

In Jerry's article , a novice who knows nothing about SAP UI5, which materials are better to start with? As I mentioned, Jerry has also come all the way from a SAP UI5 rookie. He knows that it is not easy for developers with only ABAP development background to transform into the SAP UI5 development field, so I designed this learning tutorial for SAP UI5 beginners in my spare time. , Divide the process of developing a complete SAP UI5 application into several steps, and strive to cover all the knowledge points involved in each step. These knowledge points may not be as in-depth as my UI5 source code analysis series articles, but strive to be easy to understand and easy for SAP UI5 beginners to understand.

The source code of each step of this tutorial is stored on my Github , identified by folders 01, 02, 03, etc. For example, the source code of step 1 is here .

Each step builds on the previous step with several new features added. It is recommended that beginners with zero foundation or little knowledge of SAP UI5 learn step by step from the first step in order, download these codes to the local, cooperate with the text explanation of the tutorial, and do it yourself to deepen the understanding.

If you have any questions about each step of the tutorial, you are welcome to comment and leave a message in the article corresponding to the steps of the tutorial.

Many friends are asking me how to implement the print function of SAP UI5, and this step will specifically introduce this requirement.

There are two ways to realize the printing function of SAP UI5 application:

  • The first idea: generate the source code of the document to be printed in the background server, such as PDF, Word or Excel and other formats, and then pass it to the SAP UI5 application through HTTP request. If the background system connected by SAP UI5 is ABAP, then generating documents in these formats on the ABAP side is one of ABAP's strengths. It will be introduced later in this tutorial.
  • The second idea: in the foreground, that is, the SAP UI5 application, generate the content of the document to be printed. This is the implementation that will be detailed in this step.

Open the following url:

http://localhost:8080/index.html

Click 打印 button:

You can see that the print preview interface (Print Preview) that comes with the browser pops up, as shown in the following figure. The left side of the preview page is the interface preview of the final form to be printed, and the right screen is to select the printer, the number of pages to be printed, whether the print layout is Portrait or Landscape, the paper size, and so on.

The following are the detailed steps to realize the printing function.


注销
1k 声望1.6k 粉丝

invalid