Skip to Content
0
Former Member
Mar 15, 2010 at 08:11 AM

PO Text saved with FM SAVE_TEXT does not appear in transaction MM03

898 Views

Hello SDN,

I am using the function module SAVE_TEXT to batch upload Purchase Order Texts (viewable in transaction MM03).

I have the following parameters:

    tdhead-tdobject = 'MATERIAL'.
    tdhead-tdname = matnr. " material code (not necessarily 18 characters long)
    tdhead-tdid = 'BEST'.
    tdhead-tdspras = 'EN'. " or E
    ....

    CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
            CLIENT          = SY-MANDT
            HEADER          = tdhead
            INSERT          = 'X'
            SAVEMODE_DIRECT = 'X'
        TABLES
            LINES           = longTexts
        EXCEPTIONS
            ID              = 1
            LANGUAGE        = 2
            NAME            = 3
            OBJECT          = 4
            OTHERS          = 5
    .

This is working in the development machine but not in our QA box.

I don't know what the problem is. After using SAVE_TEXT, I tried to run the FM READ_TEXT to see if the text is in the system. It is.

We are using numeric material codes (still character type but only digits are allowed) and suspected that there should be leading zeroes, so I tried to append zeroes to make the length 18. The PO text still does not appear.

Please help.

--

Kyle