Use Query To Create Log Changes From Table CDHDR CDPOS

Query Purpose:

User wants to check the material master changes with many materials in one go instead of one at time which is very time consuming.

Step 1:

SQ01 – InfoSet

Create InfoSet as Direct read of table: CDPOS

Step 2:

Create Extras to add table CDHDR

Link CDPOS with CDHDR as follows:

SELECT SINGLE * FROM CDHDR
WHERE OBJECTCLAS           = CDPOS-OBJECTCLAS
  AND OBJECTID             = CDPOS-OBJECTID
  AND CHANGENR             = CDPOS-CHANGENR

Query To Create Log Changes From Table CDHDR CDPOS

Step 3:

Create the Basic list fields you required and you are done.
 

Notes:

You can refer to the pooled table TCDOB - Objects for change document creation

For example, in my query of material master changes, I have three fields as selection for the material master changes.

Fields:

Object class: You can also refer to transaction SCDO (in these example, material master object class is MATERIAL)

Transaction in which a change was: M* (refer to any changes done using MM01, MM02 etc.)

Object value: refer to your Material Master material from tcode MM03
 

My Query Report-specific selections screen:

Object class                                                 MATERIAL
Transaction in which a change was made       M*
Object value                                                SAP Material

ABAP

See Also:

Tables
Database Table

ABAP Books List
ABAP/4 Certification, Programming, Smartforms, Sapscripts and Object Oriented Programming Books

Smart Forms
SAP Smartforms

ABAP Menu:
ABAP Example Hints and Tips

Return to Index:-
SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.  The site www.gotothings.com is in no way affiliated with SAP AG.
Any unauthorised copying or mirroring is prohibited.