on 01-09-2023 2:16 PM
Hello,
My requirement is quite classic: after upgrading to S/4, I need to reimplment old specifics we had on Fiori application Purchase order approval. Among this: I need to enhance the my inbox app (Purchase order approval) with the list of approvers and the status of approval. Here is a sample of what we had before switching to S/4 using custom UI5 development and what I want to achieve:
To do so, my idea was to extend the standard CDS C_PurchaseOrderFs with a composition on a specific CDS that fetches the information I want to display (description processor and status):
I was expecting to receive a table very similar to the standard item table
Sadly nothing happens and I can't find why. Maybe associations cannot be added through the extension process?
Some ideas/thoughts about it:
Any one has an idea of what goes wrong here?
Thanks for your ideas / help
Hi Christophe,
the Purchase Order task UI is controlled by the gateway service C_PURCHASEORDER_FS.
So in order to get your newly added association, the SEGW project C_PURCHASEORDER_FS (mainly the runtime artifact classes CL_C_PURCHASEORDER_FS_MPC_EXT and CL_C_PURCHASEORDER_FS_DPC_EXT) has to reflect your requirement.
There are two important points for this:
...
"define new facet
lo_record2 = lo_collection1->create_record( iv_record_type = 'UI.ReferenceFacet') ##NO_TEXT.
"Label
lo_property_value3 = lo_record2->create_property( 'Label' ) ##NO_TEXT.
lo_property_value3->create_simple_value( )->set_string_from_otr( '00505xxxxxxxxxxxxxxxxx' ). " <<---- replace with the appropriate OTR label
"Target
lo_property_value3 = lo_record2->create_property( 'Target' ) ##NO_TEXT.
lo_property_value3->create_simple_value( )->set_annotation_path( 'to_PurchaseOrderApproval/@UI.LineItem' ) ##NO_TEXT.
Please also note :
If you create your own custom PO service as a copy from the standard, check the DPC-EXT class adaptations! There are redefinitions in the class CL_C_PURCHASEORDER_FS_DPC_EXT which you have to handle on your own when copying. Therefore a redefinition would always be the better option - in case you solve point 1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I could solve it using your 2, thanks
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.