Template for material number
My requirement is I want the material number starting with `AAA` followed by internal number
How to do using template..
Thanx
Hi ,
We have an standard SAP -User exist used for material number assignments based on business needs.
Go to Transaction code SMOD - Enhancement MGA00002 is used to hard code the material number ( Internal / External assignments)
Important
Retail customers must use customer enhancement MGW00002.
You use this customer enhancement to influence the assignment of material numbers. You can intervene in the program at the following points:
Internal number assignment (function module exit exit_saplmg02_001) Functional Module EXIT_SAPLMG02_001
This function module is called if internal number assignment is allowed and if the user has not specified a number when creating a material master record.
External number assignment (function module exit exit_saplmg02_002) Functional Module EXIT_SAPLMG02_002
This function module is called if the user has specified a number When creating a material master record. However, if external number assignment is not allowed, the (changed) number is subsequently discarded.
Please discuss with ABAP developer in order to fulfilled your business requirements.
With Regards,
Thiru
Similar Messages
-
FM for Material number conversion from R/3 to APO in R/3
Hi,
Can anybody tell me conversion exit (function module) for Material number conversion from R/3 to APO in R/3 system. I mean i have 18 digit R/3 material number which i have to convert to 40 digit APO material number in R/3 system.
Please suggest to win full points.
Thaniks in Advance,
Chandan DubeyDear Chandan,
Conversion Exits:
CONVERSION_EXIT_MATN1_INPUT ....... If you are storing Material With Zeros
Then concatenate it with 22 zeros. i.e. '0000000000000000000000000000'.
For example:
data : v_matnr type matnr, "R/3 Material
v_apo_matnr(40) type c, "APO Material with 40 length
v_zeros(22) type c. value '0000000000000000000000000000'.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING INPUT = v_matnr
IMPORTING OUTPUT = v_matnr.
concatenate e_mantr v_zeros into
v_apo_matnr.
Regards,
Naveen. -
"Settings for material number conversion not found" occurs when ...
After I run an initial load data into the InfoCube 0PUR_C01, I want to check the InfoCube Content by the following path:
RSA1 -> pick up the InfoCube 0PUR_C01, right click it and select Manage -> Get to Content tab -> Click InfoCube Content button -> Deselect all selection, only tick the 1st column checkbox next to 0Material, then hit enter, get a small window titled as "Cancel" with a red STOP msg sysing "Settings for material number conversion not found" with an "Exit" button and a question mark button, click Exit button leads to SAP Easy Access screen, if clicking the question mark button, another window pops up with the msg showed above, click Technical Information button causes the original window short dump and the short dump msg shows below in between two dashed lines:
Runtime Errors RPERF_ILLEGAL_STATEMENT
Date and Time 11/28/2005 14:43:13
ShrtText
Statement "CALL SCREEN" is not allowed in this form.
What happened?
Error in ABAP application program.
The current ABAP program "SAPLSHL2" had to be terminated because on
statements could not be executed.
This is probably due to an error in the ABAP program.
Error analysis
There is probably an error in the program
"SAPLSHL2".
The program was probably called in a conversion exit
or in a field exit. These are implemented by
function modules called CONVERSION_EXIT_xxxxx_INPUT/OUTPUT or
USER_EXIT_xxxxx_INPUT.
Conversion exits are triggered during screen field transports or
WRITE statements, field exits during field transports from the
screen to the ABAP/4 program.
In this connection, the following ABAP/4 statements are not allowed:
- CALL SCREEN
- CALL DIALOG
- CALL TRANSACTION
- SUBMIT
- MESSAGE W... and MESSAGE I...
- COMMIT WORK, ROLLBACK WORK
- COMMUNICATION RECEIVE
- STOP
- REJECT
- EXIT FROM STEP-LOOP
Moreover, conversion exits for output conversion
(implemented by function modules called
CONVERSION_EXIT_xxxxx_OUTPUT) do not allow
- MESSAGE E...
to be used.
Trigger Location of Runtime Error
Program SAPLSHL2
Include LSHL2F19
Row 3
Module type (FORM)
Module Name TECHNISCHE_INFO5
rce Code Extract
e SourceCde
1 ***INCLUDE LSHL2F19 .
2 form technische_info5.
>> call screen 1900 starting at 5 8.
4 endform.
5
6 &----
7 *& Form SHRINK_VALUES
8 &----
9 * text *
10 ----
11 * --> p1 text
12 * <-- p2 text
13 ----
14 form shrink_values.
15
16 loop at dynpselect.
17 clear checktable.
18 if dynpvaluetab-lowvalue ne space and dynpvaluetab-lowvalue na '*'.
19 move 'EQ' to checktable-op.
20 move dynpvaluetab-lowvalue to checktable-low_value.
21 append checktable.
22 endif.
What could cause the problem by selecting only 0Material when checking the InfoCube 0PUR_C01 content? What does that mean by this STOP msg "Settings for material number conversion not found"?
ThanksHi Kevin,
Set the length of 0MATERIAL and change conversion to alpha:
Re: Error Installing 0MATERIAL from Business Content
Best regards,
Eugene -
Serialization not possible for material number (SHPCON IDOC error )
Hello,
Can any one shed some light on following inbound PGI IDOC (SHPCON) Error from 3PL.
"Serialization not possible for material number XYZ"
Message no. IO205
Diagnosis
The serial number profile of the material does not allow serialization for the operation you have chosen.
Procedure
Maintain the serial number profile.
Additional info
1) Serial number profile is maintained in the material master
2) Serial number populated in the idoc E1EDL11 is not used in any delivery or assigned and it is valid serial number and has equipment master record
3) If i use the same serial number from the IDOC and post PGI manually via VL02N , I am able to post the PGI without any problems and I don;t get the above error
4) IDOC has all the info required , Delivery number,Valid material # , qty,UOM and Line item number of the delivery .
Thanks in advance for your help
GJDear Jalwadi
I got exact same problem. How did you solve it? -
Settings for material number conversion not found
"Settings for material number conversion not found"
This is the error that came out. I was everytime i try to access the activated business content 0material, the system comes up with this error. Please help me with this! Thank you!
-PeterHi Peter,
try oss note 555675, it tells you to use transaction OMSL.
regards
Siggi
Message was edited by: Siegfried Szameitat -
What is required userexit or badi or enhacement for material number ??
HI Sir,
Issue,
In MM01 TCODE
when we are entering the material number it should be the 12digit otherwise it has to give the error message.
so plz help what is the exact exit and the code .
thanks and regards
syedHi,
Check these BADI's
WRF_DISCONT_PARAMS_I BAdI: Parameters in Fashion Discontinuation
WRF_DISCONT_FACT_E BAdI: Follow-Up Actions in Discontinuation
WRF_DISCONT_CHECKS_I BAdI: Scope of Check in Material Reorganization
MG_MASS_NEWSEG User-Specific Fields & Segments in Mass Maintenance
MATGRP_SKU_UPD BAdI for Article Hierarchy Connection
CDT_CHECK_MATERIAL Checks for Existence of a Material in a CDT
BADI_MM_MATNR Modification-Free Archiving Enhancement of MM_MATNR
BADI_MATNR_CHECK_PVS Check Material for Use in iPPE
BADI_MATERIAL_REF Addition of customer-defined default data for material
BADI_MATERIAL_OD Integration of New Objects in Material or Article Master
BADI_MATERIAL_CHECK Enhanced Checks for Material Master Tables
BADI_GTIN_VARIANT User Exit for Customer-Specific GTIN Variant Check
BADI_EAN_SYSTEMATIC BAdI for Internal Control of EAN Logic
Regards,
Srini. -
Query for classfication for material number
Hi,
I would like to create a query that links the material number (MARA) with its assigned classes (in classification in material master) and characteristics for each class. So I want to be able to key in a material number and receive the class and all charateristics and values for that.
Do you know which tables I should join?
Thanks,
OlaFor query you use table AUSP only where Object field is your mateiral number and this will return the value of Char
if you need class also than link the KLAH table
MARA you don't need here and wont link -
Search help for material number in table control
Hi
I have a table which i have generated using table control wizard.
I have used an interal table while creating the table control through wizard.
In this internal table i have field matnr.Now my requirement is to have a search help for this field.
I want a default search help for material as you get one instandard transactions.
In my other i have ip/op field i.e matnr and i have used the field directly from ztable,it has got the search help but since i am using the internal table i am notting getting a search help .
can anyone tell how to assign a search help to my table control material fieldhi deepthi,
chk a sample one which will help u. <b><i>f4 hlp in table control</i></b>
* Screen flow logic........
PROCESS BEFORE OUTPUT.
*MODULE PBO_MODULE.
PROCESS AFTER INPUT.
*MODULE PAI_MODULE.
PROCESS ON VALUE-REQUEST. "F4
FIELD EKPO-EBELP MODULE help_ekpo.
* populate screen field from within PROCESS ON VALUE-REQUEST(F4) call
*& Module help_responsibility INPUT
* text
MODULE help_ekpo INPUT.
**Transport values to table dynpro/screen table control
DATA: l_stepl LIKE sy-stepl,
l_indx LIKE sy-stepl.
DATA: dynpfields LIKE dynpread OCCURS 5 WITH HEADER LINE.
* Adjust for scroling within table control
CALL FUNCTION 'DYNP_GET_STEPL'
IMPORTING
povstepl = l_stepl
EXCEPTIONS
stepl_not_found = 0
OTHERS = 0.
l_indx = tc_ekpotable-top_line + l_stepl - 1.
"tc_ekpotable should already have been declared
REFRESH dynpfields.
CLEAR dynpfields.
dynpfields-fieldname = 'EKPO-EBELN'.
dynpfields-fieldvalue = '00010' "wa_ekpo-ebeln.
dynpfields-stepl = l_stepl.
APPEND dynpfields.
dynpfields-fieldname = 'EKPO-EBELP'.
dynpfields-fieldvalue = '00020' "wa_ekpo-ebelp.
dynpfields-stepl = l_stepl.
APPEND dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'SAPLZZ_EKKO' "Program name
dynumb = '0100' "Screen number
TABLES
dynpfields = dynpfields
EXCEPTIONS
OTHERS = 0.
ENDMODULE. " help_ekpo INPUT
rgds
Anver
<b><i>if hlped kindly mark points</i></b> -
Getting delivery date for material number i PO...
Hi,
I am Smartform associated with PO in ME22N:
Now I need to get the delivery date associated with Differnet Grid items in a material.
So if I go to some material and then if I click on Delivery schedule:
I see columns for delivery date, sat. del da, Grid value, etc...
But I want to know the table or function module we need to use to get Delivery date associated with
prticular Grid item of a material in PO.
Please help me out.
Thanks.
Regards,
Ramesh.Hi ,
Check out for BAPI_PO_GETDETAIL.
In this BAPI,
fill parameters : PURCHASEORDER with PO number
ITEMS with 'X'
SCHEDULES with 'X'
Then in tables PO_ITEMS you will get Item details and
in table <b>PO_ITEM_SCHEDULES</b> you will get required details like delivery date
Hope this helps.
Regards,
Akshay Bhagwat -
Change log for material number range
Hi All,
can you guys please tell me how to find the change log for changes done in material type number ranges that is the thru tcode MMNR although its a customization change but as its for number ranges so there is no transport request involved so it is not possilble to see the import of transport requestin transaction MMNR
from menu GOTO > change log
or in transaction SNUM
from menu GOTO > change log -
Report to find a material by a mfr part number and old material number
Hi,
Is there any standard report to find a material by a mfr part number and old material number ?
For the moment, we are using MM03 to search articles by these selection criterion.
Thanks,
Julien GirardHi
As there is no stsndard report use the SQVI to find out the details, It is very simple , please follwo the below steps.
Use Txn SQVI, enter the Quick view field say- ZMNFR and click the create button, Enter the title in the next screen i.e Report name- Say - Manufacturer's Part No. Details, in the same screen you need to enter MARA for the data from table/database view, please leave the 1. data source as Table only and the radio button as Basis mode only. Click the tick mark , you will go to the next screen,
You will notice Quick viewer Intial screen
Open the node general material data
Select the Buttons besides the fields MARA-MATNR for material number, MARA-MFRPN for manufacturers part number, and MARA-BISMT for old material number. You can include any other field if you wish to have in your output. You will notice two check boxes against each field, one is for input screen field and the other is for outputf field. But currently you do not bother about and select both the check boxes or any other field you wish to have as input and output as well. Once selected all the fields afer clicking the check boxes save the total arrangement. and then in the same screen use the execute button or use F8 to find out your report input screen.
Now enter the Material number for which you wish to know other two details in the report and execute again you will find the report output.
Please ensure that you are maintaining both the details in material master basic data1 and purchasing view if you wish to get out output
Best regards
SAM
Edited by: samuel mendis on Apr 8, 2009 6:52 AM -
Verification field for Batch number - Transaction LM05
Hi Experts,
Can some one help on the issue of adding a verification field for BATCH NUMBER on the screen 2502 and make it work.
Requirement : Add Verification field for batch number and build the logic to verify the batch number - as the SAP standard does for other fields.
I have proceeded to some extent and seems like I am not winning.
Steps done :
1. Copied physical screen 2502 (SAPLLMOB) to screen 9502(SAPLXLRF)
2. Changed the screen to subscreen and removed the OK_CODE from the element list.
3. Created the project ZMWMRF502 and assigned user exit MWMRF502 to this project.
4. In the components of the project assigned 9502(SAPLXLRF) to 1502((SAPLLMOB).
5. Assigned the screen 9502 to logical screen 0502 in the config.
6. In the transaction LRFMD given the username and variant '1'.
Now When I execute the transaction LM05 and give the TO number, the system calls my screen 9502 with new field seen in that.
But the screen is completely greyed out with no data in that.
I checked PBO and PAI of my new copied screen.
In all the modules which I received from the copy of SAP standard screen there is no code except name.
I mean to say that names of all modules exist but when I double click on any module it ask me to create a new object.
If I have to create module similar to SAP there is a lot of coding in side. How do I proceed further.
Can some help me.
Thanks and regards
JoshiHi Dez,
If you go in to transaction LM05 and input a number of TRANSFER ORDER, it will take you to a screen where the system will populate the fields pertaining to that particular transfer order. In that screen we have normal fields as well as verification fields for that particular field. These screens are used on scanners. When the scanner scans the material slip, the corresponding value such as material number, storage bin number etc will be get populated in the verification field. When the user selects next then the system will perform a check for the two values and pops up an error message if required.
So there are verification fields for material number, storage type, quantity etc but not for batch. Our user requirement is to put a verification field just by the side of batch number field and perform same operation as it does for other fields.
Hope you understood.
Thanks and regards
Joshi -
Appending leading zeros to material number
Hi,
I want to form a object key for material number. so i need to append leading zeros to material number. but i am getting "TYPE CONFLICT" shot dump in FM 'BAPI_OBJCL_GETDETAIL'.
The following code is giving the dump.
data: wa_object(18) type c.
wa_object = '100301010'. "Material No
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = wa_object
IMPORTING
OUTPUT = wa_object.
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
OBJECTKEY = wa_object
OBJECTTABLE = 'MARA'
CLASSNUM = 'FINISHED_MATERIAL'
CLASSTYPE = '001'
KEYDATE = SY-DATUM
UNVALUATED_CHARS = ' '
LANGUAGE = SY-LANGU
TABLES
ALLOCVALUESNUM = IT_ALLOCVALUESNUM
ALLOCVALUESCHAR = IT_ALLOCVALUESCHAR
ALLOCVALUESCURR = IT_ALLOCVALUESCURR
RETURN = IT_RETURN
but if I hard code to 18 characters, the following code is working fine:
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
OBJECTKEY = '0000000000100301010'
OBJECTTABLE = 'MARA'
CLASSNUM = 'FINISHED_MATERIAL'
CLASSTYPE = '001'
KEYDATE = SY-DATUM
UNVALUATED_CHARS = ' '
LANGUAGE = SY-LANGU
TABLES
ALLOCVALUESNUM = IT_ALLOCVALUESNUM
ALLOCVALUESCHAR = IT_ALLOCVALUESCHAR
ALLOCVALUESCURR = IT_ALLOCVALUESCURR
RETURN = IT_RETURN
Please tell me how to rectify the short dump which uses Conversion_exit_alpha_input.
Thanks .
SankarHi Shankar,
When ever u pass parameters to any function module the type of parameters must match with the ones defined in function module. Here u defined ur object key like this
data: wa_object(18) type c.(18 digits). But the in function module it referenced with BAPI1003_KEY-OBJECT (50 digits). So u have to define the variable with BAPI1003_KEY-OBJECT.
Check this solution. It will work for u.
data: wa_object(18) type c,
wa_object1 TYPE BAPI1003_KEY-OBJECT.
wa_object = '100301010'. "Material No
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = wa_object
IMPORTING
OUTPUT = wa_object.
wa_object1 = wa_object.
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
OBJECTKEY = wa_object1
OBJECTTABLE = 'MARA'
CLASSNUM = 'FINISHED_MATERIAL'
CLASSTYPE = '001'
KEYDATE = SY-DATUM
UNVALUATED_CHARS = ' '
LANGUAGE = SY-LANGU
TABLES
ALLOCVALUESNUM = IT_ALLOCVALUESNUM
ALLOCVALUESCHAR = IT_ALLOCVALUESCHAR
ALLOCVALUESCURR = IT_ALLOCVALUESCURR
RETURN = IT_RETURN
Thanks,
Vinod. -
Removal of leading zeros for material no. in report
hi
my issue is that i have to remove leading zeros for material number when displaying in alv grid.iam getting output.but leading have to truncated automatically.
eg: 000000000000000102
the ouput should be 102.
please do provide solution for this or any function module.thanks in advance.Hi Sanjana,
while populating the internal table use the conversion exit available for MATNR. this will remove the leading zeros.
oter possible way, declare the internaltable by referring the data element MATNR, i hope if you do this, it will delete the leading zeros automaticallt.
or if you declare the internal table field as charecter type, use the ALPLA_CONVERSION_EXIT_INPUT ot OUTPUT function module to remove the leading zeros.
Reward the points if it is helpful.. -
ERROR in: Material Number Interval Group
Dear Gurus...
Iam trying to maintain different intervals for different Material Types by Creating a new group and assigning ONLY ONE Material Type to the Group, where the Interval is unique...For e.g. GROUP-1 For Raw Material, GROUP-2 for HALB, GROUP-3 for Packing Material (VERP) etc...
Here, when I try to maintain the intervals for each of the GROUP system is throwing the Error: Interval 04/05/06...not maintained in the system.... and when I try to save the assignment of Mat Type to a particular group system gets quit saying: *There could be an inconsistency in the Number Range inteval, pls run the PROGRAM "RSSNR0T1" , thus not allowing me to maintain different intervals for each GROUP....
And in the PROGRAM--RSSNR0T1 there is no relevent OBJECT for Material Number by type...
Kinldy help me solve this problem
Thanks in advance
Surajdid you run RSSNR0T1 for MATERIALNR ?
Maybe you are looking for
-
URGENT - How to change data in a table
I have created the basic table to display some data. But how do I change some of the data in the table. I generate the data within my program and then need to display the new table data in the same original table.
-
SharePoint 2010 Connectivity to Visio Professional 2010
Dear All, We have a requirement in our organization, to link visio data with SharePoint List. There is an existing visio containing more than 300 boxes(each containing 10 properties) which has to be linked with corresponding SharePoint List. As per o
-
CS4: can I apply logic based on data merge?
Hello all, I'm creating an InDesign document using CS4 that has variable text in it. Some of that variable text is "static", in that it's inserted directly from a data merge. In other cases, though, I'd like to display one block of text (I'd specif
-
STOs and Productions order are not lined up. Dates are off
Hi Experts I have a production order and STO with different dates. I would expect no gap between Prod order and the STO. I have checked Planned delivery time,GR/GI at both supplying and receiving plant . Everything looks fine. Please Advice
-
Once again, I am trying to download Yahoo messenger and It only has tips for Internet explorer We only have Firefox (mozilla) installed and so I need help getting around this in order to install.