CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_16 = mv_fake_prod_guid.
ls_mock_alt_id = VALUE #( product_guid = mv_fake_prod_guid
upname = sy-uname
altvehno = gv_altid ).
INSERT isam_o_veh_ids FROM ls_mock_alt_id.
DATA(prod) = VALUE comm_product( product_guid = mv_fake_prod_guid
product_id = gv_prod_id
product_type = '01' upname = sy-uname ).
INSERT comm_product FROM prod.
COMMIT WORK AND WAIT.
METHOD teardown.
DELETE FROM isam_o_veh_ids WHERE product_guid = mv_fake_prod_guid.
DELETE FROM comm_product WHERE product_guid = mv_fake_prod_guid.
COMMIT WORK AND WAIT.
ENDMETHOD.
DATA: ls_mock_header TYPE crmt_orderadm_h_wrk,
ls_mock_alt_id TYPE isam_o_veh_ids,
lt_link TYPE crmt_link_comt,
ls_link LIKE LINE OF lt_link.
CREATE OBJECT f_cut.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_16 = mv_header.
ls_mock_header-guid = mv_header.
ls_mock_header-process_type = gv_oppt_proc_type.
CALL FUNCTION 'CRM_ORDERADM_H_PUT_OB'
EXPORTING
is_orderadm_h_wrk = ls_mock_header.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
6 | |
3 | |
3 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 |