How to read classification
Hi developers,
I need to read the classification item of a material.
How can I do that?
Thanks,
Simone
Hi Simone,
You can find out from table CABN and AUSP.
Below code snippet may help you..
*--- Build internal table IT_AUSP based on Characteristic Name,
*--- Internal characteristic value, Indicator(Class/Object) and Class Type
IF it_objek[] IS NOT INITIAL.
SELECT SINGLE atinn "Internal characteristic
FROM cabn
INTO v_atinn
WHERE atnam = 'Z_001_CLASS'. "Your class name of the material
IF sy-subrc IS INITIAL.
SORT it_objek BY objek.
DELETE ADJACENT DUPLICATES FROM it_objek.
SELECT objek "Key of object to be classified
atwrt "Characteristic Value
FROM ausp
INTO TABLE it_ausp
FOR ALL ENTRIES IN it_objek
WHERE objek = it_objek-objek
AND atinn = v_atinn
AND mafid = 'O' "Indicator: Object/Class
AND klart = '001'. "Class Type
ENDIF.
ENDIF.
Best Regards,
Sayak
Similar Messages
-
How to read classification value from batch class
Hi Gurus,
In our material master we maintain Batch class (023) from all RM where 2 characteristics value is very important one is std.moisture and another is actual moisture.Now Std moisture value is fixed and we maintain this value in material master.Actual moisture is variable batchwise and thats why we maintain it by using MSC2N.Here the problem is the std moisture is not coming in classification data autometically from Material Master but we already maintain it.It shows in Material Data tab.But I need that it will come in Classification data tab autometically as we use this in report.I use VB_BATCH_VALUES_FOR_OUTPUT Function for classification value fetching from material and batch.Now as this value is not coming automatically coming user again put this data.I want to know how can it come autometically?If it is not possible please tell me how I can get this data from material and batch as the above function is not working.
Please help me out.
Regards
Nirmalcheck your customizing in IMG > Logistics general > Batch Management > Batch Valuation > Valuation for Goods Movement in Inventory Management > Activate Batch Classification for Goods Movements in IM
-
How to read inspection method classification data?
Hi all,
Can anyone let me know about how to read the Inspection Method Classification data.The transaction code for Inspection Method Classification is QS34.
Thanks,
BalajiHello gopi,
i know that but I am asking whether there is any FM to read just like for Material classification,Batch classification etc we have FM's.
Thanks,
Balaji -
How to add classification view using BAPI_MATERIAL_SAVEDATA
Hi,
Please any one let me know how to add classification view using BAPI_MATERIAL_SAVEDATA to the material master.
Thanks,
shekarWe use this bapi on a regular basis as well as classification of materials. We have success doing this in 2 steps. First step is to save the material using BAPI_MATERIAL_SAVEDATA, second step is to save classification using BAPI_OBJCL_CHANGE (this can be used for both create and change) Also look at Function Group CLBPA . there are several bapi's in that group dealing with object classification, including the one I mentioned..
-
Want to find out how a batch classification is used
Hello
I have previously sent out a message and the idea given was not very helpful.
Anyway, this is my question:
I have found a class and its characteristic which was setup in the system and I would like to know how this classification` is being use in the system.
For example, I would like to know which process (i.e. during goods receipt, during sales order creation, during production, during warehouse) is using this classification to perform their transaction.
Do you know how to find out this kind of information in the SAP system?
Thanks
TuffDo you want to know how the batch classification is used in general in SAP or how it is used in the system where you found it?
In the latter case make an interview with the users, any process that has to do with stock can make use of the batch classification
In general is classification exact what the word "classification" means. You describe something in more detail in an organized way. Classification is a modification free way to add own "fields" to standard objects, the user can immediately search in classification without an extra effort to develop a search help.
The batch classification can be used in a batch determination to to enable SAP to automatically search for batches with certain characteristics.and assign them to documents like sales order, delivery, goods movements, transfer orders, and production/process orders. -
How to create classification view for material?
HI All,
How to create classification view for material? is there any function module?
pls let me know.
Bandicheck the standard include "LCLBPAU14" this is using the following F.M
call function 'BAPI_OBJCL_CREATE'
exporting
objectkeynew = l_object
objecttablenew = l_objecttable
classnumnew = classnum_new
classtypenew = l_classtype
status = status
standardclass = standardclass
changenumber = changenumber
keydate = keydate
no_default_values = no_default_values
importing
classif_status = classif_status
tables
allocvaluesnum = allocvaluesnum
allocvalueschar = allocvalueschar
allocvaluescurr = allocvaluescurr
return = return. -
How to read Inspection Method classificatino data
Hi all,
Can anyone let me know about how to read the Inspection Method Classification data.The transaction code for Inspection Method Classification is QS34.
Thanks,
BalajiHello gopi,
i know that but I am asking whether there is any FM to read just like for Material classification,Batch classification etc we have FM's.
Thanks,
Balaji -
How to read the content in one node of XML in Java? Pls help
My dear brothers,
I am a newbie of XML, I have a exercise which is creating a Tree View from XML file. But the trouble is I do not know how to read the content in one node of XML file. I decide to use the algorithm as following:
1. Create a GUI form which gives the ability for user to choose a XML file (ok)
2. Load XML and return the file (ok)
3. Read the file from node to node to create the node in Tree View (?!)
Please help me, and if you are enough kind, please give me an small example to easy understand. Thanks in advance.
Hoang Yen BinhI hope this one helps you.
<ABC Type="ProductBased" ProdName="One" Location="India">
<CEO>Raj</CEO>
<Finance>Vikram</Finance>
<HR>Karthik</HR>
<Technical>Satish</Technical>
</ABC>
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Attr;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import org.w3c.dom.DOMException;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import java.io.File;
import java.io.IOException;
public class XmlReading {
Document doc;
Element element;
public static void main(String[] args) throws Exception{
XmlReading xr = new XmlReading();
xr.getXmlParser(args);
public void getXmlParser(String[] args) {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
if(args.length != 1) {
System.err.println("Argument Required");
try {
DocumentBuilder builder = factory.newDocumentBuilder();
doc = builder.parse(new File(args[0]));
}catch(ParserConfigurationException e1) {
}catch(SAXException e2) {
}catch(IOException e3) {
getAttributes();
public void getAttributes() {
// Retrive the entire Document from the Dom Tree
element = doc.getDocumentElement();
// System.out.println(element);
NamedNodeMap attrs = element.getAttributes();
// Get number of attributes in the element
int numAttrs = attrs.getLength();
// Process each attribute
for (int i=0; i<numAttrs; i++) {
Node node = attrs.item(i);
// Get attribute name and value
String attrName = node.getNodeName();
String attrValue = node.getNodeValue();
System.out.println(attrName + ": " + attrValue);
String s1 = element.getTagName();
System.out.println(s1);
// To get all the elements in a DOM Tree
NodeList nl1 = element.getElementsByTagName("*");
int i2 = nl1.getLength();
System.out.println(i2);
for(int i=0; i<i2; i++) {
System.out.println(nl1.item(i) + "\n");
} -
How can Reader v 9 be installed to a volume other than c:?
How can Reader v >9 be installed to a volume other than c:? such as g:?
and is there a distrubution executable available so Reader can be installed on a machine that is not connected to the Internet?download the .exe from the ftp service and use it to target the install directory:
ergo
ftp://ftp.adobe.com/pub/adobe/reader/
and pick OS and version and language thus:
ftp://ftp.adobe.com/pub/adobe/reader/win/9.x/9.5.0/en_US/AdbeRdr950_en_US.exe -
How to read BLOB column from a table in SQL or PL/SQL
I have table which is having one BLOB data type column . Ihave inserted few rows in that table . Now i want to see wheather BLOB column has been inserted properly or not . How to read that column through SQL or PL/SQL.
Can anyone help me to do this.You can only manipulate LOBs in PL/SQL because you have to use the DBMS_LOB package.
Check out the Oracle Developer's Guide -
How to read excel file in document library and store excel content in sql table
Hello,
Can anyone help me how to read the excel file present in document library and store the content inside excel into sql table?
Please let me know the ways to acheive this. Feel free to give your suggestions.
Thanks,
Cool DeveloperHi!
this code i have written becuase i donot find any soltions on net for this , u can try with this . :)
System.Data.OleDb.
OleDbConnection ExcelConnection = null;
FileMode fileMode;
string filePath = ConfigurationManager.AppSettings["TempLoaction"] + "\\" + fileName;
using (SPSite _site = new SPSite(SPContext.Current.Web.Url))
using (SPWeb _web = _site.OpenWeb())
string docLibrary = ConfigurationManager.AppSettings["DocumentLibrary"];
SPFile _file = _web.GetFile("/" + docLibrary + "/" + fileName);
fileMode =
FileMode.Create;
byte[] byteArray = _file.OpenBinary();
MemoryStream dataStream = new MemoryStream(byteArray);
Stream stream = dataStream;
using (FileStream fs = File.Open(filePath, fileMode))
byte[] buffer = new byte[4096];
int bytesRead;
while ((bytesRead = stream.Read(buffer, 0, buffer.Length)) != 0)
fs.Write(buffer, 0, bytesRead);
fs.Close();
//Create the Connection String
try
string ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;
Data Source ='"
+ filePath + "'; Extended Properties=Excel 5.0";
//Create the connection
ExcelConnection =
new System.Data.OleDb.OleDbConnection(ConnectionString);
//create a string for the query
string ExcelQuery;
//Sheet1 is the sheet name
//create the query:
//read columns from the Excel file
ExcelQuery =
"Select * from [Sheet1$]"; // from Sheet1";
//use "Select * ... " to select the entire sheet
//create the command
System.Data.OleDb.
OleDbCommand ExcelCommand = new System.Data.OleDb.OleDbCommand(ExcelQuery, ExcelConnection);
//Open the connection
ExcelConnection.Open();
//Create a reader
System.Data.OleDb.
OleDbDataReader ExcelReader;
ExcelReader = ExcelCommand.ExecuteReader();
//For each row after the first
while (ExcelReader.Read())
thanks,
kshitij -
How to read device report for HP Deskjet 1510
Hi HP,
I can see from the software provided with this printer there is this option to print the device reports.
Please assist on how to read this report because it consist of unknown coding and stuff.
I would appreciate if your side can help me on this coz I assume that we can track our usage through this report.
If this is not the purpose, perhaps you may suggest any other way to get an understandable usage reports?
Regards,
Nadiya
This question was solved.
View Solution.Hello Nadiya,
Welcome to the forums
I understand you are looking for a usage report. The printer will print a test page and you can see the page count on that page, along with the printer information, such as your serial number, etc. If there is anything else you may mean by "usage" please let me know and I will do my best to help.
Click this link: Fixing Ink Streaks, Faded Prints, and Other Common Print Quality Problems
In the guide, look under "Solution six: Print and evaluate a test page and troubleshoot defects" and print a test page.
Take care,
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution! -
How to read Excel file in flex
Hi,
I am new to Adobe flex and i dont know how to read Excel in flex and i need coding for that. So anybody help me...
thanks in advance...Hi
You can read and parse XLS files (only works with xls-files) with urlloader and a ZIP-lib that can read zip-files.
public function loadXLS(url:String):void
var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
urlLoader.addEventListener(Event.COMPLETE, onLoadComplete);
urlLoader.load(new URLRequest(url));
private function onLoadComplete(even:Event):void
urlLoader.removeEventListener(Event.COMPLETE, onLoadComplete);
model.sheetsDict = new Dictionary();
var zipFile:ZipFile = new ZipFile(urlLoader.data);
for(var i:int = 0; i < zipFile.entries.length; i++)
var entry:ZipEntry = zipFile.entries[i];
var data:ByteArray = zipFile.getInput(entry);
if(useFile(entry.name, "/sheet([^$]+)"))
model.sheetsDict[entry.name.split("xl/")[1]] = new XML(data.toString());
else if( useFile(entry.name, "/sharedStrings.xml") )
model.sharedStrings = new XML(data.toString());
else if( useFile(entry.name, "/workbook.xml$") )
model.workbook = new XML(data.toString());
else if( useFile(entry.name, "/workbook.xml.rels") )
model.rels = new XML(data.toString());
trace(model.sharedStrings)
to read the xml properly you have to use namespaces in the reader-class
namespace ns1 = "http://schemas.openxmlformats.org/spreadsheetml/2006/main";
use namespace ns1;
namespace ns2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
use namespace ns2;
namespace ns3 = "http://schemas.openxmlformats.org/markup-compatibility/2006";
use namespace ns3;
namespace ns4 = "urn:schemas-microsoft-com:mac:vml";
use namespace ns4;
namespace ns5 = "http://schemas.openxmlformats.org/package/2006/relationships";
use namespace ns5;
//Olof -
How to read the data in excel sheet
Dear sir,
How to read the data in excel sheet when i recieve a data serial communication... ie i have store a data in excel such that
Cell A Cell B
A Apple
B Ball
C Cat
D Doll
when i recieve A from serial communication i have to display Apple, and when i recieve B i have to display Ball and so on..Hi,
I would recommend you to have a look at the VI attached. It makes use of a VI named 'Read from Spreadsheet' to read the row and column data from the tab delimited excel file. The read data is then searched for the Alphabet specified and finally returns you the corresponding string. The test file used to validate the operation of the VI is also attached.
Trust this would help you solve the issue.
Regards,
Sagar G Yadav | Application Engineer | National Instruments
Attachments:
read_from_excel.vi 10 KB
Book1.txt 1 KB -
How to read all values of a queue
Hi All,
In Message mapping I am checking condition for field value based on incoming value.
In test cases i can see the second or third occurence is getting supressed and first value fails the condition and mapping node not created.
I would like to know how to read multiple values from queue and check condition for each value and if correct value present condition should pass.
I tried all possible context changes but no luck.
Any ideas how to read all values coming .
Thanks.<?xml version="1.0" encoding="UTF-8"?>
<msg version="" dbName="">
<rowOp isLast="" cmitLSN="" cmitTime="" authID="" correlationID="" planName="">
<updateRow subName="" srcOwner="" srcName="" intentSEQ="" rowNum="" hasLOBCols="">
<col name="END_RSN_CDE" isKey="852369" invalidData="" rawData="">
<smallint>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</smallint>
<date>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</date>
<char>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</char>
</col>
<col name="SVC_USER_SDT" isKey="789654" invalidData="" rawData="">
<smallint>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</smallint>
<date>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</date>
<char>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</char>
</col>
</updateRow>
</rowOp>
</msg>
Maybe you are looking for
-
Mensagens de resposta NFe indo ao erro
Olá Experts, Estamos enfrentando os problemas de mensagens de resposta de SOAP de entrada / mensagens de confirmação de falha no monitor de mensagem PI. Todo o processo de emissão da NFe está funcionando bem, mas os reconhecimentos não estão funciona
-
Best Practice - What a complete PO means?
Hi! I would like to determine the best practice to managing the PO process and ensuring that the PO is in a state ready for archiving in the future (with minimum efforts to correct the PO). Is it fair to say that a PO is considered 'complete' if the
-
Accidentally moved backups.backupdb to trash, now stuck badly. NEED HELP!
Hi everyone, I recently bought a new macbook pro to replace my much older, aging one. I was nearing the end of migrating everything over and needed to reformat my TIme Machine drive to allow a new backup file to start on my new computer. So, hooking
-
Can the apple store update my software on my mac if it is 10.5.8
can i update my mac at the apple store if the software is 10.5.8
-
I recently had to reset my computer, and now when I'm trying to download Adobe PS that I purchased directly from the site, the installer finishes about 50% then says it's failed because I have a counterfeit version. I know I did not purchase a counte