Skip to Content
author's profile photo Former Member
Former Member

Smartforms Debug

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.

*--


End--


Anyone Please Help?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Nov 22, 2004 at 11:32 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 22, 2004 at 01:49 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2004 at 03:15 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.