on 05-30-2011 10:53 AM
Hi,
In My Z BSP application, I have used the standard class CL_BSP_HAP_DOCUMENT_UI application class.
In one of the button click, a HRHAP00_DOC_BC BADII is implemented. In this BADI, i wanted to get the reference of the BSP applicaiton object. I wanted to know which button of BSP is clicked to bypass some piece of code. In R/3, for the same button SY-UCOMM is filled. when the same is run from portal, this SY-UCOMM is not set. How to get the reference of the BSP object in this case.
Regards,
Lekha.
Hi,
you´ll have to create your own BADI (definition and implementation) as a Z object. Check first if behind the button that you mention it is possible to implement another BADI. It might be necessary to work also with a Z class instead of CL_BSP_HAP_DOCUMENT_UI. You´ll have no other choice, since you may not modify standard objects.
Once you have created your interface, BADI definition and BADI implementation, you can add a method for catching the event OnClick. It might be necessary to define an event in the interface behing the new BADI for catching the event and calling the method that will process the information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest to use a static attribute in class and pass the event name of the button after clicking the same (even triggered)...!
In the BADI you can check static attribute 's value.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.