cancel
Showing results for 
Search instead for 
Did you mean: 

How to set Profit Center and Cost Center visible in the Entity set "FinsPostingGLItems"

mredula
Explorer
0 Kudos

Hi Experts,
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

sangwan
Explorer
0 Kudos

Hi, mredula Anil. When you create this, can you share the API payload hits to the backend? I am trying to create a JV doc without UI using API only and looking for how to do that.

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

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...)

mredula
Explorer
0 Kudos

Since I have restriction to do changes in backend, how can I make use of existing OData and do only changes in frontend.