on 2015 Oct 28 1:10 PM
Request clarification before answering.
Hi,
Following is the solution :
/srmnxp/bd_Change_data - To disable the entities on UI.
/srmnxp/if_enhance_data_prov~change_data
IF iv_entity_name = 'Approval'.
FIELD-SYMBOLS<ls_ui_header> TYPE /srmnxp/s_approval.
FIELD-SYMBOLS<lt__header_ui> type any table.
ASSIGN cr_entity->* to <ls_ui_header>.
IF <ls_ui_header> is assigned.
<ls_ui_header>-add_approver_a_e = ' '.
ENDIF.
ASSIGN cr_entity_set->* to <lt_header_ui>.
IF <lt_header_ui> is assigned.
LOOP AT <lt_header_ui> is assigned.
<ls_ui_header>-add_approver_a_e = ' '.
ENDLOOP.
ENDIF.
ENDIF.
IF iv_reviewer = 'Reviewer'.
FIELD-SYMBOLS<ls_ui_review> type /srmnxp/s_reviewer.
FIELD-SYMBOLS<lt_ui_review> type any table.
ASSIGN cr_entity->* to <ls_ui_review>.
IF <ls_ui_review> is assigned.
<ls_ui_review>-add_reviewer_a_e = ' '.
ENDIF.
ASSIGN cr_entity_set->* to <lt_ui_review>.
IF <lt_ui_review> is ASSIGNED.
LOOP AT <lt_ui_review> ASSIGNED <ls_ui_review>.
<ls_ui_review>-add_reviewer_a_e = ' '.
ENDLOOP.
ENDIF.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
please, have a look at file name "Extensibility-Customer_CookBook_SP07.pdf" attached to OSS note 1830075 - User-defined fields: Preparation and use and more precisely to paragraph 2.2.3
Regards.
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vimal,
You can check in SPRO settings Extension and Field Control --> Control Action --> Configure Control Action on Header/Item level if you have header/Item level buttons.
PDO action type :- Action name (button u want to disable)
Process mode :- EDIT/DISPLAY mode
object type : Document object type (BUS2121/BUS2201)
Transcation type : SHC/EC
PDO Action enable/disable : X
If u have condition basis disabling the Button add the custom dynamic method.
Hope this helps.
Best Regards,
Siddappa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.