Skip to Content
avatar image
Former Member

BAPI_BUS1077_GETDETAIL does not return any value

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Jun 13, 2005 at 01:56 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 13, 2005 at 06:32 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 13, 2005 at 07:49 PM

    Invalidate the output node after calling the model.

    See IWDNode.invalidate()

    Armin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 20, 2005 at 01:15 PM

    Problem still unsolved. Please help.

    Thanks,

    Jay.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 20, 2005 at 08:18 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 21, 2005 at 01:12 PM

    Thanks Renald,

    I will try it out and send in my feedback.

    Any other solution is also welcome.

    Regards,

    Jay.

    Add comment
    10|10000 characters needed characters exceeded