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 : POTEXT : Upload more than 132 chars -- HOW ??

sachin_soni
Active Participant
0 Kudos

Hi All,

I have made lsmw for uploading PO text using standard object : 0001

But i need the text to be more than 132 chars --the size od TDLINE,gone through previous post but no satisfactory answers this there.

If any body can help,this is urgent.

Thanks,

Sachin Soni

1 ACCEPTED SOLUTION

sachin_soni
Active Participant
0 Kudos

Any one??

5 REPLIES 5

sachin_soni
Active Participant
0 Kudos

Any one??

0 Kudos

you have to create multiple lines with do...enddo loop., like this:

(assuming excel_long_text-text is 924 characters long, 7 lines X 132 char)

__GLOBAL_DATA__

data: offset type i,

text_132(132) type c.

__BEGIN_OF_RECORD__ Before Using Conversion Rules

Rule : Default Settings Modified

Code: /sapdmc/ltxtl = init_/sapdmc/ltxtl.

CLEAR offset.

DO 7 TIMES.

text_132 = excel_long_text-text+offset(132).

offset = offset + 132.

__END_OF_RECORD__ After Using Conversion Rules

Rule : Default Settings Modified

Code: transfer_record.

ENDDO.

0 Kudos

excelent ans harris ,although i have done with a diff soln but still i was searching for an intelligent soln like this.

0 Kudos

hi sachin,

iam also facing same problem, can you please tell me how to write that code and where to write that code in lsmw to upload longtext with morethan 132 chrs...can you please eloborate your answer or solution you have achieved.

regards,

kishore.

Former Member
0 Kudos

Hi,

you can use function module FORMAT_TEXTLINES

David