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: 

problem with the currency fields in the table cdpos

Former Member
0 Kudos

Hi Gurus,

I have observed one thing with the cdpos table like whenever we made changes to the currecy( and numeric fields also ,i am not sure ) fields ,then in the cdpos table it is showing a new entry for that change but not showing that old value, why? .But when we made any changes to date fields ,then it is storing that old date.

So Is there any specific feature in this table.

Thanks & Regards,

Rakesh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I think you must specify the fields for which change pointers must be written in BD52.Did you do that?

2 REPLIES 2

Former Member
0 Kudos

I think you must specify the fields for which change pointers must be written in BD52.Did you do that?

Former Member
0 Kudos

Hello

In ABAP-programm try this:


DATA:       NEW LIKE CDPOS-VALUE_NEW,
      OLD LIKE CDPOS-VALUE_OLD, 
      NEW1 TYPE MENGE_D,
      OLD1 TYPE MENGE_D.
FIELD-SYMBOLS: <f> TYPE ANY.

* make select from CDHDR and CDPOS

IF CDPOS-FNAME = 'MENGE'.
  MOVE CDPOS-VALUE_NEW TO NEW.
  MOVE CDPOS-VALUE_OLD TO OLD.
  ASSIGN NEW TO <f>.
  CATCH SYSTEM-EXCEPTIONS CONVT_NO_NUMBER = 2
       OTHERS = 4.
       NEW1 = <f>.
  ENDCATCH.
  ASSIGN OLD TO <f>.
  CATCH SYSTEM-EXCEPTIONS CONVT_NO_NUMBER = 2
       OTHERS = 4.
       OLD1 = <f>.
  ENDCATCH.
ENDIF.

After this in NEW1 and OLD1 you will see values.