on 06-09-2008 4:42 PM
I am trying to read the Invoice Notes Test. For printing.
Invoices can come from RBKP or from the BKPF.
When i give object as RBKP READ_TEXT function module is giving the text.
But for BKPF it is not giving. Please if any one have idea what Object name i should give for BKPF entries.
See the following code snippet how i am calling ... read_text
SELECT SINGLE * FROM rbkp INTO l_rbkp WHERE belnr = inv_number AND gjahr = inv_fy.
IF sy-subrc <> 0.
SELECT SINGLE * FROM bkpf INTO l_bkpf WHERE belnr = inv_number AND gjahr = inv_fy.
IF sy-subrc = 0.
l_object = 'BKPF'.
ENDIF.
ELSE.
l_object = 'RBKP'.
ENDIF.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = id
language = sy-langu
name = name
object = l_object
TABLES
lines = i_notes
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.
Hi Madhavi,
There are no TEXT Objects with the name BKPF.
Even though the invoices come from different tables, the Text IDs are not dependent on the table from which you get them.
Do you know in which transaction this TEXT is visible?
You can find the text id if we know in which transaction it is viewed.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.