cancel
Showing results for 
Search instead for 
Did you mean: 

Populate BAPI Table

Former Member
0 Kudos

All,

I have a table called <b>T_Req_qual</b> in my Bapi. I need to populate this table based on my needs. Can anyone tell me how can i do that..

I wrote below code but im stuck how to populate multiple entries.. Also im not sure whether below code is correct or not..

ZReq_Qual qual_input = new ZReq_Qual(); 

qual_input.setObjid("80033");
qual_input.setGroup_Id("Test");

bapiInput.addReq_Skill(qual_input);

Thanks..

BM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Bharathi,

Please paste here the name of your BAPI and Its structure.. So that I can paste the complete code... You have mentioned you want to populate a table called T_Req_qual in your Bapi..

Please just specify the struste of your bapi..

Thanks and Regards

Avijit.

Former Member
0 Kudos

Hi Bharati,

Write the following code in wdDoInit method of your component controller

wdContext.nodeZReq_Qual().bind(new ZReq_Qual());

IWDMessageManager manager = wdComponentAPI.getMessageManager();

try

{

wdContext.currentZReq_Qual().setObjid("80033");

wdContext.currentZReq_Qual().setGroup_Id("Test");

wdContext.currentZReq_Qual().modelObject().execute();

wdContext.nodeOutput().invalidate();

}

catch(WDDynamicRFCExecuteException e)

{

manager.reportException(e.getMessage(), false);

}

Hope it helps.

Regards,

Suresh

Former Member
0 Kudos

Hi,

1)u create model

2)Add used model in Webdynpro component

3)then context map the Component contoller to Model

4)again mao View contoller to Component controller

I used Bapi_Flight_Getlist....like that u follow for T_Req_qual

Write the following coding in Component controller WD doinit();

Bapi_Flight_Getlist_Input bap=new Bapi_Flight_Getlist_Input();

wdContext.nodeBapi_Flight_Getlist_Input().bind(bap);

try{

wdContext.nodeBapi_Flight_Getlist_Input().currentBapi_Flight_Getlist_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

}

catch(Exception e)

{

e.getStackTrace();

}

Sample application,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a...

null