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: 

Problem in SAVE_TEXT

0 Kudos

Hi All,

     I use SAVE_TEXT to save long text to projct,But

     I am uploading the long text using SAVE_TEXT function module

     I can see the data in STXL table and i can use READ_TEXT to get the long text

     but the Long text data is not diaplying on the scrreen.

     Who know ,Please Help me

  header-tdname = ‘D00000154'.

  header-tdobject = 'PMS'.
  header-tdid       = 'LTXT'.
  header-tdspras  = '1'.

  CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
      client                    = sy-mandt
      header                 = header
      savemode_direct = 'X'
    TABLE
      lines                     = gt_tline[]
    EXCEPTIONS
      id                          = 1
      language              = 2
      name                    = 3
      object                   = 4
      OTHERS             = 5.


Best Regards

wangyuan

1 ACCEPTED SOLUTION

0 Kudos

hi all

     thanks for all help

     I think i had get the answer

     in the cj02,there is a flag field TXLTX

     if the long text is exist,the PROJ-TXTSP table feild will set value

    ,and if PROJ-TXTSP is not null,the TXLTX field will set long text flag,

     then overview the long text screen,it will call fun  'read_text' and show the long text

     so if PROJ-TXTSP is null ,it will not call fun read_text ,so the long text will not display

Best Regards

wangyuan


14 REPLIES 14

former_member228751
Contributor
0 Kudos

where u want to see the long text?

0 Kudos

in CJ02 the long text edit screen of project

Former Member
0 Kudos

hi Wang,

Can you please share the code where you are using Read_Text and trying to display on the screen?

generally, read_text FM will return table of type structure TLINE then you have to read the text from this table.

Regards,

DN.

former_member210252
Contributor
0 Kudos

Hi Wang,

Where exactly you want the long text to be updated either it is for Purchase Order or Sales Order or Material Master long text.

Please confirm this.

Regards,

Rafi

0 Kudos

yes ,the long text is for project CJ02

former_member183073
Active Participant
0 Kudos

The Login Language might be the issue, you are saving the text in Chinese language and if you login with different language lets say English or German the long text saved in Chinese will not be visible.

If this is the case you can maintain Translation.

0 Kudos

the language of login to display the long text is chinese, and set the Save_text  fun the language also is chinese

0 Kudos

1 execute SAVE_TEXT

2 execute READ_TEXT

3 See cj02 the project long text ,Long text data is not diaplying on the scrreen

Who know the reason or tell me how i can do

0 Kudos

Hi Wang,

In SAVE_TEXT FM please even pass the language parameter and try it.

Regards,

Rafi

former_member223873
Participant
0 Kudos

Hi, try to pass a parameter INSERT of the FM

call function 'SAVE_TEXT'
   exporting
*   CLIENT                = SY-MANDT
     HEADER                = HEADER
     INSERT                = 'X'

and try to run commit work to be sure data is saved


br

0 Kudos

I had try to set INSERT    = 'X', but it is unuseful

and I had do the same to save long text for MATERIAL ,MATERIAL long text sace successful

0 Kudos

in this case I would suggest you to debug the save_text module, it should not be much complicated 😐

raymond_giuseppi
Active Contributor
0 Kudos

Open FM READ_TEXT with SE37 and set a break-point at start. Then call CJ02 or CJ20N and check actual values passed by the transaction to the FM.

Regards,

Raymond

0 Kudos

hi all

     thanks for all help

     I think i had get the answer

     in the cj02,there is a flag field TXLTX

     if the long text is exist,the PROJ-TXTSP table feild will set value

    ,and if PROJ-TXTSP is not null,the TXLTX field will set long text flag,

     then overview the long text screen,it will call fun  'read_text' and show the long text

     so if PROJ-TXTSP is null ,it will not call fun read_text ,so the long text will not display

Best Regards

wangyuan