Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how can i trigger new page for new po no

Hi abap gurus,

present iam working on a requirement that i have to print 5

purchase order details using smartform .

Here iam displaying it on main window.

What iam requsting is i want to print 1st po in first page with item details

2nd po in next page with item details

3rd po in other next page with item details

-


ie, for each new po i have to trigger new page -


can anybody give solution for this one.......

best regards,

phani.

replied

In SMART FORMS, when you are using LOOP node create PROGRAM LINES under LOOP node where you check whether New PO number encountered.

IF itab-po_no NE w_po_no. 
  move itab-po_no to w_po_no.
  w_flag = 'X'.      " set flag
ENDIF.

when w_flag is 'X', then call COMMAND node to trigger new page.

Hope you understand.

Thanks,

Phani Diwakar.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question