14.01.2020 Views

ABAP_to_the_Future

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9

BRFplus

sort of object is what—for example, th e prefix FC for functions. After entering

this information, click Create And Navigate To Object, and the screen shown in

Figure 9.9 appears. (If you click Create instead, then a blank object will be created,

and you will have to navigate to it yourself to make the required settings.)

Figure 9.9 Adding Input Parameters to a Function

In this function, you’re going to be passing in the customer requirements: what

the monster is going to be used for, how scary it needs to be, how many rages it

has to fly into each day, and so on. Based on the rules you’ll add to the function,

a result will come back saying what ingredients to use.

To enable such passing of data backwards and forwards in your new function, you

need to create the signature—that is, what data you expect in and what data you’re

returning. In regard to parameters, a BRFplus function is like a cross between a

function module and a method; the name says “function,” but the import and

export parameters can be tables, as is usually only possible in methods.

368

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!