Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Is any function can get the material's sales status in CRM?

Former Member
0 Kudos

I can read the sales status for material with t-code : commpr01;now i know the material, how to get its sales status with the function?

Is any function can get the material's sales status in CRM?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ping

First you have to create the search helps. The existing serach on the interation history tab can be used as an example to understand this.

In the SE11 look for the search help CIC_SALES_APPL. This is the search for 'Sales'.CIC_SALES_APPL is a collective search help, if you see the included search you will see that the search help CIC_SALES is added in it.CIC_SALES is also a collective search when you see the attributes of CIC_SALES you will see that it has 4 elementary search helps included in it. These 4 elementary searches correspond to the 4 search types you will see in the interaction history tab in the dropdown for 'By' namely 'Direct Processsing', 'General', 'Period', 'Product' as 'ORDER_DIRECT', 'ORDER_GENERAL', 'ORDER_TIMEFRAME', 'ORDER_PRODUCT'

If you want to add 'User Status' to the sales search, here is where you will add one more elementary search to the list call it 'ORDER_USERSTATUS'.

To give this a text name you have to go to SPRO transaction

Customer Relationship Management-->

Interaction center Win Client-->

Component Configuration -->

Visible Components -->

Navigation Area -->

Define Search in Locator -->

click on the 'Search ID' folder on the left hand side. You will see that the other searches like ORDER_DIRECT, ORDER_GENERAL are defined here . you can add your search ORDER_USERSTATUS also in this list, but you need the function module and the screen program name, before you can do that. Just add the name without the function module or the program name. If you go to CIC0 you can see that the new search is added to the dropdown under SALES. but do not select this as this will give a abap dump.

You have to make a copy of the function module CRM_LOCATOR_1O_OBJ_READ_UI into a Z function and then create it under a new function group. The main program of the function group is what you use as the program name when you create the search ID. You also have to create a new screen under the function group which will contain all the fields you require for your new search. The screen number is also the parameter you will enter in the Search ID configuration.

The best way to go about dong this is to understand how the existing programs work and write your program accordingly. I know my explanation is not very clear, but atleast these are some pointers for you to start your development. I have been successful in adding a new search screen in the interaction history tab, so I know it is possible.

Reward me points ,

By

Pari

2 REPLIES 2

Former Member
0 Kudos

Hi Ping

First you have to create the search helps. The existing serach on the interation history tab can be used as an example to understand this.

In the SE11 look for the search help CIC_SALES_APPL. This is the search for 'Sales'.CIC_SALES_APPL is a collective search help, if you see the included search you will see that the search help CIC_SALES is added in it.CIC_SALES is also a collective search when you see the attributes of CIC_SALES you will see that it has 4 elementary search helps included in it. These 4 elementary searches correspond to the 4 search types you will see in the interaction history tab in the dropdown for 'By' namely 'Direct Processsing', 'General', 'Period', 'Product' as 'ORDER_DIRECT', 'ORDER_GENERAL', 'ORDER_TIMEFRAME', 'ORDER_PRODUCT'

If you want to add 'User Status' to the sales search, here is where you will add one more elementary search to the list call it 'ORDER_USERSTATUS'.

To give this a text name you have to go to SPRO transaction

Customer Relationship Management-->

Interaction center Win Client-->

Component Configuration -->

Visible Components -->

Navigation Area -->

Define Search in Locator -->

click on the 'Search ID' folder on the left hand side. You will see that the other searches like ORDER_DIRECT, ORDER_GENERAL are defined here . you can add your search ORDER_USERSTATUS also in this list, but you need the function module and the screen program name, before you can do that. Just add the name without the function module or the program name. If you go to CIC0 you can see that the new search is added to the dropdown under SALES. but do not select this as this will give a abap dump.

You have to make a copy of the function module CRM_LOCATOR_1O_OBJ_READ_UI into a Z function and then create it under a new function group. The main program of the function group is what you use as the program name when you create the search ID. You also have to create a new screen under the function group which will contain all the fields you require for your new search. The screen number is also the parameter you will enter in the Search ID configuration.

The best way to go about dong this is to understand how the existing programs work and write your program accordingly. I know my explanation is not very clear, but atleast these are some pointers for you to start your development. I have been successful in adding a new search screen in the interaction history tab, so I know it is possible.

Reward me points ,

By

Pari

Former Member
0 Kudos

thank you