Skip to Content

How to Retrieve the data from custom Business Object in SAP Studio?

If anyone Knows Please Help Me!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Nov 17, 2016 at 10:38 AM

    Hi Koteswara,

    To call the retrieve : ret = Custombo.Retrieve(id);

    You need to assign value for the "id" field.

    Thanks, Pradeep.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 15, 2016 at 01:06 PM

    Hello Koteswara,

    There are some execellent eamples in the documentation. :-)

    Did you read them?

    Bye,
    Horst

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 16, 2016 at 05:12 AM

    Hi Horst Schaude,

    Thank you for your valuable advice,

    If you have any documents please share me.

    Why Because I did not get any documents in this blog.

    Thanksâ„śgards,

    KReddy.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 16, 2016 at 07:53 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Hi Pradeep,

      import AP.Common.GDT as apCommonGDT;

      businessobject Custombo {

      [AlternativeKey] element ID : ID;

      element H_Name : LANGUAGEINDEPENDENT_MEDIUM_Name;

      element Amount :Amount;

      }

      ///I need to fetch the data from above BO to below BO

      import AP.Common.GDT as apCommonGDT;

      businessobject Retrievebo {

      [AlternativeKey] element MID : ID;

      element MName : LANGUAGEINDEPENDENT_MEDIUM_Name;

      element MAmount : Amount;

      association ToCustombo to Custombo;

      }

      ///In script file i given retrieve method

      var ret;

      var id : Custombo.ID;

      ret = Custombo.Retrieve(id);

      this.MID = ret.ID;

      this.MName = ret.H_Name;

      this.MAmount = ret.Amount;

      ///But i am not getting output. if you know please help me pradeep.

  • Nov 21, 2016 at 12:21 PM

    Hi KReddy,

    ret = Custombo.Retrieve(id);

    Before you call the above statement, you need to fill value to the field id.

    Thanks, Pradeep.

    Add comment
    10|10000 characters needed characters exceeded