cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict printing smartform at VF02 when creation date (ERDAT) is not older than 01.01.2019?

Former Member
0 Kudos
226

Hi experts,

I am new to ABAP. I have a requirement where I have to disable/restrict printing invoice at VF02 when creation date (ERDAT) is not older than 01.01.2020. Normally we do VF02 -> enter billing doc date -> at menu bar click billing document -> Issue output to -> print preview. I have to restrict this print preview or the generation of smartform. I searched on google but not getting any particular results. It will be best if I get step by step solution to this requirement. Please help ASAP.

View Entire Topic
former_member348242
Participant
0 Kudos

In the driver program check the

if creation date is grater than equal to 01.01.2020

call the smart from function module

else

give the pop up message.

Former Member
0 Kudos

if I write the required query as an If .. Endif statement inside lf_fm_name block, will it work?