Ansicht
Dokumentation

RPU12PH0 - Insert empty lines in table T512P.

RPU12PH0 - Insert empty lines in table T512P.

CPI1466 during Backup   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

The program helps to carry out the following operations during the maintenance of table T512P:

  • Inserting rows from a specific row even in the case of forms that use several form codes (FORML) (e.g. because the form did not fit into the 100 rows that can be specified for a form code);
  • Saving records with a specific key to a local file (you can even save records which belong to two different form codes simultaneously);
  • Uploading records from a local file (you can specify language, country modifier and form code for inserting into the table).

Table T512P

Table T512P lets you set the structure and the content of forms and printed forms:

Field,,Function,,Type (length)

SPRSL,,Language,,LANG (1)

MOLGA,,Country modifier,,NUMC (2)

FORML,,Form code,,CHAR (4)

LINNO,,Sequence number in the form,,NUMC (2)

LINDA,,Line content,,CHAR (132)

Notes for saving to or uploading from a local file:

  • When saving to a local file, the file created will also have the same structure (ASC format).
  • When uploading from a local file, the program also expects this structure (and format)! Please note that rows in which the form codes do not change will be imported to the T512P table by using the first one of the two form codes that can be specified as parameters beginning with the first row of the file. When proceeding in the file, the form codes assigned to the individual rows change, then the file rows will be imported to table T512P with the second form code specified as parameter from there on up to the third form code change. Rows after the third form code change will not be uploaded to table T512P.

Using the program

The program uses the following form identifier keys and parameters:

  • Language: Language key
  • Country code: Country modifier
  • Form: Form code (1)
  • Starting line: Place of insertion (first line)
  • Number of lines: number of lines to be inserted
  • Continue on another form?: If the second form code also has to be considered
  • On which form to continue: form code (2)
  • Hold, Insert, Download, Upload: Querying table Content, Insert new lines, Download table content to local file, Upload table content from local file
  • Test?: Displays the result of the selected operation on the screen without executing it
  • File name: enter here the file name for executing download/upload

Test run

When using any of the functions, the result of the operation can be displayed before executing the actual modifications by activating the Test function. In this case, the appropriate records of table T512P will be listed in the same format as they would be included in the table (insertion, upload) or downloaded into a file (download). It is recommended to always run the program in test mode first.

Listing table content

When entering T in the Hold, Insert, Download, Upload field, the fields of table T512P with the specific key will be listed.

Further parameters required: Language, country code, form code (1)

Optional parameters: Form code (2) - if the field Continue on another form? is selected; table rows belonging to this form code will also be included in the list

Inserting new rows

In case of entering B in the field Hold, Insert, Download, Upload, a given number of rows will be inserted into table T512P.

If the content of the entire form only fits into several forms, the code of the form can also be entered on which the form is continued. This way, the rows of the second form will also be shifted properly when inserting, and the rows of the first form will also be shifted to the second one.

If only the first form code is specified, you can insert as many rows as there are still available after the last form row. If both form codes are specified, you can insert as many rows as the number of free rows available on the form secondly specified.

Further parameters required: language, country code, form code (1), starting row, number of new rows

Optional parameters:

Form code (2) - if the Continue on another form? field is selected; table rows belonging to this form code will also be considered when inserting

Test? - If you only want to list the effect of the run by using the parameters specified

Download into local file

When entering L in the field Hold, Insert, Download, Upload, the specified records of table T512P can be saved to a local file.

It is possible to enter two form codes; in this case, records belonging to both form codes will be downloaded.

Further parameters required: Language, country code, form code (1), file name (download, upload)

Optional parameters:Form code (2) – if the Continue on another form? field is selected; table rows belonging to this form code will also be downloaded

Upload from local file

When entering F in the field Hold, Insert, Download, Upload, the specified records of table T512P can be saved to a local file.

If you want to upload form records belonging to two different form codes (or even two independent forms with common language and country code) from the file simultaneously, rows will be uploaded to table T512P with the first one of the two form codes that can be specified as parameters up to the point when the form code changes. When proceeding in the file, the form codes assigned to the individual rows change, then the file rows will be imported to table T512P with the second form code specified as parameter from there on up to the third form code change. Rows after the third form code change will not be uploaded to table T512P

Creating the appropriate file format enables you to (locally) edit the forms included in table T512P by using a text editor. After this, you only need to upload the complete form to the table (in this case, the use of the test button is especially recommended for the first run).

Further parameters required: Language, country code, form code (1), file name (download, upload)

Optional parameters: Form code (2) - If the Continue on another form? field is selected; records with different form codes can also be uploaded from the file

Output






Addresses (Business Address Services)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 7227 Date: 20240601 Time: 114924     sap01-206 ( 119 ms )