
- #The inn between page count how to#
- #The inn between page count code#
Lw_count is taken as the counter for the number of line items that would fit in one page. Lst_lips_kna1-page_total = gw_page_total. READ TABLE gt_lips_kna1 INTO lst_lips_kna1
Gst_lips_kna1-page_total = gw_page_total. Lw_count = ( gw_page * 30 ) + 1.” All the line items would be in the multiple of 30 + 1. ” It is set 31 here for the number of line items, the value would differ according to the line items one needs to print in a page In the initialization, we need to count the total number of pages for each new ship-to, the same variable is saved in the final table (used as in loop). We just need to click on sort begin and sort end. Sort beginning and end areas are created automatically at the time when the sort is applied at the table.
Sort Beginning (would go here again for the next new document number). The flow here for page break logic would always go as below: To achieve the above requirement, events in the smartforms would be used. The second ship-to number has 1 page, so here the page number would be of 1. Say, for instance, there are 2 ship-to numbers the first ship-to number has 2 pages of data, so, the page number here should be printed as: Taking the above given example, in case the page break is in the occurrence of new ship-to number, the page number should reset, rather than the continuous increment of the page number. There could be a requirement, wherein the page numbers are to be reset according to the document number. Generally, in smartforms, we would use the system fields for printing the page number. This would be the first page and the next page would have a different ship to number The output of the form would be as below: This command would be to print the new ship-to party and its corresponding data in the new page. Right click on the event and create a command. An automatic event would be created named KUNNR. Sort the table, in which our loop is present on the basis of the field where the page break is to be applied in this case, it would be “Ship-to” (KUNNR). #The inn between page count code#
The below steps are followed and code is applied for the page break:
#The inn between page count how to#
This blog contains the detailed description about how to set the page break, based on the document number and page number reset. To print the subtotal of the smartform.įor printing the sub total of the smartforms, the links are already available.Page break based on the document(sales order number, delivery number, ship-to number).The events in the smartforms are helpful in the requirements, where we need the following scenarios to be done: