on 2025 Jan 10 11:42 AM
Hi Experts,
I have a requirement of creating program which is being used to create material data. We have tried using the BAPI 'BAPI_MATERIAL_SAVEDATA'. But since we have customized fields in MARA table and few other relevant tables we are not able to use the BAPI 'BAPI_MATERIAL_SAVEDATA'.
Therefore, we decided to go ahead with the class 'CL_MASS_SAVE_MAT_PARALLEL'. Now when trying to use the class got to know it is mandatory to pass data to below parameters in the method 'PROCESS'
Can anyone please mention what are the data we should pass to these parameters? Also, it would be great help if I can know what are the exact data to be passed in order to get a material created.
Request clarification before answering.
IMHO Your assertion 'But since we have customized fields in MARA table and few other relevant tables we are not able to use the BAPI BAPI_MATERIAL_SAVEDATA' is wrong, you could have used EXTENSIONIN parameter for this, basically for customer fields (read parameter documentation) and with BAdI STANDARDMATERIAL_SAVE_DATA for any customer table (or too many customer fields for BAPIPAREX structure) the BAdI is called when the structure name isn't one standard extension structure name (BAPI_TE_MARA, BAPI_TE_MARM, BAPI_TE_MAKT, etc.)
The class you are looking at is used by MM17, so you could perform some search from there, but better try with BAPI (or use MM17, MASS or MASSD)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi raymond_giuseppi,
I have tried your suggestion which is to maintain the custom fields using the parameters EXTENSIONIN and EXTENSIONINX. But the problem is with these parameters it allows me to maintain the structures BAPI_TE_MARA or BAPI_TE_MARC such as. But in my case our customized fields are appended using a custom structure (ZMAT_IDEN).
So is there another way which I can maintain those fields?
User | Count |
---|---|
52 | |
10 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.