The payment program selects a postal giro office of the business partner for a payment method which is not indicated as postal giro procedure although there is also a bank entered in the master record.
Key words: SAPf110S, F110, T042Z, BNKA.
The postal giro office is indeed selected if 'Postal giro/postal check' is marked in the payment method, however, such a selection can only be made via the bank group optimization.
SolutionActivate the optimization according to bank groups in the payment method in question (transaction FBZP, payment methods in the company code).
Classify the banks that are not yet classified with 'B' and the postal giro offices with 'P'. For an automatic classification, you can use the program given below:
REPORT ZFBNKA00.
TABLES BNKA.
SELECT-OPTIONS:
BANKLAND FOR BNKA-BANKS OBLIGATORY,
BANKKEY FOR BNKA-BANKL.
PARAMETERS:
TEST LIKE RFPDO-F040TEST DEFAULT 'X'.
UPDATE BNKA
SET BGRUP = 'P'
WHERE BANKS IN BANKLAND
AND BANKL IN BANKKEY
AND BGRUP EQ SPACE
AND XPGRO EQ 'X'.
WRITE: / SY-DBCNT, 'postal giro institutions classified'.
UPDATE BNKA
SET BGRUP = 'B'
WHERE BANKS IN BANKLAND
AND BANKL IN BANKKEY
AND BGRUP EQ SPACE
AND XPGRO EQ SPACE.
WRITE: / SY-DBCNT, 'banks classified'.
IF TEST NE SPACE.
WRITE: /13 'T e s t'.
ROLLBACK WORK.
ENDIF.
No comments:
Post a Comment