Wednesday, October 25, 2017

WebADI - Delete Integrator and Interface through API

Deleting interface through application and trying to create the same name, It will not allow to recreate the same interface name, for that we need to delete the interface through API



-- Get an Interface/Integrator Details
SELECT biv.application_id
       ,biv.integrator_code
       ,biv.user_name
       ,bib.interface_code
   FROM bne_integrators_vl biv
       ,bne_interfaces_b   bib
  WHERE upper(user_name) like '%XXAK%'
    AND bib.integrator_code = biv.integrator_code ;



--Delete an Intergrator
DECLARE
   vn_number number:=0;
BEGIN
   vn_number:= bne_integrator_utils.delete_integrator
               (p_application_id => 20003,
                p_integrator_code => 'XXAKTESTUPADI_XINTG');
               
   dbms_output.put_line(' ADI Deleted : '||vn_number);
   COMMIT;
   --
EXCEPTION  
   WHEN OTHERS THEN
      DBMS_OUTPUT.put_line('Error: '||sqlerrm);
      ROLLBACK;
END
/



--Delete an Interface
DECLARE
   vn_number   NUMBER;
BEGIN
   vn_number := bne_integrator_utils.delete_interface
                (p_application_id => 20003,
        p_interface_code  => 'XXAKTESTUPADI_XINTG_INTF1');
                
   DBMS_OUTPUT.put_line ('ADI Interface Deleted '||vn_number);
   COMMIT;
   --
EXCEPTION  
   WHEN OTHERS THEN
      DBMS_OUTPUT.put_line('Error: '||sqlerrm);
      ROLLBACK;
END;
/



1 comment:

  1. I deleted Interface through application. Now I'm not able to create with interface with different name also. I tried deleting values created for old interface in different BNE_% tables
    Can you suggest what to do now.

    ReplyDelete

Price List Query for Item

 SELECT qph.list_header_id,        qph.name,        qph.description,        qphh.start_date_active,        qphh.currency_code,        q...