cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member299368
Participant
0 Kudos

If anyone Knows Please Help Me!

Accepted Solutions (1)

Accepted Solutions (1)

former_member186648
Active Contributor
0 Kudos

Hi Koteswara,

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

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

Thanks, Pradeep.

former_member299368
Participant
0 Kudos

Hi Pradeep,

Thank You, It's Working.

But How to get Multiple values for id.

Thanks & Regards,

Kreddy.

Answers (4)

Answers (4)

former_member186648
Active Contributor
0 Kudos

Hi KReddy,

ret = Custombo.Retrieve(id);

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

Thanks, Pradeep.

former_member186648
Active Contributor
0 Kudos
former_member299368
Participant
0 Kudos

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.

former_member299368
Participant
0 Kudos

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&Regards,

KReddy.

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Koteswara,

There are some execellent eamples in the documentation. 🙂

Did you read them?

Bye,
Horst

former_member299368
Participant
0 Kudos

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.

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Koteswara,

Just open the Cloud Application Studio and choose from the menu "Help" the entry "SAP Cloud Application Studio Help".

HTH,
Horst