Ansicht
Dokumentation
GOX_GEN_CLASS_COMPLETE_STD - Standard Funktionsbaustein generieren
Fill RESBD Structure from EBP Component Structure ROGBILLS - Synchronize billing plansDiese Dokumentation steht unter dem Copyright der SAP AG.
Funktionalität
Beispiel
to save the lokal testreport from being deleted, the source code is copied here.
REPORT ztest_gox_gen_class_complete.
DATA: ls_object_new TYPE coms_gox_def_header,
ls_method_new TYPE coms_gox_def_header,
lt_method_new TYPE comt_gox_def_header,
lt_method_old TYPE comt_gox_def_header,
lt_object_new TYPE comt_gox_def_header,
lt_object_old TYPE comt_gox_def_header,
ls_replace_details TYPE coms_gox_def_detail,
lt_replace_details TYPE comt_gox_def_detail,
ls_details TYPE coms_gox_table_entry_fields,
lt_details TYPE comt_gox_table_entry_fields,
lt_bapireturn TYPE bapirettab,
lt_transport TYPE comt_gox_trans_object.
CONSTANTS: lc_class_template TYPE seoclskey VALUE 'CL_ALTID_PRODUCT_TEMP_SET',
lc_class_new TYPE seoclskey VALUE 'CL_ALTID_TEST_GEN_01'.
*the class itself
ls_object_new-key_guid = '1'.
ls_object_new-parent_key = ' '.
ls_object_new-template_name = lc_class_template.
ls_object_new-replace_string = lc_class_template.
ls_object_new-new_string = lc_class_new.
ls_object_new-object_name = lc_class_new.
APPEND ls_object_new TO lt_object_new.
*generation of the method sources.
*all methods that have to be changed must be added as lines in lt_object_new
ls_object_new-key_guid = '11'.
ls_object_new-parent_key = '1'.
*the name of the method is defined in the object name
ls_object_new-object_name = 'CONSTRUCTOR'.
ls_replace_details-new_string = 'COMM_PRODUCT'.
ls_replace_details-replace_string = 'COMT_EXT_TEMP'.
APPEND ls_replace_details TO lt_replace_details.
ls_object_new-replace_details = lt_replace_details.
APPEND ls_object_new TO lt_object_new.
CLEAR ls_object_new.
*all methods that have to be changed must be added as lines in lt_object_new
ls_object_new-key_guid = '12'.
ls_object_new-parent_key = '1'.
ls_object_new-object_name = 'GET_GUID_FROM_ALTID'.
ls_replace_details-replace_string = 'COMT_EXT_TEMP'.
ls_replace_details-new_string = 'COMM_PRODUCT'.
APPEND ls_replace_details TO lt_replace_details.
ls_object_new-replace_details = lt_replace_details.
APPEND ls_object_new TO lt_object_new.
REFRESH lt_object_old.
CALL FUNCTION 'GOX_GEN_CLASS_COMPLETE_STD'
EXPORTING
iv_object_name = 'Heinzelmann'
it_object_new = lt_object_new
it_object_old = lt_object_old
iv_devclass = '$TMP'
IMPORTING
et_bapireturn = lt_bapireturn
et_transport = lt_transport.
BREAK-POINT.
*pleace check the class because it will be deleted afterwards
*delete the class for the next run
lt_object_old = lt_object_new.
REFRESH lt_object_new.
CALL FUNCTION 'GOX_GEN_CLASS_COMPLETE_STD'
EXPORTING
iv_object_name = 'Heinzelmann'
it_object_new = lt_object_new
it_object_old = lt_object_old
iv_devclass = '$TMP'
IMPORTING
et_bapireturn = lt_bapireturn
et_transport = lt_transport.
BREAK-POINT.
Hinweise
Weiterführende Informationen
Parameter
ET_BAPIRETURNET_TRANSPORT
IT_OBJECT_NEW
IT_OBJECT_OLD
IV_DEVCLASS
IV_OBJECT_NAME
IV_PART_GEN
IV_REQUEST_WB
Ausnahmen
Funktionsgruppe
GOX_OBJECTS_GENERATERFUMSV00 - Advance Return for Tax on Sales/Purchases Fill RESBD Structure from EBP Component Structure
Diese Dokumentation steht unter dem Copyright der SAP AG.
Length: 4532 Date: 20240523 Time: 051545 sap01-206 ( 46 ms )