I have a requirement where I need smart fields like Profit Center and Cost Center along with Company code and GL account (as show in below Image )but only Company code and GL Account is visible ,
For creating these smart fields I'm using "/sap/opu/odata/sap/FAC_GL_DOCUMENT_POST_SRV/" OData Service and the Entity set used is "FinsPostingGLItems"
Please help me with the best solution to resolve this problem
I did something similar 4 years ago. we need to add posting key, customer, special GL.....
it's pure backend work.
1. if you check the ui code, you can find that fields belonging to certain field group(or something) will be displayed as item
2. you have to enhance the MPC(method define_glitem_ci_cobl) to add your fields
3.for update part, there is a badi(but i forgot the detail...)