Hello,
Has anybody managed to successfully copy DTPs ? Basically, I need to replicate a template DTP many times and do not wish to do this manually. We can with standard functionality copy InfoPackages but not DTPs it seems.
SAP have delivered new functionality to copy Transformations in sp16 which makes like a lot easier, but it seems they haven't delivered copying DTPs, or at least not as far as support pack 18 which is where we are.
Anybody tackled a custom program based on the methods of CL_RSBK_DTP ? I took a quick look and tried method COPY_NVERS_FROM_TEMPLATE but no joy.
Cheers,
Kevin.
>
> Hello,
> Has anybody managed to successfully copy DTPs ? ...
.
Just done it... 😊
DATA: rx TYPE REF TO cx_root. DATA: r_dtp_src TYPE REF TO cl_rsbk_dtp, r_dtp_dst TYPE REF TO cl_rsbk_dtp, r_dtp_src_v TYPE REF TO cl_rsbk_dtp_v. DATA: dtp_src TYPE rsbkdtpnm VALUE 'DTP_...', " DTP technical name in here dtp_dst TYPE rsbkdtpnm. TRY. r_dtp_src = cl_rsbk_dtp=>factory( dtp_src ). r_dtp_dst = cl_rsbk_dtp=>factory( dtp_dst ). r_dtp_src_v = r_dtp_src->get_obj_ref_objvers( 'A' ). r_dtp_dst->copy_nvers_from_template( i_r_dtp_tpl = r_dtp_src_v ). r_dtp_dst->set_dtp_original( r_dtp_src->n_dtp ). r_dtp_dst->if_rso_tlogo_maintain~save( ). CATCH cx_root INTO rx. MESSAGE rx TYPE 'E'. ENDTRY.
If the dtp is a delta, then you won't be able to activate it. This code is used at your own risk!
matt
Hi Kevin ,
You are correct , it seems SAP has not given copy functionality till SP 18 . I think we cannot create Delta DTP more than one correct me if i am wrong . We can create FULL load DTP 's more than one .
I have a small question for you Kevin , i have 4 million data daily loading into ODS . I have scheduled one full load thru DTP and it is taking 1 hr to load . If i create 2 more DTP's full load total ( three DTP's) . Will it
decrease the load time . I tried this option in Development i dnt see any difference .
Can you please suggest .
Thanks
Santosh
Hi Mat,
I've used the above code, but when I try to activate the copied DTP it fails with the following error :
Inconsistent user object DTP_4BTI5D3FP15V054D7X5FHYA0U for PSA /BIC/B0001687
Error during creation of DDIC sources of Data Transfer Process DTP_4BTI5D3FP15V054D7X5FHYA0U
Error when activating Data Transfer Process DTP_4BTI5D3FP15V054D7X5FHYA0U
The original DTP used to copy from is active, it's a full load so should not be impacted by overlapping delta's etc.
Any ideas please.
Thanks,
Add a comment