Page 1 of 1

Przykład implementacji rozszerzeń ekranu selekcji dla VAT/ Example selection screen extensions for VAT

Posted: Wed Aug 24, 2016 10:50 am
by moderator
In order to add additional selection fields for VAT JPK special user exits, implemented via includes, are prepared:
ZXJPK_DYN_VAT - include screen extensions for VAT (genral name ZXJPK_DYN_*, where * stands for JPK file code)
ZXJPK_INITIAL and ZXJPK_ALL_INITIAL - includes that can be used to define texts for screen extensions.
Usually the same code should be put into ZXJPK_INITIAL (used in /BCC/JPK transaction) and ZXJPK_ALL_INITIAL (used in /BCC/JPKZ transaction)

Code: Select all

*&---------------------------------------------------------------------*
*&  Include           ZXJPK_DYN_VAT
*&---------------------------------------------------------------------*
SELECTION-SCREEN BEGIN OF BLOCK bl_vat_gd0.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 1(30) text_401, POSITION 32.
SELECT-OPTIONS s4_blart FOR bkpf-blart.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK bl_vat_gd0.
SELECTION-SCREEN BEGIN OF BLOCK bl_vat_gd1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 1(30) text_402, POSITION 32.
SELECT-OPTIONS s4_HKONT FOR bset-HKONT.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK bl_vat_gd1.

Code: Select all

*&---------------------------------------------------------------------*
*&  Include           ZXJPK_INITIAL
*&---------------------------------------------------------------------*

*WB wyciągi bankowe
text_201 = 'Kod operacji bankowej'.
text_202 = 'Zwen. operacja gosp.'.

*MAG magazyn
"text_301 = 'Rodzaj zamówienia dla PZ'.
text_302 = 'MM - Ruch dla podwykonawstwa'.
text_303 = 'PZ - Zlecenia kontrolingowe'.
text_304 = 'PZ - Zlecenia procesowe'.

text_401 = 'Przyp. odb.
text_402 = 'Konto VAT nie do odliczenia'.
text_500 = 'Kod podatku do korekty'.