Populating Sales organization & Distribution channel details
Hi,
we have a requirement to populate sales orgnization & distribution channel detials in Product search page(PRD01QR/ SearchHelp).
scenario: Role : IC Agent, While placing a customer order (BT115H_SLSO/SOHOverView ), in a items assigment block(BT115IT_SLSO/Items) there is a product field, with f4 help, when we click f4, there are a page for product search. on this page I need to retrive sales organization, and distribution channel detials with respect to customer.
I am new to WebUI, if it is not clear. Kindly reply with some questions.
Thanks,
Devender
Edited by: devender on Jun 1, 2011 10:02 AM
Redefine the outbound plug OP_SEARCH_ORDERED_PROD of the BT115IT_SLSO/Items and all the following code (most of the code are from the original, those I added are marked).
This will pass the Sales Org and Distribution Channel to the search help window.
METHOD op_search_ordered_prod.
CONSTANTS lc_query_name TYPE crmt_ext_obj_name VALUE 'ProdAdvSearchRgProducts'.
DATA: lv_event_string TYPE string,
lv_title TYPE string,
lv_value TYPE string.
DATA: lr_cw TYPE REF TO cl_bsp_wd_collection_wrapper,
lr_it TYPE REF TO if_bol_bo_col_iterator,
lr_col TYPE REF TO if_bol_bo_col,
lr_current TYPE REF TO if_bol_bo_property_access,
lr_qs TYPE REF TO cl_crm_bol_dquery_service.
DATA: lr_org_ent TYPE REF TO if_bol_bo_property_access. "<--INSERT
DATA: lv_sales_org TYPE STRING, "<-- INSERT
lv_dis_channel TYPE STRING. "<-- INSERT
cl_chtmlb_config_utility=>outbound_plug_event_info( EXPORTING iv_event_string = lv_event_string
IMPORTING ev_index = gv_index ).
* call advanced product search popup
IF prodsearch_popup IS NOT BOUND.
lv_title = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT/PRODUCT_SEARCH' ).
prodsearch_popup = comp_controller->window_manager->create_popup(
iv_interface_view_name = 'SearchHelpWindow'
iv_usage_name = 'CUProdSearchPopup'
iv_title = lv_title ).
ENDIF.
prodsearch_popup->set_on_close_event( iv_view = me iv_event_name = 'SELECT_ORDERED_PROD' ).
prodsearch_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
* make sure the existing entry for ordered_prod is passed to the valuehelp if it contains
* an asterix.
lr_cw = get_collection_wrapper( gc_context_node_admini ).
lr_it = lr_cw->get_iterator( ).
lr_current = lr_it->get_by_index( iv_index = gv_index ).
CHECK lr_current IS BOUND.
lv_value = lr_current->get_property_as_string( iv_attr_name = 'ORDERED_PROD' ).
IF NOT lv_value CS '*'.
CLEAR lv_value.
ENDIF.
*<-- INSERT
lr_org_ent ?= lr_current->get_related_entity( 'BTItemOrgmanSet' ). "Get ORGMAN BO
lv_sales_org = lr_org_ent->get_property_as_string( iv_attr_name = 'SALES_ORG' ). "Get Sales Org
lv_dis_channel = lr_org_ent->get_property_as_string( iv_attr_name = 'DIS_CHANNEL' ). "Get Dist Channel
*--> INSERT
CALL METHOD cl_crm_bol_dquery_service=>get_instance
EXPORTING
iv_query_name = lc_query_name
RECEIVING
rv_result = lr_qs.
* fill selection conditons for product again
CALL METHOD lr_qs->add_selection_param
EXPORTING
iv_attr_name = 'PRODUCT_ID'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = lv_value.
*<-- INSERT (Passing Sales Org and Distribution Channel to the search BO)
CALL METHOD lr_qs->add_selection_param
EXPORTING
iv_attr_name = 'SALES_ORG'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = lv_sales_org.
CALL METHOD lr_qs->add_selection_param
EXPORTING
iv_attr_name = 'DISTR_CHAN'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = lv_sales_org.
*--> INSERT
CREATE OBJECT lr_col
TYPE
cl_crm_bol_bo_col.
lr_col->add( lr_qs ).
IF can_have_iobject( ) = abap_true.
prodsearch_popup->open( iv_inbound_plug = 'SEARCHPRODANDOBJECTS'
iv_collection = lr_col ).
ELSE.
prodsearch_popup->open( iv_inbound_plug = 'SEARCHPRODUCTS'
iv_collection = lr_col ).
ENDIF.
ENDMETHOD.
Similar Messages
-
Which table contain the sales org/distribution channel details for an PO
Hi Experts,
Do you know from which table could i get the sales org/distribution channel details for an Purchase order.
The Purchase order is an UB document type. STO
Then there will be delivery order created for this STO.
I heard there are 2 kinds of Sales org/distribution channel in one Purchase order? One is Vendor, another is local...?Is this correct understanding?
Please let me know which table field could i find those info from an Purchase order document?
Or the questions could be:
Assumed we have replenishment delivery#, then how to get corresponding Purchase order#(UB, STO), and further how to get the sales org info?
Please kindly advise from table fields points of view...
How to get the PFrom an replenishment delivery#
Thanks.Dear Hoo Laa,
You may find the Sales Organisation/Distribution Channel details in PO itself (Shipping Tab). Table where you can get Sales Organisation/Disribution Channel is EKPV.
Regards
Samier Danish -
Risk on wrong definition of sales organization, distribution channel and division
Hi,
our organization just started to implement SAP and SD module is one of the subject to complete.
We are in the defining phase of the above subject but I still can not understand the risk of being miss-defining the sales organization, distribution channel and division. Is it true will only impacting the pricing and reporting only? Are there going to be future impact on this?
Thank you before for your explanation.
AndyHi Andy,
Good to see the suggestions!
These are the rules I try to follow:
Do not over do it. Simple is better and facilitates change.
One sales organization for each company code unless significant differences exist between independent sales departments. Like one wants to use CRM and others won't. It's roughly equivalent to one by each top level sales director.
One distribution channel for each sales channel group that defines different prices or different shipping conditions for the same material. Like retail and wholesale have different pricing. Special rules can apply like mail delivery require different correspondence settings.
One division for each division of the company. If company has no clearly defined divisions (like Aeronautics and Footwear) there is no need (in sales) to split (it might in financials).
Using sales office and sales group for reporting is a lot better than the top level structures because it's easy to change them in master data, unlike sales org or distribution channel. And when departments get reorganized the system effort is significantly reduced if no change occurs at those three top levels.
So I normally use the sales office to the first or second level of reporting and sales group in some cases to represent individual sales persons or nothing at all in other cases.
regards,
Edgar -
Scenario regarding Sales Organization, distribution channel
Dear Experts,
I am doing
1. Simple Domestic sales from manufacturing plant
2. Depot Sales: In which, Stock transfer between two plants i.e. from Manufacturing Plant to Depot and sales from depot
3. Exports: Sales to other country.
Now, my confusion is, whether i can use a single sales organization and three distribution channel for all these three scenarios or do i have to create three different sales organizations along with three distribution channels and do the processes?
My anather question is, if i want to do depot sales, then it is possible to have one manufacturing plant and two storage locations at different places. i.e. issuing storage locatin and receiving storage location.
Is it possible to sell goods from receiving storage location to end customer?
What will be simple organizational structure i can make to acheive these things?
I would be very helpful if you can give me your expert inputs on the scenario. I am trying to make the simple organization structure with less complications for my client.
Thank you
AmitHi
As suggested the best choice will be to go ahead with one sales organization for all these scenario. Since in domestic sale / export sale the only difference will be the Pricing configuration and that can be easily mapped using the either a distribution channel / or a customer pricing procedure.
Now when it comes to handling the sales scenario - there is a option to go ahead with two or even three distribution channel.
1. Domestic Sale (Can handle Both Depot sale and Manufacturing same- seperate dist.channel will help to pick right pricing procedure
2. Export Sale - This distribution channel will help you to pickup export pricing procedure (Also if not then you can have customer pricing procedure to pick the export pricing )
3. Stock Transfer (Can be done through domestic sale also)- I hope a seperate pricing procedure will be created for STO. So from the reporting purpose a seperate dist.channel can help you to have more clarity to the user - Again will help you to pick a different pricing procedure (A seperate Cust.pr.Pro can also be used to pick a different pricing procedure)
4. If you are using DEPOT sale with Excisable mean you need to maintain RG23D register. Also you need to generate Excise Invoice, challan . If you use transfer process of storage location to storage locationthen there are concerns as how you will generate challan and Invoice. OR if it is a DEPOT to DEPOT Transfer then also you need supporting document. please do check as whether you need the required output or not.
So Depot need to be maintained a PLANT in SAP with a check box as saying Excisable and relevant for RG23D. and a Normal Sales process will follow. Reporting can be done of PLANT as a primary key.
Distribution channel will be a simpler way of Differentiation - and for reporting purpose.
Thanks
RB
Edited by: RBhardwaj on Feb 16, 2012 6:54 PM -
Sales Org/Distribution Channel to Plant Assignment
Hello All,
I am assigning a sales org/distribution channel to a plant, but an error message says that "Organizational data for inter-company billing missing in plant CN30". Can anybody tell me what this means and how to correct it?
Thanks and regards,
OlynHi Olyn,
I think there may be something missing in your customising - please
see the relevant parts of note 109254 attached - in particular points
7 + 8 relating to transaction OMGN.
Kind regards,
Zsuzsanna -
Material master extending to sales organization , distribution chanel ..
Hi All,
I have done the plant to plant Material master extending
my query is similar way how to approach the material master extending to sales organization , distribution chanel and storage location.
earlier in the plant to plant i have taken the selection screens
parameters : source plant
select option : target plant
materials i have taken is : material type and related but i didn't take any sales org, division and storage.
Regards...HI,
you can do this through MM01 bdc select sales views and end you data.(for extanding views not in mm02, mm01 only)
i hope it will slove your problem else please replay with quary.
Do Reward points..if found helpful -
Relation between Sales org + distribution Channel + Division.
Hello all,
I have a requirement where I need to make an entry for sales data for a BP . On the Selection we have sales Org , Distribution channel and division. can any body tell me how check if the combination of entries made for the S.org , Channel and division are correct .
I tried using the FM CRM_BUPA_SALES_AREA_GET_ALL. but this doesn't show all the entries .
Thanks in advance
srinivasAny Suggestions ?
Thanks ,
Shounak M. -
Remove Sales Org & Distribution Channel assigned in Material Master
Hi,
Is it possible to remove Sales Org & Distribution Channel assigned in Material Master. This is a newly created material I looked at MM06 to see if this assignment can be removed without setting the material for deletion. Any suggestions welcome.
Thanks.the only way to get rit of existing data is to set a deletion indicator and subsequently run archiving.
In your case go to MM06, enter material number, sales org and distribution channel and set then the deletion indicator at this level only.
Then go to SARA object MM_MATNR and run archiving.
Archiving is usually a process, not just a sequence of transactions. Archiving requires customizing, and certainly the most recent OSS notes for the archiving object (this can be extremly many if your hotpackage implementation was long ago).
this is especially needed to archive only certain organisation levels, as this functionality came with OSS notes -
Urgent, Restricting Sales org & Distribution Channel
I'm having two users and one is from US and other MEXICO
If user from US LOG'S into SAP ,He should only his Sales org(US01) & Distribution Channel(001) & Mexico User log ,then he should be able to see only his Sales org(ME01).
My Question is there a way where we can restrict US / MEX Through Security , if not Can we restrict through abap if so Please send me some details , Which table /code .
any inputs will be appreciated ,Hi
One way is as below.
DATA: BEGIN OF lt_tvko OCCURS 0,
vkorg TYPE vkorg,
bukrs TYPE bukrs,
END OF lt_tvko.
SELECT vkorg bukrs FROM tvko INTO TABLE lt_tvko
WHERE vkorg IN lr_vkorg.
IF sy-subrc NE 0.
MESSAGE e085(wv).
ENDIF.
* Check all retrieved co.codes
SORT lt_tvko BY bukrs.
DELETE ADJACENT DUPLICATES FROM lt_tvko COMPARING bukrs.
LOOP AT lt_tvko.
* Error Message: No authorization for sales organization &1
PERFORM f_bukrs_auth_chk_p USING lt_tvko-bukrs 'ICC_FI_CN' 'E' '010'
lt_tvko-vkorg '' '' ''.
ENDLOOP.
FORM f_bukrs_auth_chk_p USING value(lc_bukrs) TYPE bukrs
value(lc_msgid) LIKE sy-msgid
value(lc_msgty) LIKE sy-msgty
value(ln_msgno) LIKE sy-msgno
value(lc_msgv1)
value(lc_msgv2)
value(lc_msgv3)
value(lc_msgv4).
AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
ID 'BUKRS' FIELD lc_bukrs
ID 'ACTVT' FIELD '03'.
IF sy-subrc NE 0.
MESSAGE ID lc_msgid TYPE lc_msgty NUMBER ln_msgno
WITH lc_msgv1 lc_msgv2 lc_msgv3 lc_msgv4.
ENDIF.
ENDFORM. "f_bukrs_auth_chk_p
Select the sales organization mapping to Company code and then restrict.
Hope this can help you.
Kind Regards
Eswar -
Finding sales Org, Distribution Channel
Hi Forum,
If i have plant and material how could i find its corresponding sales organization and Distribution channel.give field and table name.
Thanks
Lovleen
Edited by: lovleen sol on Jan 8, 2008 11:14 AMHi,
Check these table:
MARA: General Material Data
MARC: Plant Data for Material
MARD: Storage Location Data for Material
MARM: Units of Measure for Material
MVKE: Sales Data for Material
MBEW: Material Valuation
Base Unit u will get from table MARA and for others units check MARM.
Rewards points if helpful,
Regards,
Srinivas Ch -
Reference sales organisation,ref.distribution channel and ref. division
Hi Gurus,
What is the use of reference sales organisation,ref.distribution channel and reference division.
Pls dont copy and paste sap help.
--JamesHi,
Sales Organization An organizational unit responsible for the sale of certain products or
services. The responsibility of a sales organization may include legal
liability for products and customer claims.
Use
You can assign any number of distribution channels and divisions to a
sales organization. A particular combination of sales organization,
distribution channel, and division is known as a sales area.
Reference distribution channel for conditions Specifies a distribution channel that you want to use as a reference for
condition data for other distribution channels.
Procedure
You can specify one distribution channel as the source of condition data
for other distribution channels. You need then only to maintain the data
in one place.
Example
Distrib.channel Ref.distrib.channel
01 01
02 01
03 01
04 04
In this example, only distribution channels 01 and 04 have condtion data
defined. Distribution channels 01, 02, and 03 share the master data that
you defined for distribution channel 01. Distribution channel 04 has its
own master data. When you create a sales order in distribution channel
03, the system checks the condition data against the data defined for
distribution channel 01.
Reference division for customers Specifies a division where you can define customer master records and
share them with other divisions.
Use
Customer-divisions are a way of sharing master data between different
divisions. You can specify one division as the source of master data for
other divisions. You need then only to maintain the customer master data
in one place. You can specify customer-divisions in Table TVKOS.
Example
Division Customer-division
01 01
02 01
03 01
04 04
In this example, only divisions 01 and 04 have customer master data
defined. Divisions 01, 02, and 03 share the customer master data defined
for division 01. Division 04 has its own customer master data. If you
create a sales order in division 03, the system checks the customer
master data from division 01. You cannot create customer master data for
divisions 02 and 03, since it would never be used. -
Sales organization structure changes in COPA
Hi All,
My client like to change Sales organization structure like Distribution channel,division,sales office,sales group etc. and profit centers in sales orders.
from 01/01/2011 we like to post all open sales order's settlments to new sales organization,distribution channel,division,sales office,sales group and profit centers in COPA.
What is the best way to achieve this?
Any help is appreciated.....
Thanks,
AnushaHi,
I think COPA realignment should work for you.
If you can establish the exact relation ship between old Sales org structure to new Sales org structure, you can design your realignment in such a way that the new sales data will reflect the new structure.
For this,
1.You need to select the sales documents for which you want to change the sales org.
2. If you want to derive them again, you can do so
3. If you want the sales org structure elements to be replaced by new ones, you can do so.
Following a realignment, only the new assignment is known in the information system and in planning. The characteristic values valid at the time the original posting was made can only be analyzed in line item reports. Because the existing profitability segments are changed to adhere to the new assignment, all objects assigned to those profitability segments - such as sales orders or projects - and all existing SAP documents - such as billing documents or FI documents - reflect the new assignment as well.
For more details, check the following link. [http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/4c48c64a0111d1894c0000e829fbbd/frameset.htm]
Njloy
Siva -
Creation of new distribution Channel
Can anyone give me a step by step process of creatinf a new distribution channel & assignment of the same.
Sumit Gulati1. SPRO --> IMG --> Enterprise Structure --> Definition --> Sales and Distribution --> Define, copy, delete, check distribution channel
It is recommended to copy (copy as ) from existing Distribution Channel.
2. SPRO --> IMG --> Enterprise Structure --> Assignment --> Sales and Distribution --> Assign distribution channel to sales organization
3. SPRO --> IMG --> Enterprise Structure --> Assignment --> Sales and Distribution --> Set up sales area
4. SPRO --> IMG --> Enterprise Structure --> Assignment --> Sales and Distribution --> Assign sales organization - distribution channel - plant
The above are settings for Distribution Channel at Enterprise Structure Level
Regards,
Rajesh Banka -
Where are the Sales Org and DC details entered in IDOC type ORDERS05?
I'm continually getting the message that the SORG and DC does not exist for a PO raised within CRM. However, I can't actually see any segments where these details can be entered. Is this something that is derived automatically based on the material number ?.
Regards
GaryDear Hoo Laa,
You may find the Sales Organisation/Distribution Channel details in PO itself (Shipping Tab). Table where you can get Sales Organisation/Disribution Channel is EKPV.
Regards
Samier Danish -
Pricing procedure assignment to sales organization
Hi Expert,
One particular pricing procedure is defined and assigned to particular sales organization in table T683V. I have assigned same pricing procedure to another sales organization which is now reflecting in that table. When i am trying to create sales order for newly assigned sales organization, it is not showing condition types for that particular sales order in conditions tab for that particular material. Can you please tell me why this is happening & what would be the solution for this ?
Thanks.Hi,
In Sales & Distribution - Basic Functions - Pricing - Pricing Control - Define and Assign Pricing procedure,you can define your pricing procedure to Sales Organization,Distribution Channel and division level.You can't define on sales organization only.
This question you should post in SD forum.
BR,
Praveen
Maybe you are looking for
-
Selection of EHP4 technical usages are all greyed out
Good day We are currently on ERP6.o SPS 6 and would like to upgrade to ERP 6.0 EHP4. Our system has been defined in SMSY in Solman as an ERP 6.0 system. In selection of Main Instances, ECC Server has been selected as relevant. In mopz, we create a ne
-
Bapi call for Storage Location????
Hi, Is there any Bapi call which would display the stor location of Material. in the Bapi_mat_availabilty.. It shws the total amt of stock and stor_loc is an opional input parameter.. Thanks in Advance, Diana
-
Hi: I've developed a Dual Axis Chart (bar and line char) using the JFreeChart library. However, when the chart is displayed in the screen the line chart appears always behind the bar chart. How can I solve this? I would like that the bar chart appear
-
How can i download ms project in mac, i have an installed MS office in my mac already
I am a student and i have problems downloading ms project on my mac pro. The download was completed but i cant open it.
-
Implementation questions?
Hi experts: can any one tell me 1.What is the difference that exist between Implementation and support? 2.What is the time duration for implementation and support projects.? Thanks