How to infer values in characteristics of material
Hi Experts
I am trying to infer a characteristic (manufacturer name) based on another characterisitc (manufacturer number) for material master. I have done the following steps:
-created the characteristic (single value, Additional Value ticked, Not Ready for Input ticked)
-created the function (with manufacturer number as input parameter)
-created the function module for the above function
-created the dependency (type Procedure)
-assigned my dependency to the characteristics
-added the charateristics to a class
All these above objects are in Release/ active status.
In the dependency editor, I have put the following code to call my function/ function module Z_MFRNR_NAME
FUNCTION Z_MFRNR_NAME
(ZZ_MFRNR = $ROOT.ZZ_MFRNR,
ZZ_MFRNR_NAME = $SELF.ZZ_MFRNR_NAME).
In the function module, I am using CUOV_GET_FUNCTION_ARGUMENT (to get manufacturer number from table QUERY) and CUOV_SET_FUNCTION_ARGUMENT (to set manufacturer name in table MATCH).
The problem is that when I assign my class to a material in MM01/MM02, the function module is not called (I have a BREAK-POINT) hence the manufacturer name is not populated in the characteristic.
If I change the characteristic manufacturer name to 'Ready for Input' and try to enter a value manually, I hit my break-point but the manufacturer name returned by the function module is still not populated on the characteristic and I get a message 'Inconsistent values inferred for characteristic Mfr Name'. I checked the details of this message and it tells me that the value I entered manually and the value returned by the function module are incompatible with each other. This indicates that the function module is working fine as it is returning the manufacturer name.
Can someone please explain:
1. Why is the function module not called in the first place when the class is assigned to a material ie when there is no manuall entry to the characterirstic?
2. When there is manual entry and the function module is called, why doesnt the characteristic pick the value retured by the function module?
Am I missing something here.
Thanks in advance
Farooq
Hi,
Found the problem, I was assigning my dependency to the wrong characteristic. It should have been assigned to the Manufacturer number (inferring characteristic) rather than the Manufacturer name (inferred characteristic).
Farooq
Similar Messages
-
How to restrict values of characteristics in Bex
Hi All,
I want to restrict values for a particular characteristics starting from ZABC* in Bex without writing CMOD ABAP code
For Ex
ZABC123
12656
ZABC234
So in the report o/p shd be
ZABC123
ZABC234Hi Roshan,
I don't understand well your issue, but I will try to answer to you with two possible solutions anyway.
You can use the variable not in the characteristic filter but in each index. For example, if you have two indexes to be displayed in your column structure, try to filter them with the characteristic value variable. In this case you can probably see all of the characteristic values but for only ones that start from ZABC* you can see KFs values.
According to an another my supposition, you can use an exception (there is a dedicated tab when you restrict your characteristic). You can find more informations reading the following link:
http://help.sap.com/SAPhelp_nw70/helpdata/en/43/21b4cd14cd06f4e10000000a422035/content.htm
Hope it helps.
Best regards.
Simone. -
Hi ! How is an infocube created in DP? How are the values populated ?
Hi !
Thank you so much for the reply!
Could you please explain:
1) How is an infocube created in Demand Planning?
2) How to store values for Characteristics and Key figures ?Hi,
Basically Info cube is created in to APO-BW..If you want to store the data of planning area in to Info Cube..then you have to create whole data extraction process..see the steps below..
1. Create data source under the planning area. T-code: /n/sapapo/msdp_admin..Click on planning area. Go to extras select data extraction tool. Create data source, test it & replicate it in to APO BW..
2. Go to RSA1..create Infopackage under the data source & enter appropriate planninf version in selection criteria.
3. Create Application component in Info Source modelling..Then create info source under the application by coping data source..so automatcially all the info objects will come in to info source.
4. Create transformtion between IS & DS.
5. Create Info Area in infoprovider modelling..Create Info cube, in that you need to add all the info objects (Char, Key figure, Time Char) same like info source.
6. Create transformation between IC & IS.
7. Create data transfer process.
8. Now you can able to extract data from planning area.
Regards
Sujay -
How to Check Characterstic Values assigned for a material
Hi ,
My requirement is , to check each and every material entered in the selection screen and characterstic values assigned to this,
I dont need characterstic values for a material, i have to check whether characterstic values assigned or not , if not i have to give a message..
I used CLAF_CLASSIFICATION_OF_OBJECTS FM for getting charactersic values
it is giving NO classification found , but for tghat material classification is existing subsequently characterstic values are also there, i passed material no with leading zeros also.
i used WMCL_MAT_READ_CHAR_VALUES FM also , but it is giving No charcterstic values found for that Material but characterstic values are assigned for that Material..
Could u please find out ,where i am missingTHIS MATERIAL HAS CLASSIFICATION VIEW AND CHARACTERSTIC VALUES ALSO MAINTAINED
DATA : MATNO TYPE AUSP-OBJEK,
L TYPE I,
T_CLASS TYPE STANDARD TABLE OF SCLASS ,
T_OBJECTDATA TYPE STANDARD TABLE OF CLOBJDAT.
MATNO ='631165'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = MATNO
IMPORTING
OUTPUT = MATNO
"use this function moduel...
*Retrieve Batch class , characteristic name and values for Material
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
class = 'ZCA2535'
classtype = '023'
features = 'X'
language = 'E'
object = MATNO "pass material number with leading zeros..
objecttable = 'MARA'
TABLES
t_class = t_class
t_objectdata = t_objectdata
EXCEPTIONS
no_classification = 1
no_classtypes = 2
invalid_class_type = 3
OTHERS = 4.
IF sy-subrc = 0.
ENDIF.
BUT IT IS GIVING NO CLASSIFICATION FOUND -
BDC/BAPI Assign characteristics to material using CL24n
Hi Gurus
My requirement is :
We have already assigned characteristics to the material class, Now we need to assign characteristics values to materials.
Assign characteristics to material using cl24n(Class name & Classtype) > only new assignments > material.
What should I go for ? BDC or BAPI.
Please suggest me how to proceed with BAPI as I personally feel BAPI is better than BDC.
Thanks in Advance
DineshBAPI/BDC for assigning characteristic to material
-
In import process,how excise base value is calculated in MIGO
Hi expert's,
In import process,how excise base value is calculated in MIGO,with what referance values get add to base value.
waiting for your valuable response,
Regards
V.rajhi,
we Tried with your following reply ! but still not finding exact value in base value .
(MATERIAL PRICE* QTY IN MIGO * EXCHANGE RATE)
thanks & regards
V.Raj -
How to get classification for a given material and material type in MM
Hello Friends,
One of my developer colleagues is struggling to find out : how to get classification for a given material and material type in MM?
He is looking for probable table and table fields to Select from.
I would appreciate seriously any help in this regard.
~Yours SincerelyHi
Below given the flow and table details for a given class and class type.
- Table KLAH --> This contains the "Internal class no" [ for the given Class & Class type ]
- Table KSML --> This contains the " internal character numbers " [ nothing but characteristics attached to the class ] , which can be fetched with the above fetched internal class no
- Table AUSP --> This table contains the objects ( material ) attached to the internal characters of that class
- Table CABNT --> This table contains the "Description" for the internal character numbers.
- award points if this is ok -
How to change the price of a material in PO
Hi,
Please tell me how to change the price of a material while raising a PO,for example i am raising a PO and in conditions the price is 100 and i wanna update it to 110.Please help meHI,
If you are using condion record, you can change the value for the required condition type so that it will flow to PO. IF you are not using that, you can change the price at the line item level in PO itself.
Regards
Ram -
How to remove # value from report
Hi All,
There is report in PM module, when we execute the report Iam getting # value, where ever values are 00:00:00 for the infoobject Malfunction Start Time and End Time,When I checked the data at cube level I can see 00:00:00 but not in report.So how do I get 00:00:00 in report.Please help.
RegardsHi,
1. if you will no zeros in reports you can suppress them. additional you will not see any lines with zero in report
2. you do not need the display in the value list you can type in # directly in direct input box
Here is some additional info:
http://help.sap.com/saphelp_nw04s/helpdata/en/f1/0a5673e09411d2acb90000e829fbfe/frameset.htm
Re: How to hide a row characteristics in query if this char. value is # ?
Regards
Andreas -
How to pass value to select-option parameter using SET PARAMETER Command
Hi,
Am passing values to selection-screen fields in report RV13A004 ( used in VK11, VK12 and VK13). using below statement but material number is select-option in this report. am able to pass MATERIAL FROM using SET PARAMETER ID, can i know how to pass values MATERIAL TO range in select-options fields using SET PARAMETER Command ??
Passing values to parameter id
set parameter id 'VKS' field kschl.
set parameter id 'VKO' field vkorg.
set parameter id 'VTW' field vtweg.
set parameter id 'KDA' field erdat.
set parameter id 'MAT' field matnr_from.
Change condition price.
call transaction 'VK12' and skip first screen.
Thanks in advance.
Regards,
Balamurugan.Hi,
instead of using set parameters and dden call transaction use this..........
submit RV13A004 WITH SELECTION-TABLE rspar
Effect
If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
SELNAME (length 8),
KIND (length 1),
SIGN (length 1),
OPTION (length 2),
LOW (length 45),
HIGH (length 45).
To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
Notes
In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
Cheers
Will. -
How to create value base permits ?
Hi Every one,
How to create value base permits
For Exapmle
If the cost of order is blow 50,000 then this permit will be aproved by person X
and when cost of order increases above 50,000 then permit will be aproved by person Y
I hope I m clear in my question
looking forward for responseHi,
You can use class characteristics concept for the permit with value There is class type 049 for permit/licenece in the system.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/b8/6cc5371e5db25fe10000009b38f8cf/frameset.htm
Ramesh -
Changing / Updating the Characteristics of Material in Inquiry Document
Hello
My requirement is to update the characteristics of the material of Inquiry line item (VA11/VA12/VA13). I searched the forum but the the only answer i found was using BAPI - BAPI_SALESORDER_CHANGE. But this is not updating the Inquiry Document even after using the BAPI_TRANSACTION_COMMIT.
Please can anyone let me know how I can update the characteristics in the Inquiry Document?check business object 2030 in SWO1
You will find
BAPI_CUSTOMERINQUIRY_CHANGE
BAPI_INQUIRY_CREATEFROMDATA
BAPI_INQUIRY_CREATEFROMDATA2 -
How to infer the output of PDETextGetBBox
Hello,
The description for the PDETextGetBBox function as given by the Adobe livedocs is as below.
1. I have a query on the 4th parameter of the below function which as given in description gives the bounding box of the text run/character. In the case of text run, if the text run is over multiple lines, does the bounding box(ASFixedRectP - containing four co-ordinates) contains the
Top as, the top edge location of the first line and
Bottom as, the bottom edge location of the last line ?
If not how to infer from these values.
void PDETextGetBBox(INPDEText pdeText, INASUns32 flags, INASInt32 index, OUTASFixedRectP bboxP)
Gets the bounding box of a character or a text run
2. The Top, bottom, left, right limits output by the above function is huge and what does that imply, I mean any units for that and also conversion equations to some known unit. Does these values indicate some relative positioning of the text-run containing box to some fixed point?
Regards,
ExcelHello,
1. Is there any way by which I can Infer next line by using the boundingrectange values as PDF doesnt have "\r\n" for next line?
2. In the equation
void PDETextGetBBox(INPDEText pdeText, INASUns32 flags, INASInt32 index, OUTASFixedRect bboxP)
The ASFIxedRectP contains 4 elements which are ASFixed values. I have also seen some conversion function ASFixedToFloat which converts the ASFixed values to some float value. What to infer from this float value. Is it like Some Float value = One tab space or anything like that.
Regards,
Excel -
How to bound the reources to a material?
How to bound the reources to a material?
For example,
Material A -> Route A-> Operation A (ResourceType A) - Operation B (ResourceType B)
Material B -> Route B-> Operation B (ResourceType B) - Operation C (ResourceType C)
It means in Operation B, we needs the resource with resource type B
Resource B1 with ResourceTypeB
Resource B2 with ResourceTypeB
Basically, both Resource B1 and B2 can support Operation B.
Can I config to let
Material A only can choose Resource B1 in Operation B
Material B only can choose Resource B2 in Operation B
To make resource bound to material.
Thanks!Hi Ivan,
Please consider it as just an idea, because it would be very tricky to configure (see below why) and it may not meet your requirements.
You may try the following solution:
1. Create an optional custom field for the material and indicate resource or resources where the material can only be processed.
2. Implement a PRESTART activity hook CheckResource to verify that the material can be processed on the resource (check the custom field value against resource).
3. Assign activity hook to the PRESTART hook point for every resource where you need this validation.
Why the configuration is tricky?
1. Assume you have materials M1 and M2 set up to be processed only on resource R1 and not R2.
Both resources R1 and R2 have the CheckResource activity hook enabled. The custom field for materials M1 and M2 is set to "R1". In addition both materials can be processed on some other resources R3 and R4. The CheckResource activity hook is not enabled for these resources... yet
2. You've got a request to configure material M1 to be processed on resources R1 and R3, but not R2. You set the custom field for M1 to "R1,R3" and assign the CheckResource activity hook to R3... Guess what? Now you cannot process material M2 on resource R3, because activity hook is enabled but R3 is not set in the custom field for M2. -
Please enter valid value for characteristics
Hi,
One of our user got this error when opening a query Please enter valid value for characteristics.
How do I fix this since I couldn't see any errors in SU53 and authourization logs.
thanksHi Bhat,
Check SAP notes : 1077144
Thanks,
Vijay.
Maybe you are looking for
-
Issue with a complex web service models
Hello all, I have a web service model that has been imported and the strutucture for inbound parameters are complex. For the inbound parameters in the mode I have an object with a number of feilds as well a another object in it that is an array. Ex.
-
Phone frozen on plug into itunes screen after trying to update
I have an iphone 5 and I just updated my itunes to update my phone for iOS7. There was a message that said it could'nt update and then my phone became frozen on the screen that tells me to plug into itunes. I am plugged into itunes but my computer/ph
-
In Built Media Storage Problems
Hi there, Just now out of the blue i received a message "uncaught exception net.rim.vm.Stack Overflow Error" and have now lost everything on my inbuilt media storage. I took my battery out and received a message "built in media storage not accessibl
-
MacBook Pro 13" (2011) will not wake up after it goes to sleep.
My new MacBook Pro goes to sleep like normal and then when I try to turn it back on the screen just stays black. I have turned off the put hard drive to sleep button and it is still doing it.
-
How does playing track from a server mounted drive look to IT department
How does playing a file in iTunes that resides on a mounted server drive look to IT department. I'd like to play some tracks I saved on our Xserve. It is our (Marketing) server and I am the Admin, but I was curious how the traffic looks to IT. This s