javasaprfcjco

SAP Java Connector: Is it possible to cut field values of extracted table?


I am extracting some SAP tables using the SAP Java Connector (via RFC_READ_TABLE or similar). Is it possible to pass some kind of maxlength for some fields of a table, e.g. if we have a field with size 3750 (like PROFS in table USH04) but I only want the first 100 characters - something like LEFT(PROFS, 100) in SQL?

Thank you for your helpful response!


Solution

  • Using RFC_READ_TABLE, this is not possible. You may have to write your own function module to accomplish this. (Also be aware of note 382318.)