on 01-20-2009 8:55 AM
HI,
i developed a form for mm module,now my reqwuirement is
In form acoording to reservation number(resb-rsnum) the item data(matnr) will be picked.there is no problem for one reservation number but for more than one they wanted a new page for individual reservation numbers(select-options).
in the form i take the event command but its not working please help me.
thanks& regards,
Create New text element
/E: TEXT_ELEMENT
/: NEW-PAGE page_name
you have to call this text element in WRITE_FORM in driver program
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
refer below..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In your driver program, where you are calling the window element corresonding to the Main window of your form you must have called it inside the loop on your internal table. So the at new will be working inside that loop.
example:
loop at tb_material.
Write MATERIAL DETAILS AS MAIN contents
call function 'WRITE_FORM'
exporting
element = 'MAIN'
FUNCTION = 'SET'
TYPE = 'BODY'
window = 'MAIN'.
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
OTHERS = 9
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endloop.
regards,
niharika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ali,
You can write the above code in your main window after you are displaying the table fields.
For example: I ll pick up the code from my main window:
MATERIAL QUANTITY PRICE
/
&TB_MATERIAL-MATNR&-&TB_MATERIAL-ARKTX&&TB_MATERIAL-FKIMG&
= &TB_MATERIAL-VRKME&&TB_MATERIAL-NETWR&&TB_MATERIAL-WAERK&
/: AT NEW TB_MATERIAL-MATNR.
/: New-Page
/: ENDAT.
I have written the above code with respect to printing "New material on New Page."
Let me know if it worked for you.
Warm regards,
Niharika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ali,
You can use the following code
/: At new <itab-field>
/: NEW-PAGE
/: ENDAT.
This command should work for you. Do let me know if it does.
Warm regards,
Niharika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ali,
For individual reservations should on new-page.Create the program lines based on condition of the reservations call a new-page.
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
At the end of MAIN window, Use "Command Line" Node , and Enable the "Go to NEW PAGE" option with the corresponding PAGE.
Regards
GP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use command node at the end of main area in table of main window
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.