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.