Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

layout

Former Member
0 Likes
545

hi,

i use the function read_text,

and it work well.

but when i want to pass it to the layout - its bring

nothing.

the code in the layout :

PERFORM GET_HEADER IN PROGRAM ZMM_FORMS

USING &EKKO-BSART&

CHANGING &ADDRESS1&

CHANGING &ADDRESS2&

CHANGING &ADDRESS3&

CHANGING &ADDRESS4&

CHANGING &ADDRESS5&

ENDPERFORM

&ADDRESS1&

&ADDRESS2&

&ADDRESS3&

&ADDRESS4&

&ADDRESS5&

and in the program:

DATA: TLINE TYPE TLINE OCCURS 0 WITH HEADER LINE.

data: address1(132) type c,

address2(132) type c,

address3(132) type c,

address4(132) type c,

address5(132) type c.

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

ID = 'ST'

LANGUAGE = 'B'

NAME = 'ZMM_HADASSAH NY ADDRESS'

OBJECT = 'TEXT'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

LINES = TLINE

  • EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • NOT_FOUND = 4

  • OBJECT = 5

  • REFERENCE_CHECK = 6

  • WRONG_ACCESS_TO_ARCHIVE = 7

  • OTHERS = 8

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

READ TABLE TLINE INDEX 1.

address1 = TLINE-tdline(132).

READ TABLE TLINE INDEX 2.

address2 = TLINE-tdline(132).

READ TABLE TLINE INDEX 3.

address3 = TLINE-tdline(132).

READ TABLE TLINE INDEX 4.

address4 = TLINE-tdline(132).

READ TABLE TLINE INDEX 5.

address5 = TLINE-tdline(132).

READ TABLE TLINE INDEX 1.

out_par-value = address1.

MODIFY out_par INDEX 1.

READ TABLE TLINE INDEX 2.

out_par-value = address2.

MODIFY out_par INDEX 2.

READ TABLE TLINE INDEX 3.

out_par-value = address3.

MODIFY out_par INDEX 3.

READ TABLE TLINE INDEX 4.

out_par-value = address4.

MODIFY out_par INDEX 4.

READ TABLE TLINE INDEX 5.

out_par-value = address5.

MODIFY out_par INDEX 5.

and i dont know what the problem.

can anyone help me?

thanks.

dana.

4 REPLIES 4
Read only

Former Member
0 Likes
486

What is the paragraph format that you are using when you try to display the address1, address2 etc?

Regards,

Ravi

Read only

0 Likes
486

the p.format: *

Read only

Former Member
0 Likes
486

Hi Dana,

Check once the declaration of 'ADDRESS1'...'ADDRESS5' in the layout set. Let me know how you declared these variables.

I hope you are using the correct structure in the ZMM_FORMS for the out_par table.

If every thing is fine then check the table entries before control leaves to the layout set.

Regards,

Satya.

And laso try while reading the out_par table before assing the value to out_par-value.

READ TABLE OUT_PAR INDEX 1...5

Message was edited by: Satyanarayana Sayana

Read only

0 Likes
486

thank you all very much,

i did a stupid thing.

i dont wanna even tell you what i did,

but it work now.

thank you very much.