‎2007 Apr 02 6:15 PM
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.
‎2007 Apr 02 6:27 PM
‎2007 Apr 02 6:27 PM
‎2007 Apr 02 6:27 PM
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