2005 Jul 13 5:49 AM
Hi all,
One of my friends here is facing a small issue in using ALV(Classic) within a user exit.
In the existing ALV display, he is using a form for setting the PF-Status as follows.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = report_name
I_CALLBACK_PF_STATUS_SET = 'F100_PF_STATUS_SET' n so on n so forth ...
But since this is being written within an exit, it does not permit the use of FORM ENDFORM for the dynamic call of the subroutine 'F100_PF_STATUS_SET'.
Anybody who has worked on Exits and ALV, your inputs would be of great help.
Hope my question is clear !!
Many Thanks,
Gayathri.
2005 Jul 13 6:12 AM
U can check this link
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm
Thanks & Regards,
Judith.
2005 Jul 13 8:32 AM
Hi, try my solution.
Create a new report, assume name it ZCALLBACK, and write your F100_PF_STATUS_SET form in it, like following:
report ZCALLBACK.
FORM F100_PF_STATUS_SET.
your logic
ENDFORM.
And in your user-exit, call the ALV function like following:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = 'ZCALLBACK'
I_CALLBACK_PF_STATUS_SET = 'F100_PF_STATUS_SET'
......
Hope it will be useful to your scenario.
And thanks a lot
2005 Jul 13 10:25 AM
Thanks a lot Judith. I am yet to implement this logic. Will let you know once it is successful.
Many thanks once again !!
Regards,
Gayathri.
2005 Jul 13 10:30 AM
Hi Gayathri,
There is way to say thanks in SDN,hope u know it.U can reward points if u feel it as useful.
Thanks & Regards,
Judith.
2005 Jul 13 10:30 AM
Hi zhenglin gu ,
Yours has been a very helpful answer. Thank you very much. It was a good logic indeed.
I will close the thread once this issue has been resolved.
Regards,
Gayathri.
2005 Jul 13 3:39 PM
Hi, you are welcome.
But please don't forget the reward point.
thanks a lot