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: 

Long-text Bdc Change ---- problem

Former Member
0 Kudos

hi experts

iam doing bdc to update a long text for qp02 tcode inspection characterstic

the follwoing is the itab for long test

DATA: BEGIN OF itext OCCURS 0,

vornr LIKE plpo-vornr,

merknr LIKE plmk-merknr,

long1(72) TYPE c,

long2(72) TYPE c,

long3(72) TYPE c,

long4(72) TYPE c,

long5(72) TYPE c,

long6(72) TYPE c,

long7(72) TYPE c,

long8(72) TYPE c,

long9(72) TYPE c,

long10(72) TYPE c,

END OF itext.

i had moved all long text from file to itext

my bdc ..

loop at itab.

perform

"

"

loop at ioperation

perform

perform

loop at ichr where vornr = ioperation vornr. (Characterstic table)

perfrom ---some fields

*****

read table itext with key vornr = ichr-vornr

merknr = ichr-merknr.

perform .

long-text.

endloop.

endloop.

as iam reading it it picks all longtext for the givem condition.

as iam having same operation and charcaterstic for different matnr

it picks all .and after perfrming one matnr it dispalys the content other matnr in the first matnr.

any other way to modify text .

will be thankfull

and points will be awarded

1 REPLY 1

Former Member
0 Kudos

Hi,

After the statement, use sy-subrc check as follows:

<u>clear: itext.</u>

read table itext with key vornr = ichr-vornr

merknr = ichr-merknr.

<u>if sy-subrc = 0.</u>

perform .

<u>endif.</u>

Regards