Creating Product hierarchy
Dear All
We are using COPA in our organisation. The problem I am facing in the material codification. The material coding has been done in such a way that not all the 18 characters has not been used for the finished goods.
Some finished goods are having 12 Characters whereas some have 18 and some have 16. How can I create the product hierarchy in this scenario.
Need kind advice in this regards
Regards
Vasantha
Dear All,
The product hierarchy is defined in such a way that i can create upto 3 levels. There is requirement for us to go for 5 or 6 level of reporting based on material codification. The standard structure of 5510 has to redifned as 55323. How to proceed further.
Regards
Vasantha
Similar Messages
-
Create product hierarchy & category in CRM
Hello experts,
I need to write a program that create product hierarchy & category in CRM 5 from flat file.
As anyone know how to do it?
I couldn't find any bapi, and when i tried to debug the program that transfer this data between R3 to CRM i got to dead end.
I realy dont know how to attack this...
regards,
Ronen.USE LSMW. Even i am working on a similar thing though i need to create products in CRM from excel file. Category and hierarchy ar supplied to me. Actually there are a couple of options.
Basically do research in SE37 with search term COMCATEGORYCREATE* and similarly for COMCATEGORYsav* for category and for hierarchy replace category with 'hier' . You can then shortlist which FM is good for you and try to construct structure in your program that u can pass to the FM to get desired output.
Thing to remember is that you first create and then do save.
1. Use following if input is from a *.txt or any tab delimited file.
INCLUDE com_product_const001.
INCLUDE com_product_const003.
*Excel data into Internal table
PARAMETERS: p_infile LIKE rlgrap-filename.
DATA: gd_file type string.
DATA: prod type N.
*Internal tabe to store upload data
TYPES: BEGIN OF t_record,
productid TYPE COMT_PRODUCT_ID,
product_desc TYPE COMT_PRSHTEXTX,
proudct_type TYPE COMT_PRODUCT_TYPE,
prod_categoryid TYPE COMT_CATEGORY_ID,
prod_obj_family TYPE COMT_PRODUCT_OBJECT_FAMILY,
prod_hierarchyid TYPE COMT_HIERARCHY_ID,
maintenance_language TYPE SY-LANGU,
prod_base_uom TYPE COMT_BASE_UNIT,
sales org1
sales org2
item category
END OF t_record.
TYPES : Begin of struc_mat,
HEADER TYPE COMT_PRODUCT_MAINTAIN_API,
DATA TYPE COMT_PROD_MAT_MAINTAIN_API,
INTERLINKAGES TYPE COMT_PRODUCT_IL_API,
CONDITIONS TYPE COM_PRODUCT_CND_API,
DOCUMENTS TYPE COMT_PRODUCT_DOCUMENTS_API,
END of struc_mat.
DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
wa_record TYPE t_record,
ls_record TYPE t_record.
**For Unicode check active in program attributes then need to declare constants as follows:
**class cl_abap_char_utilities definition load.
**constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_INFILE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_infile.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = 'p_infile'
DEF_PATH = ' '
MASK = '*.txt'
MODE = '0'
TITLE = 'UPLOAD TAB DELIMITED FILE'(078)
IMPORTING
FILENAME = p_infile
RC =
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*START-OF-SELECTION
START-OF-SELECTION.
gd_file = p_infile.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = gd_file
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = it_record
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
write: 'Error' , sy-subrc .
skip.
ENDIF.
END-OF-SELECTION.
*!!! Text data is now contained within the internal table IT_RECORD
Display report data for illustration purposes
LOOP AT it_record INTO wa_record.
WRITE:/ sy-vline,
(10) wa_record-productid, sy-vline,
(10) wa_record-product_desc, sy-vline.
(10) wa_record-age, sy-vline.
ENDLOOP.
*The field data in structure for MAT & FIN are very different . Loop at retreived data and based on product
*type fill in the respective structure and proceed.
*PARAMETERS: g_matnr1 TYPE comt_product_id.
*PARAMETERS: gv_guid AS CHECKBOX DEFAULT on.
DATA : gv_save TYPE BOOLEAN VALUE 'X'.
LOOP AT it_record INTO wa_record.
IF wa_record-proudct_type EQ '01'.
PERFORM init.
PERFORM create USING wa_record.
PERFORM save USING gv_save.
ELSE.
ENDIF.
ENDLOOP.
2. Use excel file and use LSMW -
Tcode for creating product hierarchy
hello, anybody can give me the Tcode for creating product hierarchy and category
ThanksHi,
Try OVSV (in config)
Steve B -
IDOC message type or bapi to create CRM Product hierarchy
hi all,
I tried to tranfer the Product hierarchy to CRM using LSMW, it could not transftered by batch input and I could not find any IDOC message type or bapi to create Product hierarchy. it seemed that I could not using LSMW?
i also found that many BAPIs in CRM were not related with ALE message.so we can not use LSMW using IDOC or BAPI to transfer data? i will very appreciate anyone who can tell me to solve such problem, especially tranfer data to CRM. thanks so much!hi Ramgopal,
u can check the bapi-<b>BUS1112</b> for cost center, and from the methods what ever u want u can take based upon requirement
if u find it useful plz mark the points.
<b>check the IDOC method with message type COSMAS and basic type COSMAS1</b>
it should workout now
Regards,
Naveen
Message was edited by: NAVEENKUMAR GUDURI -
How to Create COPA report by using Product Hierarchy?
HI,
I have to create COPA report using Product Hierarchy. Here i need to Bring Variant configuration characterstics to COPA through Product hierarchy.
Kindly give me some points on how to start doint this process. Please provide me the steps to create Product Hierarchy which can be bring into COPA report. It would be a great help if any one can provide some inputs.
Thanks
KishoreHi,
Check transaction OVSV to define a Production hierarchy in logistics module.
Refer this link on how to configure...
http://www.sap-basis-abap.com/sd/how-to-configure-product-hierarchy.htm
http://help.sap.com/saphelp_46c/helpdata/en/77/1a39516e36d1118b3f0060b03ca329/content.htm
Hope this helps. -
Pricing issue with Product hierarchy - Urgent
Hello,
I have an issue on pricing determination with product hierarchy.
I created product hierarchy as following,
level1 - A0001
level2 - A0001B0001
level3 - A0001B0001C0001
Then, assigned A0001B0001C0001 to material D in material master.
I created condition record with A0001B0001C0001(level 3), the system found the condition sucessfully when I created a sales order with material D.
However, I created condition record with A0001(level1) but the system didn't get the price when I created the sales order with material D. Since A0001B0001C0001 belongs to A0001, the system is supposed to get the price from the condition record with A0001...
Could you please let me know how to fix it?Hi,
Thanks a lot for your kind explanation.
Here is the access sequence I defined. I wonder if there is anyway I can define PRODH1, PRODH2, PRODH3 in access sequnce the same way with customer hierarchy so that the system can check higher level data. If it's not allowed, I think I should define routine in requirement as you advised. Thanks!
*Accesses
AcNo Description
1 Customer Hierarchy/Product Hiearchy
2 Customer Hierarchy/Product Hiearchy
3 Customer Hierarchy/Product Hiearchy
4 Customer Hierarchy/Product Hiearchy
Fields
AcNo Condition Doc. field field lable
1 HIENR HIEBO01 CustomerHierarchy 01
PRODH PRODH Product hierarchy
2. HIENR HIEBO02 CustomerHierarchy 02
PRODH PRODH Product hierarchy
3 HIENR HIEBO03 CustomerHierarchy 03
PRODH PRODH Product hierarchy
4 HIENR HIEBO04 CustomerHierarchy 04
PRODH PRODH Product hierarchy
I wonder if I can assign product hierachy fields, PRODH1, PRODH2, PRODH3 to access sequence like customer hierarchy so that the system can check higher level data to get the price... -
Production hierarchy to be update in COPA
Hi SAP expert
i having problem and need SAP Gurus expert to help me resolve this issue, when i creating each material, i need to create production hierarchy for each material.
example
Material A - Production Hierarchy is 0001
Material B - Production Hierarchy is 0002
i managed to create all process in MM. the problem is the production hierarchy not updating in COPA site. when can be wrong ? any config missing ? or COPA just for SD site ?There is no direct link between MM and COPA , the values to COPA will be coming from SD condition types . The problem may be between MM ans SD
-
Dear Guru's
could anybody explain me how to create product hierarchy in V/76 .When i go there with new entries i am getting the error message as " The Node includes the editing mask characters" .
Kindly guide me.
Thank you.
Babu.HI,
check this link
product hierarchy
Product Hierarchy Maintainance ?
its resolve your issue.
Regards,
Krishna.
Edited by: kris_hna on Aug 11, 2011 1:02 PM -
MDG Material - Product Hierarchy
Hi all,
How to maintain product hierarchies in MDG?
Is there a standard process/approach available to create product hierarchy?
If it is created in MDG, what would be the impact in the UI? Will it show the details in hierarchical manner?
Any thoughts/documents would be helpful.
Thanks
BalaHi Bala
it is already there in MDG as per below
There is no impact on UI and after replication you can see it in MARA table -
How to create the Product Hierarchy maintenance ..?
Hi All,
How to create the Product Hierarchy maintenance (IN APO System), I know manual creation, going to the transaction : /n/sapapo/relhshow , how to create programmatically, is there any Function module?
Pls let me know
Puppy.Hi Puppy,
Please check whether the below BAPI can be used by you.
T-code: BAPI
Object name: ProductAllocationAPO
Obj type:- BUS11305
Regards
R. Senthil Mareeswaran. -
Unable to create Planning product Hierarchy
Hello,
I am having a planning material in ECC assigning this material to another finished product.
Defined the planning strategy 60 in the material master of the finished product and assigning the the planning product there.
When I am transferring in CIF , selecting the Planning material check box as well as regular finished product.
My expectation is a planning product hierarchy has to be created in APO but this is not getting created.
I am not sure whether any additional settings to be defined or not.
Can somebody help me out.
Regards,
nandhaHello,
In CFM1 select the Planning material check box without any finished product.
Planning materials should be X0 in material master and same you should use in selection.
Do the CFM2 followed by RIMODINI
System will transfer the Planning materials and FG connection as per the entries in PGMI table.
Also refer OSS note 1025982 - Product hierarchy transfer is not working properly
Best Regards,
R.Brahmankar -
Creation of new product hierarchy and products in SAP CRM.
Dear all,
please help with resolving of following issue:
In CRM system base hierarchies were replicated from R/3 system with materials. Current requirement is to create new materials in CRM directly (as standalone scenario). As far as I understand, I have to create new hierarchy with required list of set types in order to allow creation of products in CRM directly (product type = material). Can anybody describe changes in the system step by step, what should be changed and where?
As a result I need to have a possibility to create products in CRM directly for sales scenario processing.
Thank you in advance!Hi Jorge,
thank you so much for your reply!
Here what I tried to do:
1. I created new category in hierarchy R3PRODSTYP, added 3 set types: COMM_PR_MAT, COMM_PR_SHTEXT, COMM_PR_UNIT as basic set types.
2. In the SPRO - Cross-Application Components - SAP Product - Settings for Product Type - Number Assignment - Define Number Ranges for the Product Type "Material" I found my new product category is unassigned, so I assigned it to the "CRM Products" group.
3. Farther I tried to create a new product for created category in CRM Web UI, but was not able to find it in the Base category search field. All categories correctly displayed from R3PRODSTYP, but my new category is absent. What can be the reason of category absence? Btw, it cannot be found even when I try to display whole hierarchy in Web UI, however, in SAP GUI, it can be seen via tcode comm_hierarchy.
Here is the setup of hierarchies in the system:
I have no idea how to check #3 "Ensure the hierarchy is assigned to CRM application".
Can you please suggest, what should be changed in addition? Thank you! -
SQVI Report for SAP CRM Product Hierarchy and its Product
Hi
How to create a SQVI report for generating a list for SAP CRM Product Hierarchy which should show the outputs->Level 1, level 2, level 3 and level 4 categories and its products?
I tried COMM_Hierarchy table and Comm_product but not able to achieve this requirement.
or Is there any chance of getting related tables so that I could try more for this requirement.
In which table both product id and its category Id can be found?
PravinThanks DJ
Is there any possibility to get a report for product hierarchy in SQVI ?
say in SAP CRM system, the product category is maintained in COMM_HIERARCHY as
Parent category Id->
Level2 Category Id->
Level 3 Category Id->
Level 4 category Id ->
Product Id's
(I understood the link between Level 4 category id and product id with your info.) but not able to achieve the requirement fully.
Is there any possiblity to achive for generateing a report? -
"Creation" of location product hierarchy
Hi Experts
I know that a location product hierarchy can be "generated" by combining a location hierarchy and a product hierarchy. But for our business requirement we cannot use a generated location product hierarchy. This is because we have 1000'ds of products and for each product the parent location -child locations can be different. That is for product A if parent is location L1 and children are L2 and L3 then for product B the parent can be L1 but the children can be different say L5 and L4. There can be 1000ds of location parent - children combinations like this and it is impossible to model this using a location hierarchy.
So i want to know if there is a way to directly create a location product hierarchy and manually add members to it. Please advise
Thanks
SaradhaI have found another way to make it work. Iam going to try using the concept of planning product and check how it goes.
-
CO-PA: product hierarchy predefined from best practice
Hi guys,
unfortunately I have as basis a best practice system, where product hierarchy with 3 levels is already defined in CO-PA:
PAPH1 ProdHier01-1 ProdH01-1 CHAR 5 MVKE PAPH1
PAPH2 ProdHier01-2 ProdH01-2 CHAR 10 MVKE PAPH2
PAPH3 ProdHier01-3 ProdH01-3 CHAR 18 MVKE PAPH3
PRODH Prod.hierarchy Prod.hier. CHAR 18 MVKE PRODH
Those ones are already assigned to a best practice operating concern:
10UK Best Practices
1. we have 7 levels in our product hierarchy
2. I need to read it from mara and not mvke
When trying to ad product hierarchy as characteristic in KEA5 in our new operating concern, I gut the message below.
This data element is used in tons of tables and the whole precdure looks risky + after transport I might have issues again?
Creating ww* characteristics for product hierarchy is not an option, since then I would need to maintain the whole product hiearchy as characteristc values again (like before release 4.5) and this is far more than 1000 entries and is double maintenance after go live.
Deleting the best practice operating concern is also difficult, since there are several clients where customizing still sits for 10UK.
Anybody experience? What did you do?
regards
Bjoern
Here is the text from KEA5 when trying to ad mara fields (since date elment lenghts is different due to more levels):
Product hierarchy field PAPH1 cannot be adapted to the new structure
Message no. KE691
Diagnosis
The definition of the product hierarchy has changed (structure PRODHS). The hierarchy field generated in CO-PA, PAPH1 cannot be adapted to the new definition, because it is already being used in structures or tables.
System Response
The field PAPH1 does not appear in the list of fields that can be selected.
It can no longer be used as a characteristic.
Procedure
If you still want to define hierarchy field PAPH1 as a characteristic, proceed as follows:
1. Display the where-used list for data element RKEG_PAPH1 in database fields using transaction SE12. For hierarchy field PAPH1 to be adapted, a data conversion must be carried out for all the tables listed!
2. First change the number of characters in the domain RKEG_PAPH1 to match the new definition of the product hierarchy, following the example below. You can do this using transaction SE11.
Structure PRODHS Domain
Field Length name Number of characters
PRODH1 3 RKEG_PAPH1 3
PRODH2 2 RKEG_PAPH2 5
PRODH3 5 RKEG_PAPH3 10
PRODH4 8 RKEG_PAPH4 18Just as Info,
I needed to go for deletion of those characteristics - quite some work, like:
1. delete all where-used entries for the characteristics in ALL CLIENTS of this system (important: e.g. planning layout - recommended to change and not simply delete, because the change can be transported)
2. when then trying to delete characteristics (with "unlock" in KEA0 > value fields) - tons of tables and strucutres popped up, where this data element is still needed - follow note 353257
3. generate best practice operating concern new (10UK in our case)
4. create PAPH1 etc. new from table MARA (not mvke in our case - depends)
all good - hopefully no issues after transport - we will see.
Maybe you are looking for
-
How can I get and change the values of Withholding tax grid in MIRO trx
Hi everyone, I have a requirement where I need to get and change WT_WITHCD field in MIRO's Withholding tax grid. Is there a function module / Badi to do this? I used MRM_HEADER_CHECK, but the parameters related with this badi doesn't have this value.
-
Wrong default layout for a new customer
Hi all, I hope somebody can share inputs with regards to this issue. I'm assigning a default layout to one customer group (layout1 for all Group1). When this was done, a list of customer codes were included in the list and each were ticked from that
-
Hi, May I know whether Tcode J1IIEXCP is not a country specific? Wehn User tries this TCode,it displays dump as 'It needs country Code org. value as * '. User is an specfic country user giving him country code as *, leads to problem. Whether their is
-
How to create Import Declaration (Inward Processing) in SAP GTS
How to create Import declaration in SAP GTS system for transaction based on Sales Order and Return Delivery documents in ECC6 feeder system. The scenario is described as below: In backend (feeder) system ECC6: 1. Sales Order SD Document Category = u2
-
does anyone know of any place i can go to check out some user presets for logic effects?