on 11-21-2006 9:54 AM
Hi All,
Am developing a webdynpro Application in Java to display the stock details which is from R/3.To do this i have deveolped my BAPI Called (BAPI_CUR_STOCK_DETAILS).I bringing this by Using RFC.
While running this application it showing an Exception :
<b>com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type extern:com.caritor.example.x.types.StockDetails:com.caritor.example.x.types.Zbapi_Mat_Stock_Level_Export could not be loaded: com.sap.dictionary.runtime.DdException: Type com.caritor.example.x.types.Zbapi_Mat_Stock_Level_Export does not exist
</b>
Please Help me Out.
Regards,
Ramganesh.
Hi there, you said your bapi name was BAPI_CUR_STOCK_DETAILS.
From the error, I can understand that the system is looking for type Zbapi_Mat_Stock_Level_Export.
So what is this Zbapi..?
Does that give you any clues?
LM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
there is problem with export params.
Please to see any standard FNmodule create import and export and make it as ARFC .
Then only u can import into WD there u can crerte input and output nodes.
But in your WD u can utilize only input node.
If any chages happeand in model and reimport and restart J2ee engine and make modifications.
Thanks,
Lohi.
Hi Lohitha,
Thankyou for ur response.
Now i can Map Only import Node.In My BAPI ,thr r two return Tables which will give the result.But i cannt mapp these table nodes in Webdynpro(While running this giving Server Error)..So i can only map the Import Node.Hw do i get the result ?and .What is "ARFC ? hW TO do it ?
Regrards,
Ramganesh.
Yeah..Am importing a RFC BAPI in Webdynpro.
My Node Structure is:
-
> BAPI_GET_HIS_PERIOD_STOCK_INPUT (ModelNode)
|_________Return (Node) (Return Table)
|___________Matnr [Import atrribute]
|_____________werks [Import atrribute]
|_________________Lgort [Import atrribute]
|_______________________lfgja [Import atrribute]
and i cannot Map the export table called EXPORT data since its giving run time error.and am not getting return values in return Table..and also I tried a standard BAPI (BAPI_MATERIAL_SAVE_DATA) which is working fine.How to solve it ?..
Hi,
Generally if you import BAPI the structure would be created like this.
BAPI_GET_HIS_PERIOD_STOCK_INPUT
BAPI_GET_HIS_PERIOD_STOCK_OUTPUT
But we are utilizing the BAPI_GET_HIS_PERIOD_STOCK_INPUT this only.
This model class contain all your input and output values.
U can do simple like this.
In the custom/copmonent controller init method write like this .
BAPI_GET_HIS_PERIOD_STOCK_INPUT input = new BAPI_GET_HIS_PERIOD_STOCK_INPUT();
wdContext.nodeBAPI_GET_HIS_PERIOD_STOCK_INPUT.bind(input);
input.set<parmas>("value");
input.set<parmas1>("value2");
And write the Execute method
next create View bind the outnode to table .
Deploy and run it .
If you get any error post the stack trace.
Thanks,
Lohi.
Hi,
Thanks for ur response .now am facing a strange Pblm . I have 2 result tables in My imported Bapi,Thy r return(return messages) and exportdata.If i map Both tables in a Custom Context ,.iTS Showing Server error.But If i map Only the Return table does not showing any
error.But Result is not getting displayed in return table which is bound with a UI table...
So Now atleast i want to see some result in the table.
Hi there,
Is the project giving any build errors?
Try restarting server(you need to restart if you have done a re-import of model recently as well)..
regards,
LM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramganesh,
did you configure the JCo-destinations in the Content Administrator? Is the SLD supplier service configured in the SAP J2EE Engine?
Regards,
Sharadha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramganesh,
Create JCo connections for your RFC Model.
Please go through the https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the RFC interface.
Maybe you need to ReImport the custom BAPI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.