Newsletters may contain advertising. You can unsubscribe at any time. I am looking for a BAPI whcih can create, change and display the the following fields in the material master: 1. But this Bapi does not have the required strcuture to address the above fields. Any clues on the specific Bapi or do I need to enhance this one? If yes a few tips would be useful. B — School in South Asia. You can use the extension parameters of the BAPI to fill any fields not immediately accessible including custom fields.
Durham, England. Thanks for that. Actually our customer is insisting on BAPI. However during activation I am getting the following syntax error:. Why create a new BAPI? The conflict in parameters is because the variables are declared differently.
When passing parameters between FMs they must always be declared identically. Can you explain what is this extension. I was told that we need to copy the BAPI to inlcude the requred structures. I am good in inserting the logic into teh BAPI. I only need your help in how to go about extension. This concept is new to me and would be a lot helpful if you can share the information. The extension parameters are used in harmony with a standard user exit in the BAPI, this allows you to update structures and fields not necessarily automatically exposed by the rest of the BAPI.
I guess it is what what we call "SLO tool" in our company. It is currently used in a parallel project to my migration project and supported and executed by externals. Technically this tool can use any BAPI or function module, including customer function modules. See this slide for more:. I have dug all threads for this type of error ever occurred and have been shared within community but in vain. It must have been the reason as now IDoc is getting generated.
That's another thing that eventually I still get an IDoc failure error but that's something I can handle I guess with some extra work on the scenario I use. Can you tell me how to do the mapping? Skip to Content Updated Rules of Engagement. We have made some improvements to the way all of us engage within SAP Community, namely how we share information, how we treat each other, and how we can continue to learn.
December 27, 7 minute read. I would like to show how BAPI method is used to create and change material master. As an example I use a real business case: existing material masters need to be updated with new material descriptions and sales text not all materials have a sales text view Text needs to be maintained in German and English language, English text is identical to German text Text is provided in a Excel spreadsheet Annotation: Our material numbers are set as Lexicographical, no leading zeros We have to use a certain path to store the.
Prepare your LSMW Define your project, sub-project and object Project, sub-project and object is a free definable hierarchy The project is usually self-explaining, it is the name of your project. In this example I am going to use SCN as project, material as subproject and texts as object. You will have to do the same for Subproject and Object. I highlighted the steps which are variable on the import method Above the step overview you can see various buttons.
Prepare your Field mapping and conversion rules After executing step 5 Field mapping and conversion rules you will see the mapping based on the SAP given settings.
You get then a pop-up to define the layout I prefer and recommend to set each field in the layout active Here are some examples how the layout looks like depending on the settings made.
This has to be done in any system where you use this LSMW project. So you would only need to enter those names and Activate IDoc Inbound processing, However, if you have to do it yourself, then you need to make use of the buttons next to those fields. Put the cursor onto the file folder on the left, then click the create icon Enter a description, set the radio button for the IDOC record type most probably the 4.
Alert Moderator. Alerting is not available for unauthorized users. Assigned Tags. Similar Blog Posts. Related Questions. You must be Logged on to comment or reply to a post. Like 0 Share. Right click and copy the link to share this comment. It's really good. Former Member. Thank you for the link which you have shared with me. Hi Gurus, question, I want to edit almost all materials in our material master. Kindly someone guide me on step by step how to go about this.
I tried to use the method here.. I have only used LSMW for mass creation of codes and extending and i start from specify files. Kindly assist urgently. Dear Carol, I would recommend to read the blog again from the beginning as I explained what a project is. Anyhow, you can have as many subprojects and objects per project as you want. Such empty records need to be removed from your source file, then you need to read it again.
Further is gives you the last chance to check in step 12 a few individual records if the data was correct converted.
Not to forget that you get the numbers of converted records and transactions. Those numbers will hopefully match with your expected numbers:. Like in step 10 you can call the display for all or just for a selection.
If you have more than records then you should restrict the selection. You get first the overview screen, similar to the Read data, and can as well go into the detail by clicking a line. The converted data is displayed according to the target structure. Only those segments that were selected in step 4. The green lines are technical lines for the IDOC, The yellow line is the header segment for the transaction, the blue lines are the individual records.
Go into the detail of at least any record of one transaction to verify that each target field has the right content. Click execute and see the count in the status line going up.
You will see a bigger selection screen, but everything needed is defaulted and you can just execute it. Even the IDOC posting is much quicker than batch input sessions, I have often migrations with 10 and more hours for processing of one object.
If you ran the processing step in foreground, then the selection screen is already fully defaulted and you can execute it like it is. This is certainly possible, e. I plan to write a few more blogs regarding data migration, e. No, I saw it already and had checked my objects, but neither me nor any colleague had used LSMW for projects and wbs elements. Thank you for informing me. I added a pdf copy of this blog in my google docs: Please download it from there in the meantime:.
I do know that we have to pass the material number here as well, i passed X by mistake, when i checked the status it was I am creating a material with an external number range. Functionality wise, the IDOC should not be in status 53, beacause no data was transferred into the database. I remember that I have seen similar reaction, but I dont remember the exact root cause, must have been my fault otherwise I would remember.
In this example does that mean 12 physical documents were created in SAP Application before being moved into the respective tables? LSMW step 13 converts the data from the conv file into 12 individual Idocs, and they were posted one after the other. What I was referring will it result exactly 12 files one for each Idoc being created on the server.
Is there a way to bypass creation of physical files by choosing "create Idocs directly" in step ? Thanks Jurgen. Its explained well by you. I am trying to create a Project and WBS. Not sure if I can help, projects and WBS creation is usually not my duty so there might be something specific to projects what you are missing.
You should post this as a question in the forum instead as a comment to a blog. There you can also post screenshots of your IDOC structure and content. This is once again an excellent post. I have a challenge that I would like to address and ask if you have a way of resolving it. I need to upload master data materials and functional locations. However, I want to upload two classes and more than one characteristic per class. I suggest to open a discussion in the EAM space and then provide some details from your source file for class and classification as well as from the overview of Dispaly read file step in LSMW.
From the target structure itself I do not see any issue that it would only take one class with with one characteristic. Great document. I did a quick test and all went well it seemed IDOC green, no errors. Any clue what the culprit could be? I indeed missed the 'X' value. But still the material master field is not modified as defined in my data. Any other suggestions? Hi Jurgen, I missed the 'X' value at first but have filled it now. I can't answer that without seeing screenshots from the IDOC data and from text file.
Please open a discussion in MM space and provide the details. Please post a question in the forum and provide more details e. Very nice instruction Jurgen. I do have one issue though when trying to populate more than characters in the basic data text. I ran successfully without any errors, but material master is still not updated, Can you point what could be the reason.
Display an IDoc, open the section of status records, click the icon in front of the status and in the next screen the button for Application log. I am trying to change material master. In this case system is giving message that no log data exist. Please help ;. As I fear that this requires much more detail it would be better to create an extra question in the community than continuing here with comments. When you create the question then please provide screenshots from your structure relations in step 4.
Currently I guess you just missed to link or to maintain values for the X-structure for your changes. Nice detailed document. I tested an old project which is setup equally to the settings explained in this blog, and it worked like shown. So I had to activate it again, and also got it now into step 4 to assign my source structure to it. This way I got it back in the field mapping. And now the project works again, but looks slightly different from above blog.
It has probably to do with the system version, but I could not find any OSS note explaining such change. If it is in excel format which will be converted into flat file, again my question goes to Point In this method where does elements like Ports, Partner type, Partner number play there role, as we are directly creating and assigning flat file. Skip to Content Updated Rules of Engagement.
We have made some improvements to the way all of us engage within SAP Community, namely how we share information, how we treat each other, and how we can continue to learn.
December 27, 15 minute read. As an example I use a real business case: existing material masters need to be updated with new material descriptions and sales text not all materials have a sales text view Text needs to be maintained in German and English language, English text is identical to German text Text is provided in a Excel spreadsheet Annotation: Our material numbers are set as Lexicographical, no leading zeros We have to use a certain path to store the.
Migrations are usually one-time data transfers, even you do it many times until you are satisfied with the result The periodic transfer gives you an option to create a program ready to be used by end-users.
Please make use of F4 search help to get the parameters for the import objects. Click the create icon enter a name for the source structure and a description.
Step 3 — Maintain source fields In this step you have to enter all the fields that are contained in your source file per structure. Step 5 — Maintain field mapping and conversion rules After you assigned your source structure to the target structure in step 4, in this step you assign your source fields to the target fields, and you define how the values will be.
My first choice is Auto field mapping. In my example we need to do the field mapping manually. This code submits the entries made in this section. This way you transferred 2 records for MAKT table with a different language. For the combination of the text name field we need to do it with coding. Step 6 — Maintain fixed values, Translations , user defined routines Not necessary for this business case Step 7 — Specify files In this step you have to define minimum 3 files, your source file, the read file and the conv file.
Keep already in mind that your file has to be closed when you execute the reading step. In this case there is only one source structure remember the definition in step 2 In case you saved your Excel file as unicode text you have to put the radio button to Tabulator.
0コメント