‎2008 Jan 31 8:06 AM
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.
‎2008 Jan 31 8:26 AM
Hi,
in the exporting parameter,
I_SAVE = 'X'.
this will enable the save option.
Reward points.
regards,
Simi,
‎2008 Jan 31 8:18 AM
How about setting the PF-STATUS and use accordingly?
Regards
Eswar
‎2008 Jan 31 8:21 AM
yes that what i was thinking but do you know how i can do it
‎2008 Jan 31 8:22 AM
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
‎2008 Jan 31 8:26 AM
Hi,
in the exporting parameter,
I_SAVE = 'X'.
this will enable the save option.
Reward points.
regards,
Simi,
‎2008 Jan 31 8:31 AM
when you put i_save = X
does it do it automatically. it would be too easy
‎2008 Jan 31 8:39 AM
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
‎2008 Jan 31 9:16 AM
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
‎2008 Jan 31 9:20 AM
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.
‎2008 Jan 31 9:54 AM
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
‎2008 Jan 31 10:25 AM
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.
‎2008 Jan 31 11:22 AM
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
‎2008 Jan 31 9:07 AM
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.