on 02-12-2008 12:37 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.