The provisions of section 340 cr.p.c. is :
Procedure in cases mentioned in section 195.
(1) When, upon an application made to it in this behalf or otherwise, any Court is of opinion that it is expedient in the interests of justice that an inquiry should be made into any offence referred to in clause (b) of sub- section (1) of section 195, which appears to have been committed in or in relation to a proceeding in that Court or, as the case may be, in respect of a document produced or given in evidence in a proceeding in that Court, such Court may, after such preliminary inquiry, if any, as it thinks necessary,-
(a) record a finding to that effect;
(b) make a complaint thereof in writing;
(c) send it to a Magistrate of the first class having jurisdiction;
(d) take sufficient security for the appearance of the accused before such Magistrate, or if the alleged offence is non- bailable and the Court thinks it necessary so to do, send the accused in custody to such Magistrate; and
(e) bind over any person to appear and give evidence before such Magistrate.
(2) The power conferred on a Court by sub- section (1) in respect of an offence may, in any case where that Court has neither made a complaint under sub- section (1) in respect of that offence nor rejected an application for the making of such complaint, be exercised by the Court to which such former Court is subordinate within the meaning of sub- section (4) of section 195.
The provision of section 195 (1) is :
Section 195(1) in The Code Of Criminal Procedure, 1973
(1) No Court shall take cognizance-
b) (i) of any offence punishable under any of the following sections of the Indian Penal Code (45 of 1860 ), namely, sections 193 to 196 (both inclusive), 199, 200, 205 to 211 (both inclusive) and 228, when such offence is alleged to have been committed in, or in relation to, any proceeding in any Court, or
(ii) of any offence described in section 463, or punishable under section 471, section 475 or section 476, of the said Code, when such offence is alleged to have been committed in respect of a document produced or given in evidence in a proceeding in any Court, or
(iii) of any criminal conspiracy to commit, or attempt to commit, or the abetment of, any offence specified in sub- clause (i) or sub- clause (ii), except on the complaint in writing of that Court, or of some other Court to which that Court is subordinate.
The above contents were reproduced to make you clear that any action intended to take shall be for a case in te court and not taking any action directly by invoking the above said laws.
However if there was any evidence given before court on an affidavit sworn before court, if the evidence has been held as false then the said laws can be invoked accordingly.