This website is not affiliated with, sponsored by, or approved by SAP AG.

Long text field of Network components

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Long text field of Network components

Postby maria_abap » Sun Feb 08, 2004 9:19 am

Hi.

Need to print the long text mentioned at CN21 (network components general data) in a report. How to find the exact field?

Thanks in advance

Maria
maria_abap
 
Posts: 36
Joined: Sat Aug 09, 2003 1:54 pm

Postby Incho » Mon Feb 09, 2004 3:01 am

I use the following code:
Code: Select all
        tdname = sy-mandt.
        tdname+3 = it_proj-rsnum.
        tdname+13 = it_proj-rspos.
        tdname+17 = it_proj-rsart.
        call function 'READ_TEXT'
             exporting
                id        = text_id
                language  = it_proj-ltxsp
                name      = tdname
                object    = text_obj
             importing
                header    = tdheader
             tables
                lines     = tlines
             exceptions
                not_found = 01.


Where
Code: Select all
....
         rsnum like caufv-rsnum,   "Reservation Number
         rspos like resb-rspos,    "Res.Item
         rsart like resb-rsart,    "Record type
...

Hope helps :wink: ,
Incho
Incho
 
Posts: 1537
Joined: Mon Oct 21, 2002 3:32 am
Location: Belgium

Long text field of Network components (CN21)

Postby maria_abap » Mon Feb 09, 2004 5:58 am

Thank you Incho.

The problem is I can't findout the text_id and text_object by using double click the fieled and GOTO>HEADER. Because double click not working in this long text window. What it means?

Maria
maria_abap
 
Posts: 36
Joined: Sat Aug 09, 2003 1:54 pm

Long text field of Network components (CN21)

Postby maria_abap » Mon Feb 09, 2004 6:25 am

More info.


This long text is belongs to Material Reservation.

Maria.
maria_abap
 
Posts: 36
Joined: Sat Aug 09, 2003 1:54 pm

Re: Long text field of Network components (CN21)

Postby Incho » Mon Feb 09, 2004 8:26 am

maria_abap wrote:Thank you Incho.

The problem is I can't findout the text_id and text_object by using double click the fieled and GOTO>HEADER. Because double click not working in this long text window. What it means?

Maria

Code: Select all
CONSTANTS:
....
*For text reading like in LCNMMFTX / FORM SET_CONTROL_TEXT
           text_id  LIKE thead-tdid     VALUE 'MATK',
           text_obj LIKE thead-tdobject VALUE 'AUFK  '.

I copied this part from the mentioned program.
It is part of PROMAN tool....it has to be imported into 46C, but standard tool for 4.70.

Incho
Incho
 
Posts: 1537
Joined: Mon Oct 21, 2002 3:32 am
Location: Belgium

Long text field of Network components (CN21)

Postby maria_abap » Tue Feb 10, 2004 6:01 am

Thank you Incho.

Its working with AUFK & MATK.
:lol:

Maria
maria_abap
 
Posts: 36
Joined: Sat Aug 09, 2003 1:54 pm

Postby Incho » Tue Feb 10, 2004 8:22 am

Great! :wink:

Incho
Incho
 
Posts: 1537
Joined: Mon Oct 21, 2002 3:32 am
Location: Belgium

Text IDs

Postby Srinivasvk9211 » Tue Feb 17, 2004 10:15 pm

Some additional information and may be of use in future..

All the text IDs (for Header and Item level) can be viewed using SE75. Please check the same and use appropriate text ID for the application under use to fetch the Long text/standard text..

Good Luck,
Srinivasvk9211
Srinivasvk9211
 

Long text field of Network components

Postby maria_abap » Sun Feb 22, 2004 6:31 am

thank you Sreenivas.

Its quite useful information.


Best regards.

Maria
maria_abap
 
Posts: 36
Joined: Sat Aug 09, 2003 1:54 pm


Return to ABAP

Who is online

Users browsing this forum: No registered users and 6 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.