Skip to Content
Former Member
Mar 19, 2014 at 05:04 PM

Odata extension Fiori PO app -Adding table Headerdetails and populate in Header Information


Hi All,

We are extending the PO approval Fiori Apps, We want to add a table to Headerdetails ( PO revision History have 2 fields revision no and revision text) .

We have implemented BADI . I am able to add fields to structure and populate the values for individual fields using the below details ..

METHOD if_gbapp_ex_apv_po_mdp~enhance_gw_service_entity_mdp.

DATA: lo_property TYPE REF TO /iwbep/if_mgw_OData_property.

IF iv_entity_type_name = 'HeaderDetail' OR iv_entity_type_name = 'WorkflowTask'.

lo_property = io_entity_type->create_property( iv_property_name = 'ZPurchasingGroup' iv_abap_fieldname = 'ZZEKGRP' ).

lo_property->set_nullable( abap_true ).



But I did not find any details to Crete Property for Tables in this Method for example complex structure and table. Example..

Added a structure or table to structure GBAPPS_PO_HEADER_DETAILS_INCL . Then How to Create Property for fields in the table or Structure ??

Thanks in Advance for your help.



Tags edited by: Michael Appleby