CL_BDT_AMOUNT - BDT Amount
General Data in Customer Master General Data in Customer MasterThis documentation is copyright by SAP AG.
Functionality
This class represents the Business Data Type Amount.
Relationships
Inherits from:
The BDT Amount receives the BDT
Example
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.
Notes
Formatting Options: currencyPresentationMode
Formatting Option Values: none, code, displayOnlyCode, displayOnlyDescription
Further information
Container-Definition:
General Data in Customer Master BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 2109 Date: 20120526 Time: 090413 triton ( 31 ms )






