08-20-2007 9:31 AM
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
08-20-2007 9:35 AM
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
08-20-2007 9:42 AM
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
08-20-2007 9:46 AM
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
08-20-2007 10:44 AM
08-20-2007 11:36 AM
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
08-20-2007 9:42 AM
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
08-20-2007 9:46 AM
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.