Question

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?

No correct solution

OTHER TIPS

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.

You must create the same typed table in Your calling program. In the program You can add as much materials as You want by adding each lv_matnr to the local table (in a loop for example).

Then You pass Your local table to Your function module when You call it with exporting and voila.

The called function module receives as much matnr entries, as You passed during call.

Did that help?

Just want to convert Sandra's valuable comment into an answer.

Save to test data option is available in ABAP debugger since 7.40 or earlier and can be activated like this

test1

test1

To fill data to debugger parameter you can use Upload from local file tooling.

Another option for RFC modules is using FBGENDAT program. That way you just running your module in special mode and it "remembers" this run and saves it into Test Directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top