Posted: Mon Oct 01, 2007 10:42 am Post subject: Clearing Customer Documents
Code:
FUNCTION Z_CUSTOMER_CLEARING.
*"----------------------------------------------------------------------
*"*"Local interface:
*" IMPORTING
*" REFERENCE(I_BKPF) LIKE BKPF STRUCTURE BKPF
*" EXPORTING
*" REFERENCE(E_MSGID) LIKE SY-MSGID
*" REFERENCE(E_MSGNO) LIKE SY-MSGNO
*" REFERENCE(E_MSGTY) LIKE SY-MSGTY
*" REFERENCE(E_MSGV1) LIKE SY-MSGV1
*" REFERENCE(E_MSGV2) LIKE SY-MSGV2
*" REFERENCE(E_MSGV3) LIKE SY-MSGV3
*" REFERENCE(E_MSGV4) LIKE SY-MSGV4
*" REFERENCE(E_SUBRC) LIKE SY-SUBRC
*" TABLES
*" T_BSID STRUCTURE BSID
*" T_BLNTAB STRUCTURE BLNTAB
*" EXCEPTIONS
*" CLEARING_PROCEDURE_INVALID
*" CLEARING_PROCEDURE_MISSING
*" TABLE_T041A_EMPTY
*" TRANSACTION_CODE_INVALID
*" AMOUNT_FORMAT_ERROR
*" TOO_MANY_LINE_ITEMS
*" COMPANY_CODE_INVALID
*" SCREEN_NOT_FOUND
*" NO_AUTHORIZATION
*" ERROR
*"----------------------------------------------------------------------
DATA lt_bseg TYPE bseg.
DATA anz_mode LIKE RFPDO-ALLGAZMD VALUE 'N'.
DATA: l_t_blntab TYPE blntab OCCURS 0 WITH HEADER LINE,
l_t_ftclear TYPE ftclear OCCURS 0 WITH HEADER LINE,
l_t_ftpost TYPE ftpost OCCURS 0 WITH HEADER LINE,
l_t_fttax TYPE fttax OCCURS 0 WITH HEADER LINE.
DATA l_group LIKE apqi-groupid.
IF t_bsid[] IS INITIAL.
RAISE TOO_MANY_LINE_ITEMS.
ENDIF.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.