Hi
You can use get method of your value attribut. Write your logic in get method assign final value to the VALUE parameter in get method.
Best regards,
Dharmakasi
Hi
You can use get method of your value attribut. Write your logic in get method assign final value to the VALUE parameter in get method.
Best regards,
Dharmakasi
Hi Maren,
Instead of using lr_entity ref type cl _crm_bol_entity use cl_bsp_wd_value_node. It will work.
Thanks
Bhushan
Yes Christian, heading are hard coded.(option : for futher requirement we can maintain heading in the custom table).
Instead of creating custom BOL object, can we go for the value table. please correct if i am wrong.
Thanks
Imran
Hi JC,
The context node that you are using is a mixed node, so from this node you need to get value node so that you can cast the value into cl_bsp_wd_value_node.
Here's the sample code for setter method of that attribute:
DATA:
lr_mixed TYPE REF TO cl_bsp_wd_mixed_node,
lr_value_node TYPE REF TO cl_bsp_wd_value_node.
lr_mixed ?= current or lr_mixed ?= iterator. " use either of the code i dont have system right now
lr_value_node ?= lr_mixed_node->if_bsp_wd_ext_property_access~get_value_node( ).
Here, from lr_value_node get the property access method and set the attribute value to VALUE parameter.
Thats it
Thanks,
Bhushan
Hi Frds,
I need to trigger workflow when user status is set . for this below setup i have made.
t-code BSVZ , Link user status profile to event.
t-code swetypv, link event to workflow.
Created simple WF and activate it.
Problem is that when try to trigger WF its not getting trigger.
I checked tcode SWEL event trace. below are the colomn entries
EVENT NAME HANDLER/ACTION
'ERRORSENDSTATUSREACHED (empty) no reciever entered
Note : i delegates standard BUS2000115 to ZBUS200115. Event is created in zbus200115. and while chossing Business Object in confi i choose standard object.
Plese advice. where i am missing.
Thanks,
Hi ALL, We want to provide Mandatory fields/validations on 3 fields in table view. Initially when the view is loaded they should be highlighted with RED mark indicating them Mandatory and if the users presses enter with empty values, it should give message in application log.
Also this table view is in the guided activity page. So if the user clicks on the Next button in the Roadmap view, the validation in the loaded view should take place and restrict the user to navigate to Next screen with message in application log.
Thanks
Prasad
Hi,
I have created a custom web ui component for partner details., which contain the partner email ID. Now i have a requirement to open the outlook compose screen when we click on the email ID presently i have added the code in event block as per std. BP_APPl which opens the CRM email compose screen but i want tobopen the outlook.
Regards,
Zafar
Hi.
Just follow the steps described in blogCreate a Tree view display in CRM web UI
In copy of CL_BSP_WD_TREE_NODE_PROXY class just write the appropriate logic in GET_CHILDREN method.
That is all.
Best regards, Robert
Hi.
Use the javascript logic...
window.open('mailto:test@example.com'
);
You can include also other parameters, e.g. predefined subject, cc, bcc and so on.
Regards, Robert
Thanks Robert, Krishnan,
I am working on the task. Thanks you very very much.
Regards,
Imran
Hi Prasad,
There are 2 requirements: First making table view fields mandatory and validations on guided navigation next button.
For 1st requirement: First making table view fields mandatory
This facility is not provided for table view fields. Usually there is an option called fields properties, but not available for table view fields. Put your validations in do_validate_input or do_prepare_output method by using below code for raising error messages:
DATA : lr_msg_srv TYPE REF TO cl_bsp_wd_message_service.
CALL METHOD cl_bsp_wd_message_service=>get_instance
RECEIVING
rv_result = lr_msg_srv.
CHECK lr_msg_srv IS BOUND.
lr_msg_srv->add_message(
iv_msg_type = messtype
iv_msg_id = messid
iv_msg_number = messno
).
For 2nd requirement: validations on guided navigation next button
There is a sample guided bsp component available called UIF_TBUI_SAMPLE, view UIF_TBUI_SAMPLE/GuidedFlightBooking which can match your requirement, i hope.
There go to your view impl class, go to its super class, again go to its super class ending with "_VS", mostly the class will be CL_BSP_WD_GEN_ROADMAP_VS. There you will find method "IF_BSP_CONTROLLER~HANDLE_EVENT". At line no 20, the next button event is captured.
So when you will press "NEXT" button on guided page this "NextRoadMapItem" event will get triggered. Redefine this method in your view impl class and do the necessary validation.
All the best
Thanks,
Bhushan
Hi Tim Michael,
have you full fill your requirement.. if not give me reply i have answer for this question..
Thanks & Regards,
Srinivas
Hi,
try to refer my blog
Set or Populate value nodes with value using CL_BSP_WD_VALUE_NODE
Regards,
Sumeet
hi,
how to change help center link to our own website. if i click help center which i mentioned it want to go webisite which i ll give.(for ex.www.google.com) if i click help center link it want to go to google..
regards,
gopi
Hi Experts,
I am working on component BT110M_ACT , I have enhanced BT110M_ACT/MainWindow in Component Structure Browser.
After enhancing it , I find the table BSP_WD_EXT_HIST , it is correctly maintained.
Now I went to Runtime Repository Editor , Here under MainWindoe , there is one view CUBT125HTASK.MainWindow ,
I want to add one outbound plug here .
But I am getting error
View not copied or enhanced with wizard; processing not possible
When I am going to enhance it , i am getting error "
Page, controller, or MIME MainWindow.do already exists in application YWBT110M_ACT " I know why this error is comming because I enhanced Main Window of comopnent BT110M_ACT in Component Structure Browser. But I want to enhace Runtime editor Window as well to add teh out bound plug.
Please help me to remove this errors.
Hi Akhilesh,
Go to SE80->Give the enhanced component name in bsp applications->Delete whichever you are getting error. For example, if you get the error when you try to enhance the view, remove the controller and related things for that view.
Now after deletion, enhance it again. The error would be gone.
Thanks,
Faisal
Hi all,
I am trying to change the address for( ADDR_NR) for Partner . I am using the function module CRM_PARTNER_MAINTAIN_SINGLE_OW.
I am calling below code in ORDER_SAVE Badi. but still it is not changing the address number .
ls_partner1-ref_guid = ls_partner-ref_guid.
ls_partner1-ref_handle = ls_partner-ref_handle.
ls_partner1-ref_kind = ls_partner-ref_kind.
ls_partner1-partner_no = lv_partner.
ls_partner1-kind_of_entry = gc_c.
ls_partner1-partner_fct = 'Z00000001'.
ls_partner1-display_type = gc_bp.
ls_partner1-no_type = gc_bp.
ls_partner1-city = ex_addresses-city1.
ls_partner1-region = ex_addresses-region .
ls_partner1-country = ex_addresses-country .
ls_partner1-house_no = ex_addresses-streetcode.
ls_partner1-street = ex_addresses-street.
ls_partner1-postl_cod1 = ex_addresses-post_code1.
ls_partner1-district = ex_addresses-city2.
ls_partner1-addr_nr = lv_add_num1. " NEW ADDRESS NUMBER
ls_partner1-addr_origin = gc_b.
ls_partner1-addr_np = ''.
ls_partner1-addr_type = '1'.
ls_partner1-mainpartner = 'X'.
* ls_partner1-addr_nr = lv_add_num.
ls_input_field-fieldname = 'DISPLAY_TYPE'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'KIND_OF_ENTRY'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'NO_TYPE'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'PARTNER_FCT'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'PARTNER_NO'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'CITY'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'COUNTRY'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'REGION'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'HOUSE_NO'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'STREET'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'POSTL_COD1'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'ADDR_NR'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'DISTRICT'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'ADDR_ORIGIN'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'ADDR_NP'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'ADDR_TYPE'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
ls_input_field-fieldname = 'STD_BP_ADDRESS'.
INSERT ls_input_field INTO TABLE lt_input_field_names.
CALL FUNCTION 'CRM_PARTNER_MAINTAIN_SINGLE_OW'
EXPORTING
iv_ref_guid = ls_partner-ref_guid
iv_ref_kind = 'A'
is_partner_com = ls_partner1
iv_populate_mode = ' '
* IV_CHECK_PARTNER_ONLY = ' '
* IS_PARTNER_CONTROL =
* IS_COM_STRUCTURE =
* IV_EXTERNAL_CALL = FALSE
* IMPORTING
* EV_CREATED_PARTNERSET_GUID =
CHANGING
ct_input_field_names = lt_input_field_names
* CT_PARTNER_ATTRIBUTES_COM =
EXCEPTIONS
error_occurred = 1
OTHERS = 2
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
regards,
rama
Hi Gopi,
Follow this document to configure/change the Help Center links, alternatively you can enhance component/view CRMCMP_HDR_STD/GlobalFunctions and modify the method GET_HELP_CENTER_LINK of view controller class and pass your url to rv_url paramater.
Regards,
Shobhit
Hello everybody,
I am trying to make some minor changes to a Survey:
I select a Question,
then right clik and choose "Insert Answer"
Answer Category, select "4 Input Field for Date"
then I write the Text: "Field X" in the Answer option (Field X for example)
Please note that I have working Field Y, Field Z, etc, with the same attributes, in the same Survey
Then I save , and activate the new version of this Survey,
but when I test in Web client, it shows the SAP message "The current questionnaire is not valid, therefore it cannot be changed"
then in SAP GUI the Survey automatically generates a new version of the Survey, with my changes erased (back to original Survey).
Any ideas are appreciated, Thank you.