Add Custom field of a Z Table in Search structure of Interaction History
Hi,
I am trying to add a field in the IC Interaction History. I have enhanced the BOL structure for BTQuery10 and displayed the field in the Web UI. I have implemented the BADI CRM_RF_SEARCH_EEW, Added entry to CRMC_REPDY for the field.
But when i enter any value in the Field it is not executing the BADI. I tried with the Break Point but it has not executed the BADI.
Please help how to add a Custom field of a Z Table in the Search structure of Interaction History.
Regards,
Rajender
Hi Rajendra,
You can try this approach.
You can redefine the genil CL_CRM_BTIL->get_query_dynamic_result method (oneorder) and write the logic only for required object else all the one order objects will be affected.
Inside the genil modify the search parameters to include additional object id's which corresponds to custom search parameter.
Check the below logic which is used for activity search based on custom field, in your case modify it with the interaction history object details. Logic is to fetch all the one order object guids based on custom search( via select on custom table) and pass it as input parameter in search.
DATA : it_selection_parameters1 LIKE it_selection_parameters,
ls_selection_parameters LIKE LINE OF it_selection_parameters,
ls_selection_param LIKE LINE OF it_selection_parameters1,
lv_attr TYPE name_komp.
DATA: lt_orderadm_h TYPE crmt_orderadm_h_wrkt,
it_act_guids TYPE crmt_object_guid_tab,
lt_requested_obj TYPE crmt_object_name_tab,
srch_str TYPE c LENGTH 40,
gv_activity_h TYPE crmt_object_name VALUE 'ACTIVITY_H',
ls_orderadm_h LIKE LINE OF lt_orderadm_h.
it_selection_parameters1[] = it_selection_parameters[].
IF iv_query_name EQ 'BTQuery1O'.
LOOP AT it_selection_parameters INTO ls_selection_parameters.
CASE ls_selection_parameters-attr_name.
REPLACE ALL OCCURRENCES OF '*' IN srch_str WITH '%'.
srch_str = ls_selection_parameters-low .
IF srch_str CA '%'.
SELECT ref_guid
FROM "Ztable"
INTO TABLE it_act_guids
WHERE order_typeg LIKE srch_str .
ELSE.
SELECT ref_guid
FROM "Ztable"
INTO TABLE it_act_guids
WHERE order_typeg = srch_str.
ENDIF.
INSERT gv_activity_h INTO TABLE lt_requested_obj.
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
it_header_guid = it_act_guids
it_requested_objects = lt_requested_obj
IMPORTING
et_orderadm_h = lt_orderadm_h
EXCEPTIONS
document_not_found = 1
error_occurred = 2
document_locked = 3
no_change_authority = 4
no_display_authority = 5
no_change_allowed = 6
OTHERS = 7.
IF sy-subrc NE 0.
ENDIF.
IF lt_orderadm_h IS NOT INITIAL.
LOOP AT lt_orderadm_h INTO ls_orderadm_h.
ls_selection_param-attr_name = 'OBJECT_ID'.
ls_selection_param-sign = 'I'.
ls_selection_param-option = 'EQ'.
ls_selection_param-low = ls_orderadm_h-object_id.
ls_selection_param-high = ''.
IF sy-tabix = 1.
DELETE it_selection_parameters1 WHERE attr_name = 'Zttarname'.
ENDIF.
APPEND ls_selection_param TO it_selection_parameters1.
CLEAR: ls_orderadm_h.
ENDLOOP.
ELSE.
RETURN.
ENDIF.
ENDCASE.
ENDLOOP.
ENDIF.
CALL METHOD super->if_genil_appl_intlay~get_dynamic_query_result
EXPORTING
iv_query_name = iv_query_name
is_query_parameters = is_query_parameters
it_selection_parameters = it_selection_parameters1
iv_root_list = iv_root_list.
Hope this helps.
Cheers,
Sumit Mittal
Similar Messages
-
Add custom field in the selection screen for shopping cart monitor report
Hello,
refering to the notes 458591 an 672960, in order to add custom field at item level, we get the structure INCL_EEW_PD_ITEM_CSF.
But this doesnt make it appear on the "Shopping Cart Monitor Report" selection screen.
So should I try adding it in the existing interface of the badi bbp_sc_mon ?hello Yann,
ok I will implement that. Is it possible to change the interface of the badi method to include more data if we want to check the role of the user who is executing the shopping cart monitor report and accordingly do the settings of field display ? Or calling a function module inside the method to get the attributes of sy-uname would be easier?
rita -
How to get custom field value in vbkd table using "SD_SALESDOCUMENT_CREATE" bapi
Hi Experts,
Need your help . In one program Iam using SD_SALESDOCUMENT_CREATE bapi .
i/p for my report is am excel.
excel is having below formatt.
To create salesdoc we are using SD_SALESDOC_CREATE bapi.
but After execution of the program we are unable to find the ZZFV_SBCNT (which is custom field) in VBKD w.r.t salesdocument.
Need your help what we need to do to reflect the value in vbkd table.
Here temp will contains the data from excel
1)
FORM f_move_header_data .
wg_header-doc_type = wg_temp-auart . "Order type
wg_header-sales_org = wg_temp-vkorg . "Sales Organization
wg_header-distr_chan = wg_temp-vtweg . "Distribution Channel
wg_header-division = wg_temp-spart. "Division
wg_header-sales_off = wg_temp-vkbur . "Sales Office
wg_header-sales_grp = wg_temp-vkgrp . "Sales Group
wg_header-purch_no_c = wg_temp-bstnk . "Customer purchase order number
wg_header-pymt_meth = wg_temp-zlsch . "Payment Method
wg_header-zzychan_role = wg_temp-zzychan_role_i. "Channel Role
wg_header-zzysub_role = wg_temp-zzysub_role . "Submitter Role
wg_header-zzy_inv_for_opt = wg_temp-zzinv_format . "Invoice Format Optio
wg_header-ord_reason = wg_temp-augru . "Order Reason Code
wg_header-bill_block = wg_temp-faksp. "Billing Block
wg_headerx-doc_type = c_set . "Order type
wg_headerx-sales_org = c_set . "Sales Organization
wg_headerx-distr_chan = c_set . "Distribution Channel
wg_headerx-division = c_set. "Division
wg_headerx-sales_off = c_set . "Sales Office
wg_headerx-sales_grp = c_set . "Sales Group
wg_headerx-purch_no_c = c_set . "Customer purchase order number
wg_headerx-pymt_meth = c_set . "Payment Method
wg_headerx-zzychan_role = c_set. "Channel Role
wg_headerx-zzysub_role = c_set . "Submitter Role
wg_headerx-zzy_inv_for_opt = c_set . "Invoice Format Option
wg_headerx-ord_reason = c_set . "Order Reason Code
wg_headerx-bill_block = c_set. "Billing Block
ENDFORM. " F_MOVE_HEADER_DATA
2)
FORM f_move_item_data .
wg_item-itm_number = g_itmnumber. "Item number
wg_item-material = wg_process-matnr . "Material
wg_item-target_qty = wg_process-target_qty. "Targeted Qty
wg_item-item_categ = wg_process-pstyv. "Sales document item category
wg_item-zzylegal_i = wg_process-zzlegal. "Legal Contract
**********Added this line for vbkd-ZZFV_SBCNT****************************
wg_item-zzfv_sbcnt = wg_process-zzfv_sbcnt.
APPEND wg_item TO i_item.
wg_itemx-material = c_set . "Material
wg_itemx-target_qty = c_set. "Targeted Qty
wg_itemx-item_categ = c_set. "Sales document item category
wg_itemx-zzylegal_i = c_set. "Legal Contract
wg_itemx-zzsteady_date = c_set . "Amortization Start Date
wg_itemx-zzsteady_end_dat = c_set. "Amortization Stop Date
**********Added this line for vbkd-ZZFV_SBCNT****************************
wg_itemx-ZZFV_SBCNt = c_set. "
APPEND wg_itemx TO i_itemx.
CLEAR : wg_itemx.
endform.
3)
FORM f_move_head_ext
wg_extension-structure = c_ext_vbak.
wg_ext_vbak-zzinv_format = wg_temp-zzinv_format.
wg_ext_vbak-zzychan_role = wg_temp-zzychan_role_i.
wg_ext_vbak-zzysub_role = wg_temp-zzysub_role.
wg_extension+30 = wg_ext_vbak.
APPEND wg_extension to i_extension.
CLEAR wg_extension.
wg_extensionx-structure = c_ext_vbakx.
wg_ext_vbakx-zzinv_format = c_set.
wg_ext_vbakx-zzlegal = c_set.
wg_ext_vbakx-zzychan_role = c_set.
wg_ext_vbakx-zzysub_role = c_set.
wg_extensionx+30 = wg_ext_vbakx.
APPEND wg_extensionx TO i_extensionx.
CLEAR wg_extensionx.
ENDFORM. " F_MOVE_HEAD_EXT
*& Form F_MOVE_ITEM_EXT
* Item Extension
4)
FORM f_move_item_ext .
* Structure for BAPI parameter Extension
wg_extension-structure = c_ext_vbap.
wg_ext_vbap-posnr = g_itmnumber.
wg_ext_vbap-zzsteady_date = wg_process-zzsteady_date . "Amortization Start Date
wg_ext_vbap-zzsteady_end_dat = wg_process-zzsteady_end_dat. "Amortization Stop Date
wg_ext_vbap-zzlegal = wg_process-zzlegal. "Legal Contract
wg_extension+30 = wg_ext_vbap.
APPEND wg_extension to i_extension.
* Structure for BAPI parameter Extension - Update Indicator Fields
wg_extensionx-structure = c_ext_vbapx.
wg_ext_vbapx-posnr = g_itmnumber.
wg_ext_vbapx-zzsteady_date = c_set .
wg_ext_vbapx-zzsteady_end_dat = c_set.
* wg_ext_vbapx-zzlegal = c_set.
*wg_process-zzfv_sbcnt = c_set.
wg_extensionx+30 = wg_ext_vbapx.
APPEND wg_extensionx TO i_extensionx.
CLEAR wg_extensionx.
and bapi calling is like below.
CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
EXPORTING
sales_header_in = wg_header
sales_header_inx = wg_headerx
logic_switch = wg_logic_switch
business_object = fp_bus_obj
status_buffer_refresh = 'X'
IMPORTING
salesdocument_ex = g_sorder
TABLES
return = i_return
sales_items_in = i_item
sales_items_inx = i_itemx
sales_partners = i_partner
sales_conditions_in = i_cond
sales_conditions_inx = i_condx
sales_text = i_text
extensionin = i_extension
extensionex = i_extensionx.
still we are not getting ZZFV_SBCNT value in VBKD table w.r.t created salesdoc(g_sorder)
Please help me from this issue.
Thank You..Hi,
Please let me know how to add custom fields in the characteristic list, My clients wants department and profit center grouping.
Please tell me how to solve it..
Thanks & Regards,
Reena.. -
Hi Experts
i have a reuirement where i have to add custom field in delivery address/performance location tab in SRM shopping cart and Ship to address Pop-up in SRM PO
i am doing below steps for this.
1. Adding custom field ZZfield in structure INCL_EEW_PD_PARTNER_CSF by using append structure.
2. Spro ->Supplier Relationship Management -> SRM Server -> Cross application basic settings -> Extensions and field controls (personalization) -> Configure field control ->Configure Control for Fields of Substructures
then click on "Metadata for Fields of Substructures and Table-Like Enhancements"
add the below entry
Bus. Object Set Type : I am trying 7 and 29
Structure Field Name : ZZfield
Bus. Object Type : BUS2121/BUS2201
Set Level : Item
Field Visible : Check box should be checked
Field Enable : check box should be checked
Can anyone has the idea of this?
Thanks
RohitHello Rohit,
Please create a enchancement for component /SAPSRM/WDC_UI_DO_SHIPTO.
Add new input field and label in view V_DODC_SHIPTO.
Bind the input field value with field ZZfield from structure /SAPSRM/WDC_UI_DO_SHIPTO in the context node SHIP_TO .
Regards,
Neelima -
Add Customized fields in FICA document
Dear all,
We are having a requirement in which we need to add customized fields in FICA document and need to post them .Can anyone please tell me how to meet this requirement
susmita
Edited by: susmitha harini on Aug 11, 2010 12:46 PMHi Susmita
You can add the fields to the customer includes
CI_FKKOP
CI_FKKKO
To create/update the customer fields in automated processes you can use the standard SAP BAPI:
BAPI_CTRACDOCUMENT_CREATE
BAPI_CTRACDOCUMENT_CHANGE
Check out the import table EXTENSIONIN with structure BAPIPAREX.
To add the fields to the standard SAP transactions, have a look in IMG under
Financial Accounting
Contract Accounts Receivable and Payable
Basic Functions
Posting and Documents
Document
Screen Preparations
Yep
Jürgen
Edited by: sattlerj on Aug 12, 2010 8:45 PM
Edited by: sattlerj on Aug 12, 2010 8:49 PM - Added EXTENSIONIN -
OXK3 add custom field to bseg bsid bsad
Hi all ,
I have a custom field added to bseg table using transactioin OCK3, but i dont see this field in others tables BSID,BSAD . Can someone tell me the way to add this field in the others tables using tcode OCK3 .
Thanks in advance,
KarimThis field will not be automatically added to secondary indexes (only BSEG, CI_COBL and CI_COBL_BI). You may manually add this field to the secondary indexes via append structure, it will be automatically copied as those tables are filled via move-corresponding like statements. (source [Note 62435 - F-03: Selection by purchasing documents|https://service.sap.com/sap/support/notes/62435])
Regards,
Raymond -
Add custom fields in ML81n line item level
Hi All,
We have a requirement to add custom field in ML81N. I have found an enhancement SRVDET and table CI_ESLLDB to add the custom field. But my problem is, I cant find the screen where can I add that custom field. Does anybody knows this?
Appreciate your inputs.
Thanks in advance.Dear,
Below mentioned enhancment will create a new tab strip in the detail screen of service entry
SRVDET User screen on tab strip of service detail screen
Create one project in CMOD, then assign the enhancement
Calling screen No. Area Called screen No. Short Text
SAPLMLSP 0220 SUSCUSER SAPLXMLU 0299
New field should be added in the include structure CI_ESLLDB
Desgin these new fields in screen 0299 of program SAPLXMLU.
Put your code in FM
EXIT_SAPLMLSP_040 Transfer of Data to Detail User Screen
EXIT_SAPLMLSP_041 Adoption of Data from User Screen
Regards
Dillip -
Add custom fields in EL09/EL35 transaction
Hi,
I need to add custom fileds in these transactions in order to specify particular client information I have to extract in the output of meter reading order.
How can I accomplish this need?
Do I need to define a custom transaction or do I have to implement some customizing-badi,... I didn't find anything useful in my researches.
Can you help me please?
Thanks,
GabrieleHi Gabriele,
When we are generating meter reading orders, entries are made in tables EABL & EABLG. You can add custom fields in these tables using enhancement EDMMR001.
Based on your rules / logic, you can update these custom fields from user exit - EXIT_SAPLEL01_010.
Now, when you are downloading meter reading orders, you can access these values.
Alternatively, if you can derive these additional values in run time, you can place your logic in Meter Read Order Download Print Workbench program.
Hope this helps.
Regards,
Avinash -
Add custom fields in check status
Hi Gurus,
Please help me out in this. My requirement is I need to add two custiom fields in the check status (bbpsc04) and based on the values entered in the custom fields I need to search for the shopping carts.
Please let me know how to add two fields in the check status and fetch the data based on the values entered in the custom fields.
Thanks in advance,
Andy.Hi Andy,
first you need to make the customer fields for the shopping cart (header or item level) I assume that's already done.
Now to add the customer fields to the <u>extended</u> search you need to do the following:
1. Define the customer field in include:
a. SC HEADER INCL_EEW_PD_SEARCH_HDR_CSF_SC
OR
b. SC ITEM INCL_EEW_PD_SEARCH_ITM_CSF_SC
you have to set fields XINPUT and XDISPLAY to 'X' in table ET_FIELDS for the fields you want to use in BADI BBP_CUF_BADI_2 in method MODIFY_SCREEN. The fields defined this way are displayed if you choose the 'Extended search' link.
Refer to note 672960 - "User-defined fields 2" For more detailed instructions. -
Add custom fields in a new tab in J1B3N
Hi All,
In the project we need to to add custom fields from custom table (z table) in an Additional Tab (header) of J1B3N transaction. How can we do it using user-exits or BADI's?
I've looked for this requirement in the forum, but none of them related to J1B3N transaction.
If someboby has developed something like that, I will be grateful for help.
Thanks in advance.Hi Okuma,
Did you tried what are the badis are triggering while you run this transaction,then you will get an idea .
Regards,
Madhu. -
Add customer fields in Shopping cart and purchase order
Hi,
I have to add fields(moder of transport, country origin, country destination and more) in Shopping cart and purchase order in SRM system and remotle i have to update the same data in R/3 System.
could you please guide how to add the fields in screen.
regards
ShakeerHi
We have done this type of requirement several times in our previous SRM Implementations.
<b>You need to create an Append Structure in the Standard Structure to create the custom fields in your case.</b>
<u>Refer this link below for details.</u>
http://help.sap.com/saphelp_47x200/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm
<b>Define the fields of the append structure. You can proceed as when creating a normal structure with two restrictions (see Creating Structures).
The fields of an append structure must lie in the customer namespace, that is the field names must begin with ZZ or YY. This prevents conflicts with fields inserted in the table by SAP.</b>
http://help.sap.com/saphelp_srm50/helpdata/en/5b/c9df3b6ac34b44e10000000a114084/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/28/857a1867b52e4f8472c5d49209a675/frameset.htm
<u>BBP_CUF_BADI_2 BADI will be used to control the properties (hide/unhide, input/output enable or disable) for those customer fields you created in the above append structures.
BBP_DOC_CHANGE_BADI for defaulting or modifying the customer field contents, incase required.
BBP_DOC_CHECK_BADI for issuing customer messages for the customer field contents (incase data is entered incorrectly) , incase required.</u>
Let me know incase you face any issues.
Regards
- Atul -
Hi all,
Please provide me with some guidance for below activity .
How to add custom fields to ERDK table (print doc header ) by creating our own Z FM similar to the existing FM provided in R436 event .
suppose the field is
FIELD NAME u2013 FLAG
TYPE u2013 CHAR
LENGTH u2013 1
Moderator message: please use a more meaningful subject line next time.
Edited by: Thomas Zloch on Mar 31, 2010 1:14 PMgoto that table.
Click append structure, create a structure with required field.
it will come into that table.
Thank
Gowrishankar -
HI,
Is i possible to add Customer fields to IE01 transaction Classification tab.
If possible ... How to add my own fields..
Any Examples..
Thanks.
KiranHi,
thanks for the tip...
i added a customized screen as 100 under function group XMG0 and then set through spro.
so it has no problem to see screen by mm01, mm02, mm03.
but i am struggling against handling data in EXIT_SAPLMGMU_001. I realized that it was saved in mara table as well when i modified some value on two fields added by me.
however, values of those fileds did not show by mm02 with same material code modified by me.
could you help me where i should handle in order to solve that.?
i willl highly appreciated if somebody help me.
thanks
Benjamin. -
How to add custom fields in BADI Subscreen.
Hi Friends,
I have to include some custom fields in MFBF tcode.(In make-to-order tab page).
To do that I have used RM_HR_INTEGRATION BADI definition and created implementation for this. In the provided subscreen I tried to add custom fields but it asks access key . I donu2019t know , how to proceed further. Your help is needed.
Or kindly provide me solution to achieve my requirement.
Thanks in Advance,
senthil.Hi Venky,
We can see the documentation in
se18 -> badi -> LE_SHP_TAB_CUST_HEAD -> display -> documentation button above the definition name
in the first pop-up of documentation..go to the end which says 'Further notes'
Further notes
Documentation on BAdI Interface LE_SHP_TAB_CUST_HEAD
click on this and we have a detailed description of each method defined in the badi
Hope it helps
Regards
Byju -
Add Custom fields in Report Incident Screen in EHSM
Hello experts,
I want to add custom fields like Notification No. and division in Report Incident screen in EHSM.
I have added two fields.
Business Object: EHHSS_INCIDENT
Node: BASIC_INFO_ALL
Structure: INCL_EEW_EHHSS_INC_BINFA_D (added two fields using append structure)
Now how can i link with my screen and how to fetch notification data (standard F4 help)?
and when i save data, where it will save?
Can you guide me with proper steps for it as i am new in it.
Thanks in advance.Hi Jayvin,
To add the above fields on the screen, open the component configuration of the required screen.
Enhance the same and add the fields from the respective Node.
You did not worry about saving the data, once the fields are placed on the screen it will get save on click of save/ on event of save.
Regards,
Sanket.
Maybe you are looking for
-
How to select all the colomns_names from a table, with their datatypes ..
hi :) i would like to know, how to select in SQL all the columns names from a table with their datatypes so that i get something like this : Table 1 : table_name the column ID has the Datatype NUMBER the column name has the Datatype Varchar2 Table 2
-
Hi there, I've just changed my nano for this 80gb model today. It's brand new..sealed. Well, now I can notice that equalizer does not work. I can't notice any difference when it's on or off...I've tried all settings but the sound is the same! In my n
-
Error in properly recorded script while playback in OATS #Siebel
Hi, All! I'm just starting to use OATS to record scripts. While playback my script username and password boxes are filled automatically, but then I get an error: Failed Find Object timeout. Detail information:/web:window[@index='0' or @title='Siebel
-
Hello Everyone! I'm quite new with AIR but i already got some problem with it. Fonts in AIR are very bad for me, almost unreadable like on 1st graphic. Second graphic is how it look in Firefox. On [code 1] you can see my CSS (yes i'm AJAX/HTML AIR us
-
I was using Numbers '08 and just upgraded to 3.5.2 but now can't open any of my '08 files. Message says save to '09 first to open. Well, I don't have '09 so what do I do?