cancel
Showing results for 
Search instead for 
Did you mean: 

TLINE-TDLINE IS NOT GETTING POPULATE

Former Member
0 Kudos

Hi,

I want to pint header text of me51n into my smart form. For this i am using read_text and passing all required parameters.

But my TLINE-TDLINE IS NOT GETTING POPULATE.

Same code i am writing for item text and here TLINE-TDLINE IS GETTING POPULATE.

Could any one tell me how to get header text .

I am using code given below:-

CONCATENATE IT-BANFN IT-BNFPO INTO NAME.

data : tline1 like tline occurs 0 with header line.

CALL FUNCTION 'READ_TEXT'

EXPORTING

ID = 'B01'

LANGUAGE = 'E'

NAME = NAME

OBJECT = 'EBANH'

  • IMPORTING

" HEADER =

TABLES

LINES = tline1

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.

LOOP AT TLINE1.

CASE SY-TABIX.

WHEN 1.

LINE3 = TLINE1-TDLINE.

WHEN 2.

LINE4 = TLINE1-TDLINE.

ENDCASE.

ENDLOOP.

Regards,

Ranu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI

Header donot concatenate anything just use the BANFN (Purchase Requisition Number) only

NAME = BANFN ...and use READ_TEXT.... for items u need to use BANFN and its corresponding line item # to get its corresponding text.

surya