Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Key Field In CDPOS Table

Former Member
0 Kudos

Hello,

My requirement is to display new values and change values in MM01 costing1 accounting1 view .I am getting the changed values along with field name with changein = U from cdpos table.

But the problem is with Changeind = i. The fieldname that is being picked up is by the name KEY. I want to know the actual fieldname.

Hope i am clear with my requirement.

3 REPLIES 3

ThomasZloch
Active Contributor
0 Kudos

You will have to get the values from the application tables, e.g. MBEW, see CDPOS-TABNAME. In case the initial values have been changed since creation, it can be quite a pain to reconstruct them based on subsequent old/new values of the "U" entries.

Thomas

0 Kudos

Hello Thomas,

i have retreived the values from cdpos with tabname equal to MBEW . After picking up the data , if the change

indicator is U. There is no issue picking up the fieldname name along with old value and new value . The problem exists when the change indicator is I . The field name that it updates is as KEY rather than the fieldname such as BKLAS

But my requirement is to know the name of the field name that is been inserted .

0 Kudos

What I was trying to say is that for "I" type entries in CDPOS where the field name is "KEY", you need to select the field values from the original table (table name is stored in CDPOS-TABNAME). All fields of that table were being inserted at once, you cannot say that just BKLAS or any other field was inserted.

Thomas