cancel
Showing results for 
Search instead for 
Did you mean: 

Commodity Code upload - SAP S4 - Mass upload method

06-01-2020 8:02 PM
12391 views 4 comments
SAP Managed Tags
Subscribe

Hello,

we have a requirement to upload around 9k commodity codes in SAP S4 system and i am not able to find a way to upload this data. We tried using LSMW ( Description field is not getting captured in recording). Did anyone know any other way to upload this data ? or using an ABAP program is only feasible solution ? Any help is appreciated.

Accepted Solutions (0)

Answers (3)

Answers (3)

VeselinaPeykova
Active Contributor

If I understood you correctly, the problem that you have is not with classifying the materials (for which there is a migration object in LTMC) , but with the creation of the commodity codes for which SAP have provided so far transaction /SAPSLL/CLSNR_01 and two Fiori apps: Manage Commodity Codes and Manage Commodity Codes, Manage Commodity Codes - /SAPSLL/CLSNR_01.

From what I can see in 1909 there is still no standard LTMC object for uploading commodity codes from file. There is some option to request commodity codes from a data provider (transaction code /SAPSLL/CC_COMCO_REQ), which I have never used, but with a list of codes like yours it might be worth exploring.

Other than that: custom upload program is probably the fastest way to upload the commodity codes from file - if the FM mentioned in note 2458080 - /SAPSLL/API_COMCO_MD_DISTR works in your case. They mention in the note that the FM can be used for creation of codes only if content type is GTS, in our system it is set to Local. It is not a released FM, by the way. For a custom migration object you will still need budget for development, but considering that the FMs for LTMOM have to fulfill certain prerequisites - I think that your developer would prefer to create an upload program.

Another option that may be worth a try (if you have no budget for development) is to upload the commodity codes via a recording (just like you do this now) and then make a simple a script that works in foreground for updating the long texts. The reason why I would not do everything via the same script if I were in your situation, is that such script will be significantly slower compared to LSMW. From what I can see, AutoIT Window Info tool manages to capture the control that you mention, which means that it should be possible to address it in a script. Probably other free tools are capable of doing the same or a better job than AutoIt in this specific scenario, I have not researched this.

0 Likes

Hello deepak.tiwary

finhead1
Participant
0 Likes

MARC-STAWN is not used anymore for commodity codes, even if the field exists and might have values. There is a new table that stores commodity codes assigned to materials - /SAPSLL/MARITC.

Lakshmipathi
Active Contributor
0 Likes

LSMW is replaced with LTMC in S/4 Hana. If you search in Google / SCN on LTMC, you can find couple of blogs on how to use LTMC. You can still use LSMW for certain bulk upload but it would not be accurate or you face the issue as you have currently. Alternatively, try with shd0