‎2008 Dec 08 9:59 PM
Hi Gurus ,
I have implemented a BADI for definition : SMOD_PCPO0001 .
I want to change the way a parameter is passed to the method .
example :
The parameter WPBP is passed by VALUE . I want to pass it by reference .
I think I will need to uncheck the 'Pass by Value' checkbox .
When I Try to edit the method parameters , I get a message " Interfaces can only be edited using
the BADI builder' .
Can you please tell me how can acheive changing the parameter ?
Thanks
‎2008 Dec 08 10:11 PM
Hello Rohan
If the variable used in the calling program to "feed" parameter WPBP is a global one then you can use a simple approach to access and modify the variable in the calling program:
[SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
Regards
Uwe
‎2008 Dec 08 10:11 PM
Hello Rohan
If the variable used in the calling program to "feed" parameter WPBP is a global one then you can use a simple approach to access and modify the variable in the calling program:
[SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
Regards
Uwe
‎2008 Dec 09 7:20 AM
Hi,
Fistrly the BADI call is statically defined in the program and we can only implement the defined BADI. Then changing the standard interface or the defination of the BADI is not recommended as it could called at mutliple places in the program, also if you want to change the attributes of the parameters then the only option is using the access key.
Regards,
Prashant Singhal.
‎2008 Dec 09 3:01 PM
Hi Uwe,
I need to change a parameter which is passed by value .
appreciate additinal leads
thanks