on 06-29-2011 9:35 AM
Hi experts,
I need to enhance a customer field in RFx bidder overview list subscreen,
here is steps:
Webdynpro component:/SAPSRM/WDC_UI_DO_BIDDER
View:v_do_bidder_overview
context bidder list:/SAPSRM/S_CLL_BIDDER
1.append structure:INCL_EEW_PD_PARTNER_SSF, field name:zzaudit(char1)
2.se80, modify webdynpro component, modify component context,mapping view context,
modify view layout,add a table column, as checkbox
3. active. finish.
but the added column show in bidder overview table list without content,just show the column title.
I think , it's need to configuration metadata for the customer field, but i don't konw where to config.
Solved by myself.
I think it's a bug, the data i input for the customer field is not sync to the buffer.
WebDynpro:/SAPSRM/WDC_UI_DO_BIDDER
View:V_DO_BIDDER_OVERVIEW
On checkbox field zzaudit ,set action
Action:TOGGLEZZAUDIT
METHOD ONACTIONTOGGLEZZAUDIT .
DATA LO_ND_BIDDER_LIST TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LT_BIDDER_LIST TYPE WD_THIS->ELEMENTS_BIDDER_LIST.
DATA:
LS_BIDDER_LIST LIKE LINE OF LT_BIDDER_LIST.
DATA:
LS_BORF_PARTNER TYPE BBP_PDS_PARTNER,
LT_BORF_PARTNER TYPE STANDARD TABLE OF BBP_PDS_PARTNER,
LT_BUFFER_PARTNER TYPE STANDARD TABLE OF BBP_PDS_PARTNER,
LS_HEADER TYPE BBP_PDS_HEADER,
LS_MESSAGE TYPE BBP_PDS_MESSAGES,
LT_MESSAGE TYPE STANDARD TABLE OF BBP_PDS_MESSAGES.
navigate from <CONTEXT> to <BIDDER_LIST> via lead selection
LO_ND_BIDDER_LIST = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_BIDDER_LIST ).
LO_ND_BIDDER_LIST->GET_STATIC_ATTRIBUTES_TABLE( IMPORTING TABLE = LT_BIDDER_LIST ).
READ TABLE LT_BIDDER_LIST INTO LS_BIDDER_LIST INDEX 1.
"read buffer
CALL FUNCTION 'BBP_PROCDOC_GETDETAIL'
EXPORTING
I_GUID = LS_BIDDER_LIST-P_GUID
IMPORTING
E_HEADER = LS_HEADER
TABLES
E_PARTNER = LT_BUFFER_PARTNER.
LOOP AT LT_BIDDER_LIST INTO LS_BIDDER_LIST.
READ TABLE LT_BUFFER_PARTNER INTO LS_BORF_PARTNER
WITH KEY PARTNER_GUID = LS_BIDDER_LIST-PARTNER_GUID.
IF SY-SUBRC EQ 0.
LS_BORF_PARTNER-ZZAUDIT_PARTNER = LS_BIDDER_LIST-ZZAUDIT_PARTNER.
MODIFY LT_BUFFER_PARTNER FROM LS_BORF_PARTNER TRANSPORTING ZZAUDIT_PARTNER
WHERE PARTNER_GUID = LS_BORF_PARTNER-PARTNER_GUID.
ENDIF.
ENDLOOP.
"save customer fields data to buffer
CALL FUNCTION 'BBP_PROCDOC_UPDATE'
EXPORTING
IV_USE_GROUP_CONDITIONS = 'X'
I_HEADER = LS_HEADER
TABLES
I_PARTNER = LT_BUFFER_PARTNER
E_MESSAGES = LT_MESSAGE.
ENDMETHOD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Friends,
I am also struggling with the same kind of requirement. Can you please help me to guide where I can control the metadata of the newly added column.
I added a new field in append structure INCL_EEW_PD_PARTNER_SSF (part of /SAPSRM/S_CLL_BIDDER).
Added a new column in below component.
Webdynpro component:/SAPSRM/WDC_UI_DO_BIDDER
View: V_DO_BIDDER_OVERVIEW
I have assigned an action also with that checkbox and written the code as mentioned above.
My issue is that I am not able to see the checkbox icon into that column. I am getting only blank column with Header text just. Not able to perform any action there.
Is there any configuration where we need to set the metadata for new column. Please help.
Thanks
Rajan
Hi ,
For meta data visibility in bidder component , you need to create the enhancement for this class /SAPSRM/CL_PDO_META_MO_BIDDER in this class you can set the meta data properties like visible , enable & required for custom fields.
In order to set metadata values for extension fields, it is recommended that you create a
NetWeaver Enhancement Framework post-exit in the method
/SAPSRM/CL_PDO_META_MO_BIDDER~get_field_metadata of the corresponding
metadata provider class or classes.
Within the post-exit you can set the metadata values as desired.
Thanks & Regards
Pradeep Kumar Dondeti
Edited by: pradeep naidu on Jun 29, 2011 3:49 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.