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

ALV report

Former Member
0 Likes
790

hi friends/sir|

what is the fuction module for interactive ALV report.

how to create interactive ALV report

please guide me

thanks & regards

prabhakar vatti

Edited by: prabhakarvatti on Feb 4, 2010 4:55 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
753

Welcome to SCN. But you should have read the forum rules before posting. Please SEARCH in SCN before posting anything mainly for basic questions such as this.

hi friends/sir|

what is the fuction module for interactive ALV report.

how to create interactive ALV report

please guide me

thanks & regards

prabhakar vatti

Edited by: prabhakarvatti on Feb 4, 2010 4:55 PM

4 REPLIES 4
Read only

Former Member
0 Likes
754

Welcome to SCN. But you should have read the forum rules before posting. Please SEARCH in SCN before posting anything mainly for basic questions such as this.

Read only

Former Member
0 Likes
753

welcome to SDN..search the forum before posting the questions...

chk this wiki for sample pgm.

http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPInteractiveALV+Program

Read only

Former Member
0 Likes
753

hi,

Function Module is the same as you use in the ALV

REUSE_ALV_GRID_DISPLAY

just you have to handle the user command on this.

for first off you have to make two field catalog ok..

then write the code for the first alv you want to display (ALV grid all the sales document number, and net price with in that document date.) Then the user command of this ALV you have to call the second one(item detail of that document in a new ALV grid.) ok.


CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING

      i_callback_program                = sy-repid
*   I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'
*    I_CALLBACK_USER_COMMAND           = 'COMMAND'          " this is user command
* 
      is_layout                         = wa_layout
      it_fieldcat                       = it_field

 IMPORTING
*   E_EXIT_CAUSED_BY_CALLER           =
    TABLES
      t_outtab                          = it_final
   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.
ENDFORM.                    " DISPLAY_ALV

command which you pass in the user command is a form so you have define it.


*&---------------------------------------------------------------------*
*&      Form  COMMAND
*&---------------------------------------------------------------------*
*       SUB-ROUTINE COMMAND IS USED TO HANDLE THE USER ACTION
*       AND EXECUTE THE APPROPIATE CODE
*----------------------------------------------------------------------*
*      -->UCOMM      used  to capture the function
*                    code of the user-defined push-buttons
*      -->SELFIELD   text
*----------------------------------------------------------------------*
FORM command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.

*CLEAR WA_FINAL.
*  CASE ucomm.
*
*    WHEN '<usercommand>'.

Perform detail_item.  " here in this perform you can write  the code for second 
*  ENDCASE.

ENDFORM.                    "command

hope this helps

Regards

Ritesh

Read only

Former Member
0 Likes
753

Moderator message - Please do not ask or answer basic questions - thread locked

Rob