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

Object ID creation

Former Member
0 Likes
758

Hi experts

I wan to create text editor in my yscreen and what every i entered there it should save in my yobject and yid what i created in se75.

for the above process i have this doubts..

1. if i creates yobject and yid and saves the text through save_text any problem will be there?

2. in which table this saved data will be stored?

please suggest..

3 REPLIES 3
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
649

You can use CREATE_TEXT/SAVE_TEXT/COMMIT_TEXT and READ_TEXT function modules also for the same.

The data will get updated in STXH/STXL tables

Nabheet

Read only

0 Likes
649

Hi Nabheet

i am doing like this any problem

e_header-tdobject = 'ZLCOBJECT'.
         e_header-tdid = 'HTXT'.
         e_header-tdspras = sy-langu.
         e_header-tdname = ylc_ha-lclnr.
         e_header-tdlinesize = 100.

         call function 'SAVE_TEXT'
           exporting
             client          = sy-mandt
             header          = e_header
             savemode_direct = 'X'
           tables
             lines           = it_tline
           exceptions
             id              = 1
             language        = 2
             name            = 3
             object          = 4
             others          = 5.


I which table can i get the saved data


it will effects any standard objects...?


I created object 'ZLCOBJECT' and id HTXT





Read only

0 Likes
649

Hi,

Indicator: Save text immediately

The save mode of a text module (dialog, update) is defined via the table TTXOB with the text object. In certain cases it makes sense to save the text immediately (for example, in batch programs) instead of in the update task.

    • ' ' Save mode according to text object
    • 'X' Save text module immediately

can you try this way!

call function 'SAVE_TEXT'
        exporting
             header        = thead
               INSERT        = ' X'
        importing
             function      = txtfunction
             newheader     = thead
        tables
             lines         = tlinetab
        exceptions
             id            = 1
             language      = 2
             name          = 3
             object        = 5.