‎2011 Sep 26 2:24 PM
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 = 5My 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
‎2011 Oct 03 4:05 PM
‎2011 Oct 03 4:05 PM
‎2011 Oct 06 2:53 PM
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.