2010 Feb 04 3:54 PM
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
2010 Feb 04 4:00 PM
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
2010 Feb 04 4:00 PM
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.
2010 Feb 04 4:02 PM
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
2010 Feb 04 4:22 PM
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
2010 Feb 04 4:31 PM
Moderator message - Please do not ask or answer basic questions - thread locked
Rob
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |