2007 Jan 11 6:31 AM
can anyone tell how to save the output data in one ztable
set of fields are coming in the alv format in output
i want to move those fidls in one 'ztable'
can anyone tell how to save the output data in one ztable
set of fields are coming in the alv format in output
i want to move those fidls in one 'ztable'
2007 Jan 11 6:38 AM
Hi,
enable the SAVE option in the PF-STSTUS.
in the ALV call set
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
i_callback_program = g_f_repid
i_callback_pf_status_set = 'PF_STATUS_SET'
<b> i_callback_user_command = 'USER_COMMAND'</b>
..............
Define a form
FORM user_command USING i_f_ucomm LIKE sy-ucomm
i_r_selfield TYPE slis_selfield.
if i_f_ucomm eq 'SAVE'.
here u code the logic to
save the contents of the output table to the Ztable
if helpfull reward points
-
santhosh
endform.
2007 Jan 11 7:38 AM
THANKS FOR UR HELP,I DONT KNOW HOW TO ACTIVATED CAN U PLEASE TELL THE STEP BY STEP OTHERWISE CAN I GET UR CHAT ID
*CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = 'USER_COMMAND'</b>
IT_FIELDCAT = GT_FIELDCAT[]
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = I_MAIN
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
2007 Jan 11 6:44 AM
set your pf status in alv activate save button
then
in user command write the code for fncode save.
insert or modify or update as per your need
like
insert ztab from table itab.
and please try to continue with one thread because in your other thread question is not clear enough....
regards
shiba dutta
2007 Jan 11 7:45 AM
first go to se80 give fngroup name SALV press enter.
copy STANDARD gui status for your program.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = 'USER_COMMAND'
IT_FIELDCAT = GT_FIELDCAT[]
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = I_MAIN
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
form PF_STATUS_SET using extab type slis_t_extab.
set pf-sttus 'ZSTANDARD'.
endform.
form USER_COMMAND using pucomm like sy-ucomm.
case pucomm.
when 'SAVE'.
<do coding>.
insert ztab from table itab.<like this>
endcase.
endform.
now in above code dblclick on ZSTANDARD it will go to se41 just activate it and change the fcode for save to SAVE.
regards
shiba dutta
2007 Jan 11 8:09 AM
HI REALLY THANKS A LOT YAR
ACTUALLY NOW IT IKON IS ENABLED IF I PRESS IKON ITS GIVING DUMP
THIS IS MY CODE
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET '
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_STRUCTURE_NAME =
IS_LAYOUT =
IT_FIELDCAT = GT_FIELDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IR_SALV_LIST_ADAPTER =
IT_EXCEPT_QINFO =
I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = I_MAIN
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.
form PF_STATUS_SET using extab type slis_t_extab.
set pf-status 'ZSTANDARD'.
endform.
form USER_COMMAND using pucomm like sy-ucomm.
case pucomm.
when 'EXIT'.
leave program.
endcase.
endform.
2007 Jan 11 8:39 AM
iam getting wen i try to press the exit or save icon
ShrtText
Too many parameters specified with PERFORM.
What happened?
In a subroutine call, there were more parameters than in the
routine definition.
Error in ABAP application program.
The current ABAP program "SAPLKKBL" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class
'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was neither
caught nor passed along using a RAISING clause, in the procedure
"USER_COMMAND_NEW" "(FORM)"
.
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
A PERFORM was used to call the routine "USER_COMMAND" of the program
"ZMM_FORM_TRACK".
This routine contains 1 formal parameters, but the current call
contains 2 actual parameters.
2007 Jan 11 7:45 AM
1. Before calling the FM REUSE_ALV_GRID_DISPLAY, write the below code
UPDATE ZTABLE FROM TABLE ITAB. " ITAB is ur internal table
2007 Jan 11 8:15 AM
just let me know which error it is giving and put a break point in user_command form check whether it is executed with proper pucomm value or not.
regards
shiba dutta
2007 Jan 11 8:42 AM
sorry ihave given a wrong code
form user_command using pucomm like sy-ucomm pselfield type slis_selfield.
endform.
use two parameters here
regards
shiba dutta
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |