on 06-07-2007 7:05 PM
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
Bharathi,
Check this
https://forums.sdn.sap.com/click.jspa?searchID=3048177&messageID=401711
Regards,Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
null
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.