SAP Program ISU_EURO_TRANSFER - ISU_EURO_TRANSFER Program

Title
Euro Conversion Tool

Purpose
You use this tool as a template to convert IS-U prices (EPREIH) intoEuros. In doing so, the tool checks whether the source currency belongsto the monetary union.

Integration
You can install function module ISU_BI_ROUND (for rounding amounts),which you activate in your coding.

Features

Selection
The Simulation checkbox enables you to start the conversion,without copying the conversion to the table (standard: activated).
The Convert Critical Values checkbox enables you to remove thetolerance limit (standard: deactivated).
You must enter the date when you want to convert the values in theDate field (standard: current date).
Enter a tolerance value in the Tolerance field. All convertedvalues that are lower than this tolerance value are excluded from theconversion and displayed separately (standard: lowest tolerance ->0,00000001).

Output
After the conversion you obtain four lists:

  • Correct prices

  • Lists all converted prices that are higher than the tolerance valuethat you defined in the selection screen. The original prices are alsolisted. There is a checkbox below each individual value. In thesecheckboxes you can define whether each price should be included in thefinal transfer to the table.
    • Critical prices

    • Lists all prices that do not pass the tolerance test.
      • Existing prices

      • Lists all prices that have already been converted in the system.
        • Entries

        • Lists all prices that were selected in the Correct Prices list.This list is output once again to check the prices.

          Activities

          Example

          Technical background for programmers
          Parameters:

          • SIM - contains the checkbox for the simulation mode (standard:
          • activated).
            • DOCRIT - contains the checkbox that enables you to ignore the tolerance
            • limit (standard: deactivated).
              • DATUM - contains the date of the entries to be selected (standard:
              • current date).
                Data instructions:
                • ENTRY - contains the checkbox that appears on the list of correctly
                • transferred values.
                  • IEPREIH - copy of the EPREIH in an internal table.

                  • WEPREIH - work area for EPREIH.

                  • WEPREIH1 - used as a buffer for the output loops.

                  • IEPREIHEXISTS - saves all correctly transferred values according to the
                  • tolerance limit.
                    • IEPREIHCRITICAL - saves all converted values that fail the tolerance
                    • test.
                      • IEPREIHDONE - saves all values that have already been converted in the
                      • system.
                        • IEPREIHFALSE - saves all values that are not converted because they do
                        • not belong to the monetary union.
                          • LOC_AM(40) - saves the foreign currency to be converted.

                          • FOR_AM(40) - saves the converted local currency - euro

                          • URSPRUNGSBETRAG(40) - saves the original amount for checks.

                          • UNION - specifies whether the currency to be converted belongs to the
                          • monetary union.
                            • CORRECT_AMOUNT(40) - saves the correctly converted currency.

                            • PREISEINTRAG - saves the lines of the selected values in the report.
                            • (checkbox selection).

                              Function CONVERT_TO_LOCAL_CURRENCY
                              This function module only processes whole numbers. The values are firstmultiplied by 100.000.000, because the values to be converted must haveeight decimal places. In this way, the function module can calculatethe values. Then the value is divided by 100.000.000 and rounded toeight decimal places.

                              Tolerance limit
                              By rounding the values up and down, the function module can cause thevalue to be calculated as 0.0000000. Therefore you can specify atolerance of 0.00000001, for example, to select all values lower thanthis as critical values.