on ‎2024 Jul 08 2:40 PM
Hi,
In my RAP Unmanaged Application, I have custom actions which need to enable/disable using features instance. But this features instance method is not triggered while selecting the line item. Hence not able to read the condition to make the custom actions disble or enable.
Request clarification before answering.
I have the requirment to enable disable a button at item level in Objet Page based on the status of Header and items. Code is given below for your reference..
READ ENTITIES OF zc_ewm_stock_header IN LOCAL MODE
ENTITY item
FIELDS ( status ) WITH CORRESPONDING #( keys )
RESULT DATA(result_i)
ENTITY item BY \_header
FIELDS ( status ) WITH CORRESPONDING #( keys )
RESULT DATA(result_h)
FAILED failed.
IF failed IS INITIAL.
result = VALUE #( FOR <fs_i> IN result_i
LET statusval_h = COND #( WHEN line_exists( result_h[ status = '01' ] )
AND ( <fs_i>-status = 'W' OR
<fs_i>-status = 'E4' )
THEN if_abap_behv=>fc-o-enabled
ELSE if_abap_behv=>fc-o-disabled )
IN ( %features-%action-stck_sync = statusval_h
%tky = <fs_i>-%tky
requestid = <fs_i>-requestid
sequencenumber = <fs_i>-sequencenumber
currentcount = <fs_i>-currentcount ) ).
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.