Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Smartform

Hi all,

I want to use

PERFORM READ_TEXT using 'Z014' 'E' H_OBJ1 'VBBP'. in the 'Programming Lines' of a smartform.

where should i use the FORM ENDFORM so that i can get the T_TLINE data , after my subroutine is executed??

my FORM statement is like

FORM READ_TEXT using p_id like

p_lan like

p_name like

p_obj like

CALL FUNTION 'READ_TEXT'

Exporting

client = sy-mandt

id = p_id

lan = p_lan

name = p_name

object = p_obj

TABLES

LINES = T_TLINE

ENDFORM.

How & where to declare the table T_TLINE table ???plz give me the correct idea so that i can reward points.

Regards

smita

Former Member
Former Member replied

Hi,

T_TLINE shud be decalred with in the program lines

data: T_TLINE type table of .....(structure refferd by FM)

U can write the logic of Perform and Form routine with in the same pRogarm lines node.

PERFORM READ_TEXT using 'Z014' 'E' H_OBJ1 'VBBP' tables T_TLINE .

FORM READ_TEXT using p_id like table t_line like ......(ref structure)

p_lan like

p_name like

p_obj like

CALL FUNTION 'READ_TEXT'

Exporting

client = sy-mandt

id = p_id

lan = p_lan

name = p_name

object = p_obj

TABLES

LINES = T_TLINE

ENDFORM.

Revert back if any issues,

Regards,

Naveen

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question