on 04-21-2008 4:46 AM
HI,
I want to add a new table to a smartform. like say i want to print LIKP-ROUTE in the main window of the smart form, (islikp like likp)
I have added this table in the table tab of form interface, then in the mainwindow, i have added a new loop and mentioned
islikp into islikp.
and in text i have mentioned
route : &likp-Route&.
But its giving a dump.
Do i have to a create a new program and add the function module.
pls suggest.
Thanks,
If you are passing the internal table values from the driver program, then you need to export the internal table from the driver program and have to declare it in the 'Tables" tab of the form interface in the smartform.
Eg:-
****
CALL FUNCTION wrk_funcmodu
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = st_cntrl
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = st_outopt_info
USER_SETTINGS = 'X'
invoiceno = wrk_doc_num
invoicedt = wrk_doc_dt
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = st_prnout_info
JOB_OUTPUT_OPTIONS =
TABLES
it_likp = it_likp
*********
If the internal table value is not passed from the driver program and if it has to be used inside the smartform then declare the internal table in the "Global definitions", under the tab "Global data".
*intenal table declaration
Variable name type assignment Associated type
IT_LIKP TYPE TABLE OF LIKP
WA_LIKP TYPE LIKP
loop the internal table it_likp to loop into the work area wa_likp.
drag and drop(from the fiel list) the work area field to the text element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I tried doing this.
Not its not showing the dump but also not printing the output.
I did exactly the same. i added the data in global definations.
now added a new loop . islikp into walikp.
then added a text and wrote : Route : &walikp-route&.
but its not printing anything.
from where do i have to drag and drop.
Thanks,
HI,
put one break point exactly where u added that field,
put brak point like break username.. if the program lines are not there create one program line and put break point and execute it .. so that u can chek whether the cursor is coimng till ur table or else problem is any other table..
some time if u give some wrong width, height to the table when compare with the window dimesnios it wil not give u output
and will not give any error also..
chek for the dimensions of all the tables and window dimensions and chek if u declared any currency fields or any unti of measure fields.......
exact error u will come to know by putting the break point and ececute it..
Tirumal.
hi,
in such a scenarios, so we have to add program lines.
what i have done is that,
In Global data: islikp type table of likp
walikp type likp.
then in info window.
loop : islikp into walikp.
added new text :
Route : &walikp-route& (this is have dragged and Dropped).
but its not showing any output.
pls suggest what else do i have to add.
also is program lines mandatory to be added, is yes, what should be the inport and export parameters.
thanks,
No need to add program lines.. but for cheking i mean for debuging add program lines and give break there,
when u say no out put is coming that field value only not coming or no data is getting displayed in the print priview,
if only the field value is not coming , than chek for the itab values whether ur itab have any values or not.....
if the out put is not coming at all than put the break points in each and evry window and identify in which window error lies, debuggin is must in this scenario, with out debug u will not come to know the problem......
chek for the width and height of the tables and windows.......
Hi,
i tried adding a program line for testing...
but how to put the breakpoint.
the text tritten before and after the loop is printing. just loop text is not.
also i have not written and z program or modified the existing. All i have done is in smartform. is that ok..
i am trying to pass itab directly in smartform.
i cant understand where am i going wrong.
thanks,
hi,
i have put the breakpoint, but its stopping in there.
It seams that the loop itself is not working.
i am not sure what i did wrong. i am using the std driver program, havent modified or added anything there. just at the smartform i have added : global data:
islikp type table of likp
walikp type likp.
then at info window. i have created new loop :
islikp into walikp.
(i have not mentioned anything in the conditions or row etc...)
then created a text element and wrote :
Route : &walip-route&(by drag and drop).
pls suggest where am i wrong. i have not done anything else...
thanks
Change &likp-Route&. to
&islikp-Route&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.