Skip to Content

LSMW and TDLINE

Hi,

i´m using LSMW for transaction CU01.

My problem is that when the recording is done the internal table for field TDLINE doesn´t have any length at all.

That is i have:

BEGIN OF itab.

TDLINE(000000) TYPE c.

END OF itab.

How can i overcome this problem?

Best regards.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Nov 14, 2005 at 04:49 PM

    I am not sure I understood your problem. You are doing a BDC recording of CU01 to use with LSMW. Am I correct? How is the itab getting defined? Is it some input that you are giving, or is it part of the generated code? Also, TDILNE sounds like you are trying to load texts. Use SAVE_TEXT instead of this after your do whatever using CU01, because texts are not best handled with BDC.

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 14, 2005 at 04:42 PM

    Im not sure to have well understood your problem. I think there is something wrong with table declaration.

    Try to do this:

    BEGIN OF itab.
    TDLINE(132) TYPE c.
    END OF itab.
    

    usually tdline have length 132.

    Manuel

    Add a comment
    10|10000 characters needed characters exceeded

    • Alos, what you have there is not an internal table, it is a structure.

      data:
      
      BEGIN OF itab.
       TDLINE(132) TYPE c.
      END OF itab.

      If it is to be an internal table, then you need the OCCURS extenstion.

      data:
      
      BEGIN OF itab occurs 0.
       TDLINE(132) TYPE c.
      END OF itab.

      Regards,

      Rich Heilman

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2005 at 04:45 PM

    Hello Calsadillo,

    I guess your are trying to record LONG Text ,

    which i am afraid is not possible by BDC.

    Visit link belwo to the same with LSMW for long texts:

    http://help.sap.com/saphelp_erp2004/helpdata/en/fb/787039172511d2b428006094b944c8/frameset.htm

    Rgds,

    Mano sri

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 14, 2005 at 04:46 PM

    Hi Manuel,

    my problem is that the program in question has been generated by means of a recording in LSMW.

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 09, 2016 at 09:06 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.