cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a field to Shopping card item level.

Former Member
0 Kudos

Hi Experts,

I want to add field in the shoppping card item level,

i have refer OSS note 458591,

as per that i have to create one structure with the name

Ci_bbp_item_sc and add the required field in that,

can anyone tell me that by simplay creating structure and required field(ABLAD) will create that standard field on the screen.

plus one more doubt is that i have to transfer that field to the backend,

for that i am using three BADIs,

o BADI for P.Req BBP_CREATE_REQ_BACK

o BADI for Reservation BBP_CREATE_RES_BACK

o BADI for PO BBP_CREATE_PO_BACK

because i want it to be done on PR , PREQ & Reservation.

i have read the documentation for the badi,

can someone tell me that inside that BADI from where should i get the value of that field to assign it to the required field,

should i used structure BBPT_CUF_ITEM

but for that do i need to declare my user-defiend field in the structure CI_BBP_ITEM.

Apart from this do i need to do anything for transfering the field to the backend?

Give example code of BADI to add field if possible.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

All you need is to add a z* structure to the include INCL_EEW_PD_ITEM_CSF_SC and add the fields you want in the z* structure. ( Once you add this system will all it in all the screens and structures so you can get this information in the other BADI'd to send them to backend sustem)

you need to use the BADI, BBP_CUF_BADI_2 to control the custom fields.

Thank you

Sreedhar

Former Member
0 Kudos

What is the next step after adding my Z structure in that structure, will that field with the textbox will come on the screen automatically because i want that field to be filled by the person who will create shopping cart fromn enterprise buyer.

or do i need to create it using ITS template.

Former Member
0 Kudos

The field i want on the screen is not there by default on the SRM screen.

matthias_kasig2
Participant
0 Kudos

Hi Paresh,

if you did like Sreedhar Vetcha said, then afterwards, I assume, you might have to adjust and publish the corresponding html template which carries the new field. I never tried what Sreedhar Vetcha proposes, but it seems an interesting and easy way to add customer fields to the shopping cart,

regards, matthias

matthias_kasig2
Participant
0 Kudos

Hi,

which SRM version are you on?

I also checked Sreedhars proposal - in fact I can see 2 new fields now in eg BADI "BBP_DOC_CHANGE_BADI" when debugging. But they are not there on the webfrontend.

In my case, SRM 5.0, I can see, that the shopping cart template is this one:

bbpsc02/99/saplbbp_sc_ui_its_120.html

and the corresponding dynpro in FG bbp_sc_ui_its.

I assume you have to modify or enhance here, to bring about the new fieldds...

regards, matthias

Former Member
0 Kudos

i am using SRM5.0

I think we are diverting from what i want,

i dont need a structure whose field i acn use at any screen,

i simplay want to know that whether BY ONLY CREATING A FIELD IN A STRUCTURE THAT FIELD WILL COME ON THE SCREEN EVEN IF IT IS NOT THERE IN SRM SERVER BY DEFAULT OR I MANUALLY NEED TO GO ON THAT ITS TEMPLATE AND CREATE THAT FIELD.

Because i want user to fill that field by typing some values in it,

and i want that value to pass to backend.

PLEASE SOMEONE ANSWER THIS QUESTION OF MY.

matthias_kasig2
Participant
0 Kudos

Hi,

I just checked exactly what Sreedhars says. And yes - without further modification you can get fields in the search area for old purchase oders and templates. Just checked with a test field. But you can't get the field as column in the shopping cart. Then I guess you have to modify the 120 dynpro.

Here is the code of the BADI: "BBP_CUF_BADI_2" - this together with the aapend in the structure named above will bring the customer field to the search area of shopping carts.

* Ausschalten der CUF Felder in der Grunddaten-Ansicht SC-Position.

FIELD-SYMBOLS: <etf> TYPE bbps_cuf_display.

LOOP AT et_fields ASSIGNING <etf>.

IF <etf>-fieldname = 'ZTEST1'.

<etf>-xinput = '1'.

<etf>-xdisplay = '1'.

ELSE.

<etf>-xdisplay = ''.

<etf>-xinput = ''.

ENDIF.

ENDLOOP.

regards, matthias

Former Member
0 Kudos

closing this thread

Answers (0)