Sie sind auf Seite 1von 8

***********************************************************************

*
*
*
* Sammelberweisungsauftrag-Druckprogramm J_1BPPTR
*
*
***********************************************************************
*

*---------------------------------------------------------------------*
* Das Programm includiert:
*
*
*
* RFFORI0M Makrodefinition fr den Selektionsbildaufbau
*
* RFFORI00 Deklarationsteil der Zahlungstrger-Druckprogramme
* RFFORIB0 Additional declarations for Brazil
*
* RFFORIY2 DME A/P Brazil, Bancos Itau and Bradesco
*
* RFFORI06 Avis
*
* RFFORI07 Zahlungsbegleitliste
*
* RFFORI08 Sammelberweisungsauftrag
*
* RFFORI99 Allgemeine Unterroutinen der Zahlungstrger-Druckprogramme
*
* RFFORIY9 Additional subroutines for Brazil
*
*---------------------------------------------------------------------*

*---------------------------------------------------------------------*
* Report-Header
*
*---------------------------------------------------------------------*
REPORT RFFOBR_U MESSAGE-ID F0
LINE-SIZE 132

NO STANDARD PAGE HEADING.

*---------------------------------------------------------------------*
* Segmente
*
*---------------------------------------------------------------------*
TABLES:
REGUH,
REGUP.

*---------------------------------------------------------------------*
* Makrodefinitionen
*
*---------------------------------------------------------------------*
INCLUDE RFFORI0M.
*---------------------------------------------------------------------*
*
PDF Form Data Declaration By C5056155 on 22-Mar-2005
*---------------------------------------------------------------------*
INCLUDE RFFORIP1.

INITIALIZATION.
*---------------------------------------------------------------------*
* Parameter und Select-Options
*
*---------------------------------------------------------------------*
BLOCK 1.
SELECT-OPTIONS:
SEL_ZAWE FOR REGUH-RZAWE,
"Payment methods
SEL_UZAW FOR REGUH-UZAWE,
"Zahlwegzusatz
SEL_HBKI FOR REGUH-HBKID,
"Hausbank (Kurzschlssel)
SEL_HKTI FOR REGUH-HKTID,
"Kontenverbindung
(Kurzschlssel)
SEL_WAER FOR REGUH-WAERS,
"Whrungsschlssel
SEL_VBLN FOR REGUH-VBLNR.
"Zahlungsbelegnummer

SELECTION-SCREEN END OF BLOCK 1.


BLOCK 2.
AUSWAHL: ZDRU Z, XDTA W, AVIS A, BEGL B.
SPOOL_AUTHORITY.
"Spoolberechtigung
SELECTION-SCREEN END OF BLOCK 2.
BLOCK 3.
PARAMETERS:
PAR_UNIX LIKE RFPDO2-FORDNAMD,
PAR_DTYP LIKE RFPDO-FORDDTYP,
PAR_CRLF like RFPDO1-fordcrlf,
PAR_ANZP LIKE RFPDO-FORDANZP,
PAR_ANZB LIKE RFPDO2-FORDANZB,
PAR_MAXP LIKE RFPDO-FORDMAXP,
PAR_EPOS LIKE RFPDO-FORDEPOS,
PAR_BELP LIKE RFPDO-FORDBELP,
PAR_ESPR LIKE RFPDO-FORDESPR,
PAR_ISOC LIKE RFPDO-FORDISOC.
SELECTION-SCREEN END OF BLOCK 3.

"Filename (bei DTA)


"Ausgabemedium
"Auswahl des Zeilenvorschubs
"Anzahl Probedrucke
"Anzahl Probedrucke
"max. Postenzahl in Begleitliste
"Einzelposten auf Zahlungstrger
"Zahlungsbeleg-Verprobung
"Texte in Empfngersprache
"Whrung in ISO-Code

BLOCK 4.
PARAMETERS:
PAR_BAAV LIKE J_1BDMEXA-A27,
"Avis from bank to vendor
* Version selection for ITAU 010, 020, 050
PAR_VER type FIAPBR_VERSION default '010',
" Version number
* Version selection for Febraban 030, 040, 050
* PAR_FBLA(3) type n default '050'.
PAR_FBLA TYPE FIAPBR_VERSION DEFAULT '087'.
PARAMETERS: par_J52 TYPE J_1BJ52 DEFAULT 'X'.
the segment J-52

"Checkbox for

PARAMETERS: par_amt like reguh-rwbtr DEFAULT '250000.00'.


Threshold Value
* BANK ACCOUNT RAZO NUMBER : Bradesco_HR
* To be filled differently by different companies depending on
* whether they are public, private or mixed enterprises
parameters:
par_razo(5) type n.
SELECTION-SCREEN END OF BLOCK 4.
PARAMETERS:
PAR_VARI(12) TYPE C
PAR_SOFO(1) TYPE C

NO-DISPLAY,
NO-DISPLAY.

"J-52

