cancel
Showing results for 
Search instead for 
Did you mean: 

F4 help on product category(products assignment block in campaigns)

Former Member
0 Kudos

Hi All,

I need to have a custom value (f4) help on product category id on products assignment block in campaigns.

component : CPGOE_ABLOCKS

view : CPGOE_ABLOCKS/OVELProducts

filed: STRUCT.PRODUCT_CAT .

when i select the value from the custom f4 help ,im getting a strange values getting appened to the category id and getting displayed.

Product id and product text is hided.

like in the f4 help i select the category id as '003100510' ,

the value displayed is '031005100131E78CP0'

nt sure y this behaviour.

how the category id and product id releated?

any configuration issue.?

Thanks,

Anitha.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Anitha,

Check the return value of your F4 help. See how the return value is formed.

Regards,

Leon

Former Member
0 Kudos

Hi ,

its returning the value appened with 0131E78CP0,

nt sure from where the this value is picked up and being appened to the category id 003100510.

its also adding 10-11 rows with category id +some appened value and displaying these 17 rows when i select only 1 value.

it is taking the hirachy ,and the category and the products under that category?.

how to rectify this?

Thanks,

Antha.

0 Kudos

Hi Anitha,

That value could be the part of category GUID. Check you custom value help properly.

Regards,

Leon

Former Member
0 Kudos

Hi ,

DATA:

lv_str_index TYPE char2,

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.

lv_str_index = iv_index.

condense lv_str_index no-gaps.

CONCATENATE 'table[' lv_str_index '].PRODUCT_CAT' INTO

ls_map-context_attr.

ls_map-f4_attr = 'CATEGORY_ID'.

APPEND ls_map TO: lt_inmap, lt_outmap.

CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr

EXPORTING

iv_help_id = 'YSH_FSCRM_PRODSEL'

iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp

iv_TRIGGER_SUBMIT = abap_true

iv_input_mapping = lt_inmap

iv_output_mapping = lt_outmap.

endmethod.

'YSH_FSCRM_PRODSEL' -serach help

and table used is the custom table ...

having fields

CATEGORY_ID -


points to f4 attribute.

CATEGORY_DESC

PARENT_CATEGORY

Thanks,

Anitha.

0 Kudos

Hi Anitha,

Do you have a function module for the custom F4 help?

Also check if there is any conversion routine maintained in the domain for the corresponding field.

Regards,

Leon

Former Member
0 Kudos

Hi ,

CATEGORY_ID -field --- data element -COMT_CATEGORY_ID

domain :COM_CATEGORY_ID

data element : having an sercha help COM_CAT_HIER

and this has serach help exit : COM_CATEGORY_F4_EXIT.

Thanks,

Anitha

ajaya_kumar
Active Participant
0 Kudos

Hi Anitha,

Please try changing your code line as:



CONCATENATE 'table[' lv_tmp_str '].PRODUCT_CAT' INTO ls_map-context_attr.


Regards

Ajay

Former Member
0 Kudos

My code already has...

CONCATENATE 'table' lv_str_index '.PRODUCT_CAT' INTO ls_map-context_attr.

ls_map-f4_attr = 'CATEGORY_ID'.

APPEND ls_map TO: lt_inmap, lt_outmap.

Problem is when we select any value from value help.

ajaya_kumar
Active Participant
0 Kudos

Hi Anitha,

Have you noticed '[' (bracket) in my code? Which is not there in yours.

Regards

Ajay