08-30-2007 10:58 AM
Hi all,
i am using CALL METHOD MY_GRID->SET_TABLE_FOR_FIRST_DISPLAY
to display the output in alv format.there is 3 edit columns in output display.
if i fill one field & then put 'ENTER' then other two fields of that row should be filled with the appropriate data from the program.still control should be in output display.
which method i should use to go inside the program when i put 'ENTER' on any field of ALV output disply & how to use those methods inside the program.
i need some materials regarding OOPS (class, method ) . now i want to put OOPS concept in alv display.
correct answers will be rewarded.
Thanks & regards
08-30-2007 11:08 AM
Hi,
Check,
OOPS
http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
ABAP Objects
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/35eaef9c-0b01-0010-dd8b-e3b0f... [original link is broken]
check the below links lot of info and examples r there for OOPS
http://www.sapgenie.com/abap/OO/index.htm
http://www.geocities.com/victorav15/sapr3/abap_ood.html
http://www.brabandt.de/html/abap_oo.html
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
<b>Reward if helpful.</b>
08-30-2007 11:08 AM
Hi,
Check,
OOPS
http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
ABAP Objects
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/35eaef9c-0b01-0010-dd8b-e3b0f... [original link is broken]
check the below links lot of info and examples r there for OOPS
http://www.sapgenie.com/abap/OO/index.htm
http://www.geocities.com/victorav15/sapr3/abap_ood.html
http://www.brabandt.de/html/abap_oo.html
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
<b>Reward if helpful.</b>
08-30-2007 11:12 AM
you have to create a local class that listens to event DATA_CHANGED
you will get a parameter of class CL_ALV_CHANGED_DATA_PROTOCOL and you can get list of modified cells in attribute MT_MOD_CELLS
then you have to fill your internal table accordingly (your fields to be filled) and to refresh the display
also, if you want to validate data, you can add an error message to protocol by calling method ADD_PROTOCOL_ENTRY of this object
08-30-2007 11:21 AM
hI
YES YOU CAN DO IT BY DOING LIKE THIS
FOR THAT FIELD WHEN YOUR DECLARING FIELDCATALOG
ONE MORE OPTION IN FIELDCATALOG AS -EDIT = 'X'.
THEN THAT FIELD WILL BE EDITABLE IN THE OUTPUT DISPLAY
REWARD IF USEFULL
EXAMPLE
XFIELD IS FIELDCATALOG NAME
XFIELD-FIELDNAME = 'MATNR'.
XFIELD-SELTEXT_L = 'Material Number'. " Change coloumn headers
XFIELD-OUTPUTLEN = 18.
<b>XFIELD-EDIT = 'X'.</b>
APPEND XFIELD TO BFIELD.