Application Development 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: 

How do I get the STXH-TDNAME infomation?

Former Member
0 Kudos
7,930

Hi, ALL.

I'd like to get infomations about STXH-TDNAME in Zprogram.

I know that a meaning of STXH-TDNAME is changed based on value of STXH-TDOBJECT.

I'd like to get a meaning of that from value of STXH-TDOBJECT.

it contains by any table??

If you know that, please let me know.

Regards.

Rie.

9 REPLIES 9

Former Member
0 Kudos
1,400

Hi ,

before you post , you should search in SDN forums.

anyhow check tcode SE75.

regards

Prabhu

0 Kudos
1,400

Hi, Prabhu.

Thank you for your reply.

I checked SE75.

but I can't get the infomation of STXH-TDNAME.

I wanna get the info about a meaning of TDNAME not TDOBJECT.

and I 'd like to get them in Zprogram.

If you know the table contains them, please let me know.

Regards.

Rie.

0 Kudos
1,400

Hi ,

TDNAME is depends upon the transaction , you need to see the logic in those transaction itself...

like PO>goto longtext>double click on text>opens text editor>GOTO-->header -->see the text name ie. PO number for Header text or PO+ITEM for Item Text...

regards

Prabhu

Former Member
0 Kudos
1,400

Hi Rie,

Find below sample example for STXH-TDNAME :

DATA : BEGIN OF it_stxh OCCURS 0,
         tdobject LIKE stxh-tdobject,
         tdname LIKE stxh-tdname,
         tdid LIKE stxh-tdid,
         tdspras LIKE stxh-tdspras,
         END OF it_stxh.
       
  SELECT tdobject 
         tdname 
         tdid 
         tdspras
         INTO TABLE it_stxh 
         FROM stxh 
         WHERE tdobject = 'EKKO' 
         AND tdspras = sy-langu.
    
  READ TABLE it_stxh INTO wa_stxh WITH KEY tdname = <PO_Number>.

BR

Dep

former_member182040
Active Contributor
0 Kudos
1,400

you can use CALL FUNCTION 'READ_TEXT'

0 Kudos
1,400

Hi Rie,

You can use the tables like STXH,STXL or Read_function FM

Or you can check the below link to get the TDNAME in your zreport

http://searchsap.techtarget.com/tip/Searching-items-in-SAPscript-forms

syed_ibrahim5
Active Participant
0 Kudos
1,400

hi,

You can trace it through ST05.

Search for STXH in the trace output.

With regards,

Syed Ibrahim .G

ThomasZloch
Active Contributor
0 Kudos
1,400

Prabhu's second reply was the correct one, from my point of view, I don't think there is a simple link between text object and concatenation logic of the text name. It's in the application logic.

"BELEG" -> "BUKRS & BELNR & GJAHR" (= primary key of BKPF)

"DOC_ITEM" -> "BUKRS & BELNR & GJAHR & BUZEI" (= primary key of BSEG)

Thomas

0 Kudos
1,400

Thank you everyone.

I understand that It's an application logic NOT table data.

It's too hard for me to see the logic...

Thanks.

Regards.

Rie.