Application Development and Automation 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: 
Read only

error in call function

Former Member
0 Likes
1,056

hi friends,

i am using the following function and it is giving an error

' I_STRUCTURE_NAME = MARA not expected.'

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

  • EXPORTING

  • I_BUFFER_ACTIVE =

I_STRUCTURE_NAME = MARA

  • I_CLIENT_NEVER_DISPLAY = 'X'

  • I_BYPASSING_BUFFER =

  • I_INTERNAL_TABNAME =

CHANGING

ct_fieldcat = I_fieldcat

  • EXCEPTIONS

  • INCONSISTENT_INTERFACE = 1

  • PROGRAM_ERROR = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

did i do any syntax error.

thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
733

You have to fill in the parameter for i_buffer_active.

Or better yet, leave it out entirely:

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
  EXPORTING
    i_structure_name       = 'MARA'
    i_client_never_display = 'X'
    i_bypassing_buffer     = i_internal_tabname
    =
  changing
    ct_fieldcat            = i_fieldcat
  EXCEPTIONS
    inconsistent_interface = 1
    program_error          = 2
    OTHERS                 = 3.

Rob

Edited by: Rob Burbank on Jan 18, 2008 12:19 PM

5 REPLIES 5
Read only

Former Member
0 Likes
733

Hi,

Yes, you need to remove the comment next to the word EXPORTING.

Regards,

Nick

Read only

Former Member
0 Likes
733

Hi,

Place it in quotes.

i_structure_name = 'MARA'.

Hope it helps.

Regards,

Siddhesh S.Tawate

Read only

former_member194669
Active Contributor
0 Likes
733

Hi,

Put MARA in single quote

I_STRUCTURE_NAME = 'MARA'.

a®

Read only

Former Member
0 Likes
734

You have to fill in the parameter for i_buffer_active.

Or better yet, leave it out entirely:

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
  EXPORTING
    i_structure_name       = 'MARA'
    i_client_never_display = 'X'
    i_bypassing_buffer     = i_internal_tabname
    =
  changing
    ct_fieldcat            = i_fieldcat
  EXCEPTIONS
    inconsistent_interface = 1
    program_error          = 2
    OTHERS                 = 3.

Rob

Edited by: Rob Burbank on Jan 18, 2008 12:19 PM

Read only

Former Member
0 Likes
733

Hi,

Keep MARA in single quotes :

I_STRUCTURE_NAME = 'MARA'

And seems to be exporting is commented, pls uncomment exporting.

Thanks,

Sriram Ponna.