cancel
Showing results for 
Search instead for 
Did you mean: 

In sap script how to print line item twises

Former Member
0 Kudos

Hi all,

Using sap script I am developing check printing. one page has three portion .

1) detail portion which has all line item details.( for our reference)

2) detail portion which has all line item details.(for vendor )

3) check portion ( for vendor)

so, In standard form, all line items printed using main window, first portion it is printing porpely. but in second protion again all line item details has to print. here only I have pb to print all line items again.

can any1 suggest me how to print ?

shld I create another one main Window?

JK

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, please provide a little more detail, but you can try something like this to print the details:

/: PERFORM RETURN_DETAIL IN PROGRAM ZFIFORM

/: CHANGING &LINE1A&

/: CHANGING &LINE1B&

/: CHANGING &LINE2A&

/: CHANGING &LINE2B&

/: CHANGING &LINE3A&

/: CHANGING &LINE3B&

/: CHANGING &LINE4A&

/: CHANGING &LINE4B&

/: CHANGING &LINE5A&

/: CHANGING &LINE5B&

/: CHANGING &LINE6A&

/: CHANGING &LINE6B&

/: CHANGING &LINE7A&

/: CHANGING &LINE7B&

/: CHANGING &LINE8A&

/: CHANGING &LINE8B&

/: CHANGING &LINE9A&

/: CHANGING &LINE9B&

/: CHANGING &LINE10A&

/: CHANGING &LINE10B&

/: CHANGING &LINE11A&

/: CHANGING &LINE11B&

/: CHANGING &LINE12A&

/: CHANGING &LINE12B&

/: CHANGING &LINE13A&

/: ENDPERFORM

T1 &LINE1A& &LINE1B&

T1 &LINE2A& &LINE2B&

T1 &LINE3A& &LINE3B&

T1 &LINE4A& &LINE4B&

T1 &LINE5A& &LINE5B&

T1 &LINE6A& &LINE6B&

T1 &LINE7A& &LINE7B&

T1 &LINE8A& &LINE8B&

T1 &LINE9A& &LINE9B&

T1 &LINE10A& &LINE10B&

T1 &LINE11A& &LINE11B&

Answers (4)

Answers (4)

former_member222075
Participant
0 Kudos

Hi

I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.

If you require I can send you a PDF of the sap script form definition. You can contact me at jk_downunder@yahoo.com. Answers can take 1 week or more. 

Best regards

JD

Former Member
0 Kudos

Hi,

Solution for this, please create one more main window and follow same as first main window( to print the items).

Bye

former_member230674
Contributor
0 Kudos

Hi JK,

In sap script, if try to print any item details without mention the under text element , every thing is printed twice in main page.So, you must specify the item details under some text element and then callled text elemnt in driver program.Then , it prints only once.

I f it useful, reward points.

Thank you ,

Prasad G.V.K

messier31
Active Contributor
0 Kudos

You may copy std check printing program and call a element to print second set after printing first set of line items.

Enjoy SAP.

Pankaj Singh