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 missing
THIS 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
Similar Messages
-
How to check a value for paramter query
I am passing a paramter value from my text box to my sql statement and I would like to check if the value is entered into a text box. If you have any idea please share it with me, i have been struggling with this for many days.Code below is how i try to check if the value is entered but I do not know how to check the value in the :VendorName
thanks
If Not txtVendorName.Text = "" Then
Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
End IfSorry guys english is not my first language and i will try to be clear and specific.
I have a search page where customeres can do searching either using a text box or two dropdowns i have on my page. they have the option of doing search either using a text box or dropdowns or both.Everything seems to work fine but if users does not leave the text box blank. but they leave the text box blank and do searching using the two dropdowns then the page comes up empty and i checked my query and i should get a value. Attacehed my code for you to look at it.
<pre>
Sub VendorSearch()
gvSearch.Visible = True
Dim MinPDate As String = drPur.SelectedItem.ToString
Dim MaxMDate As String = drPurM.SelectedItem.ToString
Dim liThisOne As ListItem
Dim strState As String = ""
For Each liThisOne In lstState.Items
If liThisOne.Selected Then
strState = strState & "'" & liThisOne.Value & "'" & ","
End If
Next
Dim Sql As String = " SELECT distinct V.VENDOR ""Vendor Id"",R.ADDRNUM,V.VNAMEL ""Vendor Name"",R.AADDR1,R.ACITY,R.VASST1, "
Sql = Sql & "R.ASTATE State,R.AZIPCODE, to_char(Max(P.DATEPUR),'YYYY/DD/MM') ""Plan Purchased Date"" , "
Sql = Sql & "TRIM (r.aaddr1 || decode(trim(r.aaddr2),null,'',' - ') || r.aaddr2) Address,"
Sql = Sql & " substr(decode(trim(r.vasst1),null, 'N/A','000/000-0000?','N/A','000/000-0000','N/A', r.vasst1),1,12) Fax, "
Sql = Sql & " substr(decode(trim(r.aphone),null, 'N/A','000/000-0000?','N/A', r.aphone),1,12)Phone "
Sql = Sql & "FROM VENDOR V,VENDADDR R, PLANHOLD P "
Sql = Sql & "WHERE V.VENDOR = R.VENDOR AND P.VENDOR = R.VENDOR "
Sql = Sql & " AND (P.DATEPUR >= TO_DATE('1999-01-01','YYYY-MM-DD')) "
Sql = Sql & "AND P.DATEPUR In ( select Max(P.DATEPUR) from PLANHOLD P where P.vendor = R.VENDOR) "
'If txtVendorName.Text <> "" Then
' Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
'End If
If (strState.Length > 0 And lstState.SelectedIndex <> 0) Then
strState = Left(strState, strState.Length - 1)
strState = "(" & strState & ")"
Sql = Sql & "AND R.ASTATE IN " & strState
End If
If (drPur.SelectedIndex <> 0 And drPurM.SelectedIndex <> 0) Then
Sql = Sql & " AND to_number(to_char(p.datepur, 'YYYY')) between " & "'" & MinPDate & "'" & " AND " & "'" & MaxMDate & "'"
End If
' Dim Para As String
' SqlDataSource1.SelectParameters.
If Not txtVendorName.Text = "" Then
Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
End If
'If Not IsDBNull(SqlDataSource1.SelectParameters(":VendorName")).val Then
' Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
'End If
Sql = Sql & " AND V.VOBSOLET = 'N' "
Sql = Sql & "GROUP BY V.VENDOR, R.ADDRNUM,V.VNAMEL,R.AADDR1,R.AADDR2,R.ACITY,R.ASTATE, R.AZIPCODE, R.APHONE, R.VASST1, P.DATEPUR "
Sql = Sql & "ORDER BY V.VENDOR "
Response.Write("Sql " & "<br/>" & Sql & "<hr/>")
SqlDataSource1.SelectCommand = Sql
End Sub
</pre> -
How to get the value assigned in dropdowmlistbox as well as radio button
Hi Everybody,
Please help me to find the solution for the following:
1. How to get the value assigned in dropdowmlistbox?
2. How to get the value assigned in radio button?
I am waiting for the answer and reply...
Thanks & Regards,
ShanthaKumar.KA.The radio button has a name attribute. That name attribute should be the same as the bean property. Then you just need a
<jsp:setProperty name="mybean" property="*"/>
and the bean's set method will be called for the value of that radio button.
so...
<input type="radio" name="doit"/>
class MyBean
public void setDoit( boolean yes )
//do whatever here
} -
How to check the value in Table CDPOS
Mostly I can't see the following fields value in the table CDPOS,
(1) CDPOS-VALUE_NEW
(2) CDPOS-VALUE_OLD
In fact, it should have values, so how to check the values, is there any special method needed?
Thanks and best regards.Ferry Lianto,
Thank you very much for your expertise.
It's helpful to get some contents via FM:CHANGEDOCUMENT_READ_POSITIONS, the problem is, to some kind of DELETION operation, the log in table CDPOS is very simple, I still don't know which contents were deleted even though I found records in table CDPOS.
Is there any other suggestions?
Thanks and best regards. -
Characterstic value assignment
hi sap experts,
can any body tell me how to define characteristic value assignments for materials. for ex. for material 'A' i want to add the details like color, length, shape etc
rewarding points assigned
regards
ravikumarDear ravi
Go through the link
<a href="http://help.sap.com/saphelp_46c/helpdata/en/92/58c4a5417011d189ec0000e81ddfac/frameset.htm">Value Assignment Attribute for Characteristics</a>
Thanks
G. Lakshmipathi -
How to check plan line items for plan cost at network activity level?
Dear all,
How to check plan line items for plan cost at network activity level? The plan cost is done in network activity in CJ20N.
I am not able to check using CJI4 or CJI9 report.
Kindly advise.
Thanks and regards,
JessieHi Jess,
Have you checked the navigation part which is being displayed on left hand side of report S_ALR_87013565 and S_ALR_87013533.? There you have option to check transaction currency and object currency when you double click on it.
In case if it is not being displayed under navigation. Then you can bring them on from transaction code CJE2. For eg: Report group for S_ALR_87013533 is 12KST1C. Double click on it and it will open up to do changes in report layout and many more. There you also have options to bring on transaction currency too. Similarly, you can check for other report groups as well just by checking the report description.
But I am not sure if suits your requirements. Wait for other experts to comment on this.
Regards,
Amit -
How to check a pdf uploaded for press in a website automatically ??
how to check a pdf uploaded for press in a website automatically ??
i am making a new website for a printer.. his client upload pdf online directly in his website, we want that in the case that the pdf is not
as the printer need it for printing , the site automaticly after checking the pdf profile uploaded open a window and write what is wrong with this pdf
and if possible fix what he can fix automaticly as pitstop software is doing offline.
PLEASE YOUR HELP
thank you in advanceAcrobat isn't available with a server license. You might like to look into PitStop Server.
-
How to check the Statistics generated for a table through DBMS_STATS.
Hi,
How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
Please let me know.
Thanks !
Regards,
RajasekharRajasekhar wrote:
Hi,
How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
Please let me know.
Thanks !
Regards,
Rajasekharquery ALL_TABLES -
How to check the tran code for specific activity.
Hello friends ,
could you please let me know how to check the tran code for specific activity . AS in table , i can check , what transaction does what ? But now i need to check the transaction for specific activity .
E.g , For Administrator workbench , there is transcation like RSA1 .
thanks in advance
RegardsHi,
try the TSTC table with SE16.
Hope it helps,
MG -
Characterstic value assignment table
Hi All
Could you please let me know in which table can i find characterstic value assignment data?
Thanks in advance
Nagesh.paruchuriHi,
Table:IBSYMBOL IB: Characteristic Value Assignment -
How to check the privileges assigned to a role
Hi All,
Can you please let me know how to check the privileges assigned to a role in Oracle?
When I query the dba_tab_privs it says no rows returned.
Please help..
Regards,
Danuser9212851 wrote:
Can you please let me know how to check the privileges assigned to a role in Oracle?
When I query the dba_tab_privs it says no rows returned.
When you've checked the manuals and identified the views suggested by other posters you will find that it's still not a trivial problem since a role may be granted to another role - which means you need to do some recursion to uncover all the privileges available to a role.
Pete Finnigan - who specialises in Oracle security - published some appropriate scipts a few years ago; they are probably still relevant. Here's a starting link: http://www.petefinnigan.com/weblog/archives/00001243.htm
Regards
Jonathan Lewis -
How to find classtype and class for a material.
Hi,
How to find classtype and class for a material.
which table contains this data.
Thanks
KiranHi Kiran,
Check below sample code. Use this BAPI which will give all info about the class for the material.
DATA: l_objectkey_imp TYPE bapi1003_key-object
VALUE IS INITIAL.
CONSTANTS: lc_objecttable_imp TYPE bapi1003_key-objecttable
VALUE 'MARA',
lc_classtype_imp TYPE bapi1003_key-classtype
VALUE '001',
lc_freight_class TYPE bapi1003_alloc_list-classnum
VALUE 'FREIGHT_CLASS',
lc_e TYPE bapiret2-type VALUE 'E',
lc_p(1) TYPE c VALUE 'P',
lc_m(1) TYPE c VALUE 'M'.
SORT i_deliverydata BY vbeln posnr matnr.
CLEAR wa_deliverydata.
LOOP AT i_deliverydata INTO wa_deliverydata.
REFRESH: i_alloclist[],
i_return[].
CLEAR: l_objectkey_imp.
l_objectkey_imp = wa_deliverydata-matnr.
*Get classes and characteristics
CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
EXPORTING
objectkey_imp = l_objectkey_imp
objecttable_imp = lc_objecttable_imp
classtype_imp = lc_classtype_imp
* READ_VALUATIONS =
keydate = sy-datum
language = sy-langu
TABLES
alloclist = i_alloclist
* ALLOCVALUESCHAR =
* ALLOCVALUESCURR =
* ALLOCVALUESNUM =
return = i_return
Thanks,
Vinod. -
GL Account assigned for a Material
Dear All,
Please let me know how can we find the GL Account assigned for a Material.
I am having some 10 number of materials. I need to find the GL Account which is assigned for the materials.
Regards,
Karthik
Edited by: Kartyic on Dec 19, 2011 5:27 AMHi,
G/L Account assigned to a material is nothing but the G/L provided to the valuation class which is assigned to the material in Accounting- view of the material master -MM01.And this assignment of G/L to the valuation class is made in tcode OBYC.
All the same kind of material types contain same valuation class.
Thanks
Edited by: Madhavi.n on Dec 19, 2011 10:00 AM -
How to update Unit Of Measure for a material in BAPI_SALESORDER_CHANGE
Hi All
How to update Unit Of Measure for a material in BAPI_SALESORDER_CHANGEhi,
in BAPISDITM structure, which is their in orderitemin
update updateflag of BAPISDITMX, which is their in orderiteminx for the same field with update flag = 'U'
kindly try with <b>T_UNIT_ISO</b>
or
<b>TARGET_QU</b>
comeback with u r comment
regards,
pavan
Message was edited by:
pavan kumar pisipati -
How to Maintain two different prices for same material in different qty?
Dear all,
How to maintain two different prices for same material in different batch quantities in purchase order(ie.,info record)?
(Vendor is supplying quantities in 2 different batches & also in different prices)
Expecting valuable reply.
JeyakanthanIn a PO you can create 2 items, and each item can be maintained with a different price in the conditions.
In info record it is not possible to have different prices for the same period, except for scales.
so if you have a price of e.g. 2 USD for 1000 kg and 1,90 USD for 2000 kg then you can maintain this in scales, but you still have to have 2 items in the PO so that each one can individually find its price.
Alternative you can create contracts (as well with more than one item) to reflect the different prices and batches.
Maybe you are looking for
-
Since I started using Windows 8, LIghtroom will only print 8x11.5 size paper, even when set for4x6 photo. What to do? <moved by mod from downloading,installing,setting up - kglad>
-
i have save an MS Project Plan as an Excel Workbook, the problem is that the outlining of the project plan didn't come across. the Task name did not indented at all. I can see the outline level .so i assume that as first , second and third in outlin
-
Front Row unusable on external Displays
Hello, I decided to install Leopard this morning but I have finally decided to go back to my Tiger disk clone and wait for 10.5.1. Leopard is full of problems.. but this message is regarding Front Row. Basically!! It's totally unusable with external
-
Time Machine has no more space
I just received a notice that the hard drive I am using for my Time Machine backup has no more room. I am wondering how I go about making more room on the hard disc. I don't really want to go out an get a new one. If this isn't an option, how do I
-
Concurrent invocations to an undefined number of partner links
Hi everybody!, I'm getting introduced to BPEL and I have a problem when describing my first process: The problem I have is that I need something (structure, container, etc.) that allows me to make undefined (n) concurrent invocations to an undefined