Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartform

Former Member
0 Likes
375

Hi,

I have done below smartform but am not able to see customer information in my form plz can anyone solve my problem.

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&

REPORT ZEXAMPLE.

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/SF00000146'

EXPORTING

ITKNA1 = ITKNA1

TABLES

ITVBAK = ITVBAK.

Thanks in Advance,

Sheethal.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
348

Use

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

Regards.

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
349

Use

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

Regards.

Read only

Former Member
0 Likes
348

Hi,

Inseft a command line before printing the header. In this command line, put a break point with statement BREAK-POINT or BREAK uname ( uname is your sap logon id ). Save and activate smartforms.

Now when your program stops here, see if the ITKNA1 contains any value.

Also, let me know that if only the values are not being printed on output (itkna1-kunnr & itkna1-name1 ) or the text is also not coming ( Customer No. & CustomerName ). If text is also not coming that there is some issue with defining the header.

Regards,

RS