cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms - in one main window i need to display two internal tables

Former Member
0 Kudos

Dear all,

As per my requirement, i need to display three different internal table data in my main window.

Plz help me.

Regards

margani

Accepted Solutions (1)

Accepted Solutions (1)

former_member233090
Active Contributor
0 Kudos

REPORT YPRINTPRG_SMARTFORM1 . 
DATA : ITKNA1 LIKE KNA1, 
             ITVBAK LIKE VBAK OCCURS 0 WITH HEADER LINE. 
PARAMETERS : PKUNNR LIKE KNA1-KUNNR. 

SELECT * FROM KNA1 INTO ITKNA1 
   WHERE KUNNR = PKUNNR. 
ENDSELECT. 

SELECT * FROM VBAK 
    INTO TABLE ITVBAK 
   WHERE KUNNR = PKUNNR. 

CALL FUNCTION '/1BCDWB/SF00000011' u201CTHIS FUNCTION MODULE CALLS THE  
                                      SMART FORM WE WILL GET THIS AT MENU ENVIRONEMENT u201D 
  EXPORTING 
  ITKNA1                     = ITKNA1 
  TABLES 
      ITVBAK                = ITVBAK. 

IN SMART FORM  
FORM INERFACE---------IMPORT (TAB)  
  Parameter name      Type assignment    Reference type      Default value  
  ITKNA1                     LIKE                      KNA1 

FORM INERFACE---------TABLES (TAB) 
  ITVBAK                     LIKE                       VBAK 

PAGES & WINDOWS----- MAIN WINDOW-----LOOP 1----DATA(TAB) 
  ITVBAK         INTO               ITVBAK 

PAGES & WINDOWS-------MAIN WINDOW------LOOP 1-----TEXT 3(EDITOR)  
  &ITVBAK-VBELN&   &ITVBAK-ERDAT&  &ITVBAK-ERNAM&  &ITVBAK-NETWR& 

PAGES & WINDOWS-------HEADER WINDOW-----TEXT 2(EDITOR) 
  Customer No. &itkna1-kunnr&        CustomerName :&itkna1-name1& 
Former Member
0 Kudos

hi Bhavana Amar ,

I need to print the data after completion of first tables data it will start printing the second table data and 3 table.

i am using this function module

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

plz help where should i use this function module

CALL FUNCTION '/1BCDWB/SF00000011' u201CTHIS FUNCTION MODULE CALLS THE

SMART FORM WE WILL GET THIS AT MENU ENVIRONEMENT u201D

Former Member
0 Kudos

HI,

i have three internal tables, so shell i do like

CALL FUNCTION '/1BCDWB/SF00000011' u201CTHIS FUNCTION MODULE CALLS THE

SMART FORM WE WILL GET THIS AT MENU ENVIRONEMENT u201D

EXPORTING

itab1 = itab1 "" this is first internal table

itab2 = itab2 "" for second internal table

TABLES

itab3 = itab3. "' this is 3 internal table

PAGES & WINDOWS--- MAIN WINDOW-LOOP 1--DATA(TAB)

itab3 INTO itab3

former_member233090
Active Contributor
0 Kudos

Yes Exactly.... u r rite...

Former Member
0 Kudos

HI,

I am very thankfull to u, for sending your valueble time........

I will try it. and i have one small query on this, for this one i need to display header text saparate to all 3 out put internal table in main window.

and i need one or two row gap between displaying output..

so how should i got this one in my smartform.

Regards

margani

Edited by: margani79 on May 26, 2010 8:25 AM

Former Member
0 Kudos

Hi.

For displaying header text different for all three internal tables, just before looping on each internal table just make a template and divide it into ur required number of columns or only a single columns and then put ur header text in it.

Former Member
0 Kudos

Dear,

i am agree with you but we are giving the loop in smartform table loop(where in main window options), not a manual loop. then how we should bring the template between 3 internal table. any posible plz suggest me....

Regards

margani

Former Member
0 Kudos

Dear Margani.

Just as u creating three Tables in main window , u can also create template before creating each table.

former_member233090
Active Contributor
0 Kudos

Hi Margani,

yes u can also create template before creating each table,

and regard me the points if my answer is helpful.

cheers

bhavana

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Margani,

Its possible.. U have desind ur three internal table in main window . Then U have to declare table ur Main window. As per ur requirement.

If u have more doubt on that please go through SAPTECHNICAL.COM.. there step by step hw to create Smartform using tables available...

Thanaks

Prabu

Former Member
0 Kudos

This message was moderated.

former_member233090
Active Contributor
0 Kudos

Hi,

check this Examples


Go to saptechnical dot com select Tutorials select Smartforms select Table select Create dot htm please delete select and type / in place of select ,becoz iam unable to send  you the link 
go to sap-img dot com select smartforms select internal-table-in-smartform dot htm