Solution : https://service.sap.com/sap/support/notes/927559 (SAP Service marketplace login required)
Key words :
type flt_val importing cad_system fcode importing sy-ucomm documenttype importing bapi_doc_aux-doctype documentnumber importing bapi_doc_aux-docnumber documentpart importing bapi_doc_aux-docpart loadlatest importing xflag loadreleased importing xflag loadorig importing xflag loadvalid importing xflag validdate importing sy-date documentversion changing bapi_doc_aux-docversion return changing bapiret2 select 'pass, loadorig importing parameter, type bapi_doc_aux-flag, documentversion parameter, select 'methods', select 'parameters', parameter type, type specification, cdesk_badi_main~change_version badi method, call transaction se37
Related Notes :
709491 | CDESK: Checkout of documents (without stored original) |
600142 | CDESK: List of all BAdIs/BAdI methods in CAD desktop |