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

SAVE_TEXT fm problem: incomplete text table saving

matteo_montalto
Contributor
0 Likes
452

Hi all gurus,

I'm working on an SRM 7 release and basically I'm coding a report which can add header's text to a given contract.

In order to do so, I basically retrieve my text rows and populate accordingly an input table which I lately pass to SAVE_TEXT function module:

CALL FUNCTION 'SAVE_TEXT'
            EXPORTING
              client                = sy-mandt
              header                = thead_text  "contains data accordingly to tdid and ctr reference
              insert                = 'X'
              savemode_direct       = 'X'
              owner_specified       = 'X'
*             LOCAL_CAT             = ' '
*           IMPORTING
*             FUNCTION              =
*             NEWHEADER             =
            TABLES
              lines                 = texttable
            EXCEPTIONS
              id                    = 1
              language              = 2
              name                  = 3
              object                = 4
            OTHERS                = 5

My problem occours when texttable is an huge table (e.g., 800 entries). After the report execution I noticed that ONLY 85 rows have been added as text on contract's header instead of 800. Sy-subrc of the function is however zero (everything's fine).

Tried also to split texttable into sub-tables and then using SAVE_TEXT in append mode, but the same problem occours.

Has anyone an idea about this strange issue? I also searched for notes as this seems to be a problem related to the standard FM but found anything...

Thanks in advance for your suggestions

1 ACCEPTED SOLUTION
Read only

former_member212713
Contributor
0 Likes
383

Where are you showing text on the screen? (TEXTEDIT etc.)

2 REPLIES 2
Read only

former_member212713
Contributor
0 Likes
384

Where are you showing text on the screen? (TEXTEDIT etc.)

Read only

matteo_montalto
Contributor
0 Likes
383

Hello,

found the prob, was due to my fault in params passing. Opened anyway an OSS note since the same problem happens in std code when creating a Contract/PO with an huge longtext table.

I'll update eventually the thread after SAP feedback.