Bulk load into table parameter in Function Module and save it in test directory

Rahul Gupta picture Rahul Gupta · Nov 26, 2013 · Viewed 8.3k times · Source

I have an importing parameter of Table Type in a Function Module / BAPI which is having only one field (material number). I want to enter hundreds of rows to that Parameter and save it as test data.

If I follow the normal procedure, I have to create new row and enter/paste a material. And this has to be repeated for every material as bulk data cannot be pasted into that!

Can anybody know what is the best way to enter and save bulk data for the importing/table parameter?

Answer

Rwells picture Rwells · Aug 16, 2016

Putting this here for posterity, even though this is an old ticket.

It's possible using DEBUG, if you can edit the fields. Put the breakpoint in FM RS_COMPLEX_OBJECT_EDIT.

Use SE37 to test your FM, and when it stops at the breakpoint, add your records to parameter OBJECT using UPLOAD FROM FILE.

Would be nice if there were a standard "upload" to fill fields in SE37, and ALSO if it didn't truncate more than a screenful of records.