cancel
Showing results for 
Search instead for 
Did you mean: 

How to use SUBROUTINE in ' PROGRAMMING LINES'code of a smartform

former_member190312
Active Participant
0 Kudos

Hi all,

i used a subroutine (PERFORM statement ) in 'Programming Line' node of a smartform .

Then i put the 'FORM ENDFORM ' in 'SUBROUTINES' node of GLOBAL data.

In Programming line i used

PERFORM READ_TEXT using p_id p_lan p_obj.

In SUBROUTINE node of GLOBAL data, i used

FORM READ_TEXT using p_id p_lan p_obj.

ENDFORM.

While executing, my control is going to FORM ENDFORM & i can see the data in the

table T_TDLINE while my control is inside the FORM ENDFORM.

When it comes back to my Programming NODE, there is no data in T_TDLINE table.

can anyone tell me how & where to define this table T_TDLINE so that i can get the data

in in my coding lines after PERFORM statement.

ur Idea is highly appreciated. correct answers will be rewarded.

Thanks

pabitra

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

1. Define a table in the Global Definiation > GLOBAL data:

T_TDLINE TYPE TTTEXT.

2. PERFORM READ_TEXT tables T_TDLINE using p_id p_lan p_obj.

3. FORM READ_TEXT table IT_TDLINE type TTTEXT

using p_id p_lan p_obj.

ENDFORM.

Now, you will be able access your data in T_TDLINE.

Regards,

Naimesh Patel

Answers (1)

Answers (1)

former_member190312
Active Participant
0 Kudos

can anyone tell the solution ???

Regards

pabitra