Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

line item

Former Member
0 Likes
512

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
476

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.

3 REPLIES 3
Read only

Former Member
0 Likes
477

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

Read only

0 Likes
476

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?

Read only

0 Likes
476

Hi Giri,

Just use if condition

if &mara-matnr& eq ' '.

include -


endif.

you don't need anything else.

Thanks

VENKI