Sie sind auf Seite 1von 5

03/04/2019 What is the field name for PO header text in ME23n tr coide?

(http://w
ww.sap.c
Products
om/) (https://www.sap.com/products.html)

Industries (https://www.sap.com/industries.html)

upport
Services and Support (https://www.sap.com/support.html)

Training (https://www.sap.com/training-certi cation.html)

Community (https://www.sap.com/community.html)

Developer (https://developers.sap.com/index.html)

Partner (https://www.sap.com/partner.html)

About (https://www.sap.com/corporate/en.html)

 
Ask a Question (https://answers.sap.com/questions/ask.html) Write a Blog Post (https://blogs.sap.com/wp-admin/post-new.p

Archived discussions are read-only. Learn more about SAP Q&A


(https://go.sap.com/community/about/questions-and-answers.html)

What is the field name for PO header


text in ME23n tr coide?
Hi Guys,

https://archive.sap.com/discussions/thread/902706 1/5
03/04/2019 What is the field name for PO header text in ME23n tr coide?

Can anybody tell me how to get the value of PO header text . whats' the field name and what table name
also?

Thanks,

Gopi.

Tags: abap

(https://people.sap.com/former.member)

Former Member
June 04, 2008 at 21:48 PM
0 Likes

ng for? View more on this topic (https://go.sap.com/community/tag.html?


61924709785639136) or

//answers.sap.com/questions/ask.html?primaryTagId=833755570260738661924709785639136)

3 replies

(https://people.sap.com/former.member) June 04, 2008 at 21:35 PM


Former Member replied

Hi,

You will not have a field name for the PO header text(assuming texts tab at the header
level of a PO).

You can double click on any text and you will be taken to an editor.In that editor,
navigate to GO to->Header. It shows the object id etc,

Example

Text Name 4701023335

Language FR

Text ID F02 Header note

Text Object EKKO Purchasing doc. header text

You can read a specific text in the program using Read_text function module.

Thanks,

Vamshi.

https://archive.sap.com/discussions/thread/902706 2/5
03/04/2019 What is the field name for PO header text in ME23n tr coide?

Former Member replied June 04, 2008 at 21:47 PM

Use the function module, READ_TEXT to get the purchase order text.

Call function 'READ_TEXT'

exporting

client = sy-mandt

id = 'F01' (STXH-TDID)

Language = sy-langu

name = PO_number

object = 'EKKO'

importing

header = header

tables

lines = it_lines.

the output, you will be get it it_lines. this will contain the PO Header Text.

Hope this will help you.

Former Member replied June 04, 2008 at 21:48 PM

Hi,

Use STXH table to get tdid/tdobject/tdname fields

as shown by the code snippet below

and then use FM READ_TEXT to get the PO Header text.

Copy Code

https://archive.sap.com/discussions/thread/902706 3/5
03/04/2019 What is the field name for PO header text in ME23n tr coide?

1. TABLES : ekko, "Purchasing Document Header


2. thead. "SAPscript: Text Header
3.
4. DATA: t_theads LIKE stxh OCCURS 0 WITH HEADER LINE.
5. DATA: t_tlines LIKE tline OCCURS 0 WITH HEADER LINE.
6.
7. parameter: p_ebeln like ekko-ebeln. "Purchase Order
8.
9. SELECT * FROM stxh
10. APPENDING TABLE t_theads
11. WHERE tdobject = 'EKKO'
12. AND tdname = p_ebeln.
13.
14. CLEAR thead.
15. REFRESH t_tlines.
16.
17. CALL FUNCTION 'READ_TEXT' "#EC *
18. EXPORTING
19. id = t_theads-tdid
20. language = t_theads-tdspras
21. name = t_theads-tdname
22. object = t_theads-tdobject
23. IMPORTING
24. header = thead
25. TABLES
26. lines = t_tlines
27. EXCEPTIONS
28. id = 1
29. language = 2
30. name = 3
31. not_found = 4
32. object = 5
33. reference_check = 6
34. wrong_access_to_archive = 7
35. OTHERS = 8.
36.

table t_tlines will contain PO Header texts.

Cheers,

Vikram

Edited by: Vikram Jalali on Jun 4, 2008 3:48 PM

Share & Follow

https://archive.sap.com/discussions/thread/902706 4/5
03/04/2019 What is the field name for PO header text in ME23n tr coide?

(https://www.facebook.com/sapcommunity) (https://twitter.com/SAPCommunity)

(https://www.youtube.com/c/SAPCommunities) (https://www.linkedin.com/company/sap)

(http://www.slideshare.net/SAP) (https://instagram.com/sap/) ()
Privacy (http://sap.com/about/legal/privacy.html) Terms of Use (http://sap.com/corporate/en/legal/terms-of-

use.html)

Legal Disclosure (http://sap.com/about/legal/impressum.html) Copyright (http://sap.com/about/legal/copyright.html)

Trademark (http://sap.com/about/legal/trademark.html) Preferências de cookies

Sitemap (http://www.sap.com/sitemap/index.html) Newsletter (https://sap.com/registration/newsletter.html)

https://archive.sap.com/discussions/thread/902706 5/5

Das könnte Ihnen auch gefallen