
Status overview with undesired statuses
Open transaction SE19 enter the BAdI AI_CRM_CM_UI_ROADMAP and create a new implementation for it:
Transaction SE19 (BAdI Builder)
Give your enhancement implementation a Z-name and a description
Note: the implementation doesn't have to contain the name of the BAdI you are free to choose any name from the customer namespace. I just chose this one for ease of remembering it:
Naming the enhancement implementation
In the next screen you get to choose the name of the implementation and the class:
Naming the implementation and class
Note: Again it is not required to use the same name for the implementation. Also they do not need to contain the name of the BAdI, but I chose to do so because it'll be easier to find them again later.
Now create an object catalog entry and choose an existing package (or create an new package in SE80):
Object catalog entry and package
Choose an existing transport for your class or create a new one:
Transport request prompt
Now from the overview screen of the enhancement implementation make a double-click on "Implementing Class":
Navigation to implementing class
Make a double-click on the method
Navigation to method
Once you have double-clicked on the method you will be asked if you want to create an implementation for it. Answer with yes:
Popup for implementation creation
Now you will end up in the class builder:
Class builder code editor
You can use the code below as an example:
method IF_AI_CRM_CM_UI_ROADMAP~MODIFY_ROADMAP.
"Hide steps "Testing for Preliminary Import" and "Tested for Production Import"
try.
data(ls_order) = order->get_header( ).
catch cx_ai_crm_cm_com_generic. "
catch cx_ai_crm_cm_com_no_authority. "
endtry.
if ls_order-process_type eq 'ZMMJ'.
delete roadmap
where state ne cl_thtmlb_roadmapitem=>gc_state_active
and txt04 eq 'TIMP'.
delete roadmap
where state ne cl_thtmlb_roadmapitem=>gc_state_active
and txt04 eq 'GETP'.
endif.
endmethod.
Please note that in this case we used the transaction type ZMMJ.
But where do you find the status names of the statuses you want to hide?
Code with highlighted important parts
Well, the answer is: directly from the status schema.
When you open the status schema (in this case ZMMJHEAD) you can see the names:
Status schema of transaction type ZMMJ
Once you're done with the code do not forget to make a syntax check and activate it:
Syntax check function in ABAP editor
Activation of newly created ABAP objects
Once you're done with the code, go back, double click on the enhancement again and activate it:
Activation of enhancement implementation
You might need to switch tabs to get the system to show the correct status.
Make sure it says "The implementation will be called".
Now you shouldn't see the statuses anymore that you included in the code:
Graphical status overview with hidden statuses
Hope you find this information useful.
I'll be happy to try and answer any questions in the comments section below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
23 | |
19 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 | |
3 |