How to create EAN which can ahve leading zeros ?
hi,
I am trying to create a range for EAN's where will have the chance to start with leading zeros.
any one has had a similar issue ?
any suggestion on how to create therange ?
should be for 14 digits.
Thanks,
Hi Alex,
You can define EAN in MM01 use Additional data button then EAN's tab or you can use the Plant data / stor 2 tab, General plant parameters -> Serial No. Profile field to create your EAN (serial) range. Hope this helps.
Regards,
Joven
==============
Award points if useful
Similar Messages
-
How to create Oppertunity doc automatically after lead in CRM SALES
Hi,
how to create oppertunity doc automatically after creating lead in crm sales
Thanks7regards
kishor kumarHi Kishore,
Create SAP Business Workflow for Opportunity from Lead
Use
A lead is a business transaction that describes, stores, updates, and manages the potential business interests of a business partner, and the interactions based on this over a period of time. The goal is to provide the "sales" area with the information gained in the lead, in order that it can be used as a basis for deciding whether to create an opportunity.
The information gathered in the lead is transferred to the "sales" area via the workflow "create opportunity from lead".
In the workflow, you decide whether the opportunity is generated manually or automatically.
If the lead-specific attributes Priority and Lead group fulfill specific criteria, the workflow automatically generates an opportunity. Otherwise, the workflow sends a work item to the sales employee responsible, for manual creation. Once he has checked the data in the lead, the sales employee can either reject this lead or create an opportunity from it.
The workflow is automatically started when the lead is saved.
The sales representative entered in the lead is first taken as the sales employee whose task it is to create the opportunity based on the information in the lead. This person can be determined using partner determination in CRM, depending on the prospect in the lead, and can, for example, be a manager of a sales area. If no sales representative is entered, the workflow takes an organizational unit assigned in the workflow template, and sends the work item to all users assigned to the organizational unit.
Prerequisites
u2022 The type linkage for the start events AttributeChanged and SetErrorFree for the workflow WS10001011 are deactivated as a standard procedure, and, if you wish to start the workflow template, they have to be activated again in Customizing. The workflow task processors must also be maintained. In Customizing, choose Customer Relationship Management Basic Functions SAP Business Workflow Perform Task-Specific Customizing.
u2022 The workflow template uses the user statuses SAAC (accepted by sales) and SARE (rejected by sales) of the status profile CRMLEAD. If you have defined several user statuses, the data flow for task TS10008154 (set status) must be adapted accordingly.
u2022 When the opportunity is created, the workflow template uses the opportunity transaction type OPPT. If you have defined several transaction types for the opportunity, the data flow for task TS10008151 (create opportunity) must be adapted accordingly.
u2022 If the sales employee rejects the lead, the workflow resets the qualification level to value 02 (warm). If you have specified your own qualification levels in Customizing, you need to adapt the data flow for task TS10007918 (change qualification level) accordingly.
Process of Workflow WS10001011 (create opportunity from lead)
The workflow "create opportunity from lead" is started when a lead is saved with qualification level Hot and status Error-free. The system uses the lead-specific attributes Priority and Lead group to check whether an opportunity can be automatically created, or a sales employee first needs to decide. If the sales employee decides that an opportunity can be created, the lead status is set to "accepted by sales", and an opportunity is created in the background. If necessary, this is forwarded to the sales employee to check. If the sales employee rejects the lead, the lead status is set to "rejected by sales", and the initiator is informed by mail.
The workflow is ended if no opportunity is created and
o the lead is deleted or
o the qualification level of the lead is changed to a value other than Hot or
o the status of the lead is changed to a value other than Error-free.
Path for the workflow:
==> SPRO
==> Customer Relationship Management
==> Basic Functions
==> SAP Business Workflow
==> Perform Task-Specific Customizing
Select the Application Componenet Abbrevation as CRM and expand
Select CRM-BTX and expand
Select CRM-BTX-LEA and click on Activate event linking and acivate workflow WS 10001011
It may helps you
Regards
Narayana -
How to set role which can issue only one command
I am thinking about setting role, which will be allowed to issue olny one command. I have created role test. Which has the following entries in the following files:
/etc/user_attr
test::::profiles=OneCommand;type=role
/etc/security/exec_attr
OneCommand:solaris:cmd:::/tmp/data.sh:euid=0
After this I sill could issue all comands, not only test command /tmp/data.sh.
When I issued comand profiles on test role I received the following:
bash-3.00$ profiles test
OneCommand
Basic Solaris User
All
So I commented line in the /etc/policy.conf to read:
#PROFS_GRANTED=Basic Solaris User
After that, when I try to issue /tmp/data.sh command as a test role I receive the following error:
$ /tmp/data.sh
pfexec: Exec format error
Does anybody know how to set up the role which can issue only one command ? Maybe there is a way to do this in the way which wil not affect another roles (ie, not to touch /etc/policy.conf).
Best regardsRadekW wrote:
I am thinking about setting role, which will be allowed to issue olny one command. I have created role test. Which has the following entries in the following files:They will need the ability to run at least a profile shell otherwise all bets are off. So now you're down to two commands. :-)
bash-3.00$ profiles test
OneCommand
Basic Solaris User
AllFirst you need to define what already exists by default. (policy.conf)
Then you get to change those defaults or create a new default list just for test.
Then you get to add a role or profile for test that allows the execution of a profile shell and one command.
Then you should test all of the user accounts to ensure that something didn't break. This step might be a little overkill.
alan -
EAN values truncationg the leading zeroes
Hi experts,
I have created two new EAN category for one category accepts one leading zeroes another category accepts two leading zeroes.
In the material master i am trying to enter the same EAN values with different unit of measure system accepts the EAN value for one UOM and when i am trying to enter the same value for another UOM with two leading zeroes the leading zeroes are truncating.I can see the below warning message.When i press enter the leading zeroes are truncated.
_EAN already used for unit of measure EA of this material_
Please help me how to solve the issue.i guess this is coming because you have already mentioned the EAN no in one material amster and the data is maintained at client level so system is not allowing redundntcy
-
How to remove pound symbol # and preserve leading zeros in BEx Query
Hi,
I have two questions regarding the display in BEx Query.
1. How can I remove the pound symbol # for blanks in BEx Query?
2. How can I preserve leading zeros? At the moment, value "001" will be displayed as "1". But I need the leading zeros.
Thanks.
JoonHi ,
You can apply these settings in Bex query designer.
If you need to remove pound symbol jsut make a new formula and use NODIM function you will find this function under data functions.
So NODIM(Your price keyfigure) this will remove the Pound symbol.
For # just find out against which characterstic you are getting # then go to default values panel there you will find all your characterstic which you are using in report---Rt click -Restrict-single valuesdirect input-#-Move to selection(That forward arrow)--select that # and choose exclude from selection (That red square icon).
And yes for leading zeros check out this thread
Leading zeros not displaying
Hope it helps you.
Regards,
AL
Edited by: AL1112 on Jun 9, 2011 1:43 PM
Edited by: AL1112 on Jun 9, 2011 1:47 PM -
How to delete decimal point and adding leading zeros....
Hi,
I have one requirement in the report i.e.
<b>Present Value :</b> 44567.98
<b>Expected Value :</b> 0000004456798
In the present Value how will I remove that decimal point and how to add those six ing zeros. I tried with CONVERSION_EXIT....but it is not giving. Help me...
Thanks in advance.
Regards,
Kumar.Hi,
Use SPLIT and COMCATENATE fnctions.
Eg: split l_v at '.' into l_v1 l_v2
concatenate l_v1 l_v2 into l_v.
For adding leading zeros
Use FM CONVERSION_EXIT_ALPHA_INPUT.
Eg:
data: tknum type vttk-tknum value '99156'.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = tknum
importing
output = tknum.
Sri
Message was edited by:
Sri Tayi -
How to update the Field by Remove Leading Zeroes in Entire table
Hi all,
I need an SQL query to update the Table by upadating a particular field(column) by removing all the leading zeroes for all the rows corresponding to that column.
Ex:;
Existing To be changed to::(New Table)
A B New A New B
000011 1 11 1
000012 2 12 2
000013 3 13 3
Thanks in Advance,
plz do reply soon..Come on, it's not that hard:
UPDATE your_table
SET yourcolumn = ltrim(yourcolumn, '0')
;You are aware, that you have to commit those changes afterwards, right? If you don't know, what UPDATE / COMMIT in an Oracle database means, you may want to take a look at the user guides first.
C. -
Hi Experts,
I need to create a report which includes records of current month and last 7 days of previous month.
I will get records of current month by this formula :- month({PROBSUMMARYM1.OPEN_TIME})=month(currentdate)
Please tell me how to add the records of last 7 days of previous Month for the same report.
Thanks in Advance.Hi Ajay,
If you have more than a year data in your database then your formula will return wrong results. ie. If your data consist of 2012,2013,2014 data then below formula will return all 8th month data irrespective of year. So, you need to check year also here
month({PROBSUMMARYM1.OPEN_TIME})=month(currentdate) and
Year({PROBSUMMARYM1.OPEN_TIME})=Year(currentdate)
Now add Abhilash second statement in OR so, your formula should look like :
(month({PROBSUMMARYM1.OPEN_TIME})=month(currentdate) and
Year({PROBSUMMARYM1.OPEN_TIME})=Year(currentdate))
OR
Date({PROBSUMMARYM1.OPEN_TIME}) IN [DateAdd('d',-7,Maximum(LastFullMonth)), Maximum(LastFullMonth)
-Sastry -
How to create Button which size is calculated from its text ?
I think JButton works like this: either in constructor or by setText() method the text is set and according the lenght, font and fontRendererContext preffered size is calculated before the layout manager ask for the prefferedSize for first time.
I want to override paint() method because i want to draw my own text(and the only way i discovered how to force button not to paint text is to set text to
null or empty String). I want the button to be as long as length of text plus insets.
But layout manager ask for preffered size before paint method is invoked but i find out what size should be in paint method because i need graphics
parameter to get FontRendererContext from it. So layout manager shrink button to minimum because first time the preffered size calculated from null or
empty String is returned.
public class MyButton extends JButton {
public MyButton() {
this.setText(null); //or setText("");
this.setContentAreaFilled(false);
this.setFocusPainted(false);
this.setBorderPainted(false);
////already here i need to know what the size should be
@Override
public void paint(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
TextLayout textLayout = new TextLayout("MyButton", this.getFont(), g2.getFontRenderContext());
Rectangle2D boundsOfText = textLayout.getBounds(); /////////here i find out what size should be
this.prefferedSize = new Dimension((int)boundsOfText.getWidth()+10,(int) boundsOfText.getHeight()+10);
g2.setColor(Color.WHITE);
g2.fillRoundRect(1, 1,(int)getPreferredSize().getWidth(),(int) getPreferredSize().getHeight(), 10, 10);
g2.setColor(Color.BLACK);
g2.drawRoundRect(1, 1,(int)getPreferredSize().getWidth(),(int)getPreferredSize().getHeight(), 10, 10);
g2.drawString("MyButton", 7, (int)boundsOfText.getHeight() + 6);
g2.dispose();
}So how can i do that? How can JButton know prefferedSize before its paint method is invoked?The previous example was simplified.
public class MyButton0 extends JButton {
private String myText;
public MyButton0(String text) {
this.myText = "Button";
//this.myText = text.toUpperCase();
this.setFont(new Font("SansSerif", Font.PLAIN, 13));
setContentAreaFilled(false);
setBorderPainted(false);
setFocusPainted(false);
@Override
public void paint(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
//backround painting
GradientPaint background = new GradientPaint(0, 0, new Color(255, 255, 255), 0, getPreferredSize().height / 2, new Color(0, 0, 0), true);
if(getModel().isRollover()){
background = new GradientPaint(0, 0, new Color(255, 255, 255), getPreferredSize().width , getPreferredSize().height , new Color(0, 0, 0), true);
if(getModel().isPressed()){
background = new GradientPaint(0, 0, new Color(255, 255, 255), 0, getPreferredSize().height / 2, new Color(210, 210, 210), true);
g2.setPaint(background);
g2.fillRoundRect(1, 1, getPreferredSize().width - 3 , getPreferredSize().height - 3, 10, 10);
//Border painting
g2.setColor(new Color(255, 255, 255));
g2.setStroke(new BasicStroke(2.0f, BasicStroke.CAP_BUTT, BasicStroke.CAP_BUTT, 10.0f));
g2.draw(new RoundRectangle2D.Double(1, 1, getPreferredSize().width - 3, getPreferredSize().height - 3, 10, 10));
//text paiting
g2.setFont(getFont());
TextLayout tl = new TextLayout(this.myText, getFont(), g2.getFontRenderContext());
int startPositionOfText = getPreferredSize().width - (int) tl.getBounds().getWidth();
startPositionOfText = startPositionOfText / 2;
g2.setColor(new Color(255, 255, 255));
g2.drawString(this.myText, startPositionOfText -2, getHeight() / 2 + 5);
g2.dispose();
@Override
public Dimension getPreferredSize() {
return new Dimension(133, 31);
}Assume text is so long as doesn't fit inside button. I have hard-set preffered size but i would like to calculate preffered size from text lenght.
Or i need calculate startPosition of text to center it. But i don't want have preffered size hard-set. -
How to create DVD which auto-plays video (no menu)
Subject pretty much says it all. Is it possible to create a DVD which simply plays a video without a menu (preferably looping the video)?
Yes. After adding the slideshow to the iDVD project go to the Map mode and drag the video into the left hand bin "Drag content here to automatically play when the disk is inserted". With that slideshow selected go to the Advanced menu and select the Loop slideshow option.
OT -
How to writea report which can send a mail to the user who is running
Hello,
how to write the program to send a mailhave to get all the data in an text internal table and use the following fm in your pgm
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = c_true
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = c_true
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = gt_packing_list
contents_bin = gt_attachment
contents_txt = gt_message
receivers = gt_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
* Populate zerror return code
ld_error = sy-subrc.
MESSAGE i000(zp) WITH 'Message succesfully sent'. -
ADF - How to create table which column header come from query result
I would like to create table that show the summary of task for each month, the query result such as
Status MonthofYear Total Task
03 2007/06 9
03 2007/05 12
03 2007/04 10
03 2007/03 7
05 2007/06 6
05 2007/05 3
06 2007/06 1
09 2007/06 1
And the table that I would like to show in jdeveloper is
Status 2007/06 | 2007/05 | 2007/04 | 2007/03 | ......... | 2006/05
03 9 | 12 | 10 | 0 | .......
05 6 | 3 | 0 | 0 | .......
06 1 | 0 | 0 | 0 | .......
09 1 | 0 | 0 | 0 | .......Lucas worked out a solution for this:
http://technology.amis.nl/blog/?p=2070 -
How to create a generic method?
Hi,
I am using a std task TS01200205 to create instance for a BOR object. There are 2 key fields. I want to pass these 2 to the ObjectKey field.
As for as I know, we have to concatenate these two Keyfields and assign it to 'Object Key' parameter.
How can I concatenate the 2 strings in my Workflow? Is there any std way of doing it?
Also what is a generic method? How to create it? Can I make use of generic method to achieve this?
Thanks,
SivagamiIf you want to use it in different workflows the best solution is probably to define an interface and define and implement the method there (a nice thing about BOR interfaces is that you can provide an implementation and not just the definition).
All you then need to do is let your object type(s) implement that interface, which only requires adding the interface since the implementation has been done already.
However, I am not saying this is a good way of approaching things, I'm just telling you how you can implement what you suggest. -
Hi All
I am working in Oracle Apps R12.
How to create a lookup can any one provide me the steps to create lookup
I have two tables Per_all_people_f from this table I need to create a lookup with "FULL_NAME" column and the "person_id" in the per_all_people_f and "to_person_id " in po_requestion_lines_all tables need to be equal
Ie l need to create a look up like this
select hr.full_name,po.to_person_id,hr.person_id from per_all_people_f hr,PO_REQUISITION_LINES_ALL po where po.to_person_id=hr.person_id
regards
SrikkanthMr,Sri Kanthu,
Follow this external link which is useful for newbies,
http://oracle.anilpassi.com/lookup-types-and-lookup-codes-in-oracle-apps.html
Regards
Abdul HAMEED -
How to create a faster function?
Dear all,
I am trying to create function which can replace certain words with hyperlink in sql. When I call the function as query in sql, its
takes a very long time to execute the query, more than 2-3min. I assumed this is because, the tag_libary table
has around 300,000 records and iterating through large number of records, would consume a lot of processing time.
CREATE FUNCTION dbo.ReplaceTags(@body VARCHAR(MAX))
RETURNS VARCHAR(MAX)
AS
BEGIN
SELECT @body = REPLACE(@body,name,'<a href="pagename.aspx?tag='+name+'">'+name+'</a>')
FROM Tag_Library
RETURN @body
END
Sample Datasets:
article table (id, title, body) { Story1, At the same time there is a list consisting of: DUCHS, EUROC, GLSPE and WODST. Only two of the tags
have covered with the prices in the last three months - GROSV at 99.11 on 8 October and JUBIL at 0s on 11 September. }
tag_library table (id, name, uploadDate)
( 1,DRYDN33 2,DUCHS 3,DRYDN33 4,DRYDN15 5,EUROC 6,DRYDN15 7,GROSV )
I am slightly struggling, in how I can optimize this function, would partitioning the 'tag_library' name records (i.e. look through distinct names only), help in making it, faster.
I attached a sample dataset for further reference.
Any help would be very much appreciated.
Many thanks.Try a recursive query directly without using the function:
Create table article (id int, title varchar(100), body varchar(4000))
insert into article values(1, 'Story1', 'At the same time there is a list consisting of: DUCHS, EUROC, GLSPE and WODST. Only two of the tags have covered with the prices in the last three months - GROSV at 99.11 on 8 October and JUBIL at 0s on 11 September.')
Create table tag_library (id int, name varchar(10), uploadDate date)
insert into tag_library (id ,name) values( 1,'DRYDN33'), (2,'DUCHS'), (3,'DRYDN33'), (4,'DRYDN15'), (5,'EUROC'), (6,'DRYDN15'), (7,'GROSV')
;with mycte (i, title, body ) as (
select 1 as i, title, body from article
union all
Select m.i+1 as i, m.title, cast(replace(m.body,tl.name,'<a href="pagename.aspx?tag='+tl.name+'">'+tl.name+'</a>') as varchar(4000)) body
from mycte m inner join tag_library tl ON tl.id= m.i )
Select distinct title, body from mycte m
WHERE i = (SELECT MAX(i) FROM mycte c
WHERE m.title = c.title)
drop table article, tag_library
Maybe you are looking for
-
JEdtiorPane/HTMLEditorKit word wrapping problems
Hi, I have a JFrame component that has a splitPane, on the left side is a JTree and the right side has a JEditorPane that has it's content updated with HTML using a method to generate the HTML via the setText() method . (no url, and no html file) The
-
Reading the Excel from Content Server...
Hello Experts I have a requirement to read the contents of the excel from DMS content server to Internal Table. I tried using the function module "SCMS_DOC_READ", but it is reading only the part of the contents and remaining contents are missing in t
-
Dear developers, Greetings!! As, I have selected command processor and console window from the catalog item that is necessary to run the command prompt on the WinCE platform. But, when I run the command prompt I got the following error : CMD Error
-
My imac won't apply the 10.8.3 update
My mid-2011 iMac will not update to 10.8.3. Theoretically, it has downloaded the update and all I have to do is restart the computer. I have done so multiple times with no luck. I searched the Apple forums and the only suggestion I found was to run D
-
Installing Software from CD & Upgrading X
I am a bit lost. Can you friendly people help me? I have the X-Fi Extreme Music Edition Soundcard. I didn't install the CD software initially, preferring to use the latest Creative Drivers from 5//05 (/5/05 for US) However, none of the professional l