on 05-22-2007 2:03 AM
Hi Friends
Given a sapscript. When i execute the script prog the output should be
displayed
as a report first and when we click the button PRINT the same report
should be displayed in script layout .
But now iam able to disply only the header . unable to display the main
window...
why?.. I called the func modules as follows .. the windows are header
and main...
CASE in_ucomm.
WHEN 'PRINT'.
PERFORM print_sapscript.
ENDCASE.
form print_sapscript .
CLEAR options.
options-tddest = '*'.
options-tdimmed = '*'.
options-tddelete = '*'.
options-tdnewid = 'X'.
PERFORM print_popup_msg.
PERFORM start_form.
PERFORM write_report2.
PERFORM end_form.
PERFORM close_form.
endform.
in print_popup_msg i called open_form..and write_report as
form write_report2 .
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = '100'
window = 'AAA' " this is the element in header window
EXCEPTIONS
OTHERS = 1.
endform. " write_report2
iam having six elements defined in MAIN window how to call the six
elements....
Hope will suggest me as soon as possible.. Will be waiitng ..
Thank You
hi sairam,
u check the name given to the window in which u want to display the data and then pass that window name in the write_form if some times it is better to
place all the windows on the main window and then if u call any one of the window
in the write form obvoisuly so problem will be solved.
reward points if useful,
regards,
srinivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI SAi,
to call the Text elements...
go to sapscript command editor.
select text element in command prompt.
/E 100
PR &fld1&
/E 200
PR &FLD2&
/E 300
PR &FLD3&
PR is paragraph format.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
<b>element = '100' " this is text element name
window = 'MAIN' " this is window name</b>
EXCEPTIONS
OTHERS = 1.
Regards
SAB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.