Number range for the customized transaction
Hi Experts,
I am developing customized screen. When user saves after entering data a number should be generated automatically. Please tell how to maintain the number ranges for my transaction.
Regards,
B V Rao
Hi,
Go to SNRO tcode and enter an object to be created and press create button.
Enter data element as S_CARR_ID and domain as POSNR
and 10% as warning and save.
create small program to update SCARR table with a carrid 01.
data : begin of itab occurs 0.
include structure scarr.
data end of itab.
itab-carrid = '01'.
append itab.
clear itab.
modify scarr from table itab.
and execute the program now your SCARR table will have 01 as carrid.
now maintain the number ranges for your newly created object in SNRO tcode
prees numer ranges button and enter 01 in Air line input field
in your program where you want these number ranges
declare a variable as follows
data number type nriv-nrlevel.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = 01 " Air line just you created
object = "the object name that you created in SNRO
QUANTITY = '1'
SUBOBJECT = '"naturally enter 01 ( which you assigned while creating N ranges)
TOYEAR = '0000'
IGNORE_BUFFER = ' '
IMPORTING
NUMBER = number
QUANTITY =
RETURNCODE =
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Best Regards
Ramchander Rao.K
Edited by: ramchander krishnamraju on Dec 12, 2008 9:17 AM
Similar Messages
-
Every Shipping point has corresponding number range for the HU box number?
Hi,
Every Shipping point has corresponding number range for the HU box number assignment?
For example, we are doing packing, then a Handling Unit number has been generated. So where to define this number range of the HU number??
Is it from the SPRO or controled by programs.
Thanks.Hi,
Please find good stuff on Handling Units Below:
HANDLING UNITS CONFIGURATION:
A Step by Step Guide to the SAP Handling Unit Management Configurations
The SAP Handling Unit Management system allows you to manage the entire movement of the handling units and the materials they contain rather than tracking each material individually.
This paper is for the HUM Delivery although some of the contents is related to Inventory under the Logistics General modules.
Table of Contents
Objective
IMG Menu The Starting Point
Handling Unit Management Overview
Start of HUM Outbound Deliveries Manual Packing Configuration
Define Number Ranges for Handling Units
Define Packaging Material Types
Define Material Group for Packaging Materials
Define Allowed Packaging Materials
Use Handling Unit Supplements
Maintain Goods Movements for Handling Unit Stock-Posting
Define User Status Profile
Set QM Check and Delivery Type for Each Movement Type
HU Requirement for Storage Locations and Default Values for Deliveries
Packing Control By Item Category
Define Requirements for Packing in the Delivery
Delivery Type Determination
Set Unique Number Assignment for HU Identification
Number Range Maintenance for HU Identification
Define Number Assignment for Each Packaging Material Type
Delivery Output type for Packing List
Maintain the Delivery Output Determination Procedure
What else to maintain after the Manual Handling Units Configurations?
Start of the Automatic Packaging Configuration
Define Number Ranges for Packing Instructions
Define Determination Type for Packing Instructions
Define Number Ranges for Packing Instruction Determination Records
What else to maintain after the necessary Automatic Packaging Configurations?
Appendix A: How to do Manual Packing for Non-Assigned Handlings Units?
Appendix B: Scenario 1 How to do Manual Packing by Delivery Item?
Appendix C: Scenario 2 How to Manual Pack the Materials into Pallets?
Appendix D: How to do Automatic Packing?
Appendix E: How to do Goods Movement for Handling Unit Material?
Appendix F: How to Unpack the Handling Unit Material?
A handling unit is a physical unit that consists of the packaging materials (load carrier / packaging material) and the goods contained therein. A handling unit is always a combination of materials and packaging materials. All the information contained in the material items, such as batches and serial numbers, is always available by way of the handling units.
Handling units can be nested, meaning that you can also create new handling units from several handling units as often as you like.
Handling units have unique, scannable identification numbers that can be formed according to standards such as EAN 128 or SSCC.
Figure 1: Handling unit example
Structure
The handling unit object contains the following attributes:
Identification number
Dimensions
Weight
Volume
Status
Materials and quantities
Packaging materials
Packing instructions
A handling unit consists of a handling unit header and handling unit items. For identification purposes, it is given a unique number.
Handling unit header
The header data of a handling unit is divided in the following way:
Weight/Volume/Dimensions
General data
Means-of-transport data
Additional data
Output determination procedure
For more information about each of these detailed points, see Editing detailed data for handling units.
Status
The handling unit is linked to general status management. In this way, the various physical states (planned or implemented) and other attributes (weighed, loaded, blocked or posted goods issue) of handling units can be documented.
You can use the HU_ST_INIT user parameter when you create handling units without object reference to set which initial status the handling unit is to have when it is created.
If you want to implement a status of your own, you can define a user-specific procedure for the packaging material type (see also Define Packaging Material Types).
Handling unit item
The items of a handling unit can consist of material items, packaging materials or other handling units that appear in an overview. For more information about this overview, see the Contents section of Editing detailed data for handling units.
To access the item data of an individual handling unit, select the handling unit concerned and choose Goto  Detailed HU data  Contents.
Integration
Handling units can be used in all processes within the supply chain.
Please Reward If Really Helpful,
Thanks and Regards,
Sateesh.Kandula -
Number range for the Material type
Hi,
When I am trying to create the number range for the Material Type, when I choose the groups the following error has occurred
No elements exist for the object/sub-object
What may be the problem
Thanks in advanceHi Binu,
Had similar issue lately.
This is happening as the download of the category is not done properly.
So the solution which wrkd for me was to dwld the content again correctly, and if its done, there'll be no such error shootin up.
Suji -
Number Ranges for the Serial Number Profiles
Hi All,
We wanted to trace the Goods movement based on the serial numbers. we could make this possible by attaching the serial number profile with relevant procedure (Stock Chk) to the Material.
Now the issue left out is of Number range and the pop-up for the existing serial numbers for the material. Is it possible to define Number Ranges (Ext. / Int) to the Serial Number profile ? Also, to get a pop-up for the serail numbers of material currently in Stock, which can be issued. Currently, I have to get the detail of sr. No. thru' IQ09 / IQ03.
Pls advise.
Shekhar.Hi,
Yes. In IMG under Plant maintenance -- > Technical objects -->Serial No profile.
Here you can create diff profile with difff procedures.
And mention the properties of each.
There is a material master record for each type in the system. For control purposes, the company wants to know which customer received which collector type, and which serial number(s) of the collector type were supplied to the customer, when the individual solar collectors were delivered.
It is therefore necessary to assign a serial number to the customer delivery in addition to the material number.
A serial number master record is created with the assignment of the serial number. You can maintain data fields specific to the serial number in the master record.
At a later date, it may be necessary to enter equipment master records for materials that have already been serialized and delivered to customers, for example, if the producer of the solar collectors also has to perform maintenance activities for the customers and therefore wants to use all the functions available in the equipment master record for a serialized material.
In order to keep this option open at any time, you must define a number range for serial numbers. The numbers assigned from this number range are not the serial numbers but reserved keys that stand for the combination of material number and serial number and the equipment number that may possibly be assigned.
You can also define one or more serial number profiles.
The serial number profile defines how and under which conditions a serial number is assigned for a material.
Note
A material can only be assigned serial numbers after the required serial number profile has been entered in the material master for a specific plant. -
Number Range For the accounting document
Hai,
After creating the billing document, account determination error is coming.
Message says that number range 01 is not maintained for the accounting documentGo to OBA7, select the document type RV and execute. There ensure that the object 01 in the field number range assignment. Next go to FBN1, key in company code and ensure that the above object is maintained there.
thanks
G. Lakshmipathi -
Change documents for the custom transaction
hi,
how could we trap the changes in our custom transaction to CDHDR,CDPOS tables.
we had created the object and generated update information.
where exactly we should call our write_document function module (generated in the object class ) in our module pool program.Activate the 'Change document' checkbox for data element. You must updating some table by your program. So just check the 'Change document' checkbox for those dataelement that you are updating in the table.
You will find the 'Change document' checkbox in the following path : dataelement-> farther element->'Change document' checkbox.
Now, if that checkbox is checked, the CDHDR and CHPOS table will be updated whenever you do any chnge in the table.
Now you can readthe table with a date to find out whether the bable is modified.
Now performance wise it is better to use change pointer instead of change document. Change pointer also do the same functionality as the change document.
To do that go to BD52, give a message type andd all the table and fields for which you are updating through your program.
Now you can use 'Change_pointer_read' FM to read the values that are change.
Ex:
CALL FUNCTION 'CHANGE_POINTERS_READ'
EXPORTING
message_type = gc_message_type
creation_date_high = s_erdat-high
creation_date_low = s_erdat-low
creation_time_high = gc_time_high
creation_time_low = gc_time_low
read_not_processed_pointers = 'X'
TABLES
change_pointers = lt_chgptrs_tab.
gc_message_type message you have given in BD52 and you will get all the chaged element in lt_chgptrs_tab.
Now after reading the values to update the fact that you have read those values you have to call another FM.
CALL FUNCTION 'CHANGE_POINTERS_STATUS_WRITE'
EXPORTING
message_type = gc_message_type
TABLES
change_pointers_idents = gt_pointer_id.
COMMIT WORK.
gt_pointer_id will have all the change pointer ids from lt_chgptrs_tab table that you have already reead.
The table for change pointer is BDCP. -
How do I change the visible number range for the y-axis in numbers?
I have a chart that has a lot of white space because the y-axis starts at zero.I would like the graph to show the range 20-35. How may I omit the range for which I have no data?
agood,
You can control Max, Min, number of grid lines, etc. for X and Y axes.
Here's an example from the Chart template:
I've boxed the relevant areas.
Jerry -
Dear Friends,
How sud I maintain number range for the customer?....Hi
No ranges are defined customers account groups in t code XN01 and
assigned to the respective account group in t code OBAR
Img-financial accounting (old/new both you can use)-accounts receivable and accounts payable--customer accounts-master data----preparations for creating customer master data
(The whole controls you can see here under this)
Here first you will define your account group (for field selection)
1. T code OBD2 define account groups with screen layout (customer accounts) activity
then you will define no ranges for your account group
2. T code XN01 define no ranges for customer account groups
then you will assign no ranges for your respective account group
3. T code OBAR assign no ranges for account group
You have to go to change intervals and define your pwn available intervals and then assign them to the respective account group
So while you create a customer in XD01 in the respective account group that no range will be automatically assigned if it is internal or we can give our no if it is external
Note if you define a new account group then you have to define partner functions also in img-sd-basic functions-setup partner determination---setup partner determination for CMR apart from the three major activities listed above
Regards
Raja -
Number range for document created through transaction MR11
Hi All
I am using transaction MR11(Maintain GR/IR clearing account).I want to know where we configure the number range for the document which gets created on posting through transaction MR11.HI,
SPRO --> MM -->LIV --> Clearing Account Mainteance --> Maintain Number assignment for Account Maintenance Document --> Maintain Number Range for Account Maintenance Document - Tcode - OMRJ or check in OMR4
Regards
KK
Edited by: Kishore Kumar Galla on Mar 24, 2010 3:30 PM -
External Number Range for Customer Master
Hi,
If we give External Number Range for a Customer Account Group in SPRO, Can we let the System to generate the Customer Number(Internal)? Or always we should provide a Number for the customer?
Thanks,
Sekhar.JHi,
System will not consider two Number Range Assignment, simultaneously.
Here are few links:
http://help.sap.com/erp2005_ehp_03/helpdata/EN/01/a9b191455711d182b40000e829fbfe/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/53/c9864aca3711d2b494006094b9114a/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/ea/cffb3aebc63b61e10000000a11402f/frameset.htm
Best Regards,
Amit -
Correcting the duplicate number range for 57 f 4 challan
Dear Friends ,
By mistake I have maintained same number range for both my series group in J1I9 under object J_1I57FC.
Intially I was doing sub con transaction only for one plant , but recently I started doing sub con transaction of the other plant .
It allows me to create 57F4 challan in the second plant , but while using the challan number in MIGO , it shows an error message .
I cannot change the number range for the second plant now because the 57F4 challan has been generated .
Kindly guide me how can I correct the above problem.
Thanks in advanceHi,
This is a problem for 57F4 challan number range you cannot use same number range for two different series group even while maintaining number range system not issue any message , i faced the same problem then from this fiscal year we have used two separate number range so better create new number range and assing in subcontracting attibutes as this we faced in development for the GR for which we found the problem is not solve.
regards,
zafar -
Number ranges for material document (migo) and inventory documents
Hi Gurus,
We need a different number ranges for goods receipt documents and inventory documents because we have different company merged in to one box.Can any body tell me on what basis we differenciate the number ranges how to configure it.
If we take PO, we have different doc types and we assign number ranges to those documents. in case of Miro , it is the single transaction code used by different companies and how to give different number ranges.
Regards,
Sri........Hi,
I think number ranges of inventory documents are on client level not on company code wise . because even though your creating new document and assigned different number ranges for the documents but these while assigning ranges to T codes (MIGO or MIRO) you dont have option like company codes ( tcode OMBA) so number ranges for inventory documents are at client level not at company code level. -
Error: Number range for object RESB does not exist
Hi
I'm trying to convert a planned order (to purch requisition) partially via trxn code MD04. Upon saving I get the above error msg. The complete text of msg is as follows. I've maitained the number ranges of all the objects specified in this error msg. Can somebody explain on how to overcome this problem?
Many thanks
BE
Error Msg Text:
Number range for object RESB does not exist
Message no. 61501
Diagnosis
The system cannot create a document for an MRP element if no number
range or interval has been maintained in Customizing of MRP or if t
number range you have maintained is not allowed.
Below is a list of MRP elements that are affected:
Number range object MRP element
PLAF planned order (operative oder simulative)
EBAN purchase requisition
RESB dependent requirements
MDSM simulative dependent reqmts (long-term plannin
MDTB MRP list
Procedure
Check the number ranges in Customizing. If you do not have the necessa
authorization, please get in touch with your systems administration.Hi
Thanks for the reply. But I have maintained the number ranges for matl. reservations/dependant requirements at OMI2. Here is the screen shot..Do find anything wrong with it? Pl advice.
NR Object MRES/DREQ
No. From Number To Number Curr Number Ext
01 0000000001 8999999999 380 blank
02 9000000000 9500000000 blank checked
RB 9500000001 9999999999 blank checked
Number ranges for the plants are assigned to 01 (0000000001 to 8999999999).
thanks
BE
Edited by: Brian Elfie on Jan 10, 2008 11:27 AM -
Number range for Goods receipt against Purchase order
Hi All,
Please help me with the transaction code of creating new number range to receive goods for the new year.
Message is Number range for trans./event type WE in year 2010 does not exist
SAPXPTOMBT click on the groups button, select the
Material documents for goods movements and inventory diffs.
WA WE WF WH WI WL WO WQ WR WS WV WW WZ
And then select the maintain icon, you need to maintain the number range
for the year 2010.
ands OMBA for accounting finance doc number range
hope this helps -
Alphanumeric number range for object QMERKRUECK
Hi all
I have raised a question on number range object QMERKRUECK few days back.
Internal number assignment for object QMERKRUECK (numbers are in critical area)
With reference to the same please let me clear, if it is possible to create alpha numeric number range for the same object.
I tried in SNRO but system does not allow for this.Next is , if any userexits are there to achieve this.
I know, this issue is hardly seen in any implementation but if anybody has gone through this and got a proper solution, please share your experience.
Regards
D MohantyHello,
You can define number range for Purchase requistions in OMH7 transaction agaist each number range number and you assign can assign these number range number to your purchase requistion document types in SPRP >> Materials management >> Purchasing >> Purchase requistion >>Define doucment type.
E.g for NB doc type number range number is 20
and in OMH7 number range number 20 has interval from- 2000000000 to 2099999999
same way
for RV doc type number range number is 21
and in OMH7 number range number 21 has interval from- 2100000000 to 2199999999
Regards,
Shailesh
Maybe you are looking for
-
Can i use someone else's Snow Leopard boot disk to upgrade my mac?
I am unfortunately at that stage in life where as a teenager i have many lusts and "needs" but have hit the road block... money. I have enough to buy lion through the appstore but have not got enough to first upgrade to Snow Leopard and THEN Lion as
-
Hi I am doing multiple file to bapi scenario. three senders and one receiver in sender side 3 files we have to use correlation for two files. and we have to use alert also.how will we restrict correlation for 2 nd file. can any one send me related bl
-
TS3354 Video playback help - black screen
I'm trying to view my TV shows but all I get is a black screen. My movies seem to be loading just fine, though. I've already updated my iTunes thinking that that would be the problem, but nothing has changed. Any suggestions?
-
SQL Developer Screens Don't Match Tutorial Screens
Hi, I am new to SQL Developer and am starting to go through the tutorial that is at this URL http://st-curriculum.oracle.com/tutorial/SQLDeveloper/index.htm. The version of SQLDeveloper that I just downloaded and am running is version 1.1.0.23. My pr
-
i believe i have deleted over $150 worth of videos. I wen to tranfer everything from my mac mini to my external hard drive exactly like the guy in the apple store told me and now they are gone. they are not in my deleted files/folder/trash can either