on 10-23-2008 6:06 AM
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
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
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi Rajani,
Check this link
http://help.sap.com/erp2005_ehp_03/helpdata/EN/f6/daea401675752ae10000000a155106/frameset.htm
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.