cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_BUS1077_GETDETAIL does not return any value

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks Renald,

I will try it out and send in my feedback.

Any other solution is also welcome.

Regards,

Jay.

RenaldWittwer
Contributor
0 Kudos

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

Former Member
0 Kudos

Problem still unsolved. Please help.

Thanks,

Jay.

Former Member
0 Kudos

Invalidate the output node after calling the model.

See IWDNode.invalidate()

Armin

Former Member
0 Kudos

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

Former Member
0 Kudos

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>>;