Application Development and Automation 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: 

Get Material and batch of a specific classification

antonio_sanseverino
Participant
0 Kudos
630

Hi all,

I'm creating a delta extractor for Material and related batch and plant.

When I modify a classification from MSC2N transaction on CDHDR/CDPOS I can't find information about Material/Batch/Plant modified, but I need to find it, is there any BAPI/FM/Tables that can help me?

Thank you

2 REPLIES 2

Former Member
0 Kudos
345

Hi,

You will not able to find Material classification data changes in CDHDR/CDPOS.

try using below function modules,

BAPI_OBJCL_GETCLASSES

BAPI_OBJCL_CREATE

BAPI_OBJCL_CHANGE

use FM

BAPI_OBJCL_GETCLASSES before change the material classification .

Regards,

Arun.

0 Kudos
345

No I'm sorry, maybe I haven't explained well what is my problem, I'm making a BI extractor from ECC, I need to find the batches modified during a specific period, for example from yesterday to today.

I know that there is a filed, MCH1-LAEDA (Latest modification date) but I can't found information about the timestamp or the modification hour.

When you modify a batch from MSCN2 transaction this informations are stored on CDHDR/CDPOS tables but if yoi modify only a classification value you can't understand witch batch you have modified because on CDHDR/CDPOS you can find only information about the classification. I need to find the batch/material/plant from that information.

Anyway I could use the date, MCH1-LAEDA but if I run my extractor today I have to take the latest running date of my extractor, for example yesterday, And I have to select from MCH1 all the record having LAEDA from yesterday to today. If tomorrow I'll run again my extractor I must extract all record from MCH1 with LAEDA between today and tomorrow...

I'll extract the record modified today twice... I hope I'm clear explaing what I need

I think this it couldn't be a problem for my client, the extractor should run just at the end of every month, but if you know a best way please, let me know it.

Thank you