Change profile ID for VKORG
Just as a short example, we replace the profile ID by one if a specific sales organization is used.
DATA:
profile_id TYPE /aeb/if_80_pb_profile_id_do=>t_profile_id.
IF im_vbrk-vkorg = 'VKORG'. "or im_likp
profile_id = 'INV_FOR_VKORG'.
im_profile_id_do->set_profile_id( profile_id ).
ENDIF.
Updated 10 days ago