Difference between revisions of "SAP BDS"
From SapWiki
Line 23: | Line 23: | ||
components = i_components | components = i_components | ||
EXCEPTIONS | EXCEPTIONS | ||
− | OTHERS = 1. | + | OTHERS = 1. |
+ | |||
+ | READ TABLE i_components INDEX 1 INTO ls_components. | ||
+ | IF sy-subrc = 0. | ||
+ | ld_out_len = ls_components-comp_size. | ||
+ | ELSE. | ||
+ | ld_out_len = 0. | ||
+ | ENDIF. | ||
+ | |||
+ | IF ld_out_len > 0. | ||
+ | CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' | ||
+ | EXPORTING | ||
+ | input_length = ld_out_len | ||
+ | IMPORTING | ||
+ | buffer = ed_file | ||
+ | TABLES | ||
+ | binary_tab = i_content. | ||
+ | endif. | ||
+ | </nowiki> | ||
*BDSFIND_1 - Iniciar Business Document Navigator (trn. OAER) | *BDSFIND_1 - Iniciar Business Document Navigator (trn. OAER) |
Revision as of 22:09, 3 September 2024
- BDSTESTOO - BDS: Programa de test p.métodos OO
ejemplo
Método GET_WITH_TABLE Sistema lógico Nombre de categoría PICTURES Tipo de clase OT Mandante 400 Clave HOTEL_5_STAR
WHEN 'GET_WITH_TABLE'. REFRESH i_signature. CALL METHOD o_document_set->get_with_table EXPORTING logical_system = i_logical_system classname = i_classname classtype = i_classtype client = i_client object_key = i_object_key CHANGING content = i_content signature = i_signature components = i_components EXCEPTIONS OTHERS = 1. READ TABLE i_components INDEX 1 INTO ls_components. IF sy-subrc = 0. ld_out_len = ls_components-comp_size. ELSE. ld_out_len = 0. ENDIF. IF ld_out_len > 0. CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = ld_out_len IMPORTING buffer = ed_file TABLES binary_tab = i_content. endif.
- BDSFIND_1 - Iniciar Business Document Navigator (trn. OAER)