on 04-03-2014 10:34 AM
There is requirement to add new column in the result table of the SOCO search list
This new column is not any custom field
It is standard field at item level of shopping cart (BBP_PDBEI-BE_DOC_TYP)
when I add new column in this table, the data in this column is blank in the initial page of the table.
upon scrolling down, the data is correctly seen.
If the table is sorted, then again for records displayed in first page fo the table do not show any value in the additional column.
It is observed in webdynpro debugging mode after clicking on Search button, correct data is seen in the context node attribute.
technical details:
webdynpro component /SAPSRM/WDC_DO_SOCO_GAF_1
view V_AO_SOCO_GAF_1
context SEARCH-RESULT_FIELDS
context structure /SAPSRM/S_CLL_WD_SOCO_WORKAREA
global class /SAPSRM/CL_CH_WD_DOM_SOCO_GAF1
following steps are taken to meet this requirement
(1) Enhance structure
structure /SAPSRM/S_CLL_WD_SOCO_WORKAREA
enhancement ZIMP_DOCTYPE
change: added field zzdoctype
(2) Enhance context
context SEARCH-RESULT_FIELDS
enhancement ZIMP_SOCO_RESULT_LIST_FIELD
change: update mapping, field added zzdoctype
(3) Enhance view
view V_AO_SOCO_GAF_1 component /SAPSRM/WDC_DO_SOCO_GAF_1
enhancement ZIMP_SOCO_RESULT_LIST_FIELD
change: added column in TABLE UI element using Create Binding, include zzdoctype column
(4) Enhance global class
class /SAPSRM/CL_CH_WD_DOM_SOCO_GAF1 method SEARCH
enhancment ZIMP_SOCO_RESULT_LIST_FIELD2
change: Populate zzdoctype with required value in the internal table mt_displayed_list
Additionally following tests are done-
· the custom value is populated in the standard field MANU_PROD, in the global class , temporarily for testing, this field correctly shows values for all rows.
· another standard field of the structure , which is not added in the standard table, is added , shows empty value on the first page. It means that whenever new column is added in the TABLE ui element, either it is custom field of the structure or standard field, it shows blank values in first page.
· new ui table was created for same context, same problem was seen
· new ui table was created for new zcontext, with same data, there was no problem seen here, all data is seen
bel below images show first page of the result table and next page
any comments or inputs would be appreciated
thanks
bhakti
Hi Bhakti,
Could you please let me know, whether you have solved the problem or not, we have same requirement.
Can u please share the code of /SAPSRM/IF_CLL_DOM_SOCO_GAF1~SEARCH?
Thank you in advance.
Venki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venki,
There are two options
1 Option ------- In SRM SOCO you have to add your fields in structure /SAPSRM/S_CLL_EXTENSION_FIELD
Option 2 ----
1. Extend the SC item with extra fields that you want, such as plant, if you haven't done that already, via SPRO
2. Enhance WebDynpro component /SAPSRM/WDC_DO_SOCO_GAF_1, view V_AO_SOCO_GAF_1. This step is to add the extra columns in the result table. This step has two sub-steps:
a. Context: add your extra fields under Context >> Search >> Result_Fields
b. Layout: Under "Table" node, add your extra columns with the same format as the other standard ones. And map the column/fields with newly added context nodes.
In the refresh method of class /SAPSRM/IF_CLL_DOM_SOCO_GAF1, it will bind.
Best regards,
Rohit
Hi Theodosios and Rohit,
I am facing the issue while adding the Custom fields with SOCO. I am working with SRM 7.0
Steps I have performed is as below:
1. Appended the custom fields with structure: INCL_EEW_PD_ITEM_CSF_SC and INCL_EEW_PD_ITEM_CSF
2. Added the attribute with Node: RESULT_FIELDS of View V_AO_SOCO_GAF_1_EHP in Component Controller: /SAPSRM/WDC_DO_SOCO_GAF_1
3. Added Column in Table and Mapped it with node attribute
While search I can see the fields in Class: /SAPSRM/CL_CH_WD_DOM_SOCO_GAF1
Method: /SAPSRM/IF_CLL_DOM_SOCO_GAF1~SEARCH
Internal table: lt_item_list
Method: /SAPSRM/IF_CLL_MAPPER~REFRESH
Internal table: mt_displayed_list
But while updating the values with custom fields, values are not getting updated with Node. Kindly help me on this.
Regards
Chandan
Kindly Reply on link:
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.