on 07-26-2007 11:37 AM
Hi all,
I am printing PO details using a smartform...here i am having line items for every PO...so my problem is i have displayed all the header data and now coming to line item i printing a hard coded line "Please note the below chnaged adres..." for line items having tax code as 'M3' here i want to print the hard coded lines at the header block,the hard coded line is printing fine but the thing i want to print the line only once if the one or more line items contain the tax code 'M3'...for example if a PO has 4 line items in which 2 line items contain Tax code as 'M3'so while in the printing it is showing the hard coded lines twice..how to make it as single time as different line items contains same tax code...Pls help
Hi!
Try it this way:
/: IF &printed& <> 'T'
/: DEFINE &printed& = 'F'
/: ENDIF
/:IF &printed&= 'F' AND &tax_code& = 'M3'.
AA Please note the below chnaged adres...
/: DEFINE &printed& = 'T'
/: ENDIF.
Regards
Tamá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to do it like this...
Define a varaible called flag with value 'Y'.
IF FLAG= 'Y' AND tax code = 'M3'.
***PRINT YOUR TEXT ""Please note the below chnaged adres..."
Flag = 'N'.
ENDIF.
I guess text gets print only once.
Regards,
Sairam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.