Programme SAP RN1VER00 - Transfer Data to Create Patient Transfer (NV11)

Description
With this report, you can load transfers with a batch-input using thetransaction NV11. A batch-input-session for the transaction NV11(Create transfer) will be created for errored records
Here a sequential dataset can be read and processed with help from thestructure information tables TNT2 and TNT2S. If you would next like totest the reading of the sequential dataset, you can run the report inthe test mode. With this, no batch-input-session is created, instead,only the field values are displayed on each of the screens. The testmode is especially equipped to check the structure definition of thesequential dataset.

Precondition
If the record length of the seq. dataset is more than 1024 Bytes, thenthe length of the buffer variable REC in the include-report RNIVER02must be appropriately changed.
A structure definition (tables TNT2 and TNT2S) must exist for thesequential dataset. At the start of the report, you must also enter therecord code of the records to be processed and the entire name of thesequential dataset. If the sequential dataset contains various recordtypes (which is normally the case), the appropriate field must bechecked off on the selection screen and the offset and the length ofthe record type indicator must be entered.
You can execute possible necessary conversion of the field formats inthe following manner:
Define a corresponding form routine in the report RNILSI20. All changesto the format you can execute with the field symbol . Theconversion should be set up so that a valid entry format for each entryfield is reached. You can enter the name of the form routine in thefield TNT2-FORM of the table TNT2.
In order to read the patient number from thePatient-Case-Reference-table, the indicator 'Refresh pat.no.' must bechecked off in the selection screen.

Output
If the field "Test mode" is selected, no batch-input-session will becreated. If you check off "Error log", possible errors will be loggedfor you. The "Total log" shows you all screen fields with each of thefields' contents.
If you have created a batch-input-session, you can process this withthe transaction SM35 (System -> Services -> Batch-Input -> Process) andif needed analyze it and execute it.

Example
You can obtain examples of form routines from the report RNILSI20.
An example of the structure description of a dataset for the transferis stored under the code RNVER in the tables TNT2 and TNT2S.
Multiple data records are at issue here, differentiated by the recordtype (VER, BEM). For every record with the record type VER, a preferrednumber of BEM records can exist. The BEM records can be used to createunstructured information as long text (in Sapscript format).Additionally, from the batch-input report, when the comment field onthe screen "Create transfer" is clicked on, then a table filled by therecords from the record type BEM will be filled line by line. Therecord type VER is internally coded in the report as a main recordtype.