SD number range based on company codes
Dear all,
We have two company codes in one client.We want to create separate SD number ranges based on company codes.Is there any possibilities to do this.Please advice.
Regards,
Abdul jabbar
Abdul,
If you have different doc types for two company codes then you can maintain different number ranges in standard for two company codes.
If you have same doc types for two company codes then you have to go for enhancement.
1. Create one ztable: Maintain the entries like below.
company code
SD document categ.
Document type
Sequence Number
Prefix code
Object name
Number range number
2XX1
C
ZXXX
1
A01
Z_XXX_X1
01
2XX1
C
ZXXX
1
A01
Z_XXX_X1
01
2XX1
C
ZXXX
1
A01
Z_XXX_X1
01
2XX1
C
ZXXX
1
A01
Z_XXX_X1
01
2XX1
H
ZXXX
1
A01
Z_XXX_X1
01
2XX1
H
ZXXX
1
A01
Z_XXX_X1
01
2XX1
H
ZXXX
1
A01
Z_XXX_X1
01
2XX1
H
ZXXX
1
A01
Z_XXX_X1
01
2XX1
H
ZXXX
1
A01
Z_XXX_X1
01
2XX1
J
ZXXX
1
A02
Z_XXX_X1
02
2XX1
J
ZXXX
1
A02
Z_XXX_X1
02
2XX1
J
ZXXX
1
A02
Z_XXX_X1
02
2XX1
J
ZXXX
1
A02
Z_XXX_X1
02
2XX1
J
ZXXX
1
A02
Z_XXX_X1
02
2XX1
K
ZXXX
1
A01
Z_XXX_X1
01
2XX1
K
ZXXX
1
A01
Z_XXX_X1
01
2XX1
L
ZXXX
1
A01
Z_XXX_X1
01
2XX1
M
ZXXX
1
A05
Z_XXX_X1
05
2XX1
M
ZXXX
1
A05
Z_XXX_X1
05
2XX1
M
ZXXX
1
A05
Z_XXX_X1
05
2XX1
N
ZXXX
1
A05
Z_XXX_X1
05
2XX1
N
ZXXX
1
A04
Z_XXX_X1
04
2XX1
O
ZXXX
1
A03
Z_XXX_X1
03
2XX1
O
ZXXX
1
A03
Z_XXX_X1
03
2XX1
O
ZXXX
1
A03
Z_XXX_X1
03
2XX1
O
ZXXX
1
A03
Z_XXX_X1
03
2XX1
O
ZXXX
1
A03
Z_XXX_X1
03
2XX1
P
ZXXX
1
A04
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X_X1
08
2XX2
S
ZXXX
1
A08
Z_XXX_X1
08
2XX2
S
ZXXX
1
A08
Z_XXX_X1
08
2XX2
T
ZXXX
1
A07
Z_XXX_X1
07
2XX2
T
ZXXX
1
A07
Z_XXX_X1
07
2. In SNRO Maitain the number Ranges interval
First system take the number range interval and searches for the entry in ztable and prefix the code as per the ztable enteries.
By this u can differentiate the number ranges by company code.
Revert back to the forum if need any clarification.
Thank$
Hidayath
Similar Messages
-
PO Number ranges based on company code
Hi all,
I have a small problem,
when saving a purchase order, diffrent number ranges must be assigned based on the company code,
i found that the below user exit can be used, where i can use EBELN as the purchase order number,
but, how to assign the PO number exactly in between numbers, that is how to assign number ranges.
like:
for companycode 2000, all the PO numbers must lie between 10000000 to 19999999.
for companycode 3000, all the PO numbers must lie between 20000000 to 29999999.
The User exit i found is :
Enhancement: MM06E003
FM: EXIT_SAPMM06E_001
Include: ZXM06U17
I am also creating a ztabel, with number ranges assigned to each combination of company code and purchase org.
But how must i assign the EBELN must be between those number range.
Thanks.
Edited by: vinay k on Mar 22, 2009 1:14 AMHi suresh,
Thank you for the reply,
but the link you gave just says , what i explained above, do u have any more suggestions,
how should i make the system to choose a doc number in the given number range ? *
i read in some threads, we can use ranges,
can anyone tell how to use it, in our scenario.
Thanks. -
One order type different number range for different company code
Hi
I have created one order type. Same order type I extended in another company code (plant).
I required different number range for another company code.
Can any give detail solution.
Regards
ARKHi,
In CO82, define groups of order types. Define number intervals and assign number intervals to groups. Organize order types that you want to assign same number interval under groups.
Regards. -
How can I setup different number range for each company code?
Dear GURU,
Is it possible to setup different number range for material document by company code? If yes, what should i do.
Thank you in advance.
ThammaritHi,
you maintain the number assignment for the following documents:
material documents
physical inventory documents
The number assignment for these documents is not to be confused with the number assignment for accounting documents . The number assignment for accounting documents depends on the document type which is allocated to the transaction.
The number assignment for material documents and physical inventory documents depends on the transaction/event type which is also allocated to each transaction in Inventory Management. The transaction/event types are divided into groups of number ranges. A number range interval has to be defined for each group.
You cannot change the transaction/event types. However, you can change the number range intervals or you can allocate transaction/event types to new groups.
Caution: Change in the Fiscal Year
If, at the time of a fiscal year change, you reset the number range in the new fiscal year, separate number range intervals for the previous year and for the current year must be maintained for one month to allow postings to the prior period.
Example:
Interval for 1995: 4900000000 to 4999999999 status: 4900451234
Interval for 1996: 4900000000 to 4999999999 status: 4900000000
If only one number range interval exists for both years and you make any postings to the previous period, the system will assign numbers that already exist in the previous year. This would lead to an update termination.
In the standard system, the transaction/event types and number range intervals are preset for Inventory Management as follows:
Physical inventory documents
Number range interval from 0100000000 to 0199999999
This group contains the following transaction/event types:
- IB Physical inventory documents
- ID Physical inventory documents for counts and differences
without reference
- IN Physical inventory documents for recounts
- IZ Physical inventory documents for count without reference
- WV Physical inventory documents for difference postings in the WM System
Material documents for goods movements and inventory differences
Number range interval from 4900000000 to 4999999999
This group contains the following transaction/event types:
- WA Goods issues, transfer postings, other goods receipts
- WH Goods movements for handling units (HU)
- WI Material documents for inventory adjustment postings
- WL Goods issues for delivery documents (SD)
- WQ Goods movements for usage decisions (QM)
- WR Goods movements for completion confirmations (PP)
- WS Goods movements for run schedule headers (PP)
- WZ Documents for batch status changes
Material documents for goods receipts
Number range interval from 5000000000 to 5999999999
This group contains the following transaction/event types:
- WE Goods receipts for purchase orders
- WF Goods receipts for production orders
- WO Subsequent adjustment of subcontract orders
- WW Subsequent adjustment of active ingredient materials
Inventory sampling numbers
Number range interval from 0200000000 to 0299999999
This group contains the transaction/event type SI.
SAP recommends that you accept the settings defined in the standard system. In this case, no action is required on your part.
Note
For performance reasons, 10 document numbers are buffered on the application server. In this way, gaps in number assignment can occur.
Actions
Check whether you can use the predefined groups and number intervals.
If you want to change any groups, proceed as follows:
a) Choose Group -> Maintain.
b) Select the transaction/event type that you want to re-allocate.
c) Place the cursor on the new group and choose Edit -> Assign element group).
d) Save your settings.
If you want to define new groups, proceed as follows:
a) Select Group -> Maintain.
b) Then select Group -> Insert.
c) Enter a text for the number range group.
d) Maintain the number interval for this number range group.
e) Allocate the transaction/event types to the number range groups (see step 2).
If you want to maintain new number range intervals for an existing group, proceed as follows:
a) Choose Group -> Maintain.
b) Select a group and choose Interval -> Maintain.
c) Choose Edit -> Insert year.
d) Maintain the number interval for the new fiscal year.
If you do not want to use the year-related number assignment method, enter 9999 in the field Year.
Note on transport
You transport number range objects as follows:
In the initial screen, choose Interval -> Transport.
Note that all intervals for the selected number range object are deleted in the target system first. After the import, only the intervals you export are present. The number statuses are imported with their values at the time of export.
Dependent tables are not transported or converted.
Thanks and regards
Rajesh -
Number Range for PO based on company code and document type
Dear All,
I've a requirement to assign a separate purchase order Number Range for a company code for the following document types.
ZNB Standard PO
ZRB Return PO
ZUB Stock transport ord.
ZLPA Scheduling agreement
ZLU Transp. sched. agmt.
(Number Ranges are different for each of the doc types mentioned above)
Is it something like I've to create 5 different Number Range objects and then provide the condition in the corresponding user exit , so that the appropriate document could pick its corresponding Number range.
Does anyone have any specific advice / experience on this , I am new to SAP and please advise me as how to go about this requirement. Thanks !!
Srinivas G.Create the five different number ranges via configuration the configuration for PO. Usually a user exit is not needed. You've really posted in the wrong forum.
There is a lot of work involved in creating a different PO types. It is usually done in materials management.
If everything is done:
In spro go to materials management -> purchase order -> define number ranges.
Once they are defined they should work automatically or be entered manually depending on how your number range is set up.
Edited by: Michelle Crapo on Aug 3, 2009 3:07 PM -
Migo BADI Based On Company Code
Hi All,
I created custom fields in Migo & updated them to database using MB_Migo_Badi.
Now i need to display this tabstrip based on Company code.
.I need to hide the subscreen for a Purchase Order Based on Company Code A & display Subscreen for Purchase Order Based on Company Code B.
Can anyone suggest code for it.
Thanks,
Neelima.Hi,
MIGO number ranges will be based on the company code and fiscal year in standard transaction.
Go to FBN1 transaction and maintain the number ranges for your company code and assign that to GR document type.
Regards,
Bharat. -
How to determine number range for billing document based on company code ..
Hi Friends!!
can anybody tell me how to determine number range for billing document based on company code & tax departure country if required??
Amit...plz help me!!Hi Amit,
1. Define different Billing Document number ranges in SPRO -> Sales & Dist -> Billing -> Define number ranges for billing docs. (VN01). Make sure that all are internal number ranges.
e.g.
NO. From number To Number Current number Ext
A1 0930000000 0930999999
A2 0940000000 0940999999
A3 0950000000 0950999999
2. Define a Ztable ZNUMB_RANGE as follows
Comp. Code | Tax departure country | Billing Doc Type | Number Range
100 IN F2 A1
200 IN F2 A2
200 US F2 A3
3. In user exit RV60AFZZ (USEREXIT_NUMBER_RANGE)
Read table ZNUMB_RANGE for Number Range with Comp. Code, Tax country and Billing Doc.
If found pass this number range value to us_range_intern.
us_range_intern is a standard SAP variable which tells program which number range use to create the current document which is under process.
Let me know if you are clear.
Thanks,
Mandar -
Hi All,
I have requirement, cliant wants number range based on plant, for example
we have three plants under 1 company code AXXX,BXXX,CXXX the requirment is when we create a PO the PO number should start with Aor B or C starting letter of the plant.
we know that we can use differnet document type but here we want to use only one document type I.e NB document type.
Please let me know steps to do this,
Thanks in advance.
Thanks&Regards,
ChandHi
It is posibel to create number ranges per plant
But my suggestion you have only three plant then create differnt doc type for plant,there are many report depend on plant,and we can use differnt plant in po also so it will effect
chek following link
[Purchase order number ranges plant wise;
Regards
Kailas ugale -
Dear All,
As we are having several company codes and want users only to be able to open and close periods from transaction code OB52 belonging to their posting period with respect to company codes how can I restrict and allow them open & close periods based on company code repectively. Is there any process this be done.
I tried with the notes I got from one sap-img link. But it did not work & there something is missing. Kindly if anyone have done this before send be step by step process. Awaiting for you reply...
regards,
Raj B...How about trying it this way?
1. Remove access to OB52
2. Create a maintenance view similar to V_T001B specific for each company.
3. Create a TCODE for each of these views.
4. Use this TCODE for authorization assignment.
This should be simple but your number of views would be increasing with respect to the number of companies.
~Eswar -
Configure OBA7 based on company code
Hi Gurus
heres my problem.
in OBA7-- in "required during document entry tab", the check box for reference number is ticked.
but i want that to be set up based on company code.
for 1 company code, they want it to be not required, where as others want it.
Please let me know is there a way i can do this, the same set up where i can even enter company code.
also let me know is its a problem to uncheck it.
Thanks a lot
kavanaHi
Do not make it required at in OBA7
build a Validation to check the field and throw an error for the specific company code .
Regards
Sach!n -
Gl a/c short and long text based on company code
Hello Friends,
In table skat the gl account description is given based on chart of accounts but what if i want the description based on company code.
I want the table where i can get the gl account description based on company code??
Pls suggest.
Regards,
SunnyHi,
you can look at the database view for requirement
GL_ACCT_CC_TEXT
regards\
Mahesh -
SKF transactional values based on company code
Can anybody let me know the logic how we can seggregate transactional value passed to statistical key figure based on company code or is there anytable where we can direclty find SKF transactions involved based on company code ?
Need to upload SKF transactional figures from one SAP system to another.Hence require process for extraction and uploading of the sameHi Amogh
Hope you are looking for actual SKF quantities posted. kindly check s_alr_87013611 CC report, I think on the lower part this comes. This time I am not in front of system so you please check.
Regards
Rajneesh -
Decimal places adjustment based on company code or currency
Hi experts,
my requirement is i have to adjust the decimal places in amount fields of internal table based on company code or currency given by user.
suppose for example in my internal tables having 5 amount fields like 1.50 1.234 1.45 1.34, 1.67 for company code is in01
the same values for VN01 should be like this
150 1234 145 134 167 ....
can any body plz tell me any functional module is there to covert or abapcode?
Thanks in advance,
veena.That code is a bad idea. Why would you hard-code that type of action for currency/amount handling?
@poster: If the output is based on the local currency defined for the specified company code or one specified by the user, then use it. SAP handles amount output automatically with a currency specification because the currency definition identifies where/how the decimal is output.
Just use WRITE as Florian indicated but use the CURRENCY extension instead of DECIMALS. You can do this dynamically based on the company code easily...
A simple 3 line program shows you how this works:
PARAMETERS: p_wrbtr type wrbtr.
write:/ p_wrbtr CURRENCY 'USD'.
write:/ p_wrbtr CURRENCY 'JPY'.
Edited by: Brad Bohn on May 12, 2011 1:07 PM -
Restriction of Tcode SQ01 based on Company code
We are running one customized query using Tcode SQ01. We need to restrict Tcode SQ01 in company code level. We have checked about authorization object in st01. But there is no check of authorization object. Can anybody help to restrict SQ01 based on company code level?
Regards
AuroshikhaHi Auroshikha,
Itu2019s very easy to maintain authorization in your Infoset Query report. I got and implemented similar requirement i.e. restriction /authorization as per company code.
You need to use authority check for authorization object P_ORGIN in your infoset.
Please follow the bellow steps:
-->Go to SQ02, Enter your Infoset name and click on Change button.
-->Click on 'Code' (Shift+F8) icon dispalyed on application toolbar, you will be moved to Code Section of Infoset that lists different events.
-->Choose Record Processing event from code section.
-->Write the following code in 'Record processing' event of your Infoset.
AUTHORITY-CHECK OBJECT 'P_ORGIN'
*ID 'INFTY' FIELD '*'
*ID 'SUBTY' FIELD '*'
ID 'AUTHC' FIELD 'R' "read
ID 'PERSA' FIELD P0001-WERKS
*ID 'PERSG' FIELD DUMMY
*ID 'PERSK' FIELD DUMMY
*ID 'VDSK1' FIELD DUMMY.
CHECK Sy-SUBRC EQ 0.
Note: PERSA field used in this Authorization object plays an importan role , if you are in different module other that HR , then pass here table_name-companycode_field
-->Genetare Infoset
-->Go to SQ01 (in a new session) , Click on exeute or 'Test button' to check authorization is working for report
Let me know if you need any more details.
Thank you.
Regards,
Dinesh Tiwari -
Any option to restrict SE16 record level access based on company code?
Hi All,
I have a requirement to restrict record level access in SE16 based on company code.
Our SAP system has two company codes. The requirement is that users of one company code should not be able to see records of other company code in SE16.
Is it possible through some exits/badis/other methods?
Thanks in advance.
Regards,
Arun MohanYou could write a small front end that accepts the company code, applies custom authorization code for each value and retains or removes, then calls the transaction and enters the selections the user requested and that your authorization check resulting in "passing".... Of course, you'd have to block those users from "pure" SE16... I once worked in situation similar, users in one country couldn't see USA data, etc. I think someone wrote an entire new program, called by ZSE16, for that.
Maybe you are looking for
-
Photo slideshow not working on Apple TV
I have two ATV - one ATV2 running 6.2.1 and one ATV3 running 7.0 and I am sharing photos from iPhoto through iTunes. When I go to "computers=>Photos" they both go to the photos screen where I can chose "Events/Photos/Face". If I chose events or Fac
-
Capture event oracle.apps.wf.notification.receive.message
Hi, I am trying to capture the event oracle.apps.wf.notification.receive.message. Whenever system receives an email response of a notification, I want to insert some values to a table. I have created subscription on this event and calling a package p
-
Transactional replication issues
SQL 2012 for both servers. Basically I would like to set up a (transactional I think) replication of few articles from serverA to serverB. I created publication and I created subscription (push) related to serverB. In the past, on a sql 2005 instance
-
Shared unlimited messaging means what exactly???
I have my phone through work and we are on a 'Shared Unlimited' plan for messaging etc. My problem is that our office manager keeps telling me I owe X-amount of dollars for being OVER on my texts. How can I be over on the number of texts if we have a
-
ATI Radeon 9200 and Mac OS X 10.5?
I just bought this card (ATI Radeon 9200 Mac Edition - 128MB), installed the available drivers (for Mac OS X 10.4, according to ati.com) and firmware update, but the graphics are horrible. In World of Warcraft, it's running at 5 FPS at lowest graphic