on 08-17-2009 8:07 PM
Hello All,
I have custom form which displays some field value from SAP_PD Service ( OM Service). I wanted to display some
other field value which is not part of SAP_PD Service. I have created BADI implemenation for HRASR00GEN_SERVICE_BASIC
that BADI for Generic Service but i am struggling to add custom fields. Can anyone tell me how to add custom fields in Generic Service. So that i caninclude that service in my form and dispaly value.
Thanks
VJ
1. Define the field properties in GET_FIELD_INFO
LOOP AT service_fields INTO ls_service_field.
CASE ls_service_field.
WHEN c_fieldname_reason.
Reason
CLEAR ls_field_info.
ls_field_info-fieldname = c_fieldname_reason.
ls_field_info-field_data_element_name = c_dtel_reason.
ls_field_info-supports_value_help = true.
ls_field_info-supports_default_value = true.
APPEND ls_field_info TO field_infos. endcase. endloop.
2. Add the fields into defined operations in GET_OPERATIONS.
ls_operation-operation = c_oper_get_reason.
ls_operation-fieldnames = get_fields_of_operation( ls_operation-operation ).
APPEND ls_operation TO operations.
in method get_fields_of_operation
APPEND c_fieldname_reason TO fieldnames.
3. In initialization write the code for initialization of fields defined above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Using 'Process form scenario for Generic services' in SPRO create an 'Operation' and in BADI in the method GET_FIELDS_OF_OPERATION append all custom fields to fieldnames.
eg:APPEND c_appl_close_date TO fieldnames.
Then in SPRO u will have an option to select this fields against the operation in the f4 help.
Thanks,
Deepthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.