cancel
Showing results for 
Search instead for 
Did you mean: 

READ_TEXT BKPF

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

HI Ravi,

I am using FB60 for creating the invoice. and also FB03 for viewing the Invoice document.

Former Member
0 Kudos

GOt the solutions. Closing

Former Member
0 Kudos

Hi Madhavi,

can you please let me know how u solved the issue ?

Former Member
0 Kudos

Dear Madhavi Kotha,

I'm coding report VAT on T.Code MIRO( Module MM) & FB60( Module FI)

Please help me get information on Tab Note in Veritication,

Thanks very much.

Dungnv.