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: 

Batch Creation and Characteristic Value Updates in SAP EWM Environment

Former Member
0 Kudos
2,079

Hi,

I am creating a custom FM that will do batch creation and update of characteristic values. The process is as follows:

1. Create batch using FM, /SAPAPO/DM_VERSIONS_MAINTAIN. Then commit and work after it. At this point, I was able to successfully create batches to products. The object type is /SAPAPO/VERSKEY and class type is 230.

2. Call FM, CACL_OBJECT_ALLOCATION_MAINT to allocate the object to class. Before calling this FM, I do commit work and wait and wait up to 2 seconds. In this, if I'm not mistaken the KSSK will be updated based from the INOB entries.

3. Then Save the allocation by using FM, CACL_CLASSIFICATION_SAVE.

4. Update the characteristics value using, CACL_OBJECT_VALIDATION_MAINT.

5. Then save using FM, CACL_CLASSIFICATION_SAVE.

The issues I have are:

1. The KSSK-AUSP-INOB tables were not updated. I expect that from the creation of the batch, the INOB should be updated with a new entry. Then upon allocating the object to class, the KSSK should be updated also. The AUSP will then be updated after adding characteristic values to it. I know that the batch was created because I checked /SAPAPO/VERSKEY, new entries were added based on the objects I inputted but no entries on the tables mentioned.

I was able to update these tables the other day but then the next day error returned that no allocations found on step 2. I checked these tables and these were not updated but the batch was successfully created.

I've read through different threads that the INOB was replaced by CBASE tables due to upgrade of the system. This only happens when an upgrade was done. But there was no upgrade happening in the system. I could not try the OSS notes recommended as no upgrade happens in the system

2. At the time I was able to insert data to tables KSSK-AUSP-INOB, in updating the characteristic values, I have these fields: LOBM_VFDAT, LOBM_HERKL and LOBM_ZUSTD. These were successfully updated except the value for LOBM_VFDAT was not updated in AUSP table. It did create an entry in AUSP but the value in ATWRT was blank. I don't know how it gets deleted during insertion of these values.

Please help!

3 REPLIES 3

Former Member
0 Kudos
680

Hi - Issue number 1 resolved. Issue number two is still under investigation but would greatly appreciate your help on this.

Thanks!

0 Kudos
680

What was the problem with 1st case..? Seconldy you have issue with date characterstic...Can you please try by inserting values in YYYYMMDD format..Try with different formats..?

0 Kudos
680

the format for this is DDMMYYYY.. I tried other formats but it returned error for wrong date format. I checked on the config for the char. value in CL01 and the checkbox for "Not Ready For Input" was ticked. When I unticked this in tcode CT04, still no change, same issue.