Hi Derek
The BAPI is a great way to load/maintain materials, except for long text, as you have found. You'd either have to use macros, or something like that, to split up the text properly - or - you can use the long text feature in Transaction and then chain the scripts together.
In order to do so, simply record a script to update a material and choose any view, like Basic Data 1. Then exit. When you finish on the map tab, choose to add long text feature and then select the long text you want to either download or upload. Each one will require at least the material number, and possibly data like plant and sales area, and language code, depending on which text you want to maintain. You can pass the text up as one long string.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
PSE | Winshuttle NA
------------------------------
Original Message:
Sent: 03-30-2020 19:16
From: Derek Sayres
Subject: spaces in basic data long text loop BAPI_MATERIAL_SAVE
Hello, I am using the BAPI_MATERIAL_SAVE data to add basic data long text with a loop. When it starts the next line with the loop it is adding an extra space. So if a word happens to be in the middle of the 72 character limit for the row it will have a space in it. Any ideas on how to not have a space? I removed the padding from the entry, I also tried to see if it was a 73 character limit and that did the same thing.
Thanks,
Derek
------------------------------
Derek Sayres | SAP PLM/MDM Business Analyst
------------------------------