I need to "update" BSEG-SGTXT. What is the best way to do this? I gather updates are not the "best" way.
The problem is that BSEG-SGTXT is duplicated in other tables, like BSIS, BSID etc. You need to use a method that performs all the checks and updates that occur when you modify the field manually. If you can't modify the field manually, it would be extremely unwise to update the table directly. The best method would be to find a BAPI which updates accounting documents, and allows you to set this field. Then it is just a matter of calling the BAPI function module. Otherwise, record the manual process using SM35, and create a batch input program.
Dig Deeper on SAP ABAP
Related Q&A from Matthew Billingham
An SAP user is trying to run a report in an SAP ALV Grid online and wants to know how to get the data in the report to appear along with the header. Continue Reading
An SAP user needs to transfer customer purchase order spreadsheet data to SAP VA01 to create a new sales order. Continue Reading
A SearchSAP.com reader wants to know if it's possible to write an SAP ABAP program that will read source code and then create an SAP ABAP function ... Continue Reading