2008 Apr 05 6:14 AM
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
2008 Apr 05 7:57 AM
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
2008 Apr 05 7:57 AM
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.
2008 Apr 05 7:57 AM
ho gowri...
in that case READ_TEXT should suffice...
Could you plz elaborate on u r problem