Dear Experts,
I am creating a custom RAP program in S/4 Public cloud and want to create Material Document once click on the save button. I am using the save_modified method and in that method, I am using I_MATERIALDOCUMENTTP Business Object Interface. But getting the below dump.

Can you Please guide me regarding the same? How can I create a material document using a custom RAP program?