Ansicht
Dokumentation
CL_BDT_AMOUNT - BDT Amount
Addresses (Business Address Services) Fill RESBD Structure from EBP Component StructureDiese Dokumentation steht unter dem Copyright der SAP AG.
Funktionalität
Diese Klasse repräsentiert den Business Data Type Amount.
Beziehungen
Erbe von
Der BDT Amount enthält als Supplementary Component CurrencyCode den BDT
Beispiel
REPORT bdt_Format_Test.
data:
bdt_Amount type ref to if_Bdt,
bdt_Container_Amount type if_Bdt_Types=>ty_S_Container_Amount,
formatting_Options type ref to if_Bdt_Formatting_Options,
formatted_Value type string.
bdt_Container_Amount-content = '1200'.
bdt_Container_Amount-currencyCode-content = 'EUR'.
formatting_Options = cl_Bdt_Formatting_Options=>create( ).
formatting_Options->set_Option(
i_Key = if_Bdt_Constants=>co_Curr_Presentation_mode
i_Value = if_Bdt_Constants=>co_S_Curr_Presentation_mode-code ).
bdt_Amount = cl_Bdt_Factory=>create( if_Bdt_Constants=>co_Bdt_Amount ).
formatted_Value = bdt_Amount->format_Single(
i_Container = bdt_Container_Amount
i_Formatting_Options = formatting_Options ).
write formatted_Value.
Hinweise
Formatting Options: currencyPresentationMode
Formatting Option Values: none, code, displayOnlyCode, displayOnlyDescription
Weiterführende Informationen
Container-Definition:
BAL Application Log Documentation BAL Application Log Documentation
Diese Dokumentation steht unter dem Copyright der SAP AG.
Length: 2186 Date: 20240426 Time: 124316 sap01-206 ( 23 ms )