SAP Program RJHVSW01 - IS-M: Interface preparation for VSW companies

Description
This program uses particular selection criteria to generate theinterface file for VSW companies on a daily basis. A sequential file iscreated which can then be transferred to an external system by FTP.

Precondition
This program can only be executed in the background and the selectionparameters should be maintained in a variant.
Before this program is executed for the first time, you should maintainthe customizing tables for determining the output code and theassignment of particular conditions to the VSW fields for thepublication data such as rate amount, contract and frequency discountand the VSW fields for discount and surcharge. You find these tables inCustomizing: Customizing - SAP Media - Tools - Data Import/Export - VSWinterfaces. You will find information on how to maintain these tablesin the relevant steps in Customizing.
When creating the sequential file, checks should be made to see if thelogical file name "ISMAM_VSW_CH" has been maintained in Customizing.The physical file name specified under this path must contain thefollowing combination: mmdd for month/day and hhmm for hours/minutes(e.g.:/tmp/vsw-mmdd-hhmm). When the program is run, these combinationswill be replaced with the creation month and date and the creation timein hours and minutes. This creation data is also stored in tableTJHVSW03 as key values. This creates a direct connection between thesequential field and the table entries for the VSW interfaces. You willfind these customizing entries under: Customizing - Basis Services -System Administration - Platform-independent file names.

Selection parameters
Payer:

  • You must enter the relevant VSW payer.

  • Date on which services were performed:
    • You can enter the period for publication dates here. However, you
    • cannot make any entry here if an entry has been made for the "Selectionperiod in days" parameter.
      Selection period in days:
      • You can enter the period for publication dates in days here. However,
      • cannot make any entry here if an entry has been made for the "Date onwhich services were performed" parameter.
        Newspaper code
        • You must enter the newspaper code for the publisher here.

        • List output only:
          • You can set the indicator here so that list output should be performed
          • without VSW interface preparation.
            Generate VSW interface:
            • You can set the indicator here so that the VSW interfaces are prepared,
            • and the billing dataset and VSW data update is updated in TableTJHVSW03.

              Procedure
              This program selects the relevant billing dataset records and accordingto the selection generates:

              • A list of the VSW data prepared or

              • A sequential file of the VSW interfaces data prepared and an
              • update of the billing dataset records (Set Characteristic 9 indicator)and update the VSW data prepared in the SAP DB table (TJHVSW03).
                If it is necessary to transfer VSw interfaces which were deliveredearlier to the companies, you can generate a sequential file again fromTable TJHVSW03 using report RJHVSW02.
                Report RJHVSW03 can be used to reorganize Table TJHVSW03.
                Orders are blocked before the billing dataset records are updated.
                If order blocking or the billing dataset records update fails, thenorders that have already been blocked are released and interfacepreparation is cancelled.

                Associated objects:
                Programs:

                • RJHVSW01 Creates VSW interface data RJHVSW02

                • RJHVSW02 Creates VSW interface data from Table TJHVSW03

                • RJHVSW03 Reorg Table TJHVSW03

                • Function module:
                  • ISMAM_GRPFAK_STATUS_UPDATE Sets characteristic 9 indicator in Table
                  • JHAGA
                    Tables:
                    • TJHVSW01 Assign conditions to VSW fields

                    • TJHVSW02 Derive output code

                    • TJHVSW03 Save the VSW interface data prepared