Query to skip special customer numbers while auto generation
Hi
I have a customer number maintenance screen refering table STTMS_CUSTOMER_SRNO_BANK, where customer number is auto generated.
Table:STTMS_CUSTOMER_SRNO_BANK columns are
CUSTOMER_RUNNING_NO , USED_FLAG
Present queries are:
SELECT MIN(customer_running_no)
INTO l_no
FROM sttms_customer_srno_bank
WHERE used_flag = 'N';
SELECT customer_running_no
INTO l_running_no
FROM sttms_customer_srno_bank
WHERE used_flag = 'N' AND customer_running_no = l_no
FOR UPDATE NOWAIT;
Current logic is it takes MIN(customer_running_no) and USED_FLAG is 'N'.
Now an enhancement is to be added that a new table CSTM_CUST_CATEGORY where a range of numbers is reserved for a special classification of customers.
Table:CSTM_CUST_CATEGORY
CUST_CATEGORY START_RANGE END_RANGE
ROYAL 1 100000
VIP 150000 200000
I need to write a query to auto generate customer numbers and the auto generated numbers should not fall in the special customer category like ROYAL,VIP,ie it should not be in the range 1-100000 and 150000-200000.
Please help me to write this query.
Thank you
Mary
Thanks a lot
This query works and serves half my requirement.
Ex..i have customer_running_no from 1300 to 1350 where used flag set to 'N'
and the start_range and end_range I have given is 1300 to 1500.
Now this query skips 1300 to 1350.It gives 1351.But my actual requirement is it should give 1501 as the next customer_running number.May I know what modification should i do to this query to get this expected result.
Similar Messages
-
Can you skip numbers while using pages?
I am working on a syllabus for class and we are asked to skip some questions. Is there a way to skip numbers while in pages? Example being
1.
2.
3.
5.
6.
8.
I'm having a hard time trying to figure it out.
ThanksScreen shots are taken by pressing the COMMAND-SHIFT keys and then '3'.
Ciao. -
Multipe customer numbers under a single snc saprouter
We have a concern regarding saprouter (snc type) and customer numbers.
We are a consulting company providing application hosting for 3 of our customers running SAP systems. All of these systems are hosted in a data centre at our premises. Presently we have 3 separate saprouters for each customer and these 3 customers have separate SAP customer numbers.
Inline with our server consolidations efforts, we are planning to merge these 3 snc saprouters into a single saprouter. While we understand that due to the generation of snc cert which is based on customer number, every saproute cert is unique to that particular customer, are there any work arounds for this? Have there been any solutions for other companies having the same issue i.e. having multiple customers in the same data centre and sharing saprouter?
Please advise the best solution forward to consolidate saprouters.Hi Stephen,
Question: Can the SAProuter be on the internal network with a private IP address but accessed by via the Public address of our firewall and proxied through?
yes, no problem, just a port forwarding for this one port 3299 for insite and NAT for outsite is required!
Question: Must all these ports be opened? Elsewhere Volker has stated only one port is required to be opened through the firewall.
ONLY port 3299 - I did several setups this way )
Question: Exactly how secure is this connection? What measures have others taken to protect the connection.
As save as a 128 Bit certificate is - by now I didn't hear on breaking that => it is safe with state of the art )
(I would imagine VPN is 128 Bit "only" as well)
=> really go for that ....
Regards
Volker Gueldenpfennig, consolut.gmbh
http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de -
Solution and multiple Customer numbers
Dear all,
while setting up new systems in our existing Solution I encounter the problem that I cannot synchronize data with the SAP SMP. The reason is that the S-User maintained in the Solution Settings is not existing in our second SAP Customer Number under which the new systems are installed. However it does not seem to be possible to create two identical S-User Numbers under two different customer numbers. As I don't see an option to define more than one S-User for a Solution I assume that a second Solution needs to defined which then includes the new systems.
From my feeling this is not a comfortable way to resolve this issue, maybe you have a hint how I can keep my existing Solution and synchronize the new systems in there as well?
Thanks a lot for your help!
Christian SchmidtmannDear Christian,
This is not possible. Only one S-User ID to one Customer Number per solution.
Please see http://www.service.sap.com and then click the Registration link on the top right hand side (top).
Hope this is helpful.
Regards,
Paul -
While executing SOLMAN_CONNECT tcode, I get the error
SEND_SYSTEM_RELATIONSHIP_TO_SUPP job fails with "No customer numbers in transaction AISUSER".
SAP note
Note 1351731 - Termination SEND_SYSTEM_RELATIONSHIP_TO_SUPP/SOLMAN_CONNECT
says problem fixed against ST 400 with SP SAPKITL431.
I'm running NW 7.0 SPS 15 which has ST 400 SAPKITL425.
I need to get SAPKITL431. but when I search SWDC for this package, I can only find SAPKITL430. I need to get SAPKITL431 in the download basket and have someone at SAP to turn off the MOPZ requirement so I can use DLManager to get the SP dlownloaded and installed. Are there other dependent SPs required. Or am I better off downloading SPS 16 or later.
I need the MOPZ requirement turned off for this until I can get the fix and get MOPZ up and running.Hi Andreas,
AISUSER was unchanged, which contained the S-user # for user DDIC and myself.
I went thru the steps in note 1140822, eventhough I had turned off BAdI months ago when I was setting up the RFCs for SAP-OSS. I maintain just one S-User. Therefore followed option 2 in the note.
Trying to implement snote 114822.
An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause
Exception of class CX_SY_NO_HANDLER
An exception of type 'CX_SY_OPEN_SQL_DB' occurred, that was not caught anywhere in the call hierarchy. It was not handled locally or declared using a RAISING clause.
TC SE19 shows AI_SDK_SP_RFC_RP as active.
Selected New BAdI and Display.
Re-executed note 1140822 and it worked this time. Apparently, the display of AI_SDK_SP_RFC_RP activated this implementation.
Snote 1140822 completed. I set process status to completed.
I reran MOPZ under tc solution_manager. I now get a different error. ERROR: E:/TMWFLOW/MO_BACKEND:025.
I forced a run immediately on SEND_SYSTEM_RELATIONSHIP_TO_SUPPORT, whcih ran successfully NOW.
Now MOPZ runs fine and I can see my files to download. I did not have any logical systems to select, but MOPZ did pickup some patches anyway. Not sure why no logical systems at this point. I defined a few logicals for both SM and satellite systems. I'll address this issue separately and open new thread, if need be.
The one question that remains is using SE19 to display status of AI_SDK_SP_RFC_RP appears to of activated it. Is this right? It fixed something such that now the applying the snote worked in de-activating it.
Thanks for all your help.
-Don Isler - HP SAP CC.
P.S. Is there a way I can upload or email you a word doc that has my screen shots and details of what I tried?
Edited by: Don Isler on Jul 29, 2009 1:36 PM -
Special Customer Prices for Items with Period
Hi all
How to show the Item Price List amount from
SELECT * FROM SPP1 T0
KedaleneHi Nagarajan
Thanks for your reply. Please see my screenshot below.
My Query result for Special Prices for Customer Business Partner, double click Item row for input Period Discount is correct except I just want to show the selected Base Price amount from the standard Price list in Inventory Price List->Price Lists->Price Lists. -
Custom Numbered List Sequence (example: F, G, H, J, K)
Hey all,
Is it possible to create a custom numbering sequence for a numbered list in InDesign?
For example, rather than have my list go: F, G, H, I, J, K, we'd like to skip the I at every iteration and go straight to J.
The reason for this is I work for a testing company, and our answer sheets don't have the letter I on them.
Any help is greatly appreciated.
Thanks!Hi,
Yes. Really simple:
Like this: -
This probably isn't the right forum for this, but maybe someone can help. Is there a way to control the file numbering on auto-import? When I set up to shoot tethered, files that are autoimported don't number consecutively. There seems to be no pattern, sometimes all odd, sometimes not, sometimes just skipping numbers. If I start at 1, shoot 30 pictures, my last file might be numbered 67. I'm shooting through Canon Capture, placing photos in a folder on my desktop and autoimporting from there. Lightroom 1.1 (though it happened in 1.0), Mac OS10.4.10. Thanks.
To get rid of them you will need to find that auto import folder and delete them. If you search for the name in spotlight, then do Show All, when you click on a name you should see the file path to it at the bottom of the finder window, like this:
If you double click the name of the enclosing folder it will open and you can see the file to delete it. In my example if I want to get rid of roykitchen.jpg, double clicking the roykitchen folder name will show it to me. -
Lock at a Customer level - while creating a dispute or working on the ColWL
Please, provide workarounds for:
SAP creates a lock at a Customer level while doing the following activities
u2022 Clearing an item
u2022 Creation of a Dispute case
u2022 Working on Collections worklist for a particular customer
As a result of the lock at the customer level, no other user can work on the same customer at the same time.
Many thanks,
Mario.Hi Mario,
This is how system is supposed to work, so that only one user can work at a time on a particular customer. Without such a control, things could go wrong. Eg. You might be making a payment to the customer invoice, simulataneously other user could be trying to clear the same invoice using some credit memo.
So there is not workaround.
Thanks
Krishna -
To save the sales order number in custom table while creation of the order.
Hi Experts,
Does there exist any exit to save the sales order number in a custom table while the sales order is created in VA01. The requirement is to capture the sales order number in a Z table when a field (payment terms ) is changed during the sales order creation.
Regards,
SunithaHi Sunita,
You can store your data in the User exit MV45AFZZ in the form 'userexit_save_document'.
You can navigate to MV45AFZZ from SE38 wherein an access key needs to be generated for that program, if you know to implement enhancement points then you can create an implicit enhancement point in this form without generating an access Key.
Regards,
Ravi Kiran -
Business partner creation - Not in sync with customer numbers -
Hi All
I am trying to do the BP conversion in collections management.
The customer number range for account group ZXXX is (80000 to 89999) and the external number range flag is not selected.
I have created created a number range Y2 through BUCF, with numbers from (80000 to 89999), I did not choose external flag, thinking it should be same as customer number range. I have created a BP group ZXXX and assigned this number range Y2.
Later when I did the BP conversion through MDS_LOAD_COCKPIT, I observed that the BPs are not in sync with the customer numbers.
So my question, should I have choosen external number range flag in BUCF, even though its not selected in the customer number range? Has this caused the issue?
Please help me understand this and rectify this issue.
thanks in advance.
KrishnaHi Christobal,
Thank you so much for you response.
As suggested, I have checked BP number range as external. Later when I ran MDS_LOAD_COCKPIT, I get the below messages
Grouping ZXXX has external number assignment, enter a number
Partner data processed with key PartnerGUID 4E1BD7375F080AE0E10080000A5B030E
Grouping ZXXX has external number assignment, enter a number
So is there any other setting which I might be missing?
Please advise.
Thanks
Krishna -
Change layout of Adhoc query output list for Custom infotype
Hi All,
The fields in the Infoset query output on a custom infotype are aligned with the fields u2018payment typeu2019 and u2018amountu2019 appearing repeatedly(in columns) as declared in the Infotype and the output will be a long horizontal list.
Instead, the requirement is that the output list should show vertically so that If I choose u2018Payment Typeu2019 and u2018Amountu2019 as output fields, it will show a long vertical list as in the case of a standard infotype (IT0008).
Also, this way enables user to use Payment Type as a selection criteria so as to just pulling the needed payment type. When we use IT0008 in the infoset it works fine but in custom IT it does not work.
Any pointers/suggestions on how we can achieve this would be helpful.Hi yu liang,
You can find vendor list having Vendor No. & without showing total liability for every vendor.
after executing the report,
1.You need to select "change layout (ctrl+F8)",
a small window comes, it has two part -> column content & hidden fields.
then u select "Vendor" from hidden field & move it to column content.
2. at column content there is a column named "Total". u need to remove check for your column name "amount".
now select "copy" button or enter. u will find the req. report.
u can save it also by ur name.
hope its helpful to u.......
plz, reward points as a way of thanks if helpful... -
Activities in Finance that involves moving of customer numbers
Hi,
I would like to know what are the activities in SAP that are involved with transferring of customers numbers ?
We are having some business shifts that we are renumbering our customer numbers from non-standard numbering to a standard numbering range of XX-series. Apart from AR balance transfer what else should be taken care of from finance ?Hi bmjunar,
Here are some general links that might be helpful as you try to use Softmotion and SolidWorks:
http://zone.ni.com/devzone/cda/tut/p/id/9566
http://www.ni.com/virtualprototyping/training.htm
Best Regards,
Michael B.
Applications Engineer -
How to capture userid,date in a custom table while updating a form
Hi,
I have a requirement to insert the userid, the form name and the date on which the record is saved in a custom table while updating a custom form.
We are using Form Builder 6.0.
I am new to Forms and can anyone help me with these?
I would also want to know under which trigger i should be writing the code in.
Thanks in advance.you can use:
usrid := get_application_property(username);
formname := get_application_property(current_form);
dt := to_char(sysdate,'dd/mm/yyyy hh:mi:ss');
you insert these values in on-update trigger at form level -
How to skip the Inbound Delivery while updating LA confirmations via EDI
Hi Experts,
I have a requirement wherein I dont want to create Inbound Delivery automatically when updating the LA (or a copied Conf Cat of LA) confirmation via EDI. When we are using the message type DESADV, LA confirmations are being updated, but simultaneously, the Inbound delivery also being created. My client desires that Inbound Delivery should not happen and only LA confirmation should be updated via EDI.
Is there anyway, by which we can skip the Inbound Delivery while updating the LA confirmations in the PO?
Thanks in advance
Regards
Radha KrishnaHi Prabhaharan,
Thanks for your quick response.
My requirement is to have both AB and LA confirmations. I have included these two in a new the conf control So, your suggestion will not work.
Is there any other way out to fulfill my requirement?
Thanks & Regards
Radha Krishna
Maybe you are looking for
-
Binding AD to OD but only for certain users.
We have a small (winXP) computerlab in an educational facility. In order to ensure that the computers are locked down they are all part of a Domain managed by a Win2003 AD server. I have done quite a few Registry Hacks to the Hive to make sure the us
-
So I was trying to figure out a way to get all of my WMA's onto my iTunes on my iMac. So I fiugre I would use iTunes on my PC to transfer the songs that are on there to the iPod, so when I try to open it, it tells me that the file itunes in the folde
-
Is it possible to apply a best fit line to charts?
The topic pretty much says it all, I have a scatter chart that I need to apply a best fit line to in order to make a general slope assumption. Is it possible to do this, and if so how? Also, I can't seem to put a label on my X and Y axis'. I have the
-
My Wells Fargo bank statements will not open in a viewable format.
-
ITunes 10.7 freezes when I attempt to play a song I purchased
Hi, I have the latest version of iTunes, 10.7. I have been having a continuous problem with playing songs in my list. When I click the play button, the scrolling bar does not move and the song will not play. However, if I restart the PC and load iTu