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

problem in alv

Former Member
0 Likes
1,373

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'

9 REPLIES 9
Read only

santhosh_patil
Contributor
0 Likes
1,209

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.

Read only

0 Likes
1,209

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.

Read only

Former Member
0 Likes
1,209

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

Read only

Former Member
0 Likes
1,209

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

Read only

0 Likes
1,209

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.

Read only

0 Likes
1,209

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.

Read only

Former Member
0 Likes
1,209

1. Before calling the FM REUSE_ALV_GRID_DISPLAY, write the below code

UPDATE ZTABLE FROM TABLE ITAB. " ITAB is ur internal table

Read only

Former Member
0 Likes
1,209

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

Read only

Former Member
0 Likes
1,209

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