cancel
Showing results for 
Search instead for 
Did you mean: 

COnditional Printing of a Form

Former Member
0 Kudos

I have written a BDC for QA01 transaction. when the inspection lot is created a script is getting printed. this script should not be printed when the inspection lot is created using the BDC, but the script should be triggered if it the user manually goes to QA01 and creates a inspection lot. please suggest how can this be achieved.

Cheers!

Prabhu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

use this FM to determine if it is running bdc:

CALL FUNCTION 'BDC_RUNNING'

IMPORTING

BI_INFO = BI_INFO " A=Hell, E=Fehler, N=Dunkel

EXCEPTIONS

OTHERS = 1.

Put it in an adecuate enhacement exit.

Former Member
0 Kudos

You can try this:

In your BDC program set some memory id.

In your diriver program read this memory id right at the begining of processing. If memory Id is not initial,

that means the bdc program has been run. So u dont trigger the form. If your driver program is standard one then u have to make it a z- program and do the necessary configurations( in NACE).

At the termination of the BDC program clear the memory id.