Quantcast
Channel: SCN : Discussion List - SAP for Retail
Viewing all articles
Browse latest Browse all 1380

ARTICLE CREATION UNABLE TO CREATE INTERNALLY ASSIGNED (WRF_MATERIAL_MAINTAINDATA_RT)

$
0
0

Dear SAP Gurus,

 

I currently have a requirement to create a custom program for Article Master Creation. Based on testing & research, I've come to the conclusion that the best FM to use is WRF_MATERIAL_MAINTAINDATA_RT.

 

I've tested BAPI_MATERIAL_MAINTAINDATA_RT only to find out that it is unable to extend to the Purchasing View.

 

Now, here's my problem: I can't seem to create an Article with an internally assigned number range.

 

Here's the specific error that I'm encountering:

 

No entry in key field MATNR of header segment

Message no. MG503

 

As per my understanding, I would have to, of course, leave the field MATERIAL blank since I'm creating an internally assigned article number. I'm trying to figure out what field I missed in the execution of WRF_MATERIAL_MAINTAINDATA_RT.

 

(Note: I was able to successfully create an externally assigned article number by placing a value for field MATERIAL)

 

Below are the structures that I populated in my testing:

 

HEADDATA

ORGANIZATIONAL_LEVEL

CLIENTDATA

CLIENTDATAX

ADDNLCLIENTDATA

ADDNLCLIENTDATAX

MATERIALDESCRIPTION

PLANTDATA

PLANTDATAX

STORAGELOCATIONDATA

STORAGELOCATIONDATAX

UNITSOFMEASURE

UNITSOFMEASUREX

INFORECORD_GENERAL

INFORECORD_PURCHORG

 

As a rule, I place an 'X' value in the Checkbox structures for each field that I populate in the User Data structure. I believe I have the proper entry of field values taken care of in terms of having the User Data and Checkbox structures match.

 

Even if I only create an article for Basic Data view by populating only HEADDATA, CLIENTDATA, CLIENTDATAX, ADDNLCLIENTDATA, ADDNLCLIENTDATAX, MATERIALDESCRIPTION, I'm still encountering Message no. MG503.

 

The question is, what else do I need to do in order to create an internally assigned article number via WRF_MATERIAL_MAINTAINDATA_RT?

 

Please see attached screenshots.

 

Lastly, I decided to create this thread because as I was searching through SCN about this specific issue, I haven't found a thread that was already solved. I think I read a thread or two that were solved but the final solution was never shared.

 

Thank you,

Aivanny


Viewing all articles
Browse latest Browse all 1380

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>