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

Reading Text ID's

Former Member
0 Likes
586

Abap Gurus,

In vf03 th road permit number is maintained as texid.

so my assumption is each billing doc number should have a RPN. I have with me only id and object which is VBBK.

then how can i get RPN based on document numbers

I check with the fn module READ_TEXT also.

Thankz in advance.

rewards if useful

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
541

DATA: it_lines TYPE TABLE OF tline,

In the structure 'TLINE', 'TDLINE' will give the content of the text.

As the RPN is maintained as a header text just pass the billing document number for the exporting parameter 'NAME' .If it is an item text then you need to concatenate the billing doc no. & item number and then it needs to be passed to the

exporting parameter 'NAME' .

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = id

language = sy-langu

name = billing doc number

object = VBBK

TABLES

lines = it_lines

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.

ENDIF.

Abap Gurus,

In vf03 th road permit number is maintained as texid.

so my assumption is each billing doc number should have a RPN. I have with me only id and object which is VBBK.

then how can i get RPN based on document numbers

I check with the fn module READ_TEXT also.

Thankz in advance.

rewards if useful

2 REPLIES 2
Read only

Former Member
0 Likes
542

DATA: it_lines TYPE TABLE OF tline,

In the structure 'TLINE', 'TDLINE' will give the content of the text.

As the RPN is maintained as a header text just pass the billing document number for the exporting parameter 'NAME' .If it is an item text then you need to concatenate the billing doc no. & item number and then it needs to be passed to the

exporting parameter 'NAME' .

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = id

language = sy-langu

name = billing doc number

object = VBBK

TABLES

lines = it_lines

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.

ENDIF.

Read only

rahul2000
Contributor
0 Likes
541

ho gowri...

in that case READ_TEXT should suffice...

Could you plz elaborate on u r problem