cancel
Showing results for 
Search instead for 
Did you mean: 

adding a new table in smart form

Former Member
0 Kudos

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,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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,

Former Member
0 Kudos

Hi,

I have drangged and dropped the walikp-route, but the output is still not comming.

Its not entering the loop.

do i have to add program lines also before/after the loop and put my select query...

and what shall i mention in where condition..

pls suggest...

Former Member
0 Kudos

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.

Former Member
0 Kudos

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,

Former Member
0 Kudos

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.......

Former Member
0 Kudos

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,

Former Member
0 Kudos

to put the break point,

just write : break treddy ( treddy is user name in my case)

write your user name there.....

here u will come to know whether your itab has any data or not..

Thirumal.

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

pls suggest what else need to be done as the output is not comming

Former Member
0 Kudos

Change &likp-Route&. to

&islikp-Route&

Former Member
0 Kudos

Hi,

I wrote &islikp-route& only, but by mistake here i wrote i wrongly...

its not working.

its giving dump every time, saying some form parameter missing

thanks,