R/3 classification (1:N) to BI
Hello,
The standard don't extract more than one value for the classifcation. Then, I want to extract this data as a hiearchy.
Example R/3:
Vendor Classification
V1 G1
V1 G2
V2 G3
V3 G1
V3 G3
Then, the datasource should create this hierarchy:
G1
...V1
...V3
G2
...V1
G3
...V2
...V3
...V1
¿Could you give me an ABAP code to do this and to create the DataSource? ¿More ideas?
Message was edited by:
Jorge Castillo Medina
Mr. BW,
I'm a little closer to identifying the problem, but still not sure if the problem is in the R/3 process that creates the delta queue records or the BI processing of the delta records.
The R/3 process that is creating the delta records is a custom ticket application process. When there is a 10 and 20, it creates a 30 record and does a commit. It then has a followup step that deletes the 20 record and does a commit. I looked in RSA3 after this process ran and I see several records in the delta queue for or 20 record.
My followup question is this. When the records are created in the R/3 delta queue is there some kind of sequence number that is passed to the BI side to tell BI in what order to process them?
The additional complication to the this whole problem is that the 10, 20, and 30 records are all being created and deleted in R/3 on the same day. So, BI see a 10, 20 create, then a 30 create and then a 20 delete all in the same days processing.
Regards,
Mike...
Similar Messages
-
No key field found for creation of DataSource - Classification Datasource
Hello,
While trying to create a clasiffication datasource based on 0PLANT_ATTR, when i assign a characteristic and push the DataSource button, i get the following message:
No key field found for creation of DataSource
Diagnosis
During generation of a classification or configuration DataSource, only those key fields for the object table (field "Obj.Tabelle") that are already present in the basis DataSource transferred to the extract structure. This is the case when none of the key fields of the object table were found in the structure of the basis DataSource.
System response
A DataSource cannot be created without key fields. The action was cancelled.
Procedure
Check whether you have selected the correct basis DataSource and object table. For more information, please see SAP Note 569849.
Do you know what can be the problem?
Thank you and regardsHi Alberto,
plants are a special case. The key which is used for the classification
of plants (object type BETR) is not the same as the key which is used in
datasource 0PLANT_ATTR.
BETR has key LOCNR (Site). That's a customer related to a plant. The
customer number will be extracted in field LOCNR.
0PLANT_ATTR extracts the plant in its key field WERKS.
Transaction CTBW and the generic extraction program for classifications
don't know the relationship between LOCNR and WERKS. So they cannot map
them.
I do recommend a solution which would add the mapping between
LOCNR and WERKS:
1. Create please the classification datasource as intended, but use
datasource 0RT_LOC_MGR_ATTR as basis datasource. It's the only
datasource of the content where LOCNR is a key field. So
0RT_LOC_MGR_ATTR is used as a dummy here, to allow transaction CTBW to
create the classification datasource. It's not necessary to extract
data with datasource 0RT_LOC_MGR_ATTR.
2. Extend please the extract structure of the created classification
datasource. Add please field WERKS using component type WERKS_D. Make
this field visible.
3. Fill field WERKS in the extractor user exit EXIT_SAPLRSAP_002. WERKS
can be read from table KNA1 by using the customer number extracted to
LOCNR to select on field KNA1-KUNNR.
4. Transaction CTBW_META on the BW system isn't able to append the
characteristics from the classification datasource to infosource
0PLANT, because the keys are different. So create please a new info
source with CTBW_META. This allows CTBW_META to create the info objects
for the characteristics used in the classification datasource.
5. Add please the characteristics used in the classification datasource
to infosource 0PLANT manually. You will find the info object names of
the characteristics by looking up the characteristic datasources which
are assigned to the classification datasource in transaction CTBW. From
these names you can derive the info object names:
1CL_A... -> C_A...
6. Disconnect the infosource which has been created with CTBW_META from
the classification datasource.
7. Connect please the classification datasource to infosource 0PLANT
Use following info object:
info object field
0PLANT WERKS
The info object names for the characteristics are explained in step 5.
8. Add an infopackage to infosource 0PLANT for the classification
datasource.
Now the extraction of classifications of sites should work.
Best regards,
Rolf
P.S. I saw the system messed it up and doesn't display any new and empty lines. Sorry, I hope you still can read it.
Edited by: Rolf Doersam on Mar 26, 2010 6:56 PM -
Copy of Material Master charac. values to the batch classif. in GR for PO
Dear gurus,
Could you please help me with the following issue. I have a material managed in batches, and it has a classification type 023 in material master. I fill one chaacteristic of this classification with some value. Now I want this value to be copied to the batch classification during the creation of new batch while making GR to production order.
Is it possible?Hi Nikolaj,
What I am understand your requirement is like,
You want to fetch the value of Characteristic maintain in Batch class in Material master to the Batches, correct?
But my Friend if you maintain value of characteristic in Batch Class in material master then it will works as a validation.
For Example,
Suppose your Characteristic is Colour and in Material Master Batch classification view you have maintain value as Red.Then system will not allow you any other colour in Batches.You will find that value in Drop Down list.
Regards,
Dhaval -
Creation of Classification View in Material Master
Hi,
I need to create Classification View for a Material. The user would provide the data in the file, example
Material Number MATNR
Class type TCLA-KLART
Class Type description TCLAT-ARTXT
Class Group TCLG-KLAGR
Class Group Description TCLGT-KTEXT
Class M_CLASB-CLASS
Class Description M_CLASB-CSCHG
Status RMCLF-STATU
Std class RMCLF-STDCL
Characteristics Group TCMG-ATKLA
Characteristics Group Description TCMGT-ATKLT
Characteristics RCTAV-ATNAM
Characteristics Description CABNT-ATBEZ
I read in the posts there is BAPI_OBJCL_CREATE. But I am not able to Map the above fields to pass to this BAPI.
Can someone please suggest me how to do this..
Thanks and Regards,
VanessaHi,
Thanks for the suggestion. But i want to do this through a program. There is a selection screen with 6 radio buttons based o view to be created and an input field for the filename.
Could you provide me any BAPI to do the same.
Thanks and Regards,
Vanessa -
Batch managment with classification
Hi,
I have material with batch and classification. Material master have base unit KG, but I need second unit PC or M and other parameters of material. (coefficient between KG and PC is not constant).
I give to classification attributes fields: quantity, length. width, ...
In goods receipt I input batch with classification (quantity, length. width, ...)
Where can I see batch balance with classification ?
Is possible recalculate attribute of classification quantity after goods issue or how I can manage balance of quantity?
thank
betoHi,
Once you fix the classification, i don't think you can recalculate the classification, what do you mean by batch balance?
Aktar -
Classification of IFLOT & EQUI via CLB2 / CLB1
Hi all,
I've used CLB2 to mass populate & update classifications assigned to functional locations & equipments. This has worked well to date.
However, I am now attempting to improve processing performance. While reviewing available functionality, I noted the availability of CLB1 to generate batch input sessions from the logical filename provided & supports essentially the same input file.
Experimentation proves that this transaction is essentially completely unsuitable for general use any longer since it applies the batch input sessions against transactions CL20 & CL22 which are no longer used.
Assuming I have 800,000 updates to apply, is there a standard mechanism other than CLB2, where I configure additional logical filenames to allow streaming the updates in the background.
regards
DanielHi Daniel,
Asumming you are trying to update classification data for IS-U type functional locations and devices, you can update classification data for these using ISMW - migration object OBJCLASS. Although I think this object would work for non-ISU FLs and Equipments too.
Wherein, below fields can be defaulted depending if you are updating classification for FL or DEVICES.
HEADER-OBJECT_TYPE = "IFLOT" or "EQUI".
DATA-FIELD = TPLNR or EQUNR
Other structures and fields are self explanatory. But feel free to ask follow up clarification.
ALternately, LSMW also provides for a standard BI object (0130 classification) that may be utilized as well. Although I have not used LSMW object but have used the ISMW OBJCLASS.
Hope this helps.
Ash -
Automatic batch classification with procedure on goods receipt does not wor
Hi,
I have a material with batch classification.
The material has two characteristics.
One is a number called VALUE.
The other is also a number (called CONVERSION) and shall be deived from the first.
A procedure is created and assigned to the second characteristic.
$SET_DEFAULT ($SELF, CONVERSION , $SELF.VALUE / 6000)
When I post a goods receive (movement Type 501) the characteristics can be filled . The field VALUE is set with 12000.
I was expecting the characteristic CONVERSION to be calculated as '2' and filled by the procedure.
This is not the case.
If however, I try to fill it manually, the system accepts only the calculated value '2'. Otherwise an error is shown.
How can I force the system to calculate and fill the second characteristic when insserting a value in the first ?
Thanks for any help.Hi Marcus,
i have the same problem with movement type 101.
How did you solve this issue?
Can you help me.
Thank you.
CM -
Batch characteristic in classification not updating
Hello expert,
I have created classification for batch (class type 023) with characteristic MCH1 -LWEDT to record last GR date. Batch number has to be entered manually during GR posting. And i expect that during GR posting, characteristic value of GR date will be automatically updated in the classification but i've found that it is blank.
My query is, do GR date in characteristic value of batch class can be automatically updated during GR posting?
If it yes, what's wrong with my class? and how to make it works as expected?
Really appreciate your help.
Thank you in advanceHi Rahul,
Just to make sure. Have you created a characteristic named MCH1-LWEDT or have you actually linked your characteristic to the field MCH1-LWEDT in the "Addtnl Data" tab in CT04?
BR
Raf
Edited by: Rafael Zaragatzky on Aug 5, 2011 1:03 PM -
Values not getting updated in Classification tab by BAPI_BATCH_SAVE_REPLICA
Hello Experts ,
I am currently facinmg problem with value updation in Classification Tab for Batch Master. To create the classification I have marked BATCHCONTROLFIELDS-DOCLASSIFY = 'X' and to pass values to classification I have done the below coding.
wa_classvaluationschar-value_char = wa_itab-value1.
APPEND wa_classvaluationschar TO it_classvaluationschar.
wa_classvaluationsnum-value_from = wa_itab-value1.
wa_classvaluationsnum-unit_from = wa_itab-meins.
APPEND wa_classvaluationsnum TO it_classvaluationsnum.
Finally called the FM 'BAPI_BATCH_SAVE_REPLICA'. But , inspite of this I am not able to see values in the created Batch. Please advice on the same.
Thanks
-Trishna.Hi Trishna,
You need to update below mentioned fields to udpate that.
OBJECTKEY = concatenate (Internal Material number & plant & batch number)
OBJECTTABLE = MCHA
in both the structures CLASSALLOCATIONS and CLASSVALUATIONSCHAR. It will udpate.
Cheers,
Luri -
How to get the values inputted by the user in Classification view of MM02
Hello,
Does anyone know how to get the inputted values in Classification view of MM02/MM01? I tried to use CLAF_CLASSIFICATION_OF_OBJECTS but this gets the values that is currently saved in the tables and not the values that the user recently inputted in the screen.
Regards,
Alfredhi
try this...
How to Display the Batch Characteristics in BOM? -
Vendor Report without classification.
Hi Experts,
My client wants a report to display all those vendors for whom the classification data is not maintained.
Please help..
Thanks in advanceI dont know a transaction that shows it directly.
I would execute CL30N to get a list of all vendor that have a class assignment.
then I would download all vendor numbers from table LFA1
And then I would compare both e.g. in MS ACCESS or in Excel with VLOOKUP to see which vendor is without classification.
If recurring requirement, then a small ABAP report would do the job. -
Report: Classification view of material master
Hi,
We have activated Batch management for materials.
But for certain material codes, users have not maintained the Classification view.
Is there any report by which we can knowu2019 whether classification view for the material have been maintained or not?Hi,
Check with MM50 with Maintenance status as C
Regards,
Biju K -
Report for Batch and classification
Dear Experts,
Is there any way for getting the report for Batch, Classification etc. In standard SAP.
Regards,
Rohit.Dear Sir,
It is giving the batch wise details.
Is there any method to get a complete report containing batches, classification, material and other details.
Regards,
Rohit. -
Report s_alr_87012178 :customer open items - Customer classification
Hi all. The problem concerns the report s_alr_87012178 which is used to display customer open items.I am selecting 'Customer classification' from the dynamic selections and filling it with a value e.g C.
I have assigned risk class A for my customer in XD02 : Marketing tab. When i am running the report, it is displaying the customer even though i have filled in a different customer classification value.
Thanks for input.Hi Antish,
Were you able to resolve this? If so, could you let me know what was done. I have a similar issue with Customer Classification on FBL5N.
Thanks,
Sam -
Different Batch Classification at storage location level
Dear guru ,
I have tested that i can insert different values of batch classification for the same material and the
same batch number but in different plants.
In MSC1N/MSC2N transaction the system allow a insertion at storage location level.
Itu2019s possible to insert different values of batch classification for the same material , same batch number and the same plant but in different storage locations ?
Thanks.hi,
check in OMCT under which batch level the current system is, if the level is set to be material level or client level, if you make a change to the batch classificaiton, it will reflect in all the plants across the clients.
Batch classification is not maintained at the storage location level. -
How to update/open Classification view of Batch in production Order
Hi All,
I have maintained the Class (023) and characterstics for Finished Material. When I am creating the production order, I am assigning new batch number in Production Order Header (Goods Receipt Tab).
In the background system is creating the Batch but not updating/opening the Classification view.
Every time I required to go T code MSC2N and required to open the classification view manually.
How to open the classification view during production order creation?
Thanks,
ShailendraHi,
You can only assign the Batch number in the production order, that meanas the said batch will get blocked and will not get saved in the Data base. You can enter the Batch number in the Production order and a while doing the GR you can make the system prompt the Classification view in the for ground so that you can enter the Characteristic values..
For the above to pop-up you need to enter the Value "3" in the Batch Classification field of the Production Scheduling profile created for the Plant in the Tcode : OPKP.
Please read the below information for additional inputs :
Option to classify batches
Specifies that the system branches to batch classification upon a goods movement or when you create or change a batch (not in the material master).
Use
If a batch is classified during a certain transaction or event, you can then use the batch determination facility to search for batches by class characteristics at the time of goods issue.
Procedure
If you work with batch classification, set this indicator for all receipt-specific movement types so that all existing batches are classified.
Hope this will help you.
regards
radhak mk
Maybe you are looking for
-
Hi, I have a variable in which some value will be there and that will change. I.e it cannot be fixed. For Ex g_var has 20 or 30 etc. I need to display my output starting that that value. How do I get his. I am sure I need to use field symbols.But am
-
How to test sitemaps in development environment (atg)
Hi Experts, I am trying to generate sitemaps and sitemapindex files for our application. We completed all the configuration level changes like configuring StemapGenerators and SitemapIndexGenerator in SitemapGeneratorService and also able to write al
-
Multiple smartforms call for transfer order
Hi All, I have a requirement to call multiple smartforms based on customer number from same print program.How i would define nace setting and also in my requirement i have to create a ztable that will contain customer number and smartform name,that m
-
Mail freezes every time I try to open it.
When I try to get on the Mail application, the screen for Mail appears, but after a second or two, the beachball appears and I'm forced to close the application. I don't know why this is happening, as Mail has always worked until a couple of days ago
-
Configuration Simulation and Configuration Profile
Hi, I have setup my configuration profile to Config parameter - Process to Sales Order (SET) with single-explosion but when I go to configuration simulation, NO BOM components were selected even without object dependency. However, when I set to Confi