cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing BTadminh and Btadminhi.............

former_member203215
Participant
0 Kudos

How to get the data of btadmini in the btadminh............

Accepted Solutions (0)

Answers (1)

Answers (1)

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Ravichand,

You can get the data within BTadminI by using the relations from BTAdminH

By using the relation BTHeaderItemsExt of BTAdminH you would get BTItems.

Then use the relation BTOrderItemAll of BTItems to get BTAdminI or any relevant relation if required.

You can check these relations in the Tcode GENIL_MODEL_BROWSER and if you are not aware of getting the related entity from a parent entity, I would suggest you to go trough the BOL Programming Guide at this link : http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0ddd4e6-32f9-2c10-9d88-d993c4b00...

Regards

Vinod 

former_member203215
Participant
0 Kudos

hai vinod

can u please provide me the guide lines of code for my below requirement

====================================================

I have a list of countries in a drop down field................ when i select one country value the

corresponding country information has to be shown in some text area field or text field...

i followed this code but it didn't worked out

===============================

DATA: lr_current TYPE REF TO if_bol_bo_property_access,

         lr_col TYPE REF TO if_bol_bo_col.

   lr_current = me->typed_context->zibm1->collection_wrapper->get_current( ).

   CHECK lr_current IS BOUND.

   CREATE OBJECT lr_col TYPE cl_crm_bol_bo_col.

   CHECK lr_col IS BOUND.

   if lr_current->GET_PROPERTY_AS_STRING( IV_ATTR_NAME = 'COUNTRY' ) = 'INDIA'.

     lr_current->SET_PROPERTY_AS_STRING( IV_ATTR_NAME = 'REGION' IV_VALUE = 'AP').

   endif.

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Ravichand,

before setting any value check if the entity is locked or not. if it is still not getting set check it in debugging.

Regards

Vinod