Activity type while creating billing document
I have a requirement where user is creating billing document through any transaction i.e. VF01, VF04 or through background job.
There is some ABAP code written in enhancement spot which is getting called while saving the billing document.
The problem is ABAP code is written with condition for transaction VF01 i.e. ABAP code will be executed only if billing document is created from transaction VF01(SY-TCODE field). The requirement is whenever user creates billing document from any transaction(VF01,VF04 or background job) this ABAP code should be executed.
Is there any system variable or any activity type field which use to remain same for all transactions for creating billing document so that I can provide it to ABAPer to change the existing ABAP code.