cancel
Showing results for 
Search instead for 
Did you mean: 

Using BBP_CUF_BADI to display custom screens

Former Member
0 Kudos

I am using BBP_CUF_BADI to display my customer screen on the Shopping Cart Item Screen. How do I pass data to my custom screen? I would like to display my CUF fields, I would like the data from the standard fields on the Shopping Cart line item. Any help would be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jagathi,

To use the BBP_CUF_BADI you have to:

-Define your own Function Group (FG)

-Create your specific screen at its flow logic in the FG

-Create 2 Function modules in the FG:

---You'll use the first to send data to the screen FG from the method PUT_DATA of the BADI

---You'll use the second to get data from the screen FG to the BADI (method PUT_DATA of the BADI)

Hope I'm clear

Regards.

Vadim

Former Member
0 Kudos

Vadim,

Thank you for your response. I had already done steps 1 & 2 and it is calling the screen. What will be the import/export parameters for the 2 function modules you mentioned on step# 3 and will their names be PUT_DATA and GET_DATA?

Thanks,

Jagathi

Former Member
0 Kudos

Hi Jagathi,

You'll name the FM as you want.

The pupose of these 2 FM is to exchange data between the BADIs methods and the Function Group (with global data of the FG).

The 1st FM is to be called from the PUT_DATA method of the BADI, to send data to the Function Group (FG global data): for example items and/or header and iv_mode, ...

The 2nd FM is to be called from the GET_DATA method of the BADI to get the result of the subscreen (CUF changes).

Hope you'll get it all.

Vadim

Former Member
0 Kudos

Vadim,

Really appreciate your explanation. I was able to get it to work. Had some more questions, probably you figured them out already

1. In the PUT_DATA method how do I know whether this is a new item or the user is changing existing item? I need this to know when to assign the value from is_item to screen and when not to do it.

2. In the GET_DATA method how do we know which screen is calling, i.e. What if we had multiple customer screens?

Answers (0)