Skip to Content
author's profile photo Former Member
Former Member

SY-SUBRC = 5 i am getting when i execute SAVE_TEXT FM

Hi Experts,

i am trying to update longtext of PM order through SAVE_TEXT function module. But whenever i execute this with requried input i am getting SY-SUBRC as 5, please help me out in resolving this problem.

below is my piece of code.

CONCATENATE SY-MANDT V_NEW_ORDER INTO V_TEXT_HEADER-TDNAME.

V_TEXT_HEADER-TDID = V_TEXTID.

V_TEXT_HEADER-TDSPRAS = V_LANG.

V_TEXT_HEADER-TDOBJECT = V_TEXT_OBJ.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

CLIENT = SY-MANDT

HEADER = V_TEXT_HEADER

INSERT = 'X'

SAVEMODE_DIRECT = 'X'

  • OWNER_SPECIFIED = ' '

  • IMPORTING

  • FUNCTION =

  • NEWHEADER =

TABLES

LINES = T_LINES[]

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

OBJECT = 4

OTHERS = 5.

ENDLOOP.

looking forward for ur reply..

Regards,

Kali Prasad

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2008 at 05:29 PM

    Hello kali,

    what do you have in your tdname?

    The text name for a PM work order should be sy-mandt, afvc-aufpl and afvc-aplzl.

    Check if this is what you are doing.

    or else concatenate these 3 fields into your tdname an try.

    cheers,

    ~goldie.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Kali,

      I am facing similar issue updloading the Header text in IW31/IW32/IW33.I have done the same as you had mentioned above, however did not help me.Could you please mention in detail how you went about with the problem.Can you mention the exit where you invoked the Save_text and other funtion modules.I wonder if I need to process any BAPI and run it in the form of a batch program.I've been working on the BAPI "BAPI_ALM_ORDER_MAINTAIN" however even this did not suffice my requirement.Actually Meter reading results or some text needs to be created at Header level (header text ) on save in IW32.

      Thanks,

      Chakram Govindarajan

  • Posted on Aug 22, 2016 at 06:42 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.