cancel
Showing results for 
Search instead for 
Did you mean: 

PO shouldnt print

Former Member
0 Kudos

i developed PO zsmartform with standard program(after copying to zprogram) attached to it.in ME22N----->GO TO HEADER--


>RELEASE STRATEGY

if release indicator(ekko-frgke) is 1(which implies PO RELEASED) then only PO should get printed when i click on PRINT PREVIEW.

if release indicator(ekko-frgke) not equal to 1 then PO should not be printed even if i click on PRINT PREVIEW.please suggest how to put the logic and where to keep the logic in standard program.i came across thes function module

CALL FUNCTION 'ME_READ_PO_FOR_PRINTING'. will it work if i keep the logic above it like

if ekko-frgke = 1.

CALL FUNCTION 'ME_READ_PO_FOR_PRINTING'

''''''''''''

endif.

please help.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can pass a mesaage when the release indicator(ekko-frgke) not equal to 1 or you can avoid it by pass clearing the ITAB which is being passed to the FM

regards

Shiva

Former Member
0 Kudos

ideally you shoukd not change the STD SAP Code..

check if you can get any Exit for this purpose...

if there is no Exit or BADI.. then in the calling report...

search where the smartform is getting called...

jst before that if...

if ekko-frgke = 1.

*then only call the printing function module...

endif.