/AWS1/IF_TXS=>GETTAXREGISTRATIONDOCUMENT()¶
About GetTaxRegistrationDocument¶
Downloads your tax documents to the Amazon S3 bucket that you specify in your request.
Method Signature¶
METHODS /AWS1/IF_TXS~GETTAXREGISTRATIONDOCUMENT
IMPORTING
!IO_DESTINATIONS3LOCATION TYPE REF TO /AWS1/CL_TXSDSTS3LOCATION OPTIONAL
!IO_TAXDOCUMENTMETADATA TYPE REF TO /AWS1/CL_TXSTAXDOCUMENTMET OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_txsgettaxregdocrsp
RAISING
/AWS1/CX_TXSINTERNALSERVEREX
/AWS1/CX_TXSVALIDATIONEX
/AWS1/CX_TXSCLIENTEXC
/AWS1/CX_TXSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_taxdocumentmetadata TYPE REF TO /AWS1/CL_TXSTAXDOCUMENTMET /AWS1/CL_TXSTAXDOCUMENTMET¶
The metadata for your tax document.
Optional arguments:¶
io_destinations3location TYPE REF TO /AWS1/CL_TXSDSTS3LOCATION /AWS1/CL_TXSDSTS3LOCATION¶
The Amazon S3 bucket that you specify to download your tax documents to.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_txsgettaxregdocrsp /AWS1/CL_TXSGETTAXREGDOCRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->gettaxregistrationdocument(
io_destinations3location = new /aws1/cl_txsdsts3location(
iv_bucket = |string|
iv_prefix = |string|
)
io_taxdocumentmetadata = new /aws1/cl_txstaxdocumentmet(
iv_taxdocumentaccesstoken = |string|
iv_taxdocumentname = |string|
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_destinationfilepath = lo_result->get_destinationfilepath( ).
lv_url = lo_result->get_presigneds3url( ).
ENDIF.