on 06-13-2005 2:51 PM
Hi all,
I am able to connect to the R3 system and get data using the BAPI_BUS1077_GETLIST, but the GETDETAIL bapi does not return any values.
Following is the code used in the custom controller:
Please let me know where I am going wrong.
public void executeSubstanceDetail( )
{
//@@begin executeSubstanceDetail()
Bapi_Bus1077_Getdetail_Input bapiInput = new Bapi_Bus1077_Getdetail_Input();
bapiInput.setFlg_Header(true);
Bapi1077Rh bp = new Bapi1077Rh();
bp.setSubstance("000001001168");
bapiInput.addSub_Header(bp);
wdContext.nodeSubstanceDetail().bind(bapiInput);
try
{
wdContext.currentSubstanceDetailElement().modelObject().execute();
}
catch(Exception ex)
{
ex.printStackTrace();
}
//@@end
}
Thanks,
Jay
Thanks Renald,
I will try it out and send in my feedback.
Any other solution is also welcome.
Regards,
Jay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jay,
I have no solution for you but perhaps a hint. What I do in such a case is to build a wrapper around the bapi (a Z_bapi that calls the bapi). In this wrapper I call the original bapi and write the input and output values in a table or somewhere else where I can check them.
With this you can find out if you have problems with the input values, the output values or the web dynpro.
Hope this helps.
Best regards
Renald
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem still unsolved. Please help.
Thanks,
Jay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Invalidate the output node after calling the model.
See IWDNode.invalidate()
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna Kanth,
I am getting an error now. Looks like the SLD is offline. I am fixing the error right now. Will update furthur, once this error is fixed.
Error message:
com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type com.models.substancedetail.types.Eseboole could not be loaded: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
.
.
.
.
Caused by: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
Thanks,
Jay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
if the Node SubstanceDetail Cardinallity is 0..n Then u need to create instance of that Particular Node before using CurrentSubstanceDetailElement..
Try Instantiating The Node by saying
IPublic<<Ur Controler Name>>.I<<NodeElement>> obj1 = wdContext.create<<NodeElement>>;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.