Ansicht
Dokumentation

AA_CUS_TOTAL_TO_LOCAL_TOTAL - Move unstructured table TOTAL to work-table LT_TOTAL (Unicode conform)

AA_CUS_TOTAL_TO_LOCAL_TOTAL - Move unstructured table TOTAL to work-table LT_TOTAL (Unicode conform)

RFUMSV00 - Advance Return for Tax on Sales/Purchases   rdisp/max_wprun_time - Maximum work process run time  
Diese Dokumentation steht unter dem Copyright der SAP AG.
SAP E-Book

Funktionalität

Umwandeln einer Zeile der Customizing-Tabelle TOTAL in eine Zeile mit Struktur

Die Tabelle Total ist ein globaler Daten-Kontainer vom Typ Char. Total ist unstrukturiert, d.h. man kann nicht auf einzelne Komponenten zugreifen. Daher ist es oft hilfreich, wenn man die ganze Zeile in eine Workarea mit Struktur kopiert. Das geht jedoch nur solange, wie die View-Struktur keine "Nicht Char-konformen" Felder enthält.

Für genau diese Problemfälle (also z.B. gepackte Zahlen in der Struktur) hilft dieser Baustein. Er kopiert hexadezimal die Zeile der TOTAL (Parameter I_TOTAL) in die strukturierte Zeile der Workarea (Parameter e_ls_total).

Beispiel

Statt 'MOVE TOTAL[] TO LT_TOTAL' schreibt man:

DATA: wa_total TYPE ,

lt_total type table of wa_total.

REFRESH lt_total.

LOOP AT total.

CALL FUNCTION 'AA_CUS_TOTAL_TO_LOCAL_TOTAL'

EXPORTING

i_total = total "Header Line

CHANGING

e_ls_total = wa_total.

APPEND wa_total TO lt_total .

ENDLOOP.

Weiterführende Informationen

Siehe BIS zum Thema 'Unicode'.





Parameter

E_LS_TOTAL
I_TOTAL

Ausnahmen

Funktionsgruppe

AA_CUS_TOOLS

BAL_S_LOG - Application Log: Log header data   Addresses (Business Address Services)  
Diese Dokumentation steht unter dem Copyright der SAP AG.

Length: 1565 Date: 20240523 Time: 141637     sap01-206 ( 33 ms )