‎2006 Mar 17 12:35 PM - last edited on ‎2024 Feb 04 6:03 AM by postmig_api_4
Hi
I have no knowledge in abap. You helped me to create a material master data with se37 and "bapi_material_savedata".
now I used the SAP Exchange Infrastructure to create such a material master data. So I call the mentioned bapi with input from an XMl file.
My now problem is:
The material data is not created I checked that in MM03.
I have the response from the type "Returnmessages" and the element "message" says:
<Message>Trying to change: 50000</Message>
I guess it had to be something like, "The message was created"?!? Sounds weird.
The message is not create, or I can't see the created message.
The response message sounds strange.
Thanks for your help.
Go:khan
‎2006 Mar 17 12:40 PM
Hi
Can you give the class and number of the message?
Max
‎2006 Mar 17 12:51 PM
hi Max
I am using a mapping tool in the SAP Exchange Infrastructure.
I used these input values:
headdata-material = 50000
headdata-ind_sector = 'M'.
headdata-matl_type = 'FERT'.
headdata-basic_view = 'X'.
clientdata-BASE_UOM = 'EA'.
clientdatax-BASE_UOM = 'X'.
clientdata-old_mat_no = 'Old Material'.
clientdatax-old_mat_no = 'X'.
clientdatax-division = 'X'.
descdata-LANGU = en
descdata-LanguISO= en
descdata-MATL_DESC = 'This is the description'.
This is my response under "ReturnMessages".
<Type>H</Type>
<ID>MK</ID>
<Number>103</Number>
<Message>Trying to change: 50000 ____ ____ ____ __________ ____ __ ___ ___</Message>
<Log_no />
<Log_msg_no>000000</Log_msg_no>
<Message_v1>50000</Message_v1>
<Message_v2>____ ____ ____ __________ ____ __ ___ ___</Message_v2>
<Message_v3 />
<Message_v4 />
<Parameter />
<Row>0</Row>
<Field />
<System>OPW23-SAPC</System>
I don't know where to find the class that you are askin for?
Thanks
‎2006 Mar 17 1:15 PM
Hi
It seems that message is raised by fm MATERIAL_MAINTAIN_DARK (it's called by your BAPI) if there same problem with the material code.
Max
‎2006 Mar 17 1:30 PM
Hi
What does this mean?? I have no clue.
Inserting the same values in se37 works fine.
Thanks
Go:khan
‎2006 Mar 17 2:10 PM
The data that worked in SE37 need not always work in a code or the external call like calling from XI. Most often it is because you send data in external format when calling the function module. When you using the SE37 test interface, the test interface will take care of converting the external format data into internal format before handing over the data to the code. If you are calling the same function module in your code, you have to take care of doing that in your code. In your case, the language is passed as 'EN' where as the internal format for the same is 'E'.
Also, the message is saying 'Trying to change'. Is the material created already? Go to SE91. Enter message ID MK and number 103. See if it has long text explaining the reason.