Skip to Content
Former Member
Sep 28, 2005 at 03:34 AM

passing tables as input in RFC


Hi all

My ultimate requirement is to create inbound delivery,before i'am getting the purchase order details from Bapi BAPI_PO_GETDETAIL,here the user enters the purchase order number.

From the purchase order details i get from the above BAPI,i have to let the user manipulate the quantity against the line items.then this table for item details is passed as input for another RFC BBP_INB_DELIVERY_CREATE to create the inbound delivery.

In the above process,i'am able to get the purchase order details,the user is able to change the quantity or remove any line items.Once I give Create Inbound delivery,it is failing to do anything.

the input table where i have to pass the purchase order item details into rfc BBP_INB_DELIVERY_CREATE shows null ,when i see it in the debugger to initialise it?

In my application i have used two controllers say A and B,A is mapped to the BAPI_PO_GETDETAIL and B is mapped to BBP_INB_DELIVERY_CREATE,to get the details of purchase order from controller A to Controller B i have mapped them,then i have done RELATE CONTEXT MAPPING of the node which receives the po item details from controller A to the structure which is the input to the RFC BBP_INB_DELIVERY_CREATE.As a result the system has generated the following code.

IPrivateCustom1.IPo_ItemsElement po_ItemsElement = wdContext.currentPo_ItemsElement();

IPrivateCustom1.IIt_Inb_Delivery_DetailElement it_Inb_Delivery_DetailElement = wdContext.currentIt_Inb_Delivery_DetailElement();

if ((po_ItemsElement != null) && (<b>it_Inb_Delivery_DetailElement</b> != null)) {







But here the object it_Inb_Delivery_DetailElement is null.can anyone suggest how to initialise it.it_Inb_Delivery_DetailElement contains the table containing po item details.

I have already tried the following codes to initialise

Bbp_Inb_Delivery_Create_Input input1 = new Bbp_Inb_Delivery_Create_Input();

<u>input1.setIt_Inb_Delivery_Detail(new Bbp_Inbd_D());


<b>but in the above statement it says that the object It_Inb_Delivery_Detail will only except an ABSTRACT LIST</b>.