Hi,
How can i <b>DEBUG</b> into Smartforms.
I was actually not able to print a header text in print output(using Read_text FM)
Here's the code i wrote in smartform:--
DATA : BEGIN OF TABLE_LINES OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA : END OF TABLE_LINES.
DATA : VBELN1 LIKE THEAD-TDNAME.
VBELN1 = GS_HD_REF-ORDER_NUMB.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0001'
LANGUAGE = 'E'
NAME = VBELN1
OBJECT = 'VBBK'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = TABLE_LINES
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
**
LOOP AT TABLE_LINES.
load_date = table_lines-TDLINE.
ENDLOOP.
*--
Anyone Please Help?
I dont know about debuggin smartforms, but i see some error in passing parameter to the function module read_text which can fix your issue.
change the language parameter value to 'EN' or sy-langu
its not 'E'
Hope this helps.
Regards
Raja
I thing there is problem with the Name parameter declaration.
ID = E1EDKT1-TDID.
NAME = THEAD-TDNAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = ID
LANGUAGE = 'E'
NAME = NAME
OBJECT = 'VBBK'
Have a look at the include LV55EF03 for (FORM GET_TEXT).
for further help.
Prabhu Rajesh.
Hi Suzane,
In transaction SMARTFORMS look up the name of the generated function module for your smartform. Copy the name and go to transaction SE37. Get into the source code of the function module; via menu Goto -> Main Program and then find your piece of code by SEARCH 'VBELN1 = GS_HD_REF-ORDER_NUMB'. Put a breakpoint there and print your smartform. It will stop at the breakpoint.
Regards,
John.
Add a comment