Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
PraveenDwivedi
Participant

Objective: Create a context dependent code list, extending a standard BO. In the present scenario I have taken Activity BO.


Process:

    A.    Create code lists. We need to create two code lists.

    1.    Context code list

Appointment type – Configurable code list with below values

Appointment type code

Appointment type value

1

Passport

2

VISA

    2.    Dependent code list

Appointment sub Type – Configurable Code list and values should be filtered based on Appointment Type

Appointment Type

Appointment Sub Type Code

Appointment Sub Type Value

1 – Passport

10

Official

1 – Passport

11

Regular

1 – Passport

12

Diplomatic

2 – VISA

21

Business Visa

2 – VISA

22

Tourists Visa

These are not regular code lists.

    

          Right click on your solution and create a new item, “Business Configuration object” for context code list. Enter appropriate name and values and activate          it.

         

          Right click on the “.bco” and create a “Business configuration Set”. Enter appropriate name and values and activate it.

             

    

          Right click on the “.bco” and create a “Business Configuration View”.

    

            Repeat the above steps for the Dependent code list - Appointment Sub Type.

                   

                   

  B.    Extend the BO and add the elements with the code lists as data types.

             

              Enhance the screens to which you would like to add the code list fields to appear.

    *Note: We cannot add the code lists directly to the screen. Code list mapping is not allowed on the standard screens. It can be done by adding the fields to an EC and then adding the EC to the screen.

    C.    Create an embedded component.

              Add the extended fields from the BO Browser to the embedded component section group.

                  Create an InPort for data flow.


                  Create a context mapping between the code lists. In the "data model" tab in EC, right click on the dependent code list and create a code list                            context mapping.


                   

                    This step will link both your code lists.


Note: This function doesn't give proper results in silverlight mode. In HTML and responsive UI it works properly.


                 

9 Comments
Labels in this area