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: 

add button , modify application toolbar

Former Member
0 Kudos

hi i am using

FM field catalog merge and REUSE_ALV_HIERSEQ_LIST_DISPLAY

please advise how can i activate the SAVE button i have made the field on alv editable and when i click on save i want it to update a database table.

could you also advise on how i can proceed with the coding.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

in the exporting parameter,

I_SAVE = 'X'.

this will enable the save option.

Reward points.

regards,

Simi,

12 REPLIES 12

Former Member
0 Kudos

How about setting the PF-STATUS and use accordingly?

Regards

Eswar

0 Kudos

yes that what i was thinking but do you know how i can do it

Former Member
0 Kudos

hello,

create set pf-status and dbclick on that u will get a screen tht ur can gv the SAVE for save symbol.

Regards,

Santhosh

Former Member
0 Kudos

Hi,

in the exporting parameter,

I_SAVE = 'X'.

this will enable the save option.

Reward points.

regards,

Simi,

0 Kudos

when you put i_save = X

does it do it automatically. it would be too easy

0 Kudos

No, it wont update the table directly.

In subroutine to handle USER_COMMAND, check the OK_CODE or SY-UCOMM and do the Update.


FORM user_command ...

   CASE sy-ucomm.
   WHEN 'SAVE'.
       PERFORM update_ztable. " Update Z Table
   WHEN ...
   ....
   WHEN OTHERS.
   ....
   ENDCASE.

ENDFORM.

Regards

Eswar

0 Kudos

i created a GUI status and i call in in pf_status and now all the default button dissapear i think something went worng in my doing

0 Kudos

copy the standard GUI status to new Z GUI status and then add new button in it. use this newly created GUI status to save the field.

0 Kudos

That what i did and in my form status what please check if this is correct

FORM F_STATUS_SET USING pli_EXTAB TYPE SLIS_T_EXTAB.

SET PF-STATUS c_zstazv33 EXCLUDING pli_EXTAB .

ENDFORM. "F_STATUS_SE

0 Kudos

please advise urgently anyone i copied a standard GUI status i modified some button to put my own button

and i called fm list

FM to dipslay Hierarchical list

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

EXPORTING

i_interface_check = sy-repid

i_callback_program = sy-repid

I_CALLBACK_PF_STATUS_SET = c_STATUSSET

i_callback_user_command = c_usercommand

etc.....

FORM f_user_command USING plv_ucomm LIKE sy-ucomm

plwa_selfield TYPE slis_selfield.

  • assign a hotspot for every matarial document found on the ALV

CLEAR wa_zaad_header.

IF plv_ucomm EQ c_hotspot.

READ TABLE i_zaad_header INTO wa_zaad_header

INDEX plwa_selfield-tabindex.

IF sy-subrc EQ 0.

SET PARAMETER ID c_MBN FIELD wa_zaad_header-mblnr.

CALL TRANSACTION c_mb03.

ENDIF.

ENDIF.

ENDFORM.

FORM F_STATUS_SET USING pli_EXTAB TYPE SLIS_T_EXTAB.

  • DATA: Lwa_EXTAB TYPE SLIS_EXTAB.

*if sy-tcode EQ zv32.

SET PF-STATUS c_status3.

*endif.

ENDFORM.

0 Kudos

Hi Dude,

The SET PF-STATUS statement should be inserted before

displaying the o/p screen(ALV) to the user , only then it will be useful.

In your code the statement is at the end.Change its position to the beginning of the code(better after the data declarations).

Reward if useful.

Thanks & Regards,

Lakshmanan

Former Member
0 Kudos

hi,

create pf-status, in that go to functional keys write SAVE at save icon button.

then

write logic in code.

when 'save'.

logic.

when 'exit'.

logic.

endcase.