Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI Implementation

Former Member
0 Likes
620

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

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
541

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

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
542

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

Read only

0 Likes
541

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.

Read only

0 Likes
541

Hi Uwe,

I need to change a parameter which is passed by value .

appreciate additinal leads

thanks