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: 

REUSE_ALV_FIELDCATALOG_MERGE problem

Former Member
0 Kudos

Dear all,

I am in upgrade project, from 4.6 c to ecc 6.0.

In 4.6c code is like below. But in 6.0 it is getting runtime error like is_variant does not exist.

Please tell me how can i repair this in 6.0

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = G_REPID

I_INTERNAL_TABNAME = G_TABNAME

I_CLIENT_NEVER_DISPLAY = 'X'

I_INCLNAME = G_REPID

IS_VARIANT = WF_XVARIANT

CHANGING

CT_FIELDCAT = RT_FIELDCAT[]

EXCEPTIONS

INCONSISTENT_INTERFACE = 1

OTHERS = 3.

Thanks in advance

7 REPLIES 7

former_member223537
Active Contributor
0 Kudos

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = G_REPID

I_INTERNAL_TABNAME = G_TABNAME

I_CLIENT_NEVER_DISPLAY = 'X'

I_INCLNAME = G_REPID

<b>*IS_VARIANT = WF_XVARIANT</b>

CHANGING

CT_FIELDCAT = RT_FIELDCAT[]

EXCEPTIONS

INCONSISTENT_INTERFACE = 1

OTHERS = 3.

Simply comment out that line

0 Kudos

Thanks Prashant,

but Still it is giving dump.

dump analysis is:

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_READ_SRC_LINE_TOO_LONG', was

not caught in

procedure "K_KKB_FIELDCAT_MERGE" "(FUNCTION)", nor was it propagated by a

RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

There was an attempt to read program "ZMM_WB_PO_GR" from the database.

The READ REPORT statement allows you to copy a program text into an

internal table. The occupied line length in the program text must not

exceed the width of the internal table.

The internal table "\FUNCTION=K_KKB_FIELDCAT_MERGE\DATA=L_ABAP_SOURCE[]" is 72

characters wide. The program line is

85 characters wide.

Please provide me solution.

Thanks in advance

0 Kudos

Hi,

i had the problem too. In Your source code there are lines grater than

72 Char. You have to short them. Make simly enter in the line.

Write: / '012345678901234567890123456789012345678901234567890123456789' to Test.

Write: /

'012345678901234567890123456789012345678901234567890123456789'

to Test.

That's work.

regards, Dieter

0 Kudos

Thanks Dieter,

Problem solved.

Thank u very much.

0 Kudos

Hi,

good that your problem is solved, but why don't you close this thread

and why don't you give reward point to all they helped you?

regards, Dieter

Former Member
0 Kudos

Hi Ravi,

look via se37 to the parameters of REUSE_ALV_FIELDCATALOG_MERGE.

There is no parameter like IS_VARIANT. Delete it in your code.

Regards, Dieter

kiran_k8
Active Contributor
0 Kudos

Ravi,

Try this.

Go to utitlities in the menu bar

click settings

click abap editor tab

click the editor tab

uncheck the default line length 72.

K.Kiran.