2009 Aug 29 11:44 AM
Hi All,
I have developed a report which will displays output in editable ALV grid list. Users can modify the values in output and save. These values will be stored in one custom table.
My requirement is whenever user clicks on '+' mark (Create entries or Append or Copy: Standard toolbar) report should allow to enter new entries and save. How do I capture the selected function code? why becuase i need to display one value from the custom table in that added new row...
Regards,
Ramesh.
Now requirement has been changed...
2009 Aug 29 11:59 AM
Hi Ramesh,
please check changed data event.....
please go through the reference link......
https://wiki.sdn.sap.com/wiki/display/Snippets/UpdatingtheInternalTable-AfterEditinALVusingFunctionModules
Regards,
Venkat
2009 Aug 29 12:35 PM
in the ALV FM there is a event called USER_COMMAND you can pass your subroutine name in here as a parameter in I_CALLBACK_USER_COMMAD = 'SUB_USER_COMMAND'.
FORM sub_user_command
USING ucomm TYPE sy-ucomm fields TYPE slis_selfield.
this ucomm will hold the FCODE. you can check with this
endform.
2009 Aug 31 11:34 AM
Thanks for your reply...
I have used the user-command, but it works only for our PF-STATUS. If you create PF-STATUS by our own and add some buttons and then the USER-COMMAND will triggered.
But wherein my case I am using stadard layout, thats the reason I am not able to catch that function code in my program. I have tried with Data_Changed method eventhough it is not triggering my method.
Regards,
Ramesh.
2009 Sep 02 8:56 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |