on 11-11-2009 5:31 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.