Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_SALESORDER_GETLIST

PS_1978
Active Participant
0 Likes
939

Hi,

I have doubt in this BAPI. There is a statement fbgenmac 'BAPI_SALESORDER_GETLIST' (generate data record) in this BAPI. Can any body explain me what this statement is useful for?

Regards,

Phani

5 REPLIES 5
Read only

Former Member
0 Likes
854

It is a MACRO .

It has a predefined code defined.

Double click on the FBGENMAC to see the code.

Regards,

Ravi

Read only

0 Likes
854

Hi Ravi & Joseph,

Thanks for the replies. Yes, later I have observed that this is a macro. Can you please explain me the functionality of a macro and use of it. If it is similar to a subroutine/function module, then can you explain me the differences between these?

Regards,

Phani

Read only

0 Likes
854

Refer this link to know the difference.

http://sap.ittoolbox.com/documents/popular-q-and-a/macro-vs-subroutine-1594

Regards,

Ravi

Read only

0 Likes
854

Hi Sivapuram,

Difference between Macro & Function/Subroutine

During the compilation wherever the macro is mentioned(called) the call is replaced by the Macro definition ( i.e the statements which define macro )

And whenever the function is called during compilation the assembly language code is replaced which will take the control to some other line of code where the function is defined and get the control back to same place right from where the call was made.

Hope this helps!!!

Best Regards,

Pavanmeet Singh

Read only

Former Member
0 Likes
854

hi Phani,

<b>fbgenmac</b> is a MACRO, defined in the program and 'BAPI_SALESORDER_GETLIST' is a parameter to this macro. If you double click on <b>fbgenmac</b>, you will be taken to the Macro definition, where you can see the underlying logic happening inside this MACRO.

Hope this helps,

Sajan Joseph.