Custom Fields in IC web client
Hi
I have added a custom filed to BP using EEWB in 5.0. i want this field to be visible in IC web client search screen.
Can anyone help me out on the process for this.
thanks in advance.
thanks
Similar Messages
-
Add ECC Custom Fields in CRM Web UI ERP Order item
hi all,
i have to Add ECC Custom Fields in CRM Web UI ERP Order item .
I have :
- add the field on Web UI Screen.
- add the field on structure TDS_item_COMV and TDS_item_COMC in ecc
- insert record for field on LORD_MAPPING table
- implemented badi BADI_LORD_DO_PA BADI_LORD_GET_INPUT_MODE.
- implemented method GET_I_S_STRUCT on crm with :
CASE COMPONENT.
WHEN 'ZZSPOND'.
RV_DISABLED = ABAP_False.
endcase.
- on method do_prepare_output i have change value of fields with code :
lr_loop = typed_context->erpadmini->collection_wrapper->get_first( ).
WHILE lr_loop IS BOUND.
posnr = lr_loop->get_property_as_string( iv_attr_name = 'POSNR' ).
Does the current item has to be set for "Sponda Idraulica"?
READ TABLE Z5CL_GSA_TOOL0001=>GT_ITEMS_SPOND INTO ls_spond
WITH KEY posnr = posnr.
IF sy-subrc = 0.
lr_loop->set_property_as_string( iv_attr_name = 'ZZSPOND' iv_value = 'X' ).
DATA : V_X TYPE STRING.
V_X = lr_loop->get_property_as_string( iv_attr_name = 'ZZSPOND' ).
ENDIF.
lr_loop = typed_context->erpadmini->collection_wrapper->get_next( ).
ENDWHILE.
I can't change the field value because it is "not changeble" .
Can you help me ?
Thanks in advance.Hi Celi,
I have created some fields at header level of ERP Order, and the user is available to change them, replicating the information to SAP ECC (using interface LORD II).
All sales item information is treated using RFC ERP_LORD_GET_ITEM_MULTI, available in SAP ECC.
Please check the following point:
If those structures below were expanded with your custom fields:
SAP CRM:
CRMST_L2_ITEM_COMV
CRMST_L2_ITEM_COMC
CRMTT_ADMINI_ERPIL
CRMTT_ADMINI_I_ERPIL
SAP ECC:
TDS_RFC_ITEM_COMV
TDS_RFC_ITEM_COMC
Please check if for your scenario is necessary to implement the enhancement BADI_LORD_DO_PAI method ADD_SUPPLY_LIST. The code below works for header level.
DATA: ls_supply TYPE tds_field_supply.
IF iv_object_id EQ 'HEAD'.
IF iv_module EQ 'VBAK_BEARBEITEN'.
ls_supply-field = 'ZZCCINS'.
APPEND ls_supply TO ct_supply.
ls_supply-field = 'ZZCCNUM'.
APPEND ls_supply TO ct_supply.
ls_supply-field = 'ZZCCNAME'.
APPEND ls_supply TO ct_supply.
ls_supply-field = 'ZZAUNUM'.
APPEND ls_supply TO ct_supply.
ENDIF.
ENDIF.
I hope it helps!
Kind Regards! -
Adding a custom button in agile web client GUI.
Hi,
Is it possible to add a custom button in agile web client GUI?. Since i am totally new in the agile world, please provide some guidelines.
thanks,
UdayYes, there are ways to add buttons to the user interface. The solution depends on your use case. If you are wanting to add a button in the same area that you see other action buttons, like the Save or Edit buttons, then you can do by following the instructions in the Navigation Extensibility Guide. You can find this document in the Extensibility Pack documentation online. All the online documentation can be found at http://www.oracle.com/technetwork/documentation/agile-085940.html#plmprocess - select the Extensibility Pack and you'll find the Navigation Guide in there.
-
Enhancement of component ERP_H with a custom field in the Web UI
Hi,
I'm facing an error when enhancing the component ERP_H with a custom field in the web UI.
I've followed the steps mentioned in the pdf document called "Enhancement Options for the Lean Order Interface" (Note
1224179):
I´ve done a enhacement on ERP_H component.
I added a field to the view Headerdetail called "ZZCCTYPE1", but when I set a value in UI, I haven´t read this field in abap code.
The SET method (SET_ZZCCTYPR1) in the context node is ok, in debug I see that the method current->set_property, is working fine.
I've tried to read the atribute with lr_entity->get_property_as_string ( 'ZZCCTYPR1' ), but doesn´t work. When I read other "standard field", the statement is ok and it has value.
When I set the value of the field from ECC (VA01/VA02), it is kept by the system.
Could anybody help me?
Thanks in advance,
Regards,
Andrea RicciHi,
To add a new field, you have to first create it through T-Code EEWB where in you create a project, create extension which is assigned to a business object and create the new field through wizard - specifying the field name , type and length.
Once this is done, you can check the new field coming up in available fields for the relevant component's view in Tcode BSP_WD_CMPWB.
Hope this helps you out.
Cheers
Ravindra Valy
"Award Points if it is helpfull" -
Enhancing the component ERP_H with a custom field in the web UI
Hi,
I'm facing an error when enhancing the component ERP_H with a custom field in the web UI.
I've followed the steps mentioned in the pdf document called "Enhancement Options for the Lean Order Interface" (Note
1224179):
I´ve done a enhacement on ERP_H component.
I added a field to the view Headerdetail called "ZZCCTYPE1", but when I set a value in UI, I haven´t read this field in abap code.
The SET method (SET_ZZCCTYPR1) in the context node is ok, in debug I see that the method current->set_property, is working fine.
I've tried to read the atribute with lr_entity->get_property_as_string ( 'ZZCCTYPR1' ), but doesn´t work. When I read other "standard field", the statement is ok and it has value.
When I set the value of the field from ECC (VA01/VA02), it is kept by the system.
Could anybody help me?
Thanks in advance,
Regards,
Andrea RicciHi Pooja,
When you created your custom views, did you bind the view context nodes to the corresponding context nodes of your component controller?
From the exceptions you reported it seems that this binding is missing.
To create this binding, you can right click on your view context node , choose "Create Binding" and bind it to the context nodes of your Component Controller.
Hope this helps.
Regards,
Nisha -
Adding new search field in IC web client
Hi experts,
I need to add two search fields search term1 and search term2 in IC web client for the view 'search for Employees' as that is present in GUI with transaction BP.Please send me step by step details how to do that.
Thanks in advance
KoustavHi Koustav,
If you have added an append to the BuilEmpSearch BOL object, than the parameters are added to the query_service automaticaly.
Here is an example of the eh_OnSearch method for the search on business partners. (B2C scenario). The principle is the same. You can add you pre-search checks here. Don't fire the query before all required data is in the query_search object. (standard all parameters from the BuilEmpSearch object are in there).
METHOD eh_onsearch .
* 2. Business Partner Search
lv_wrapper = typed_context->SearchCustomer->get_collection_wrapper( ).
query_service ?= lv_wrapper->get_current( ).
lv_country =
query_service->IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY_AS_STRING( 'COUNTRY' ).
IF NOT lv_country IS INITIAL.
CALL METHOD query_service->if_bol_bo_property_access~set_property
EXPORTING
iv_attr_name = 'COUNTRY_FOR_TEL'
iv_value = lv_country.
ENDIF.
* MVNI(EX00885)21022006: Begin of Insert
lv_firstname =
query_service->IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY_AS_STRING( 'MC_NAME2' ).
lv_lastname =
query_service->IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY_AS_STRING( 'MC_NAME1' ).
lv_insz =
query_service->IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY_AS_STRING( 'ZZINSZ' ).
lv_birthdate =
query_service->IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY_AS_STRING( 'ZBIRTHDATE' ).
replace all occurrences of '.' in lv_insz with ''.
replace all occurrences of '-' in lv_insz with ''.
condense lv_insz no-gaps.
* MVNI(EX00885)21022006: End of Insert
* check customizing for role
IF NOT ls_profile-customer_role IS INITIAL.
CALL METHOD query_service->if_bol_bo_property_access~set_property
EXPORTING
iv_attr_name = 'ROLE'
iv_value = ls_profile-customer_role.
ENDIF.
* limit search to maximum number of hits.
CALL METHOD query_service->if_bol_bo_property_access~set_property
EXPORTING
iv_attr_name = 'MAX_HIT'
iv_value = lv_bupacontroller->max_hits.
* fire query
TRY.
bo_col ?= query_service->get_query_result( ).
CATCH cx_sy_ref_is_initial.
ENDTRY.
entity_col ?= bo_col.
* set result into context
typed_context->customers->set_collection( entity_col ).
* navigate
IF entity_col->if_bol_bo_col~size( ) EQ 1.
op_showbupa( ).
ELSEIF entity_col->if_bol_bo_col~size( ) GT 1.
op_listcustomers( ).
if entity_col->if_bol_bo_col~size( ) eq lv_bupacontroller->max_hits.
lv_msgsrv = cl_bsp_wd_message_service=>get_instance( ).
lv_max_hit = lv_bupacontroller->MAX_HITS .
lv_msgsrv->add_message( iv_msg_type = 'I'
iv_msg_id = 'CRM_IC_APPL_UI_BPID'
iv_msg_number = '009'
IV_MSG_V1 = lv_max_hit ).
endif.
ELSE.
lv_msgsrv = cl_bsp_wd_message_service=>get_instance( ).
lv_msgsrv->add_message( iv_msg_type = 'I'
iv_msg_id = 'CRM_IC_APPL_UI_BPID'
iv_msg_number = '011' ).
* clear result list
view_manager->navigate(
SOURCE_REP_VIEW = rep_view
OUTBOUND_PLUG = 'showEmpty' ).
ENDIF.
ENDMETHOD.
In the class CL_BUIL_EMP (which has the superclass CL_BUIL_HEADER) you need to do a repair (changing of a standard SAP class) of method get_result_table.
What I have done is I've read the parameters that were added (automatically) to the query_service and added them to my FM to do the search.
You also need to take a copy of the BUPA_SEARCH_2 FM and add the parameters as importing parameters. Now you can add your search logic to the FM.
Here is the coding of the GET_RESULTS_TABLE:
METHOD get_result_table.
* CHANGES BY MVNI ON 03/07/2007.
* MARKER: MVNI(EX00885)03072007
* REASON: SPAU Upgrade 5.0.
* CHANGES BY MVNI ON 12/02/2008.
* MARKER: MVNI(EX00885)12022008
* REASON: CLM
DATA: ls_header_search TYPE crmst_header_search_buil,
lv_mc_name1 TYPE bu_mcname1,
lv_mc_name2 TYPE bu_mcname2,
ls_address TYPE bupa_addr_search,
ls_fax_data TYPE bapibus1006_fax_data,
lt_return TYPE TABLE OF bapiret2,
lv_xaddrversion TYPE abap_bool,
lv_no_hits TYPE i.
DATA: lt_but100 TYPE TABLE OF but100.
DATA: lv_role_category TYPE bu_role.
FIELD-SYMBOLS: <fs_result> LIKE LINE OF et_bupa_search_result.
* MVNI(EX00885)03072007: Begin of Insert
DATA: iv_birthdate TYPE bu_birthdt,
iv_insz TYPE ZBU_00000000,
lv_insz(15) TYPE c,
lv_bednr(15) TYPE c,
lv_vestnr(15) TYPE c,
ls_parameters TYPE crmt_name_value_pair.
* MVNI(EX00885)03072007: End of Insert
* MVNI(EX00885)03072007: Begin of Insert
CONSTANTS: C_IDENTIFICATIONTYPE TYPE BU_ID_TYPE VALUE 'ZINSZ'.
* MVNI(EX00885)03072007: End of Insert
* define structure we use for input parameters
MOVE-CORRESPONDING is_parameters TO ls_header_search.
MOVE-CORRESPONDING is_parameters TO ls_address.
MOVE-CORRESPONDING is_parameters TO ls_fax_data.
IF ls_header_search-fax IS NOT INITIAL.
IF ls_fax_data-country_for_fax IS NOT INITIAL.
ls_fax_data-fax_no = ls_header_search-fax.
ELSE.
ls_fax_data-fax_no = ls_header_search-fax.
ls_fax_data-country_for_fax = ls_header_search-country.
ENDIF.
ENDIF.
lv_mc_name1 = ls_header_search-mc_name1.
lv_mc_name2 = ls_header_search-mc_name2.
** MVNI(EX00885)03072007: Begin of Replace
* LOOP AT is_parameters INTO ls_parameters.
* ENDLOOP.
* ls_parameters-name = 'BIRTHDATE'.
* MOVE ls_parameters-value TO iv_birthdate.
* ELSEIF ls_parameters-name = 'ZZINSZ'.
* MOVE ls_parameters-value TO iv_insz.
* endif.
* Remove all allowed non-digits
lv_insz = ls_header_search-zzinsz.
replace all occurrences of '.' in lv_insz with space.
replace all occurrences of '-' in lv_insz with space.
condense lv_insz no-gaps.
ls_header_search-zzinsz = lv_insz.
* MVNI(EX00885)03072007: End of Replace
* MVNI(EX00885)12022008: Begin of insert
lv_bednr = ls_header_search-zzbednr.
replace all occurrences of '.' in lv_bednr with space.
replace all occurrences of '-' in lv_bednr with space.
condense lv_bednr no-gaps.
ls_header_search-zzbednr = lv_bednr.
lv_vestnr = ls_header_search-zzvestnr.
replace all occurrences of '.' in lv_vestnr with space.
replace all occurrences of '-' in lv_vestnr with space.
condense lv_vestnr no-gaps.
ls_header_search-zzvestnr = lv_vestnr.
* MVNI(EX00885)12022008: End of insert
* check if international address versions are active:
IF address_version_id IS INITIAL.
CALL METHOD check_for_int_add_versions( ).
ENDIF.
* check for customizing in IC WebClient
IF ls_header_search-no_trex IS INITIAL.
ls_header_search-no_trex = cl_crm_buil_services=>check_for_trex( ).
ENDIF.
CLASS crm_saf_get_settings DEFINITION LOAD.
IF NOT address_version_id IS INITIAL.
lv_xaddrversion = abap_true.
ENDIF.
* Optimization for combined search, Refer note 962864
IF ls_address-country IS NOT INITIAL
AND ls_address-city1 IS INITIAL
AND ls_address-post_code1 IS INITIAL
AND ls_address-region IS INITIAL
AND ls_address-street IS INITIAL
AND ls_address-house_num1 IS INITIAL.
IF ls_header_search-telephone IS NOT INITIAL OR
ls_header_search-email IS NOT INITIAL.
CLEAR ls_address-country.
ENDIF.
IF ls_header_search-email IS NOT INITIAL.
CLEAR ls_header_search-country_for_tel.
ENDIF.
IF ls_fax_data-fax_no IS INITIAL.
CLEAR ls_fax_data-country_for_fax.
ENDIF.
ENDIF.
* MVNI(EX00885)03072007: Begin of Replace
* CALL FUNCTION 'TREX_BUPA_SEARCH'
* EXPORTING
* iv_application = crm_saf_get_settings=>gc_app_name_bp
* iv_telephone = ls_header_search-telephone
* iv_email = ls_header_search-email
* iv_url = ls_header_search-url
* is_address = ls_address
* iv_mc_name1 = lv_mc_name1
* iv_mc_name2 = lv_mc_name2
* iv_fax_data = ls_fax_data
* iv_partner = ls_header_search-partner
* iv_partnerrole = ls_header_search-role
* iv_country_for_tel = ls_header_search-country_for_tel
* iv_category = ls_header_search-category
* iv_max_partners = ls_header_search-max_hit
* iv_xaddrversion = lv_xaddrversion
* iv_not_trex = ls_header_search-no_trex
* TABLES
* et_search_result = et_bupa_search_result
* et_return = lt_return.
* MVNI(EX00885)12022008: Begin of insert
CALL FUNCTION 'ZBUPA_SEARCH_2'
EXPORTING
IV_TELEPHONE = ls_header_search-telephone
IV_EMAIL = ls_header_search-email
IV_URL = ls_header_search-url
IS_ADDRESS = ls_address
IV_MC_NAME1 = lv_mc_name1
IV_MC_NAME2 = lv_mc_name2
IV_PARTNER = ls_header_search-partner
IV_PARTNERROLE = ls_header_search-role
* IV_X_ALL_PARTNERROLES =
* IV_PARTNERROLE =
* IV_SORT1 =
* IV_SORT2 =
* IV_COUNTRY_FOR_TEL =
* IV_CATEGORY =
IV_FAX_DATA = ls_fax_data
IV_XADDRVERSION = lv_xaddrversion
IV_MAX_PARTNERS = ls_header_search-max_hit
* IV_NATION_VERS =
* IV_OLD_ROLE_PROCESS =
* IV_NO_SEARCH_FOR_CONTP =
* IV_VALID_DATE = SY-DATLO
* IV_TIME_INDEPENDENT =
IV_RRNR = ls_header_search-zzinsz
IV_BIRTHDATE = ls_header_search-zbirthdate
IV_BEDNR = ls_header_search-zzbednr
IV_VESTNR = ls_header_search-zzvestnr
TABLES
ET_SEARCH_RESULT = et_bupa_search_result
ET_RETURN = lt_return.
* MVNI(EX00885)12022008: End of insert
* MVNI(EX00885)12022008: Begin of delete
* CALL FUNCTION 'ZBUPA_SEARCH'
* EXPORTING
* IV_TELEPHONE = ls_header_search-telephone
* IV_EMAIL = ls_header_search-email
* IV_URL = ls_header_search-url
* IS_ADDRESS = ls_address
* IV_MC_NAME1 = lv_mc_name1
* IV_MC_NAME2 = lv_mc_name2
* IV_PARTNER = ls_header_search-partner
* IV_PARTNERROLE = ls_header_search-role
* IV_SORT1 =
* IV_SORT2 =
* IV_COUNTRY_FOR_TEL =
* IV_CATEGORY =
* IV_FAX_DATA = ls_fax_data
* IV_XADDRVERSION = 'X'
* IV_MAX_PARTNERS = '50'
* IV_NATION_VERS =
* IV_NO_SEARCH_FOR_CONTP =
* IV_BIRTHDATE = ls_header_search-zbirthdate
* IV_INSZ = ls_header_search-zzinsz
* TABLES
* ET_SEARCH_RESULT = et_bupa_search_result
* ET_RETURN = lt_return.
* MVNI(EX00885)03072007: End of Replace
* MVNI(EX00885)12022008: End of delete
IF lt_return IS NOT INITIAL.
* no error handling
ENDIF.
* filter out real employees if role is not 'Employee'
* (and if category is not specified)
IF NOT et_bupa_search_result[] IS INITIAL
AND ls_header_search-category IS INITIAL
AND NOT ls_header_search-role IS INITIAL.
* function module has a buffer
CALL FUNCTION 'BUCP_EMPLOYEE_ROLE_GET'
IMPORTING
e_employee_role = lv_role_category.
IF NOT ls_header_search-role EQ lv_role_category.
SELECT * FROM but100 INTO TABLE lt_but100
FOR ALL ENTRIES IN et_bupa_search_result
WHERE partner = et_bupa_search_result-partner
ORDER BY PRIMARY KEY.
LOOP AT et_bupa_search_result ASSIGNING <fs_result>.
READ TABLE lt_but100 WITH KEY partner = <fs_result>-partner
TRANSPORTING NO FIELDS
BINARY SEARCH.
IF sy-subrc NE 0.
CONTINUE.
ENDIF.
DELETE lt_but100 WHERE partner = <fs_result>-partner
AND rltyp = lv_role_category.
READ TABLE lt_but100 WITH KEY partner = <fs_result>-partner
TRANSPORTING NO FIELDS
BINARY SEARCH.
IF sy-subrc NE 0.
DELETE et_bupa_search_result.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
* if TREX is disabled and addressversions are active -> MAX_HIT does not work
* workaround:
DESCRIBE TABLE et_bupa_search_result LINES lv_no_hits.
IF lv_no_hits GT ls_header_search-max_hit.
ev_max_hits = ls_header_search-max_hit.
ENDIF.
ENDMETHOD.
Hope this helps!
Kind regards,
Micha -
Custom profiles in IC Web client terminate in XSLT error 'unexpected EOF'
Hello,
we've upgraded from CRM 4.0 SP7 to CRM2005 (i.e. CRM 5.0) SP7.
The IC web client is not able to start our custom web client profiles. However, SAP's default profile is OK.
When launching via transaction CRM_IC or SE80 and default.htm, the window opens up, but if we use one of the custom IC Web client profiles, the application won't load correctly. It only displays the logos and the clipboard, then gives the error message:
The runtime repository could not be interpreted. An XSLT transformation error occurred.
Reason: Unexpected end-of-file.
Transformation: BSP_WD_RT_REP_RUNTIME
I've checked the customization, and I find no errors. All function profiles (XML files) from 4.0 have been migrated correctly into 5.0 customization tables.
The custom profile launches our BSP application Z_CRM_IC, which is a copy of the standard BSP with a few controller replacements. The corresponding runtime framework profile calls the repository Z_CRM_IC_RT_REP, which is also a copy of the original.
When I check the repository Z_CRM_IC_RT_REP in SE80, the system displays the error
BSP Application Z_CRM_IC_RT_REP,BSP Page CRM_IC.XM
The included page "CRM_IC_All_Viewsets_wo_BUPA_and_Main.xml" is created in language "ABAP".
However, I don't think that's really an error, because the include merely points to the standard xml file
../CRM_IC_DT_REP/CRM_IC_All_Viewsets_wo_BUPA_and_Main.xml
and when I run a check on that, the workbench finds no errors.
Any idea on how to get the IC Web client up and running again?
Regards,
ArtoNote 880180 seems to help.
After making the suggested changes, I ran into another translation error, but that's a different story... -
Linking custom fields in the web ui
Hello,
on the opportunities item creation screen I have added some new fields. These fields come in pairs, there is always one with the technical name, and one with a text description. I was able to add these fields to the screen, and link them to a search help. The search help is linked to the field with the technical name, and the description should be filled automatically when an entry is selected in teh search help, but this does not happen. I tried adding the field to the output map of the search hel function and than the field is filled for a split second and then cleared, when I select it for the second time the field is filled fine. Does anyone know if there is another way to link fields on the WEBUI.
Thanks in advance.
Timon Van SoomHi Timoon,
You need to code the Getters and Setters of the fields. You can check one of the standard fields with description and adapt the coding.
Thanks,
Iván
P.D.: Please give points if the answer helps! -
Custom Controller in IC Web Client
I am trying to using the Custom Controller to pass a model between classes. I am not using the BOL context node. I made my own models. Does anyone know what do I need to do or have any example that I can follow? thanks.
hi,
For help
http://help.sap.com/saphelp_crm40sr1/helpdata/en/9d/1ca7f91b76ad4493d62b8ecc7c83db/frameset.htm
If you are calling controller2 from controller1 then
subcontroller ?= create_controller(
controller_name = 'address.do'
controller_id = 'ad'
set some attributes with standard method
subcontroller->set_attributes( name = 'model'
value = lv_model ).
model is the name of the attribute.
lv_model is the instance of the model.
The above sets the model to the controller2. You can just get the model in controller2 by me->get('model').
Regards,
Abdul raheem S -
Mass update of a custom field at Product Revenue level
We are trying to update a custom field at Product Revenue level using the Opportunity Web Service. The webservice call is timing out as we have thousands of Opportunities.
I would appreciate if anybody gives input on how we can massively update a custom field using Opportunity Web Service.
OR
Is there a way to mass update a custom field at Product Revenue level other than using a web service.
Thanks for your help!
-purnaIf you are not very much obsessed with Webservices, the other workaround is the Data Loader Tool. It was discussed earlier in this forum.
Pl refer-
Re: Product Revebue Updation
Hope this helps.
Rgds,
Amit Sahu -
Limiting the Text Size in CRM 5.0 IC Web Client
Hello Experts,
We have a scenario where in we can enter the text for a CRM Document (say Service document) in the text field of IC Web Client. We have noticed that we are even allowed to enter the text of size around 73 MB also (which comes into 1000s of Word Documents).
We have now have a requirement for limiting this text as it is causing some problems and somehow affecting system performance.
Could anyone help me in limitating the text size in CRM 5.0 IC Web Client. I mean whether there is any configuration setting for doing the same or we need to do it in any text determination Procedure. Thanks in anticipation for your response.
Best Regards,
Kishore KKishore,
Use below code to determine no of characters typed in FoUpText.htm:
data: col_wrap type ref to cl_bsp_wd_collection_wrapper,
lr_entity type ref to if_bol_bo_property_access,
lv_str type string,
lv_len type i.
col_wrap = typed_context->BTTEXT->get_collection_wrapper( ).
lr_entity ?= col_wrap->get_current( ).
lv_str = lr_entity->get_property_as_string('CONC_LINES').
lv_len = strlen( lv_str ).
Place this code in controller FoUpText.do anywhere accordingly
Cheers,
Ankur -
Groupwise Custom Field Creation throws exception
Hi,
When I am trying to create a new field definition (String type) using the object API (8.0.1)(gwoapi_800.h), I got the following exception
System Message #1: "An error occurred in allocating memory.", System Message #2: "Error Message: "Exception occurred.", Source "FieldDefinitions.Object"",
IGWFieldDefinitionPtr pDIGWFieldDefinitions;
pIGWFieldDefinitions->Add()
Is this a known API issue?
Thanks.I put a fix to 8.0.3 and the next major release
or GroupWise. The problem was there is a custom
field table that gets created. If the user had
no custom fields, there was a problem creating
the first custom field.
You can get around the problem (until the fix
is available) by first creating a custom field
using the GW Client.
Preston
>>> On Tuesday, June 15, 2010 at 1:28 PM, Preston
Stephenson<[email protected]> wrote:
> I created a bug to investigate the issue.
> I'll get to it when time permits.
>
> Thanks.
> Preston
>
>>>> On Tuesday, June 15, 2010 at 12:46 PM,
> pranov2001<pranov2001@no‑mx.forums.novell.com> wrote:
>
>> Preston
>> Thanks a lot for your response. Here is the snapshot of the code that I
>> am trying to achieve.
>>
>> _COM_SMARTPTR_TYPEDEF(DIGWAddressBooks, DIID_DIGWAddressBooks);
>> _COM_SMARTPTR_TYPEDEF(IGWAddressBooks2, IID_IGWAddressBooks2);
>> _COM_SMARTPTR_TYPEDEF(IGWAccount4, IID_IGWAccount4);
>> _COM_SMARTPTR_TYPEDEF(DIGWCAddressBook, DIID_DIGWCAddressBook);
>> _COM_SMARTPTR_TYPEDEF(IGWCAddressBook2, IID_IGWCAddressBook2);
>>
>> _COM_SMARTPTR_TYPEDEF(DIGWFieldDefinitions,IID_DIG WFieldDefinitions);
>> _COM_SMARTPTR_TYPEDEF(IGWFieldDefinitions,
>> IID_IGWFieldDefinitions);
>> _COM_SMARTPTR_TYPEDEF(DIGWFieldDefinition,
>> DIID_DIGWFieldDefinition);
>>
>> DIGWAddressBooksPtr pDIGWAddressBooks;
>> IGWAddressBooks2Ptr pIGWAddressBooks;
>> IGWAccount4Ptr pIGWAccount;
>> LPCTSTR AddrBookName = _T("Test Contacts");
>> CComVariant vName(AddrBookName);
>> DIGWCAddressBookPtr pDIGWCAddressBook;
>> HRESULT hr;
>> DIGWFieldDefinitionsPtr pDIGWFieldDefinitions;
>> IGWFieldDefinitionsPtr pIGWFieldDefinitions;
>> DIGWFieldDefinitionPtr pDIGWFieldDefinition;
>> IGWCAddressBook2Ptr pIGWCAddressBook;
>> LPCTSTR FieldName = _T("AliasName");
>>
>> //Opening an Addressbook
>> pIGWAccount‑>get_AddressBooks(&pDIGWAddressBooks );
>>
>>
>
pDIGWAddressBooks‑>QueryInterface(IID_IGWAddress Books2,((LPVOID*)&pIGWAddr
> essBo
>> oks));
>> hr = pIGWAddressBooks‑>Item(vName, &pDIGWCAddressBook);
>> if (hr>=0)
>>
>>
>
pDIGWCAddressBook‑>QueryInterface(IID_IGWCAddres sBook2,((LPVOID*)&pIGWCAdd
> ressB
>> ook));
>>
>> //Adding the field to the Addressbook
>> pIGWCAddressBook‑>get_FieldDefinitions(&pDIGWFie ldDefinitions);
>>
>>
>
pDIGWFieldDefinitions‑>QueryInterface(IID_IGWFie ldDefinitions,((LPVOID*)&p
> IGWFi
>> eldDefinitions));
>> _bstr_t btFieldName(FieldName);
>> pIGWFieldDefinitions‑>Add(btFieldName, 1, &pDIGWFieldDefinition);
>>
>> The interesting fact is, it works in one worstation and not in other,
>> even if there is no OS or Groupwise client version difference between
>> those workstations.
>>
>> Preston Stephenson;1987092 Wrote:
>>> The error is reporting something missing.
>>> Can you support more of your code that you
>>> are trying to use?
>>> A small test app would be even better.
>>>
>>> Thanks.
>>> Preston
>>>
>>> >>> On Thursday, June 10, 2010 at 3:26 PM,
>>> pranov2001<pranov2001@no‑mx.forums.novell.com> wrote:
>>>
>>> > Hi,
>>> >
>>> > When I am trying to create a new field definition (String type)
>>> using
>>> > the object API (8.0.1)(gwoapi_800.h), I got the following exception
>>> >
>>> > System Message #1: "An error occurred in allocating memory.", System
>>> > Message #2: "Error Message: "Exception occurred.", Source
>>> > "FieldDefinitions.Object"",
>>> >
>>> > IGWFieldDefinitionPtr pDIGWFieldDefinitions;
>>> > ....
>>> > pIGWFieldDefinitions‑>Add()
>>> >
>>> > Is this a known API issue?
>>> >
>>> > Thanks. -
Urgent :crm_ic web client adding new field - customer external number-BPEXT
HI
I want to add the field <b>customer external number(data element- bpext)</b> is available as a standard field in <b>bp transaction</b> , under indentification tab I am trying to bring the same field into the <b>identify account-CRM-IC BSP Application</b>
when I am trying to do this , I nee to know the below information
<b>Attribute name
property name
context class</b>
can you help me in Identifying this values which I feel is must for adding the field to the bsp application CRM_IC.
thanks in advance
Message was edited by: madhu satya rajasekhar bobbadiHi,
Following are the steps to add new fields to the existing view.
- Create a new controller class (ZCL..) with original view class as super class
- Create new BSP application with View and Controller
- Attach the above Z class to the view and controller created and activate the BSP appln.
- Go to transaction BSP_WD_WORKBENCH and type your BSP appln.
- Expand your controller and at the Context class use Wizard to create new context node and bind this to Custom Controller class available.
This whole process requires complte understanding of View, Controller, Custom controller and basic custom modifications to IC Web Frame work.
Kunda Krishna Kishore -
How to add F4 help to a custom field in WEB UI
Hi All
I'm able to see my custom fields in the drop down of 'Search Criteria' in Web UI and on the right side If i give any value to filter the records it is successfully filtering but there is one problem i'm facing over here.
There are few fields which are having 'Fixed value/ F4 help' now user is asking me to display the corresponding F4 help in right most end so that he will select one value using F4 help and he'll press the 'Search' button to filter the records.
So how and where do we implement the code to get the 'F4 help' for the fields which we have added ?
For Example:
I have a custom field called 'Margin %' now in the Search Criteria screen in web ui we can see like below
Profit Center is '1000'
Here it will filter the records which are having value '1000' for Profit Center so here client is requiring F4 help so that he will
select the Profit Center and Press the Search button.
Hope the requirement is clear!!
Please guide me.
Regards
AnilHI All
While I was trying to build 'F4' for one of the custom fields(Profit center) for opportunites, I couldn't able to figure out which values we need to pass in the below code.
Below is the standard code for 'CAMPAIGN_ID' and im refering this to build 'F4' help for my Z* field.
lv_title = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_IC_APPL/SEARCH').
gr_pcsearchpopup = comp_controller->window_manager->create_popup( iv_interface_view_name ='BT111S_OPPT/Search'
iv_usage_name = 'BT111H_OPPT' "'PCSearch'
iv_title = lv_title ).
Now the question is what to give for 'iv_interface_view_name ' and from where do we get this view name ?
what to give for 'iv_usage_name ' and from where do we get this usage name ?
Also, I'm able to give the 'F4' help using the below code however this code is initially showing all the records but the
client requirement is it should show the popup without any records and then user will enter a value in the 'Profit Center' field
then it should display the records based on the value entered.
Could you please help me out how can I acheive this.
DATA:
ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lr_entity TYPE REF TO cl_crm_bol_entity.
ls_map-context_attr = 'STRUCT.ZZPRCTR'.
ls_map-f4_attr = 'PRCTR'.
cs_result-output_mapping = ls_map.
ls_map-context_attr = 'STRUCT.ZZPRCTR'.
ls_map-f4_attr = 'KTEXT_U'.
cs_result-output_mapping = ls_map.
cs_result-help_id-help_id = 'ZPRCTR_SCH'.
cs_result-help_id-help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp.
Could you please help me out on this.
Regards
Anil -
Workspace Project Custom Field Web Part on different Site Collection?
Hello experts,
I'm working on a project site template in a SharePoint 2010 environment. My client wants project custom fields to be displayed on the Project Site homepage.
To accomplish this, I'm using the Solution Starter's Workspace Project Custom Field Web Part.
It works fine, as long as we create the project sites under the PWA site collection.
However, due to administrative reasons, we've decided to provision all project sites under a separate Site Collection, in a separate content database. In this case, we manage to add the webpart to the page, but as soon as we try to edit it, to configure
the visible Custom Fields, we get this error:
Server Error in '/' Application.
Unhandled Communication Fault occurred
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: Unhandled Communication Fault occurred
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: Unhandled Communication Fault occurred]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413241
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
WorkspaceProjectCFWP.WebSvcCustomFields.CustomFields.ReadCustomFieldsByEntity2(Guid entityUid) +181
WorkspaceProjectCFWP.Services.<>c__DisplayClass12.<GetCustomFields>b__11() +158
Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +729
Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +26839062
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) +27885657
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +93
WorkspaceProjectCFWP.Services.CustomFieldsService.GetCustomFields() +208
WorkspaceProjectCFWP.Services.CustomFieldsService.GetAllProjectFields() +173
WorkspaceProjectCFWP.ProjectCFEditorPart.SyncChanges() +325
Microsoft.SharePoint.WebPartPages.ToolPane.OnSelectedWebPartChanged(Object sender, WebPartEventArgs e) +283
System.Web.UI.WebControls.WebParts.WebPartEventHandler.Invoke(Object sender, WebPartEventArgs e) +0
Microsoft.SharePoint.WebPartPages.SPWebPartManager.BeginWebPartEditing(WebPart webPart) +96
Microsoft.SharePoint.WebPartPages.SPWebPartManager.ShowToolPaneIfNecessary() +579
Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +296
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnInitComplete(EventArgs e) +11146206
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1674
Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5474
Now, I've activated every possible feature, both on the Site Collection and Site level (or SPSite, SPWeb). Alas, no succes. Which brings me to these questions:
What might be causing this error? Can this be solved?
Are there any cases of working webparts of this kind in site collections other than PWA?
If this is a technical limitation, what are alternative options for me to display custom fields on a project site?
Link to the Solution Starters: http://archive.msdn.microsoft.com/P2010SolutionStarterHi
I did not use this solution starter, but it might be that the webpart just looks for a Project Server instance in the current site collection - and there is none.
You could use a SQL Reporting Services Report to show on the site to accomplish this. Either you would have to set the project as a parameter manually once for each site, or you could try to determine the project automatically using the URL.
Kind regards
Christoph
Christoph Muelder | Senior Consultant, MCTS, MCSE, MCT | SOLVIN information management GmbH, Germany
Maybe you are looking for
-
Problem Deploying EJB3 Stateless session bean in Jboss4.0.3
Hi All, I have developed an EJB 3 Stateless session bean and tried to deploy in JBoss 4.0.3 , But i get the following Exception. javax.naming.NameNotFoundException: ejb not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:491) at org
-
I downloaded the version in this link, presumably for Vista 64: http://support.apple.com/kb/DL1577 . It goes through the process but rolls back the installaion and reports "error in installation". I turned off kaspersky Suite but got the sam emessage
-
Logical database '/pbs/sdf'
what is the relevant pbs logical database for the sap logical database 'sdf' ? In one of requirement, the custom report using logical database 'sdf' required to access the archived data. kindly reply ASAP since it's an urgent requirement. Edited by:
-
Dear Sir; how can put a combobox that is linked to a table in a matrix that is linked to another table? thank you Dear.
-
Removing Open With dialog from contextual menus
Does anyone know how to remove the "Open With..." option from contextual menus? Thanks