cancel
Showing results for 
Search instead for 
Did you mean: 

learning BAPI RFC for MBO

Former Member
0 Kudos

could anyone help point me where I can get help in creating BAPI RFC to be used by MBO?

I created the RFC function module in netweaver AS which shows in eclipse when creating the MBO, but I cannot see any operation from eclipse, is this correct?

From the SUP workflow tutorial, it needs an operation for the flow diagram. Thank you for any input.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sunarko,

but I cannot see any operation from eclipse, is this correct?

As of my understanding you are able to connect NW AS RFC Function Module.

You are created MBO also, later where did you get the error or you struck some where or unable to deploy the MBO.

pls let me know what exactly you want.

Thanks&Regards

Murthy

Former Member
0 Kudos

Thank you Murthy.

I pasted here part of the eclipse to show what I mean by " no operation" for the MBO.

I just need to create a simple RFC to return records from a table.

Best regards, welly

Former Member
0 Kudos

Hi Welly,

Nothing Wrong, You can proceed for further steps. Operations not required here.

Thanks&Regards

SatyaMurthy

Former Member
0 Kudos

Thank you Satya.

I am new to BAPI, and don't know how to return the rows from the table.

Previewing from eclipse didn't return any row.

Could you please help with the function ?

Thank you

welly

Here are my screens dump:

Previewing it didn't return any row:

Table:

Function:

FUNCTION ZVENDFUN.

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     VALUE(IVORDERID) TYPE  ZIFPORDERID

*"  EXPORTING

*"     VALUE(RETTAB) TYPE  BAPIRET2

*"  TABLES

*"      ITAB STRUCTURE  ZIFPORDER

*"----------------------------------------------------------------------

SELECT MANDT ORDERID TYPE REFID BUYER SELLER ORDERDATE from ZIFPORDER into TABLE itab WHERE ORDERID = IVORDERID.

ENDSELECT.

ENDFUNCTION.

Former Member
0 Kudos

Hi Welly,

I am also not having much idea on abap, though i can give you some suggestions they might be useful.

I checked various ways with my RFC, it is working.

1. instead of writing select and end select  write single statement

select * from zifporder into table itab where orderid = ivorderid.

if its work then ok otherwise

2. your import parameter is refering structure make it attribute reference

PARAMETER NAME     TYPE     ASSOCIATED TYPE

IVORDERID                  LIKE     ZIFORDER-ORDERID

your function module and table should be in active state.

Pls let me know which version of workspace you are using.

if its working then fine otherwise i will give you some screenshots.

Thanks&Regards

SatyaMurthy

Former Member
0 Kudos

Thanks a lot Satya. I change it to this, now its working.

FUNCTION ZVENDFUN.

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     VALUE(IVORDERID) TYPE  ZIFPORDER-ORDERID

*"  EXPORTING

*"     VALUE(RETTAB) TYPE  BAPIRET2

*"  TABLES

*"      ITAB STRUCTURE  ZIFPORDER

*"----------------------------------------------------------------------

SELECT MANDT ORDERID TYPE REFID BUYER SELLER ORDERDATE from ZIFPORDER into TABLE itab WHERE ORDERID = IVORDERID.

ENDFUNCTION.

Former Member
0 Kudos

Hi Welly,

If everything fine then Pls close this.

Thanks&Regards

SatyaMurthy

Former Member
0 Kudos

Sorry Satya, I am new here. Is this the right way to close ? by selecting the correct answer ? Thank you.

Former Member
0 Kudos

Hi Welly,

i just informed you,take it easy.

No sorrys, only thanks.

Thank You.

Answers (0)