Application Development and Automation 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: 
Read only

GET TEXT FB02

Claytoncbj
Participant
0 Likes
2,117

Hi!

I need to get the data of TEXT (below) before save in the TCODE 'FB02'.

Does anybody how I can get the data? ( Internal table or variable )

I know that this screen is run by FM 'FI_TEXTS_DOC_ITEM'.

Thanks!

5 REPLIES 5
Read only

MateuszAdamus
Active Contributor
0 Likes
1,862

Hello claytoncbj

Check with the READ_TEXT function.

Kind regards,
Mateusz

Read only

0 Likes
1,862

It doens´t work. It works after the document was saved.

Thank you!

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,862

Those long texts may already have been read, and possibly modified.

  • Using FM GET_TEXT_MEMORY you get a list of the texts saved in memory (from MEMORY ID 'SAPLSTXD')
  • Using parameter LOCAL_CAT of READ_TEXT you can read from memory or from database (Keep in mind that a READ_TEXT with LOCAL_CAT initial may reverse any change performed by user)
Read only

Claytoncbj
Participant
0 Likes
1,862

I got the code to solve my problem

......

* GET Text
* Objektdaten zu Notizen
TYPES: BEGIN OF eenot_notice,
* PUBLIC-Daten
public TYPE eenot_notice_public,
* Rahmenüberschrift
ueberschrift(30),
* Control data
c TYPE eenot_notice_control,
notizen TYPE eenot_notice_table,
END OF eenot_notice.
* Daten mit globalem Charakter
DATA note TYPE eenot_notice.
DATA: texte TYPE eenot_single_notice.
DATA:
* l_dynp_line LIKE eeno_dynp-zeile,
l_line TYPE LINE OF eenot_single_notice-inlines,
l_index TYPE i.
l_index = 1.
CLEAR l_line.
FIELD-SYMBOLS <fs_tdline> TYPE any.
ASSIGN ('(SAPLEENO)NOTE-NOTIZEN') TO <fs_tdline>.
IF <fs_tdline> is ASSIGNED.

note-notizen[] = <fs_tdline>.
READ TABLE note-notizen INTO texte INDEX 30.
IF SY-SUBRC = 0.
READ TABLE TEXTE-INLINES INTO l_line INDEX l_index.
ENDIF.
ENDIF.

..

Read only

MateuszAdamus
Active Contributor
0 Likes
1,862

Hello Clayton

Please add your solution as an answer and mark it as the correct one. This way others will know your issue was solved by this.

Kind regards,
Mateusz