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

Smartform Header and main Window

former_member375795
Participant
0 Likes
761

If  I select 10 po's for print then any possiblity to count how many pages only po contain

any command in smartforms.

6 REPLIES 6
Read only

former_member187748
Active Contributor
0 Likes
719

Hi Alok,

just count the no of PO in your internal table.

DATA : LCOUNT TYPE I.

DESCRIBE TABLE your internal table name LINES LCOUNT.

here lcount will give the no of PO, in your internal table

then through it you can count your pages , but please tell me how many pages a line item of each PO will be, you know it ?

You can create a COUNTER of type i inside of your smartforms, and let it run as shown below

DESCRIBE TABLE your internal table name LINES LCOUNT.

COUNTER = COUNTER + 1.


and in the last of your smartforms, you can create a command node in the condition tab puy


COUNTER < LCOUNT.

Read only

0 Likes
719

header and main window po number mismatch only

Read only

0 Likes
719

Please brief , what you wants to know, its not clear from what you have written

Read only

0 Likes
719

sir,

I print header window  po number and main window po data . header window also print the po data related to the po number .

so there is mismatch po number in header is not coming with related to po .

Read only

0 Likes
719

Hi Alok,

yes sometimes you will find it a problem, so why not you have created your header data in main window too, if there is no bulk data to be change , please create your header data in the main window itself. You can create template or anything in main window for your header data, just increase the size of main window and decrease the header window, and create it in main window, if you have any difficulty in achieving this, then please revert.

Read only

rosenberg_eitan
Active Contributor
0 Likes
719

Hi,

Can you use system SFSY-FORMPAGES and SFSY-JOBPAGES  ?

http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c67ddf311d3b574006094192fe3/content.htm

Regards.