How to assign a class to the material through ABAP code
Hi,
I am working on a transaction in ABAP which takes material name, material description and a class from the user. Now, after this much input I create the material, its configuration profile through the ABAP code. For this I know I have to make relevant entries in tables MARA, MAKT, CUCO.. and also check for the existence of the class in the table KLAH.
Now the point where I am stuck is that I am not able to get how to assign the class to the material through the code. I am able to get the internal class id from the table KLAH but I am not able to figure how the internal material number is being generated in the table INOB and i need this number as well as the internal class id number to insert a record in the table KSSK to show proper assignment.
Can anyone please suggest me some solutions?
Thanks....
Hi,
I tried using BAPI_OBJCL_CREATE. In order to understand it functioning better I created a material and class (of type 300) through transactions MM01 and cl01 respectively. Then i created a report and called the FM BAPI_OBJCL_CREATE, gave the material name as the material above, table as MARA, class as the one i created above and class type 300. I even analysed the message of the table return (return-message) after executing the report. The messahe said assignment done. But when I checked mnaually in cl20n there was no assignment done to the required material. There was also no entry for the required material in the table INOB which I need.
Can anyoene tell me that where am i going wrong? Please do help.
Similar Messages
-
I would like to see the stock level of the material through T code
hi
I would like to see the material stock by plant storage location
the required details are Unrestricted avilable stock , Order stock , delivery stock , blocked stock , quality stock
what is the T code to view all those things
DineshHi
use T code <b>MB52</b> to view stock in detail
Vishal... -
Question: How to assign number ranges to the Official Excise Document Numbe
Question: How to assign number ranges to the Official Excise Document Number
Field name is: EXNUM, table name: J_1IEXCHDR
SAP CIN
Dear expert,
I will briefly explain the scenario:
I have created return po.
Process MIGO w.r.t. return PO- Material document generated.
Process: J1IS - excise invoice other movement create.
--> Now I want to print the document --> I m trying with T-code J1IP --> entered all the required data --. Used out put type - J1I0
But I am not getting the list of document for printing and even print is not coming.
There is no print document getting for a printing.
When I checked in an above said table (mentioned in question), I found that for transaction type OTHR, there is no number ranges defined for official document no.
And because of this reason I m not getting any document in the print.
Can you Pl extend Ur help and Pl suggest me where (path or transaction) the number ranges can be maintained for the official excise document No.
Thanking you all n advance and expecting your earliest response.
Regards
omDear Friend,
J_1IEXCHDR this table stores the all the excise documents created while excise transactions are done ,
for that Goto j1i9 or SNRO in these transaction you maintiane the number ranges for the
J_1IPLA2 PLA part II number range object
J_1IRG1 RG1 Number range object
J_1IRG1_T No. Range for RG1 - Excise group / Material
J_1IRG23A1 RG23A part 1 no. range object
J_1IRG23A2 RG23A part II number range object
J_1IRG23C1 RG23C part I number range object
J_1IRG23C2 RG23C part II number range object
J_1IRG23D Folio Numbers for RG 23D
like these lot of objects are there for them u maintiane the no. ranges
Regards
Pramod -
A/C assignment category mandatory for the material
Hi Gurus,
I am facing the error message"A/c assignment category mandatory for the material" while creating a PO. How to fix this?
Thanks,
Kumarhi,
For PO you can make the account assignment optional from:
SPRO --> MM -> Purchasing --> PO --> Define screen layout --> Here choose me21 --> see the details....check in the basic data, item details....
For the material type of the material , the qty n value update setting is:
SPRO--> Logistics general --> MM -> Material type -->Define attributes of material type --> in it see for individual material type...
Hope it helps.
Regards
Priyanka.P -
How to change valuation class of a material.
how to change valuation class of a material.
Dear Sandesh,
Refer to:
[Changing The Valuation Class|http://www.sap-img.com/materials/changing-the-valuation%20class.htm]
and
[Changing Valuation Class|http://masteryen.com/sap/?p=98]
Best Regards,
Amit
Note: Key-points to remember, before changing the Valuation Class -
1. All the stocks are zero and
2. There is no pending orders as well? -
From which table I can find the "Class type" and "Class" of the material?
From which table I can find the "Class type" and "Class" of the material?
Thanks in advance for the answers....Hi,
try following table
KSSK Material number to class
KLAS Class description
KSML Characteristic name
CABN/CABNT Characteristic name description
CAWN/CAWNT Characteristic name
[http://www.sap-img.com/materials/classification-view-of-material-master.htm]
[http://wiki.sdn.sap.com/wiki/display/ERPLO/FrequentlyUsedTables]
Regards
kailas Ugale -
Valuation class in the material master
hi all, we maintain split valuation materials, namely domestic & imported. we are working on project based scenarion planning strategy 21 : MTO/project.
in daily practice user convert unrestricted stock to project stock with 412 Q mvt type before MRP RUN.
but for some when user try to convert stock following error occurs. I check stock available, it is available. but i do not understand why this error comes.
Maintain the valuation class in the material master first
Message no. M7232
Diagnosis
The system found that you have defined your own valuation classes for sales order stock and project stock in Customizing. However, these valuation classes have not been maintained in the material master record for the materials concerned.
Procedure
So that the relevant accounts can be posted upon goods movements, you have to maintain the valuation classes for sales order and project stock in the accounting view of the material master record for the material concerned.
If you have authorization to do so, you can change the material master record.Hi,
The normal valuation stock refer to relevant table valuation class field MBEW/MBEWH-BKLAS
Special Sales Stock refert to MBEW/MBEWH-EKLAS
Projeck Stock refer to MBEW/MBEWH-QKLAS
Cheers,
Girang -
How to assign Profit segment to the G/L account
hi all,
have anyone know how to assign Profit segment to the G/L account?
rgds,
WorachedHi,
Select the
1. Field Status Group for Profitability segment (T.Code : OBC4)
2. Select the automatic account assignment (T.Code : OKB9)
3. Select the PA Transfer Strcuture , direct posting from FI and MM.
Hope this helps. Please assign points as way of thanks.
Thanks
Lakshmi Narayana -
I have recently found that someone is selling audio featuring myself without authorising me. How would I go about getting the material taken down? Thanks
You probably need to contact Apple directly, and have a lawyer and be able to prove this is pirated audio.
Apple is not likely to take action without some sort of proof. -
How do I get class in the javax.* package
How do I get class in the javax.* package
If possible don't mess with the javax Package
I mean I could not get the advantage of getting a class under javax Package
But for information
make a folder named javax
Make your class in that folder with starting code as
package javax;and then compile it and make a jar file and add it to classpath
It is very simple
But I think you should not mess with it
Is there any special requirement?
Bye for now
CSJakharia -
How to assign style class to page fragment?
Hi,
I try to assign CSS style classes to a page fragment, but there is no way to assign style classes from the default stylesheet.css.
What do I miss here?
StephanHi Tor,
you will recognize that I made some changes, but it didn't solve the problem. As I mentioned everything is rendering fine on Linux and Firefox, also on Windows and Netscape 7.2, but not with IE. In particular the hyperlinks in the page fragment are centered, but on IE they are moved to the right. I also recognized that on all my jsp with the page fragment on it there is a space of about 10 px left on the right side of the window in IE. Following is the source view from IE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en-US" lang="en-US"><head><meta http-equiv="Cache-Control" content="no-cache"/><meta http-equiv="Pragma" content="no-cache"/><title>Login Page</title><link type="text/css" rel="stylesheet" href="resources/stylesheet.css"/></head><body style="background-color: rgb(204, 204, 255); -rave-layout: grid"><form id="form1" method="post" action="/bardubitzki/faces/Login.jsp;jsessionid=B26CD4F0ED76D8E672FE93643B549E1C" enctype="application/x-www-form-urlencoded">
"left: 0px; top: 0px; position: absolute; width: 100%"><?xml version="1.0" encoding="UTF-8"?>
"CENTER" style="-rave-layout: grid" xmlns:h="http://java.sun.com/jsf/html"> <table id="form1:headerGridPanel1" border="0" cellpadding="0" cellspacing="0" style="background-image: url(resources/BarduBanner.png); height: 80px; position: absolute; background-repeat: no-repeat; width: 100%; left: 0px; top: 0px"> <tbody> <tr> <td class="tableColumnCenter">"form1:bsheaderImage1" src="resources/Clear.gif;jsessionid=B26CD4F0ED76D8E672FE93643B549E1C" alt="" /></td> </tr> </tbody> </table> <table id="form1:headerGridPanel2" border="0" cellpadding="0" cellspacing="0" style="text-align: center; width: 100%; left: 0px; background-image: url(resources/BarduBanner4.png); background-position: center; position: absolute; background-repeat: no-repeat; top: 80px; height: 20px"> <tbody> <tr> <td class="tableColumnCenter"><table id="form1:headerGridPanel3" border="0" cellpadding="0" cellspacing="0" style="height: 18px; position: relative; bottom: 3px; font-family: serif; right: 25%; width: 50%; left: 25%; top: 1px"> <tbody> <tr> <td>"form1:headerHyperlink1" href="faces/Index.jsp;jsessionid=B26CD4F0ED76D8E672FE93643B549E1C" class="menu">"form1:headerHyperlink1Text">Home</td> <td>"form1:headerHyperlink2" href="faces/DSSCreditCardDebt.jsp;jsessionid=B26CD4F0ED76D8E672FE93643B549E1C" class="menu">"form1:headerHyperlink2Text">Products</td> <td>"form1:headerHyperlink3" href="faces/Services.jsp;jsessionid=B26CD4F0ED76D8E672FE93643B549E1C" class="menu">"form1:headerHyperlink3Text">Services</td> <td>"form1:headerHyperlink4" href="faces/AboutUs.jsp;jsessionid=B26CD4F0ED76D8E672FE93643B549E1C" class="menu">"form1:headerHyperlink4Text">About Us</td> </tr> </tbody> </table> </td> </tr> </tbody> </table>
<table id="form1:loginGridPanel1" style="position: absolute; width: 100%; left: 0px; top: 100px">
<tbody>
<tr>
<td><table id="form1:loginGridPanel2" style="width: 100%">
<tbody>
<tr class="tableRow">
<td class="tableColumn1"><table id="form1:loginGridPanel4" style="margin-left: 10px; margin-right: 10px; font-family: serif; width: 100%; margin-top: 50px">
<tbody>
<tr>
<td>"form1:loginHyperlink1" href="faces/DSSCreditCardDebt.jsp;jsessionid=B26CD4F0ED76D8E672FE93643B549E1C" class="link">"form1:loginHyperlink1Text">DSS CreditCardDebt</td>
</tr>
</tbody>
</table>
</td>
<td class="tableColumn2"><table id="form1:loginGridPanel5" style="width: 100%">
<tbody>
<tr>
<td><table id="form1:loginGridPanel6" style="width: 100%; margin-top: 20px">
<tbody>
<tr>
<td class="tableColumnCenter">"form1:image2" src="resources/DSS.png;jsessionid=B26CD4F0ED76D8E672FE93643B549E1C" alt="" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td><table id="form1:loginGridPanel11" style="color: rgb(102, 0, 102); font-family: serif; width: 100%; font-size: 18px">
<tbody>
<tr>
<td class="tableColumnJustify">"form1:outputText1">We have confirmed your request. You are allowed to WebStart DSS CreditCardDebt again. Please enter your Transaction ID you received from PayPal via email.</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td><table id="form1:loginGridPanel14" style="font-family: serif; width: 100%">
<tbody>
<tr>
<td><table id="form1:loginGridPanel7" style="width: 100%">
<tbody>
<tr>
<td class="tableColumnCenter"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td><table id="form1:loginGridPanel8" style="width: 100%">
<tbody>
<tr>
<td><table id="form1:loginGridPanel10" style="width: 100%; margin-top: 40px">
<tbody>
<tr>
<td class="tableColumnRight"><label id="form1:loginComponentLabel1" style="color: rgb(102, 0, 102); font-size: 14px" class="tableColumnJustify">
"form1:loginComponentLabel1Text">PayPal Transaction ID: </label></td>
<td class="tableColumnLeft"><input id="form1:loginTextField1" type="text" name="form1:loginTextField1" maxlength="17" style="" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td><table id="form1:loginGridPanel9" style="width: 100%; margin-top: 40px">
<tbody>
<tr>
<td class="tableColumnCenter"><input id="form1:loginButton1" type="image" src="resources/Login.png" name="form1:loginButton1" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td class="tableColumn3"><table id="form1:loginGridPanel13" style="width: 100%">
<tbody>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td><table id="form1:loginGridPanel3" style="font-family: serif; width: 100%; margin-top: 50px">
<tbody>
<tr>
<td class="tableColumnCenter">"form1:loginOutputText1" style="color: rgb(153, 153, 255); font-weight: bold; font-size: 10px">Copyright(c) 2005 BARDUBITZKI Software</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<input type="hidden" name="form1" value="form1" /></form></body></html>
Hope that will help.
Stephan -
How to assign a user and position to a release code .
How to assign a user and position to a release code ?
I tried in SU01 but the data is not getting reflected in the table
T16FW. from where the rule (20000026) is picking the user .
is there a transaction to do so ?
Thanks in advance .These are done in SPRO. Search for release in SPRO, you will find your answer.
Regards, IA -
How to Add data in HR infotype 2011 through ABAP
Hi All,
Can any one please give me an idea about how to insert time record in Infotype 2011 through ABAP. I cannot use the front end recording (SHDB) as it locks the person's master data. I need to Add the record through ABAP Query. I have inserted record in Table TEven and it works fine but then there is a conflict of sequence number field and system does not allow to change the data in infotype 2011 and gives error message.
ThanksHi amit
even i have same requirement i tried with the same code but i'm getting error No data stored for infotype 2011 in the period.
code:
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = wa_modify-pernr
IMPORTING
RETURN = return
clear return.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = p_infty
number = wa_modify-pernr
* SUBTYPE =
* OBJECTID =
* LOCKINDICATOR =
* VALIDITYEND = wa_modify-ldate
* VALIDITYBEGIN =
* RECORDNUMBER =
record = wa_modify
operation = 'MOD'
TCLAS = 'A'
DIALOG_MODE = '0'
* NOCOMMIT =
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
IMPORTING
RETURN = return
* KEY =
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
number = wa_modify-pernr
* IMPORTING
* RETURN = -
How to read a mail from sap inbox thru abap code?
how to read a mail from sap INBOX thru abap code? can anyone tell me the technical approach? I NEED TO READ A MAIL and then need to pass the parameters to a bapi.
Message was edited by:
shahid mohammed syedHi SSM,
Did you manage to have your program working? I also have same requirement. I tried standard FM and BAPI but I always encounter authorization error when I tried accessing other user's mail. Thanks.
Regards,
Ryan -
How to Use CMOD and SMOD in SAP using ABAP Code
Hello anyone,
Please help me How to use CMOD and SMOD in SAP using ABAP code.
Give Me Some Sample Example.
Mail ID: [email protected]
Thanks,
Regards,
S.Muthu,
SAP Developer.Hi,
User Exits.
http://www.erpgenie.com/sap/abap/code/abap26.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
customer exits
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
Menu Exit.
http://www.sappoint.com/abap/spmp.pdf
http://www.sappoint.com/abap/userexit.pdf
http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Maybe you are looking for
-
What are the limitations of mail for mac?
I need to know which is the limit of space you can use mac mail and how many emails in the mail can be stored
-
Xml driver used with a teradata external database
hi everyone, I would like to use the db_props feature within the xml driver to create the xml schema inside a teradata database. With some oracle examples, the JDBC URL looks like this : jdbc:snps:xml?f=../demo/xml/xxx.xml&s=XXX&dod=true&iue=true&dp_
-
Two cameras on the same system
Hi guys, can anyone shed any light on how easy it is to watch my daughters nursery on my powerbook pro whilst sat in the next room on my G5. For some reason i cannot connect, is it because of the same account / address details? Thanks, Dan
-
Flash FLV and Microsoft IIS Bug?
I have run into a problem that may be a real problem for anyone relying on SWF files playing FLV files from Microsoft IIS servers. I have used this method of playing videos on a few of my clients sites and as of the last week or so these videos stopp
-
kindly see the attached picture and send me the solution. your support highly appreciated, regards,