Application Development 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: 

LSMW and TDLINE

former_member182371
Active Contributor
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

manuel_bassani
Contributor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

former_member182371
Active Contributor
0 Kudos

Hi Manuel,

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

Regards.

Former Member
0 Kudos

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

oleg_ignatenko
Discoverer
0 Kudos

This message was moderated.