Filling up a characteristic value
dear all,
how can i fill up a characteristics value at query run time? thans for the time and answer.
Hi,
Question is not clear. Are you trying to restrict a query with a characteristic value runtime ? Then go for variable.
--Akashdeep
Similar Messages
-
Slow dataload into Infocube- Conversion of Characteristic values to SIDs
Hi All,
we are facing a slow delta load issue when loading from a DSO into an InfoCube ( approx 150,000 recs).
After checking the monitor found that
- The Conversion of Characteristic values to SIDs is taking time
- The Start Routine time is real quick ( in secs)
The underlying DSO is hugh and there is no SIDs Generation upon Activation flag set for it
Master data is loaded first and than we are loading the transaction data.
i've tried refreshing the stats of the Cube, Reduce the size of the data package,
Deletion of Indexes than Loading and recreation of Indexes, no joy at all.
Any comments and recommendations are much appreciated.
Thanks,
NatalieHi Natalie,
The problem for your slow delta load from DSO to cube is because the SIDs Generation upon Activation flag is unchecked at DSO level .
Becasue of which your activation is faster but your loading from DSO to cube will be slower as you only mentioned that SIDs are being generated .
One recommendation will be to switch on the property of the DSO SIDs Generation upon Activation flag .
Are there any secondary indexes also in DSO ?
You can try deleting them also during loading the data from DSO to cube .
I guess your change log table is also huge in this case . If possible we can think of deleting the log table also . Then for the new records let it get filled .
Hope the above reply was helpful.
Regards,
Ashutosh Singh .
Edited by: DEADLOCKS on Apr 21, 2011 5:08 PM -
User Exit/Enhancement to populate the characteristic value during runtime in FB50
Hi
I have a requirement where in FB50 when I enter the GL Account , Tax Code, Tax Jurisdiction code and Assignment and press enter I need to default some of the characteristics value (which comes in the popup when you click on the Profit. Sgment ).
Please let me know if any enhance or exit is there to achieve this.
FB50 screen.
When I enter the GL account and click on Profit Segment button below popup will come . I want to default Rebate field with some value.
Thanks,
SumitHi Gangadhar...
Thanks for your reply. Actually our requirement is not with the fixed values .
We need that , when we go to FB50 and then provide the GL account and there is one column called 'Assignment'. As soon as we fill the value in assignment column and then if I click on Profit. Segment button for that row the value from the 'Assignment' column should get populated in the Rebate characteristic value field.
For eg.
As I gave Assignment field value as 1234 and when I click on Profit. Segment button the Rebate characteristics value should get populated with 1234.
Please suggest.
Thanks
Sumit. -
BAPI_SALESORDER_CHANGE with characteristic values
Hi everyone,
I am dealing with BAPI_SALESORDER_CHANGE. I have tried to update an item by replacing a certain material for a configurable one, and everything worked fine.
However, I cannot get the characteristic values are stored in the sales order line.
I have filled in values in ORDER_CFGS_VALUE & ORDER_CFGS_INST tables this way:
I guess I am dpig something wrong but I cannot fin the reason.
3GAA100 is the name of my configurable material.
Could someone please explain me the difference between the fields WA_VALUE-CONFIG_ID and WA_VALUE-INST_ID?
Am I filling some field with a no suitable value?
Characteristic values
WA_VALUE-CONFIG_ID = '3GAA100'.
WA_VALUE-INST_ID = '3GAA100'.
WA_VALUE-CHARC = 'M_001'.
WA_VALUE-VALUE = '1'.
APPEND WA_VALUE TO IT_VALUE.
WA_INST-CONFIG_ID = 'LEFT'.
WA_INST-INST_ID = '3GAA100'.
WA_INST-OBJ_TYPE = 'MARA'.
WA_INST-CLASS_TYPE = '300'.
WA_INST-OBJ_KEY = 'LEFTEYE'.
WA_INST-QUANTITY = 1.
APPEND WA_INST TO IT_INST.
I would be very greateful if someone could help me.
Thanks a lot in advance and best regards.
Ben.Hi everyone,
I am dealing with BAPI_SALESORDER_CHANGE. I have tried to update an item by replacing a certain material for a configurable one, and everything worked fine.
However, I cannot get the characteristic values are stored in the sales order line.
I have filled in values in ORDER_CFGS_VALUE & ORDER_CFGS_INST tables this way:
I guess I am dpig something wrong but I cannot fin the reason.
3GAA100 is the name of my configurable material.
Could someone please explain me the difference between the fields WA_VALUE-CONFIG_ID and WA_VALUE-INST_ID?
Am I filling some field with a no suitable value?
Characteristic values
WA_VALUE-CONFIG_ID = '3GAA100'.
WA_VALUE-INST_ID = '3GAA100'.
WA_VALUE-CHARC = 'M_001'.
WA_VALUE-VALUE = '1'.
APPEND WA_VALUE TO IT_VALUE.
WA_INST-CONFIG_ID = 'LEFT'.
WA_INST-INST_ID = '3GAA100'.
WA_INST-OBJ_TYPE = 'MARA'.
WA_INST-CLASS_TYPE = '300'.
WA_INST-OBJ_KEY = 'LEFTEYE'.
WA_INST-QUANTITY = 1.
APPEND WA_INST TO IT_INST.
I would be very greateful if someone could help me.
Thanks a lot in advance and best regards.
Ben. -
New item addition with Characteristic Values - BAPI_SALESORDER_CHANGE
Hi,
I need to add new item in existing sales order. The new item to be added is a configurable material, with Characteristic values to be filled. Iam using 'BAPI_SALESORDER_CHANGE' to insert new item. Iam able to insert normal item. The problem is, iam not able to insert the configurable item. BAPI returns a message 'No changes made'.
Code is attached.
WA_HDRX-UPDATEFLAG = 'U'.
SELECT MAX( POSNR ) FROM VBAP CLIENT SPECIFIED
INTO MAX_POSNR
WHERE MANDT = SY-MANDT AND
VBELN = I_SORDER.
TMP_POSNR = MAX_POSNR + 10.
WA_ITEM-ITM_NUMBER = TMP_POSNR.
WA_ITEM-MATERIAL = 'LEFTEYE'.
WA_ITEM-PLANT = I_STORE.
WA_ITEM-SHIP_POINT = I_STORE.
WA_ITEM-CONFIG_ID = 'LEFT'.
WA_ITEM-INST_ID = 'LEFTEYE'.
APPEND WA_ITEM TO IT_ITEM.
WA_ITEMX-ITM_NUMBER = TMP_POSNR.
WA_ITEMX-UPDATEFLAG = 'I'.
WA_ITEMX-MATERIAL = 'X'.
WA_ITEMX-PLANT = 'X'.
WA_ITEMX-SHIP_POINT = 'X'.
WA_ITEMX-CONFIG_ID = 'X'.
WA_ITEMX-INST_ID = 'X'.
wa_itemx-ITEM_CATEG = 'X'.
APPEND WA_ITEMX TO IT_ITEMX.
Schedule lines
WA_SCHD-ITM_NUMBER = TMP_POSNR.
WA_SCHD-SCHED_LINE = TMP_POSNR.
WA_SCHD-REQ_DATE = SY-DATUM.
WA_SCHD-REQ_QTY = 1.
WA_SCHD-SCHED_TYPE = 'CN'.
APPEND WA_SCHD TO IT_SCHD.
WA_SCHDX-ITM_NUMBER = TMP_POSNR.
WA_SCHDX-SCHED_LINE = TMP_POSNR.
WA_SCHDX-REQ_DATE = 'X'.
WA_SCHDX-REQ_QTY = 'X'.
WA_SCHDX-SCHED_TYPE = 'X'.
APPEND WA_SCHDX TO IT_SCHDX.
characteristic values
WA_VALUE-CONFIG_ID = 'LEFT'.
WA_VALUE-INST_ID = 'LEFTEYE'.
WA_VALUE-CHARC = 'PRES_DIST_SPH'.
WA_VALUE-VALUE = '3.2'.
APPEND WA_VALUE TO IT_VALUE.
WA_INST-CONFIG_ID = 'LEFT'.
WA_INST-INST_ID = 'LEFTEYE'.
WA_INST-OBJ_TYPE = 'MARA'.
WA_INST-CLASS_TYPE = '300'.
WA_INST-OBJ_KEY = 'LEFTEYE'.
WA_INST-QUANTITY = 1.
APPEND WA_INST TO IT_INST.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = SALES_DOC
ORDER_HEADER_INX = WA_HDRX
LOGIC_SWITCH = LS_LOGIC
TABLES
RETURN = IT_RET
ORDER_ITEM_IN = IT_ITEM
ORDER_ITEM_INX = IT_ITEMX
SCHEDULE_LINES = IT_SCHD
SCHEDULE_LINESX = IT_SCHDX
ORDER_CFGS_INST = IT_INST
ORDER_CFGS_VALUE = IT_VALUE.
Where iam missing ?
Any input would be helpfull.
regards,
Nagarajan.JHi,
Iam now able to insert configurable item in existing sales order. But the characteristic values are not getting stored.
Latest code is attached. What else is missing for storing characteristic values ?
select maximum item number in sales order
SELECT MAX( POSNR ) FROM VBAP CLIENT SPECIFIED
INTO MAX_POSNR
WHERE MANDT = SY-MANDT AND
VBELN = I_SORDER.
calc next item number
TMP_POSNR = MAX_POSNR + 10.
header data
WA_HDRX-UPDATEFLAG = 'U'. "update
SALES_DOC = I_SORDER.
item data
WA_ITEM-ITM_NUMBER = TMP_POSNR.
WA_ITEM-MATERIAL = 'LEFTEYE'.
WA_ITEM-PLANT = I_STORE.
WA_ITEM-SHIP_POINT = I_STORE.
APPEND WA_ITEM TO IT_ITEM.
WA_ITEMX-ITM_NUMBER = TMP_POSNR.
WA_ITEMX-UPDATEFLAG = 'I'. "add
WA_ITEMX-MATERIAL = 'X'.
WA_ITEMX-PLANT = 'X'.
WA_ITEMX-SHIP_POINT = 'X'.
APPEND WA_ITEMX TO IT_ITEMX.
Schedule lines
WA_SCHD-ITM_NUMBER = TMP_POSNR.
WA_SCHD-SCHED_LINE = TMP_POSNR.
WA_SCHD-REQ_DATE = SY-DATUM.
WA_SCHD-REQ_QTY = 1.
WA_SCHD-SCHED_TYPE = 'CN'.
APPEND WA_SCHD TO IT_SCHD.
WA_SCHDX-ITM_NUMBER = TMP_POSNR.
WA_SCHDX-SCHED_LINE = TMP_POSNR.
WA_SCHDX-REQ_DATE = 'X'.
WA_SCHDX-REQ_QTY = 'X'.
WA_SCHDX-SCHED_TYPE = 'X'.
APPEND WA_SCHDX TO IT_SCHDX.
config & characteristic values
WA_VALUE-CONFIG_ID = '000001'.
WA_VALUE-INST_ID = '00000001'.
WA_VALUE-CHARC = 'PRES_DIST_SPH'.
WA_VALUE-VALUE = '3.2'.
APPEND WA_VALUE TO IT_VALUE.
WA_INST-CONFIG_ID = '000001'.
WA_INST-INST_ID = '00000001'.
WA_INST-OBJ_TYPE = 'MARA'.
WA_INST-CLASS_TYPE = '300'.
WA_INST-OBJ_KEY = 'LEFTEYE'.
WA_INST-QUANTITY = 1.
WA_INST-QUANTITY_UNIT = 'NO'.
APPEND WA_INST TO IT_INST.
WA_REF-POSEX = TMP_POSNR.
WA_REF-CONFIG_ID = '000001'.
WA_REF-ROOT_ID = '00000001'.
APPEND WA_REF TO IT_REF.
WA_PART-CONFIG_ID = '000001'.
WA_PART-PARENT_ID = '00000001'.
WA_PART-INST_ID = '00000001'.
WA_PART-OBJ_TYPE = 'MARA'.
WA_PART-CLASS_TYPE = '300'.
WA_PART-OBJ_KEY = 'LEFTEYE'.
APPEND WA_PART TO IT_PART.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = SALES_DOC
ORDER_HEADER_INX = WA_HDRX
TABLES
RETURN = IT_RET
ORDER_ITEM_IN = IT_ITEM
ORDER_ITEM_INX = IT_ITEMX
ORDER_CFGS_REF = IT_REF
ORDER_CFGS_PART_OF = IT_PART
ORDER_CFGS_INST = IT_INST
ORDER_CFGS_VALUE = IT_VALUE
SCHEDULE_LINES = IT_SCHD
SCHEDULE_LINESX = IT_SCHDX.
READ TABLE IT_RET INTO WA_RET WITH KEY TYPE = 'E'.
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
I get the following messages from BAPI.
ORDER_HEADER_IN has been processed successfully.
ITEM_IN has been processed successfully
The sales document is not yet complete: Edit data
TIL-Direct Sales TINDC01372 has been saved
What else is missing ? Any help is appreciated.
thanks,
Nagarajan.J -
Changing DATE as a Characteristic value of batch with BAPI_OBJCL_CHANGE
Hello,
Could you give advice for using BAPI_OBJCL_CHANGE?
I decided to use BAPI_OBJCL_CHANGE to update Batch characteristic value.
I could update CHAR field but could not DATE.
I set like below :
- Characteristic name (e.g. Z10001) to CHARACT of ALLOCVALUESNUMNEW(Tables)
- DATE(e.g. 20081211) to VALUE_FROM of ALLOCVALUESNUMNEW(Tables).
But it does not work.
Of course, I executed BAPI_TRANSACTION_COMMIT after the FM done.
I found the value of VALUE_FROM is missing when debugging.
Thanks in advance.
Takeru MiyagawaHello,
you said :
- DATE(e.g. 20081211) to VALUE_FROM of ALLOCVALUESNUMNEW(Tables).
Data type of field VALUE_FROM is FLTP. How do you fill this field ? by MOVE ?
You should not use MOVE, you should use :
DATA:
wlv_date TYPE d,
wls_ALLOCVALUESNUMNEW TYPE BAPI1003_ALLOC_VALUES_NUM.
CALL FUNCTION 'CTCV_CONVERT_DATE_TO_FLOAT'
EXPORTING date = wlv_date
IMPORTING float = wls_ALLOCVALUESNUMNEW-VALUE_FROM.
- I found the value of VALUE_FROM is missing when debugging.
Can you show us your code ?
Cordialement,
Chaouki. -
Post material master idoc with class and characteristic values
Hi,
I need to post the class and characterstic values of material while posting the material using idoc of basic type matmas05 . Can anyone suggest me the fields and segment details to fill the class, class type and characteristic values in matmas05.
Note : the class and characteristic values are already created in the system, my purpose is to assign them to material while creating. so please give me the field and segment details in idoc basic type matmas05.
thanks
KiranI try to do the samething. I see the fields E1CUVAL : CU: Characteristic valuation in the structure of MATMAS05 but when I run the IDOC, these fields never appear even they exist for the material.
Did you find an answer to your question that can help me? -
How to fulfill the virtual characteristic value into report
Hi Experts,
I am working on one reporting requirement that needs to add reference date (virtual characteristic) field to report.
I have added reference date field to query and able to display the field in report.But I am not able to display reference date field runtime data in to report output.
Could someone please help me on this how to display this virtual characteristic values into report.where the runtime variable values are stored.How to fill the data etc.
Thanks in advance.
Best Regards,
Hari.
Edited by: k hari on Jan 29, 2008 6:22 AM
Edited by: k hari on Jan 29, 2008 6:24 AMYou can achieve this using Customer Exit or BADI. Check the folllowing link.
http://help.sap.com/saphelp_nw70/helpdata/en/ac/ef1f43daac9a448f0150a02e3a7aba/content.htm
If you are using BADI
You can create Virtual CHAR in BADI using transaction SE19
In this transaction you can create a new or display the existing BADI.
There you can see two tabs
The Attribute Tab we need to give the name of the Multiprovider on which the query with the virtual char is getting executed.
The Inerface Tab has three following sections. Need to write the ABAP code for all the three.
Define : Defind all the characteristics and virtual char that will be used for populating virtual char
Initialize : Initialize them
Compute : Here you will have to write the logic for populating the virtual char.
Once the logic is written then you can use this char in your query .
Hope this helps. -
What is meant by characteristic values
hi
what is meant by characteristic values
i have seen some tables like AUSP, these r for characteristic values.
can any one explain me thatHi,
Characteristic value variables are parameters for a query. You set these variables in the query definition, and they are filled with values when you execute the query. They act as placeholders for characteristic values, and are processed using any processing type.
In some cases, it is possible to use variables for texts, as well as for characteristic values.
If you specify a variable as a characteristic value, for example, you do not have to give a text for the characteristic value straight away. Instead, you are able to fill the text field dynamically, according to the characteristic that you used for the variable when you inserted the query into the workbook. Define a text variable with automatic replacement for this.
Use
You need to use a variable for characteristic values, if you want to specify one or more characteristic values that you do not want to be included permanently in the query definition. A characteristic value variable is the placeholder for either a single value, an interval, or a set of selection options. With selection options, it is possible to make several restrictions, meaning that you are able to combine single values and intervals (7 and 3 to 19 and 43, for example). Characteristic value variables for intervals and selection options are available with the processing type Manual entry / Proposed value and Customer Exit.
Thanks,
Khushbu. -
Conversion of Characteristic Values to SIDs is taking long time
Hi Experts,
Cube load is taking more than 7 hrs to complete for 6 million records. Max time is at Conversion of Characteristic Values to SIDs. Cube consists of 500 fields. Load is from DSO to Cube. DSO has 10 fileds with no SID flag check for activation. Remaining fields in the CUBE are pouplated looking in to other DSO's. Start and End routines are executing very fast. How to fasten Conversion of Characteristic Values to SIDs step. I need to load 15 million records daily as part of delta. any suggestions.
Thanks
SunilHi Sunil,
Go through the below link, it will be useful
http://aq33.com/business-warehouse/Articles-05269.html
Regards,
Marasa. -
Get batch characteristic value
Hi Experts,
I need to get the characteristic value of a batch if I provide with batch number and characteristic name as parameters.
Is there any standard function module for this?
Regards
Thanks in advance
PrathibDear,
BAPI_CLASS_SELECT_OBJECTS gets objects for a class. If you want to retrieve the characteristics, try using BAPI_CLASS_GET_CHARACTERISTICS.
or check FM CLFM_SELECT_AUSP
Regards,
R.Brahmankar -
Populate Batch characteristic values in create sales order BAPI
Can anybody help me in populating the batch characteristic values using BAPI_SALESORDER_CREATEFROMDAT2?
I have checked the related notes provided by SAP, like, 567348 but it will be great if someone can send some code snippet on this.Subramanian, Brad and Raja.
Thanks for your suggestions its were useful, with
these i can resolve my problem.
!!! Best Regards !!!
Raja
I used the se37 to test bapis, is more easy and fast !!
and you can save data like variant, and you can simulate the real execution without write any code abap,
and re-process the times that you need,
when you know what fields you need you write your abap code faster.
Thanks !!!
Message was edited by: Noemi Huerta -
Performance - Conversion of characteristic values to SID
Greetings:
Yesterday I load 556.000 record into an infocube.
No transformations of any kind. Direct assign for every infoobject. Very simple
It lasted 1 h 30m to complete the loading.
It started loading 7 datapackage of 50.000 records each.
I realized that 3 of those datapackage (#2, #4 and #7) lasted from 41:47min to 41:59min in the "Conversion of characteristic values to SID" task. The other 5 lasted ... seconds.
Any idea of that could be going on during this conversion?
I don't understant why some datapackages last so long and other don't.
Does anybody has any idea about this?
Thanks in regards.
GuillermoHi Daniel,
The SID generation is based upon the Dimension Table and Master data.
If you see the dimension table can be build with different types like:
one to many
many to one
many to many
one to one
So, if the dimension's for that datapacket data is many to many then it has to get all the relations and then it has to assign an SID.
If it is one to one then there will be no more work to be done by the system to assign the SID's
Hope you understood the back-end process.
With Regards,
Ravi Kanth. -
Conversion of Characteristic Values to SIDs. Load Very slow
Hi Experts,
We have a slow load issue when loading from a Write-Optimized DSO into an InfoCube. 8 millon recs in 10 hours.
We check the start, end, and rules routines and every is ok but for all the package the load was very slow in the Conversion of Characteristic Values to SIDs.
Can any help me with this?
Thanks a lot,
AlejandroHi,
It is because the SIDs Generation upon Activation flag is unchecked at DSO level .
One recommendation will be to switch on the property of the DSO SIDs Generation upon Activation flag .
Are there any secondary indexes also in DSO ?
You can try deleting them also during loading the data from DSO to cube .
Also load your master data first and activate it before loading it to cube.
Thanks, -
BI-IP: Change of characteristic value in ABAP EXIT planning function
Hi
I have created a planning function of the type EXIT with reference data without blocks. In method IF_RSPLFA_SRVTYPE_IMP_EXEC_REF~EXECUTE I am going to implement my code.
Now, one of the purposes is to update the VALIDTO of an existing record. Is it possible to modify the characteristic values directly in C_TH_DATA (thus allowing me to just update the date directly on the record) or can I only append records?
Cheers!
/KarstenHi Larse,
Yes you can change directly your value in a record withou appending a new one,but still it will create 2 records in the delta buffer ready to be save to the cube.
Reagrds,
Eitan.
Maybe you are looking for
-
Problem with installing Solution Center for a HP Photosmart Premium All-in-One Printer - C309g
Hi folks, I've searched many threads and found some directions to remedy this, tried them and have had no luck. I'm running Windows 7. All updates are current. When I bought the printer I installed the software (on Windows 7 OS) from the disc and e
-
Directv HD signal via component into a 24" iMac help?
Greetings, PC user here who is attempting to convert to Mac. I currently have a Dell 17" Media Monitor and an XPS tower. I have both an office and home theater in my basement. So I ran a component cable from my Directv reciever 30' or so into my Dell
-
I got a new MacBookPro a couple of weeks ago, and am unable to get Firefox to load GMail. I've tried lots of the suggestions on here, but none seem to work. I have to use Firefox in order to have access to class through Blackboard, but I can't get my
-
Hi, I have to write a Vendor classification report where I have to determine whether a vendor has been classified or not,by checking whether a 'class' has been assigned to the vendor master record. Which table will link the Vendor no(LIFNR) and the V
-
When i go into various apps, black boxes appear and then in apple dropdown thingy , theres two of everything eg log out and then log out again below it ? any1 know what this is ?