CONSTANTS:
format_name(6) TYPE C VALUE 'SISPAG'.
*---------------------------------------------------------------------*
* Vorbelegung der Parameter und Select-Options
*
*---------------------------------------------------------------------*
PERFORM INIT.
TEXTZDRU = TEXT-101.
SEL_ZAWE-LOW
= 'U'.
SEL_ZAWE-OPTION = 'EQ'.
SEL_ZAWE-SIGN
= 'I'.
APPEND SEL_ZAWE.
PAR_BELP
PAR_ZDRU
PAR_EPOS
PAR_XDTA
PAR_DTYP
PAR_AVIS
PAR_BEGL
PAR_CRLF
PAR_ANZP
PAR_ANZB
PAR_ESPR
PAR_ISOC
PAR_MAXP

=
=
=
=
=
=
=
=
=
=
=
=
=

SPACE.
'X'.
'X'.
SPACE.
'0'.
SPACE.
'X'.
2.
2.
2.
SPACE.
SPACE.
9999.

*---------------------------------------------------------------------*
* Tabellen / Felder / Field-Groups / At Selection-Screen
*
*---------------------------------------------------------------------*
INCLUDE RFFORI00.
*- Prfungen bei DTA
--------------------------------------------------IF PAR_XDTA NE SPACE.
IF PAR_DTYP EQ SPACE.
PAR_DTYP = '0'.
"Diskette in TemSe
ENDIF.
IF PAR_DTYP NA '012'.

SET CURSOR FIELD 'PAR_DTYP'.


MESSAGE E068.
ENDIF.
ENDIF.
AT SELECTION-SCREEN ON PAR_EPOS.
IF PAR_EPOS NE SPACE.
PAR_EPOS = 'X'.
ENDIF.

*---------------------------------------------------------------------*
* Kopfzeilen (nur bei der Zahlungsbegleitliste)
*
*---------------------------------------------------------------------*
TOP-OF-PAGE.
IF FLG_BEGLEITL EQ 1.
PERFORM KOPF_ZEILEN.
ENDIF.

"RFFORI07

*---------------------------------------------------------------------*
* Felder vorbelegen
*
*---------------------------------------------------------------------*
START-OF-SELECTION.
*- TemSe-Parameter setzen
---------------------------------------------HLP_TEMSE = '0---------'.
"Reportspezif. TemSe-Parameter
HLP_AUTH = PAR_AUTH.
"spool authority
PERFORM VORBEREITUNG.
INCLUDE RFFORIB0 .
declarations
INCLUDE RFFORIB2.

"Additional

*---------------------------------------------------------------------*

* Daten prfen und extrahieren


*
*---------------------------------------------------------------------*
GET REGUH.
CHECK SEL_ZAWE.
CHECK SEL_UZAW.
CHECK SEL_HBKI.
CHECK SEL_HKTI.
CHECK SEL_WAER.
CHECK SEL_VBLN.
PERFORM PRUEFUNG.
PERFORM EXTRACT_VORBEREITUNG.
PERFORM SORTBANK.
* check ITAU layout version number
IF REGUH-UBNKL(3) EQ '341'.
if par_ver ne '010' and par_ver ne '020' and
par_ver ne '050' and par_ver ne '080'.
message e420(fb) with text-121.
endif.
endif.
* check Febraban layout version number
if reguh-ubnkl(3) ne '237' and reguh-ubnkl(3) ne '341'.
if PAR_FBLA ne '030' and PAR_FBLA ne '040' and
PAR_FBLA ne '050' and PAR_FBLA ne '087'.
message e420(fb) with text-122.
ENDIF.
ENDIF.
GET REGUP.
PERFORM SORTBOLETO.
PERFORM EXTRACT.

*---------------------------------------------------------------------*
* Bearbeitung der extrahierten Daten
*
*---------------------------------------------------------------------*
END-OF-SELECTION.
IF FLG_SELEKTIERT NE 0.
IF PAR_XDTA EQ 'X'.

PERFORM DME_BRAZIL.
ENDIF.

"RFFORIY2

IF PAR_ZDRU EQ 'X'.
PERFORM SAMMELUEBERWEISUNG.
ENDIF.

"RFFORI08

IF PAR_AVIS EQ 'X'.
PERFORM AVIS.
ENDIF.

"RFFORI06

IF PAR_BEGL EQ 'X' AND PAR_MAXP GT 0.


FLG_BANKINFO = 2.
PERFORM BEGLEITLISTE.
ENDIF.

"RFFORI07

ENDIF.
PERFORM FEHLERMELDUNGEN.
*

PERFORM INFORMATION.
PERFORM information_2.

*---------------------------------------------------------------------*
* Unterprogramm Sammelberweisungsauftrag
*
*---------------------------------------------------------------------*
INCLUDE RFFORI08.

*---------------------------------------------------------------------* Subroutine DME for Brazil


*---------------------------------------------------------------------INCLUDE RFFORIY2.

*---------------------------------------------------------------------*
* Unterprogramm Avis ohne Allongeteil
*
*----------------------------------------------------------------------

*
INCLUDE RFFORI06.

*---------------------------------------------------------------------*
* Unterprogramm Begleitliste
*
*---------------------------------------------------------------------*
INCLUDE RFFORI07.

*---------------------------------------------------------------------*
* Allgemeine Unterroutinen
*
*---------------------------------------------------------------------*
INCLUDE RFFORI99.
INCLUDE RFFORIY9.
"Subroutines
Brazil