public:repo

Repo Example

CHECK sy-uname in /sgd/cl_sd_iop_interface_util=>test_vas_users_group(  ).
 
DATA: lf_vas_mandatory    TYPE /sgd/sd_de_iop_vas_flag,
      lf_vas_service_type TYPE fsh_vas_serv-fsh_vas_ser.
 
CALL FUNCTION '/SGD/SD_IOP_INTEGRATION_RULES'
  EXPORTING
    if_sales_document_type  = vbak-auart
    if_distribution_channel = vbak-vtweg
    if_division             = vbak-spart
    if_item_category        = vbap-pstyv
    if_material_number      = vbap-matnr
  IMPORTING
    ef_vas_mandatory        = lf_vas_mandatory
    ef_vas_service_type     = lf_vas_service_type
  EXCEPTIONS
    not_relevant            = 1
    OTHERS                  = 2.
IF sy-subrc = 0.
  IF lf_vas_mandatory = abap_true.
    "check i vas is setup already, if not call dialog
    ivbap[ 1 ]-selkz = abap_true.
    /sgd/cl_sd_iop_interface_util=>test_vas( is_vbak = vbak
                                             is_vbap = vbap
                                             if_service_type = lf_vas_service_type
                                             it_xvbep = xvbep[] ).
  ENDIF.
 
  IF lf_vas_service_type IS NOT INITIAL.
    "check vas service value / pre-fill initial value
  ENDIF.
ENDIF.

link: External Link

  • public/repo.txt
  • Last modified: 2024/01/11 18:57
  • by 127.0.0.1