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

Hierarchial Layout Saving with function modules

Former Member
0 Likes
752

Hai to all

i am facing a problem while saving layout in Hierarchial list display with function module.

below error message is coming when i am going save my layout.

210 if l_def_variant-variant eq rs_variant-variant.

211 l_default = 'X'.

212 endif.

213 endif.

214

215 call function 'LT_FC_SAVE'

216 exporting

217 * I_TOOL = 'LT'

218 i_tabname = r_tabname

219 i_tabname_slave = r_tabname_slave

220 is_variant = rs_variant

221 it_fieldcat = rt_fieldcat[]

222 it_sort = rt_sort[]

223 it_filter = rt_filter[]

224 is_layout = rs_layout

225 i_default_variant = l_default

226 exceptions

227 fc_not_complete = 1

228 others = 2.

229 case sy-subrc.

230 when '0'.

231 message s018(0k).

232 when '1'.

>>>>> message x000(0k) with 'LT_FC_SAVE' sy-subrc

234 raising fc_not_complete.

235 endcase.

it is very urgent...

Subhash.M

5 REPLIES 5
Read only

Former Member
0 Likes
701

Subash,

This is a part of the standard code. Can you tell use what are you passing to the parameter I_SAVE in the function?

Also, you should pass values to IS_VARIANT parameter as well.

Regards,

Ravi

Note : Please mark the helpful answers

Message was edited by: Ravikumar Allampallam

Read only

0 Likes
701

Dear ravikumar

Thankq for ur reply

i am sending my code

data: ls_vari type disvariant.

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

i_callback_program = w_repid

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

is_layout = wa_layout

it_fieldcat = i_fcat[]

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

it_sort = i_sort[]

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

i_default = 'X'

i_save = 'X'

IS_VARIANT = ls_vari

it_events = i_event[]

  • IT_EVENT_EXIT =

i_tabname_header = 'I_FINAL1'

i_tabname_item = 'I_FINAL2'

  • I_STRUCTURE_NAME_HEADER =

  • I_STRUCTURE_NAME_ITEM =

is_keyinfo = wa_key

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE =

  • IR_SALV_HIERSEQ_ADAPTER =

  • IT_EXCEPT_QINFO =

  • I_SUPPRESS_EMPTY_DATA = ABAP_FALSE

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab_header = i_final1

t_outtab_item = i_final2

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2

.

IF sy-subrc <> 0.

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

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

ENDIF.

we are not filling ls_vari

kindly suggest me what the data should be in ls_vari

Regards

Subhash.M

Read only

0 Likes
701

Subhash,

Pass these values to the variant parameter

REPORT = Your Program name

USERNAME = Sy-UNAME

Try this and let me know..

Regards,

Ravi

Note : Please mark the helpful answers

Read only

0 Likes
701

data: ls_vari type disvariant.

DATA: w_repid TYPE sy-repid.

ls_vari-report = w_repid.

ls_vari-username = sy-uname.

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

i_callback_program = w_repid

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

is_layout = wa_layout

it_fieldcat = i_fcat[]

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

it_sort = i_sort[]

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

i_default = 'X'

i_save = 'X'

IS_VARIANT = ls_vari

it_events = i_event[]

  • IT_EVENT_EXIT =

i_tabname_header = 'I_FINAL1'

i_tabname_item = 'I_FINAL2'

  • I_STRUCTURE_NAME_HEADER =

  • I_STRUCTURE_NAME_ITEM =

is_keyinfo = wa_key

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE =

  • IR_SALV_HIERSEQ_ADAPTER =

  • IT_EXCEPT_QINFO =

  • I_SUPPRESS_EMPTY_DATA = ABAP_FALSE

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab_header = i_final1

t_outtab_item = i_final2

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2

.

IF sy-subrc <> 0.

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

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

ENDIF.

i have passed the parameters

but i am getting same dump again..

Subhash.M

Read only

0 Likes
701

Subash,

The w_repid is empty.

w_repid = sy-repid.

Try now.

Regards,

Ravi