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

SAP Scripts

Former Member
0 Likes
620

Hi,

I have a problem regarding column headings for line items in the script. Actually I need to do the changes in the existing copied Z-form. In the form for main window  they are printing standard text for some text and after print the table data for line item (header+item).

Problem : Only print headings if there is at lease one detailed line item which will print on the same page.

Please help me..it's very urgent to fix this.

Thanks and Regards

Raju

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
547

Hi Raju

In case you want to print header only if their is a line item that you will have to control in your driver program where you are calling WRITE_FORM for that element.

You put a check if you have line print else skip

Nabheet

3 REPLIES 3
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
548

Hi Raju

In case you want to print header only if their is a line item that you will have to control in your driver program where you are calling WRITE_FORM for that element.

You put a check if you have line print else skip

Nabheet

Read only

0 Likes
547

Hi Nabheet,

I already put the check if when line item is trigger then only i pass the header but here i want page headings in corresponding pages which has line item.

Example :

5 line items

Page 1: some standard text and 3 line items with header

Page 2: only line items, totals and some text. here no header

Note : I don't want heading in all pages, need only when at lease one detailed line item which will print on the same page.

Thanks

Raju

Read only

0 Likes
547

Hi Raju

Check two things

  1. First check do you have separate header window..? How many pages you have in script one or two or more?
  2. Seconldy in case you dont want to print header then you can do as mentioned below.

Donot display header

CALL FUNCTION 'WRITE_FORM'

EXPORTING element = 'HEADER'

function = 'DELETE'

type = 'TOP'

EXCEPTIONS OTHERS = 1.

nabheet