Skip to Content
author's profile photo Former Member
Former Member

what are the differences

Hi Friends,

Can any one tell me the differences between

Report Using BAPI Function module and

Report using normal select statements

which one u prefer ?

Thanks and Regards

Vijaya

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 26, 2007 at 08:03 AM

    well it depends what you are doing and what is the scope of what you are doing. Don't just create a function module for the sake of it . in any case if you have to extract data from database, you will need to write some select statements, either in the report or the function modules. If you think you need these select statements repeatedly in your project or they are a candidate for a scenario which might be reusable at other places, then go ahead creating a function module. If it is a one time affair, try writing selects in the program itself. you can still modularize it using subroutines.

    there is enough memory overhead attached to a function module call as the entire function group needs to be loaded in the memory. so make your choice depending on the scope of your work.

    regards,

    Priyank

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 26, 2007 at 07:32 AM

    Hi friends, can any give me some more reasons

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      FM or BAPI are reuseable code and like black box where the actual functionality is already implemented and tested. So we dont have to concentrate the underlying logic. Like, blackbox we can just pass the required logic and get the result.

      But in report, if u wanna implement that functionality of your own by select query of some other commands, you have to spend some effort for that. So when there is a standard code available to you for a functionality, why should you waste time do invent the logic again. You can use the FM or BAPI to get ur job done. Isn't it??

  • author's profile photo Former Member
    Former Member
    Posted on Apr 26, 2007 at 07:26 AM

    BPAI is prefareble because it is SAP standard. So less chance of erroe.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 26, 2007 at 07:56 AM

    Hi Frends, any more clear explainations ?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.