on 2012 Jun 14 1:27 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.