2006 Oct 18 5:56 PM
i have a zsapscript copy of standard and driver program is standard program. i shud not change driver program.
now, after printing all line items i need to add standard text in main window. i cant chnage the driver program.
the problem is how can i know the last line item in the main window...
my logic:
IL &MARA-MATNR&
/: INCLUDE ZTEST OBJECT TEXT ID
but output is like:
123
standard text
234
standard text
345
standard text
my required output is:
123
234
345
Standard Text
after competion of line items standard text shud be printed.
hope u got the point.
2006 Oct 18 6:04 PM
Hi,
Create a new text element for the include..
/E INCLUDE
/: INCLUDE..
Call the write_form after the endloop of the matnr..
LOOP AT ITAB.
PRINT MATERIAL NUMBERS.
ENDLOOP.
CALL FUNCTION 'WRITE_FORM'
TEXT_ELEMENT = 'INCLUDE'.
Thanks,
Naren
i have a zsapscript copy of standard and driver program is standard program. i shud not change driver program.
now, after printing all line items i need to add standard text in main window. i cant chnage the driver program.
the problem is how can i know the last line item in the main window...
my logic:
IL &MARA-MATNR&
/: INCLUDE ZTEST OBJECT TEXT ID
but output is like:
123
standard text
234
standard text
345
standard text
my required output is:
123
234
345
Standard Text
after competion of line items standard text shud be printed.
hope u got the point.
2006 Oct 18 6:04 PM
Hi,
Create a new text element for the include..
/E INCLUDE
/: INCLUDE..
Call the write_form after the endloop of the matnr..
LOOP AT ITAB.
PRINT MATERIAL NUMBERS.
ENDLOOP.
CALL FUNCTION 'WRITE_FORM'
TEXT_ELEMENT = 'INCLUDE'.
Thanks,
Naren
2006 Oct 18 6:46 PM
hi narendra...
i cant change the driver program...
i have to write in sapscript or in other program using Perform.
can u tell me how can we do it with perform?
2006 Oct 18 8:15 PM
Hi Giri,
Just use if condition
if &mara-matnr& eq ' '.
include -
endif.
you don't need anything else.
Thanks
VENKI
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |