on 06-23-2013 5:45 PM
Hi Experts,
The requirement is in the header section Purchase Requisition number, Plant one secondary window and Vendor Address is in another secondary window.
The item details Purchase requisition Item no, Quantity, G/L account, and price. I fetched the details from EBAN and EBKN and I have taken one internal table for header section and one internal table for item section in the print program. So I need to display each purchase requisition in different page.
See the output in the picture below:
Here a new page starts with a new value starts for the sorted field of internal table.
And this value alongwith its other related values are printed as a common line above the rows belong to this value. (Shown in the red box).
In your case the PR is this sorted field and which forms the header.
If this is your requirement follow these steps.
Driver program:
Count the internal table lines into a variable c.
Export this variable to the smartform:
as
S_C = C
Smartform
Import C by adding a line
S_C TYPE I
in the interface import tab.
Follow the steps of the screen-shots here (sequence numbered)
I hope you understood that the 'v_qmnum' here is your PR number. and the internal table must be coming from the Driver program by sorted on this.
Declare a variable::
COUNT TYPE I
in the Global Definitions.
Now create a 'program line' to the 'Main Window' and do as the picture below.
In the picture below, you have added a 'Command line' to the 'Event on Sort Begin'.
And do as in the picture.
In the picture below shown is the place for Heading of your 'PR' and other details
If this works you can apply the same for your secondary windows etc. Please remember, for requirements like these in smartforms, we need to do experimentation on ourselves to achieve the desired results.
Jogeswara Rao K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.