Advertisement
Guest User

Untitled

a guest
Jul 5th, 2019
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 2.14 KB | None | 0 0
  1. class ZCO_INBDELIVERY_REQUEST_OUT definition
  2.   public
  3.   inheriting from CL_PROXY_CLIENT
  4.   create public .
  5.  
  6. public section.
  7.  
  8.   methods CONSTRUCTOR
  9.     importing
  10.       !LOGICAL_PORT_NAME type PRX_LOGICAL_PORT_NAME optional
  11.     raising
  12.       CX_AI_SYSTEM_FAULT .
  13.   methods INBOUND_DELIVERY_REQUEST_OUT
  14.     importing
  15.       !OUTPUT type ZINBOUND_DELIVERY_REQUEST1
  16.     raising
  17.       CX_AI_SYSTEM_FAULT .
  18. protected section.
  19. private section.
  20. ENDCLASS.
  21.  
  22.  
  23.  
  24. CLASS ZCO_INBDELIVERY_REQUEST_OUT IMPLEMENTATION.
  25.  
  26.  
  27. * <SIGNATURE>---------------------------------------------------------------------------------------+
  28. * | Instance Public Method ZCO_INBDELIVERY_REQUEST_OUT->CONSTRUCTOR
  29. * +-------------------------------------------------------------------------------------------------+
  30. * | [--->] LOGICAL_PORT_NAME              TYPE        PRX_LOGICAL_PORT_NAME(optional)
  31. * | [!CX!] CX_AI_SYSTEM_FAULT
  32. * +--------------------------------------------------------------------------------------</SIGNATURE>
  33.   method CONSTRUCTOR.
  34.  
  35.   super->constructor(
  36.     class_name          = 'ZCO_INBDELIVERY_REQUEST_OUT'
  37.     logical_port_name   = logical_port_name
  38.   ).
  39.  
  40.   endmethod.
  41.  
  42.  
  43. * <SIGNATURE>---------------------------------------------------------------------------------------+
  44. * | Instance Public Method ZCO_INBDELIVERY_REQUEST_OUT->INBOUND_DELIVERY_REQUEST_OUT
  45. * +-------------------------------------------------------------------------------------------------+
  46. * | [--->] OUTPUT                         TYPE        ZINBOUND_DELIVERY_REQUEST1
  47. * | [!CX!] CX_AI_SYSTEM_FAULT
  48. * +--------------------------------------------------------------------------------------</SIGNATURE>
  49.   method INBOUND_DELIVERY_REQUEST_OUT.
  50.  
  51.   data:
  52.     ls_parmbind type abap_parmbind,
  53.     lt_parmbind type abap_parmbind_tab.
  54.  
  55.   ls_parmbind-name = 'OUTPUT'.
  56.   ls_parmbind-kind = cl_abap_objectdescr=>importing.
  57.   get reference of OUTPUT into ls_parmbind-value.
  58.   insert ls_parmbind into table lt_parmbind.
  59.  
  60.   if_proxy_client~execute(
  61.     exporting
  62.       method_name = 'INBOUND_DELIVERY_REQUEST_OUT'
  63.     changing
  64.       parmbind_tab = lt_parmbind
  65.   ).
  66.  
  67.   endmethod.
  68. ENDCLASS.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement