cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating Requisition

Former Member
0 Kudos

Hi experts,

I am getting this error from RFC while creating requisition in portal for multiple line items.

Screen output without connection to user., error key: RFC_ERROR_SYSTEM_FAILURE

I have used standard BAPI: BAPI_REQUISITION_CREATE for creating the requisition in portal.

It works fine for a single line item but does not work multiple line items.I have checked the JCOs.It is correct.

Please suggest.

Thanks,

Rajani

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi!

After importing structures to the model in webdynpro and mapping it to the corresponding field in the table of webdynpro screen, you should go through this code in on clicking of an event or triggering of a button event

public void executePurchaseRequisitionCreate( )

{

//@@begin executePurchaseRequisitionCreate()

try {

for (int i = 0;

i < wdThis.wdGetContext().nodeTableNode().size();

i++) {

Bapiebanc re = new Bapiebanc();

IPublicPurchaseRequisitionCustomCotroller.ITableNodeElement tn =

wdThis

.wdGetContext()

.nodeTableNode()

.getTableNodeElementAt(

i);

re.setPreq_Item(tn.getPreq_Item());

re.setMaterial(tn.getMaterial());

re.setUnit(tn.getUnit());

re.setQuantity(tn.getQuantity());

re.setDeliv_Date(tn.getDeliv_Date());

re.setPlant(tn.getPlant());

re.setPur_Group(tn.getPur_Group());

re.setDoc_Type(tn.getDoc_Type());

re.setPurch_Org(tn.getPurch_Org());

re.setDes_Vendor(tn.getDes_Vendor());

re.setStore_Loc(tn.getStore_Loc());

// wdContext

// .currentBapi_Requisition_Create_InputElement()

// .modelObject()

// .addRequisition_Items(re);

wdContext

.nodeBapi_Requisition_Create_Input()

.currentBapi_Requisition_Create_InputElement()

.modelObject()

.addRequisition_Items(re);

}

//execution of Bapi

wdThis

.wdGetContext()

.currentBapi_Requisition_Create_InputElement()

.modelObject()

.execute();

} catch (Exception ex) {

msgMgr =

(MessageManager) wdThis

.wdGetAPI()

.getComponent()

.getMessageManager();

msgMgr.reportException("Error from bapi: " + ex.toString(), true);

ex.printStackTrace();

}

wdContext.nodeOutput().invalidate();

wdContext.nodeRequisition_Items().invalidate();

//@@end

}

Former Member
0 Kudos

Hi,

Now I am getting same error "Screen output without connection to user , error key:RFC_ERROR_SYSTEM_FAILURE"

while creating goods receipts using the standard BAPI : BAPI_GOODSMVT_CREATE.

Due to this error I am not able to proceed.

Please suggest.

Thanks,

Rajani

former_member192434
Active Contributor
0 Kudos

Hi Rajani,

Check out this forum link it will solve your problem

/thread/746757 [original link is broken]

For more Detail

See this link'

http://help.sap.com/erp2005_ehp_03/helpdata/EN/ca/115e4088dc0272e10000000a155106/frameset.htm

Thanks

Anup

Former Member
0 Kudos

Closing

former_member192434
Active Contributor
0 Kudos