SAP Jobsuche bei DV-Treff


Suchen
energy
vor 10 Jahre
Habe den Join KNA1, KNBK mit TIBAN angelegt um zu den Kunden die IBAN angezeigt zu bekommen..klappt aber nicht.

ich bekomme alle IBAN angezigt die im System angelegt wurden..deshalb habe ich recherchiert und folgendes von 2007 umgesetzt..natürlich mit den Kundentabellen...funktioniert aber leider nicht....HIIILFE :)

Try the following plan. The plan is to create a new field to populate with the maximum of the dates and make it compare with the valid from dates. Strike the difference between these two fields. Pull only those records where the valid from date is equal to maximum date.

Go to the infoset. Click on Extras. Create an additional field say MAXDATE LIKE TIBAN-VALID_FROM.

Go to the coding section and give the following coding

DATA: ZMAXDATE LIKE TIBAN-VALID_FROM.

CLEAR:ZMAXDATE, MAXDATE.

SELECT MAX( VALID_FROM ) FROM TIBAN INTO ZMAXDATE WHERE

BANKS = LFBK-BANKS AND

BANKL = LFBK-BANKL AND

BANKN = LFBK-BANKN.

MAXDATE = ZMAXDATE.

Generate, save, assign the additional field to a field group.

Also include VALID_FROM field of TIBAN table into the field group.

Go to query, and create a local field called Difference, by enabling short names on. Give the ZMAXDATE field as MAX and TIBAN-VALID_FROM as VALFROM. Give the formula for the new field as difference between VALFROM - MAX.

Include the new field in the selection parameters. When running the report restrict the DIFFERENCE field = 0.

waltersen
vor 10 Jahre
Hallo,

ich habe mal versucht, einen Quickview über KNA1, KNBK und TIBAN zu bauen.

Der führt zu keinen guten Ergebnissen, da der Join zu schwach ist. Leider lassen sich die Felder Kontonummer nämlich nicht joinen, da die Definition in der einen Tabelle CHAR18 und in der anderen CHAR35 ist.

Ich bin kein Programmierer, ich weiß nicht ob man das irgendwie mit ABAP bereinigen kann. Mit Quickview funktioniert es (mit vernünftigen Resultaten) jedenfalls nicht.

pushover
vor 10 Jahre
Hallo energy,

etwas verspätet aber vielleicht hilft Dir dies weiter.

Habe mir aus dem Grund (Query bringt keine Ergebnisse) ein Programm geschrieben. In diesem hole ich in einer Formroutine

die IBAN. Nachfolgend das Codin:

*&---------------------------------------------------------------------*

*& Form IBAN

*&---------------------------------------------------------------------*

* text

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

* --> p1 text

* <-- p2 text

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

form iban .

loop at itab into wa_itab.

select single * from bnka where banks eq wa_itab-banks

and bankl eq wa_itab-bankl.

if sy-subrc eq 0.

wa_itab-swift = bnka-swift.

endif.

select single * from tiban where banks eq wa_itab-banks

and bankl eq wa_itab-bankl

and bankn eq wa_itab-bankn.

if sy-subrc eq 0.

wa_itab-iban = tiban-iban..

endif.

modify itab from wa_itab.

clear wa_itab.

endloop.

endform. " IBAN

Klapp jedenfalls prima.

Gruß

pushover


SAP ECC60

Anwendungsbetreuer FI/CO