How to get the unoccupied material number in a number range
How to get the unoccupied material number in a number range.for example, I wang to get a number between 1500000 and 1599990 which is unoccupied as my material number to be created. Is ther any FM or codes?
Dear,
You can get this information from Tcode SNUM or you can access database table NRIV.
Similar Messages
-
How to get the Next Material Document Number
Hi,
Please let me know How to get the next Material Document Number using Functional Module,
Material Document number are in MSEG table.
Regards,
GaneshHi Ganesh,
if you want the next matrial number then first of all you have to define it as a number range in transaction snro.After creating the number range you have to define the interval.
now you can use your number range by calling the function module
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01' " here you have to give the number range number which you have defined in number range
object = 'ZPRODLOG' " Number Range
IMPORTING
number = wa_prod_error_log-seqnr " sequence number generated,in your case material number field
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.
each and every time next number will get generated .
i hope this will help you.
Thanks,
Tanmaya -
How to get the 0 in front of a number
I have a table column with number data type. How to get the column including the 0 in the front.
For example: 066666 i want get 66666, not 066666.
Thanks.Hi,
Post your query and some data. Seriously. There are a number of different possible explanations, mostly invlolving TO_CHAR or COLUMN. I don't want to write them all, and you don't want to read them all. -
How to get the service address from service address number
Hi, IS-U Gurus:
I got the service address number by passing business partner number to BAPI 'BAPI_ISUPARTNER_GETDETAIL'
On return table of "bapiisubpa", the first field is service number, but what we need is service address,
How can I get the service address from service number ?
Thanks in advance.
Liang
Edited by: Liang Ji on Apr 27, 2009 6:57 PMhi
are u looking for business partner address?
if so u can ref table but020, get its bp no. and then refer table but000 for its address.
Regards,
Sumedha -
Newbe Question: How to get the Workflow Name to a WS* number?
Hi All
Just a short question:
I have a whole bunch of WS9*** numbers and now I am supposed to find the corresponding WorkFlows in a system (from a business perspective). The problem is that I have no clue on how to do this as I am reale new to WorkFlows.
Is there anybody who can help me out?
Thanks,
Regards,
MinimaHello,
If you have access to PFTC_DIS, choose "Workflow template" for Task type and do a list of values on the Task field (which has the WS* number, but without the WS). This will give you the full list.
If you don't have access to PFTC_DIS, but do have access to SE16 or SE12, look in table
HRS1000 where OTYPE = WS and LANGU = EN.
regards
Rick Bakker
Hanabi Technology
Edited by: Rick Bakker on Dec 15, 2008 12:58 PM -
How to get the weekends days for a specific date range
I want to select list of only weekend dates from a given date range. Is it possible in SQL?
For example if the range is '08/01/2011' and '08/30/2011'
I want a list
08/06/2011
08/07/2011
08/13/2011
08/14/2011
08/20/2011
08/21/2011
08/27/2011
08/28/2011Thank You, Naveen email:[email protected]First and easy to do is having a Calendar table, which over there you can have those information.
http://arbibaghdanian.blogspot.com/2011/05/calendar-table.html
Declare @beginDate Date, @EndDate Date
Select @beginDate = '08/01/2011', @EndDate = '08/31/2011'
Declare @Calendar Table
(CalendarDate Date Primary key, IsWeekend Bit, YearNo SmallInt, QuarterNo TinyInt, MonthNo TinyInt, DayOfYearNo SmallInt, DayNo TinyInt, WeekNo TinyInt, WeekDayNo TinyInt)
While @beginDate <= @endDate
Begin
Insert Into @Calendar
Select
@beginDate As CalendarDate
,(Case When DATEPART(Weekday, @beginDate) In (7, 1) Then 1 Else 0 End) As IsWeekend
,DATEPART(Year, @beginDate) As YearNo
,DATEPART(QUARTER, @beginDate) As QuarterNo
,DATEPART(MONTH, @beginDate) As MonthNo
,DATEPART(DayOfYear, @beginDate) As DayOfYearNo
,DATEPART(Day, @beginDate) As DayNo
,DATEPART(Week, @beginDate) As WeekNo
,DATEPART(WEEKDAY, @beginDate) As WeekDayNo
Set @beginDate = DateAdd(Day, 1, @beginDate)
End
Select * From @Calendar Where IsWeekend = 1
Best Wishes, Arbi --- MCC 2011; Please vote if you find this posting was helpful or Mark it as answered. -
How to get the document number for a ware house order.
Hello gurus,
how to get the document number for a ware house order. [if GI is posted refering that WH order] .. is there any report?
Thanks in advanceThere are several options. When you post a Goods Movement, you can use LB12 -display Transfer Requirement for material document or LB11 Display TR for material.
Depending on how your system is set up you may have gotten a Transfer Order automcatically. In this case you can look at LT24 - Transfer Order for material. -
Indesign CS3: How to get the number of the current layer?
Hallo!
How to get the number of the current layer in a page?
Thanks,
Alois BlaimerInterfacePtr<ILayerList> layerList(documentUIDRef, UseDefaultIID()); <br /><br />int32 layerCount = layerList->GetCount();<br /><br />To findout layer name use<br /><br />IDocumentLayer* documentLayer = layerList->QueryLayer(layerIndex);<br /> <br />PMString layer=documentLayer->GetName();
-
How to get the number of years, months with two sysdate()
Hi All,
Sorry for posted another question regarding the conversion.
I have the hiring day and current day in date format like : '2005-10-01' and '2006-09-14'
How to get the differences between current date is ('2006-09-01') and
hiring date is ('2004-10-01' )
in the format number of years and number of month without using the Mod
function . For this example the result is : 2 years 1 month
Thanks
JPHow to get the differences between current date is ('2006-09-01') and
hiring date is ('2004-10-01' )
in the format number of years and number of month without using the Mod
function . For this example the result is : 2 years 1 monthshould not it be 1 year 11 months???
SQL> select (date '2006-09-01' - date '2004-10-01') year to month diff from dual;
DIFF
+01-11 -
How to get the number of the row added to tabular form by the AddRow()
using 4.0. User clicks an Add button which calls a javascript function that gets a couple page item values, inserts a row (addRow(), and updates columns in that newly inserted row with the values from the page items. This works fine if I hard code the row number (so it saves the page item values into the row I specify) but I don't know how to get the row number of the newly inserted row?
i.e html_GetElement('f12_0003').value = DocName; will set the element F12 at row 3 correctly, but I need to have the 0003 replaced with a variable that has its value set after addRow() but can't figure out how.hi,
use the following code:
CALL METHOD OF gv_selection 'Information' = gv_curpage
EXPORTING
#1 = 3. " get current page number
CALL METHOD OF gv_selection 'TypeText'
EXPORTING
#1 = gv_curpage. "show current page number
CALL METHOD OF gv_selection 'TypeText'
EXPORTING
#1 = ' of '.
CLEAR gv_endpage.
CALL METHOD OF gv_selection 'Information' = gv_endpage
EXPORTING
#1 = 4. "get total page number
CALL METHOD OF gv_selection 'TypeText'
EXPORTING
#1 = gv_endpage. " show total page number
Edited by: VoonHan on Oct 13, 2009 7:35 AM -
How to get the number of TCS attached to a Defect
Hi All,
I have requirement, where in I want to find the number of TCS attaached to one defect.
For example I will create the Defect in CRMD_ORDER transaction and insert this defect in STWB_2 for some TEST plan againgt the TCS. so here i would insert the same defect for 4 TCS.
Suggest me wheather this is good practice or not. And how to get the details of all the TCS attached to a particular Defect.
Thanks in Advance
Regards,
Bharathi.Hi All,
I have requirement, where in I want to find the number of TCS attaached to one defect.
For example I will create the Defect in CRMD_ORDER transaction and insert this defect in STWB_2 for some TEST plan againgt the TCS. so here i would insert the same defect for 4 TCS.
Suggest me wheather this is good practice or not. And how to get the details of all the TCS attached to a particular Defect.
Thanks in Advance
Regards,
Bharathi. -
How to get the number of columns in a result set???
hi everyone..
i am trying to establish a servlet applet communication....
my applet send the sql query to the servlet as serialised string and then the servlet executes the query...
Since i need to pass the result back to the applet, i thaught of passing the whole reult set to the applet..but that seems to be not possible..
so i thaught of storing my result set data in a vector and then pass the vector,but the first problem that i came across is that how to get the number of colums in a result set....
so is there a way to get the number of columns in a result set...???
and also i would like to know if it possible to send my whole result set to the applet bye serialization or by any method...???
thanx in advanceYou shouldn't do. It expenses resources (you should always close the ResultSet and the Statement as fast as possible). Simply gently process it into a Collection or Map of DTO's. Those are serializable.
-
How to get the number of files currently open?
hi,
does any one know how to get the number of files currently open in windows OS?
e.g. lets say .txt files...
any comment will be really appreciated.
thanksAssuming that you don't want to actually do this from within Java code (which would obviously require native code), here's a utility that will give you a list of which file handles are opened by which processes (on Windows):
http://www.sysinternals.com/ntw2k/freeware/handle.shtml
- K -
How to get the number of elements in DB
Could you tell me how to get the number of elements in DB??
My code to get the number is below, but I think it is not efficient
DB->cursor(DB, NULL, &cursorp, 0);
while ((ret = cursorp->c_get(cursorp, &key, &data, DB_NEXT)) == 0)
count++;
--------------------------------------------------------------------------------------------------------------Hi,
The most efficient way to get a count from the database is using the DB->stat API (http://docs.oracle.com/cd/E17076_02/html/api_reference/C/dbstat.html)
The code will be something like:
DB *dbp;
DB_BTREE_STAT *statp;
int ret;
/* Print out the number of records in the database. */
if ((ret = dbp->stat(dbp, NULL, &statp, 0)) != 0) {
dbp->err(dbp, ret, "DB->stat");
goto err1;
printf("%s: database contains %lu records\n",
progname, (u_long)statp->bt_ndata);
free(statp);The code comes from the example included in the distribution at examples/c/ex_btrec.c
If the database isn't a btree, you should update to the appropriate statistics structure and field.
It's worth noting that retrieving the count is never a "cheap" operation. The count is not stored in the database - since doing so introduced a single point of contention that creates a bottle neck.
Regards,
Alex Gorrod
Oracle Berkeley DB -
How to get the number of messages consumed by a MDB ??
Hi all,
How to get the number of messages consumed by a MDB displayed in OEM in a Java Application ???
DMS ??? what use DMS ???
tanksok.
Well using DMS is one way to get at these sorts of stats in a programmatic manner.
There's a Java API you can use, or you could call out to the Spy servlet to query the DMS stats in either text or XML form.
I don't have an MDB published so I can't show you specifiically, but here's the sort of query you can use to extract the data.
http://localhost:8888/dms0/Spy?format=raw&table=oc4j_ejb_stateless_bean&recurse=children
Which produces a table of the TEXT form:
<DMSDUMP version='9.0.4' timestamp='1163456821185 (Tue Nov 14 08:57:01 CST 2006)' id='8888' name='OC4J'>
<statistics>
/oc4j [type=n/a]
/oc4j/default [type=oc4j_ear]
/oc4j/default/EJBs [type=oc4j_ejb]
/oc4j/default/EJBs/jmsrouter_ejb [type=oc4j_ejb_pkg]
/oc4j/default/EJBs/jmsrouter_ejb/AdminMgrBean [type=oc4j_ejb_stateless_bean]
pooled.count: 11 ops
pooled.maxValue: 1 count
pooled.minValue: 0 count
pooled.value: 0 count
ready.count: 11 ops
ready.maxValue: 1 count
ready.minValue: 0 count
ready.value: 0 count
session-type.value: Stateless
transaction-type.value: Bean
/oc4j/default/EJBs/jmsrouter_ejb/EnqueuerBean [type=oc4j_ejb_stateless_bean]
pooled.count: 11 ops
pooled.maxValue: 0 count
pooled.minValue: 0 count
pooled.value: 0 count
ready.count: 11 ops
ready.maxValue: 0 count
ready.minValue: 0 count
ready.value: 0 count
session-type.value: Stateless
transaction-type.value: Bean
/oc4j/default/EJBs/jmsrouter_ejb/TimerHandlerBean [type=oc4j_ejb_stateless_bean]
pooled.count: 11 ops
pooled.maxValue: 0 count
pooled.minValue: 0 count
pooled.value: 0 count
ready.count: 11 ops
ready.maxValue: 0 count
ready.minValue: 0 count
ready.value: 0 count
session-type.value: Stateless
transaction-type.value: Bean
</statistics>
</DMSDUMP>
Or produces an XML document of the form:
http://localhost:8888/dms0/Spy?format=xml&table=oc4j_ejb_stateless_bean&recurse=children
You can use the Spy console to find the table that contains the details for MDB and then take it from there.
This is not what you specifically want to do, but it does provide a good overview of how DMS is used.
http://www.oracle.com/technology/pub/notes/technote_dms.html
-steve-
Maybe you are looking for
-
34970a totalizer not reading correctly
I am having trouble reading the 34970a multi function card totalizer. I am trying to use the example that came with the driver, but I am having no luck. I can read/write all of the other functions on the card. I can also read the totalizer using s
-
Adding mailbox's to mail accounts
How do you add mailboxes, I want so same some emails and cannot work out how to add these. Thanks
-
Does anyone have ANY idea when the next update is going to happen?
I'm editing a wedding video now and am waiting for the new updates (especially the functionality between Speedgrade and PP) to drop. I had heard a few weeks back that they were going to happen 10/15 but that date came and went. Then at the Create Now
-
Is there "rising edge"-block in labview?
And block down counter? rising edge comes from button, digital line etc..
-
How to add a copyright watermark
I have tried using the Alt + 0169 also tried Alt G. neither method works, the symbol does not appear.