DATA:
lt_relations_key TYPE SORTED TABLE OF /mdgbp/_s_bp_ky_bp_rel
WITH UNIQUE KEY partner1
partner2
bp_rel,
ls_relation_key LIKE LINE OF lt_relations_key,
lt_contact_relations TYPE SORTED TABLE OF /mdgbp/_s_bp_pp_bp_rel
WITH UNIQUE KEY partner1
partner2
bp_rel,
lo_read_api TYPE REF TO if_usmd_read_api.
*--------------------------------------------------------------------*
CHECK iv_contact_id IS NOT INITIAL.
ls_relation_key-partner2 = lv_contact_id.
ls_relation_key-bp_rel = if_mdg_bp_constants=>gc_relation-contact_person.
INSERT ls_relation_key INTO TABLE lt_relations_key.
lo_read_api = cl_usmd_read_api=>get_instance( iv_model_name = if_mdg_bp_constants=>gc_bp_model ).
CHECK lo_read_api IS BOUND.
lo_read_api->read_active_data(
EXPORTING
iv_entity_type = if_mdg_bp_constants=>gc_bp_model_entity-relation
it_entity_key = lt_relations_key
IMPORTING
et_data = lt_contact_relations
).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
37 | |
10 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
2 | |
2 |