Smartforms Development Summary

Source: Internet
Author: User

I. Development requirements:

1. Horizontal laa4 (A4). If there are less than 20 blank lines, the header table is shown at the end of each page.

2. Read long text for material description

3. Adjust the font size and alignment mode.

Ii. Print the sample:

Iii. Problems and Solutions

1. Wrap every 20 pages, using the method of setting global variables in samrtform, each time auto-increment 1, and 20 when the remainder is 0, the page is changed

Every time g_num increases by 1, the result of MOD g_size = 20 is placed in g_newpage. If g_newpage is 0, the page is changed.

2. If there are less than 20 rows to fill in blank rows, a blank workspace is inserted into the in-network table in the ALV program.

3. Reading long text in smartforms

You can set four types of text elements:

  • Text element. The default value is the most common. You can manually enter the content.
  • Text module, where smartforms comes in, there is a text module, which is used to contain the created text module
  • Contains text, which is long text. Enter the text name, Text object, text ID, and language.

  • Another kind of text is dynamic text. You have not tried anything yet. You can study it on your own.

4. Display of the quan type in smartform

The VBFA-RFMNG to be displayed in the report is of the quan type and can be handled in either of the following ways:

(1) convert to char type. This is my recommended method. In this case, the program will use condense to remove spaces for processing, and no special processing is required in smartform.

(2) Redefine the value in the globally defined currency/quantity field. However, in this case, when a blank row is filled, the corresponding field of the blank row will always display 0.000 instead of blank, not beautiful

5. Each page shows the end of the table header. In fact, this can be easily implemented using the table. However, in this development, all templates are used, taking a detour.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.