Returns p/o with ME21N
Hello,
I have one question:
We are using purchase order type RB for returns. When the user is selecting RB I want to set the following automatically for each position entered:
1.) Returns item =MEPO1211-RETPO (should be checked automatically)
2.) Stock type =MEPO1313-INSMK (Stock type should be "S-blocked stock" automatically)
Does anyone have experiences with that matter?
Thanks and best regards
Wolf.
Hi,
For this you have to use User exit check with ABAPer MM06E005 Customer fields in purchasing document
EXIT_SAPMM06E_012
Regards,
Chetan.
Similar Messages
-
How to Restrict Return Sales Order with reference to a cancelled invoice
SAP Standard is allowing to create Return Sales Order with reference to a cancelled invoice which practically should not be allowed.
Has any body worked on this problem and what could be the possible solutions so that return sales orders can not be created against a cancelled invoice.
Kindly share your possible solutions.Hi Standard Process will not allow to create a Sales Order With Cancelled invoice,
Kindly go through at Copy Controls
T.CODE:VTAF
in that some body might have maintained between S1 invoice to RE Sales Document.
Remove the settings then u will be not able to create Sales Order w.r.t to Cancelled Document.
Rewards if Usefull
B.Shyam Sunder
SAP SD Consultant -
How can I return multiple values with PL/SQL Web Services
Hi,
I'm new to developping Web Services. I'm doing some tests with JDeveloper and OC4J on my local machine with a Web Services based on a PL/SQL function within a package. Right now that function only returns one value. So the xml response only has one output.
I'd like to know how can I return multiple values with my PL/SQL Web Service. For example, if I want to return an employee's name and id? And that the xml contains two output : <employee>, <empid>?
Reginald
ps : I have searched the forum and I couldn't find an answer to this question, if that has been discussed AND answered before, can you please post the link? ThanksAlright, I actually found my answer. Since this was asked I think as a followup somewhere else I'll give my answer.
It is very simple, all you have to do is create an Object Type and then Return that object type. After that, JDeveloper will take care of everything and you will have an xml response with multiple values. Here
{color:#ff0000}
create or replace TYPE person AS OBJECT
( id_interv number,
first_name VARCHAR2(50),
last_name VARCHAR2(50),
date_birth date
);{color}
Then your function used in your Web Service should look something like this :
{color:#ff0000}
function info_emp (p_empno IN VARCHAR2) RETURN person AS
l_emp person := person(-1,'','','');
BEGIN
SELECT first_name
,last_name
,emp_no
INTO l_emp.first_name
,l_emp.last_name
,l_emp.emp_no
FROM emp
WHERE upper(emp_no) = upper (emp_no);
{color}
{color:#ff0000}
RETURN l_emp;
EXCEPTION WHEN NO_DATA_FOUND THEN
l_emp := person (-1,'n/a','n/a','n/a');
RETURN l_emp ;
END info_emp;{color}
{color:#ff0000}{color:#000000}After that, this is what the xml response looks like :{color}{color}
<first_name xsi:type="xsd:string">John</first_name>
<last_name xsi:type="xsd:string">Doe</last_name>
<emp_no xsi:type="xsd:string">0250193</emp_no> -
How do i print address returns on envelopes with hp officejet pro 8500
how do i print address returns on envelopes with hp officejet pro 8500
This is done with your software that you have to print the envelopes. MS Word can do this, just use their help facility.
Say thanks by clicking the Kudos Thumbs Up to the right in the post.
If my post resolved your problem, please mark it as an Accepted Solution ...
I worked for HP but now I'm retired! -
Revision: 889
Author: [email protected]
Date: 2008-03-21 13:08:05 -0700 (Fri, 21 Mar 2008)
Log Message:
Add test case for BLZ-82 where HttpService should return multiple headers with the same name.
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-82
Added Paths:
blazeds/trunk/qa/apps/qa-regress/remote/MultipleHeadersTest.jsp
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/proxyService/httpservice/MultiHe aderTest.mxmlHi again,
this may be old news to some people, but I just realized we can have the desired benefits I originally listed (encapsulation, reuse, maintainability, security) TODAY by using pipelined functions and using the table() function in Apex report region queries.
So the report query basically becomes, for example (if get_employees is a pipelined function)
select * from table(my_package.get_employees(:p1_deptno))
The only downside compared to a (weakly typed) sys_refcursor is that you have to define the type you are returning in your package spec (or as an SQL type). So it's a bit more coding, but it's still worth it for the other benefits it provides.
I like Apex even better now! :-)
- Morten -
Hi
in my procedure there is a Parameter cursor, How can I to return cursor using WITH
my cursor is P_cursor
open p_curosr is
with my_tab ( select ..... from.....)
select columns01, columns02,....etc
from my_tab,
others_tabs
where .....did not work
How can I to open cursor returning to Client side ?did not workwhat is an error?
probably you forgot to put with my_table AS
SQL> set serveroutput on;
SQL>
SQL> declare
2 cursor p is
3 with t as (select 1 num from dual union all
select 2 from dual)
4 select * from t;
5 p1 p%rowtype;
6 --
7 begin
8 open p;
9 loop
10 fetch p into p1;
11 exit when p%notfound;
12 dbms_output.put_line(p1.num);
13 end loop;
14 close p;
15 end;
16 /
1
2
PL/SQL procedure successfully completed
SQL>
Thanks
But I need to Open P_cursor without Fetch , P_cursor is is ref cursor passed like parameter
procedure my_proc (P_cursor out out Typedefined)
Open P_cursor
WITH mytable as ( select ......)
no work -
Server returned code (500) with message Internal Server Error and content
Hi cracks,
I am trying to run the web service
InternalRequestSRMUpdateRequestConfirmation_In
an get following error :
Server returned code (500) with message <Internal Server Error> and content type <text/html; charset=utf-8>.
any idea?
rgds
Vincentyes,
you got crash aka shortdump in your system.
- webserver: didn't crash, because it issued an error 500, so it works
- remains either the soap runtime, which usually doesn't dump but throw errors and the application itself.
I'd look into the tracefiles (ST11) or tie the debugger to the service in question (SICF) and try to find out hat happens/d.
anton -
Returning a number with precsion in pl/sql function
How can I return a number with desired precision in oracle function
e.g
Function return_number ( --- )
return number
is
v_number number(10,2)
begin
select no into v_number from table;
return v_number;
end;
will this workHow can I return a number with desired precision in oracle functionCreate a subtype as e.g. in
SQL> create or replace package pkg
as
subtype n10_2 is number(10,2);
end pkg;
Package created.
SQL> create or replace function return_number
return pkg.n10_2
is
v_number pkg.n10_2;
begin
return v_number;
end return_number;
Function created.
SQL> select object_name ,data_type, data_precision, data_scale from user_arguments where object_name = 'RETURN_NUMBER'
OBJECT_NAME DATA_TYPE DATA_PRECISION DATA_SCALE
RETURN_NUMBER NUMBER 10 2
1 row selected.also possible:
... return tab.col%type;where col is a column of tab with data type number(10,2). -
Context Type Search returning wrong results with "ME" in the SEARCH
CREATE TABLE "TEST"
id NUMBER(19) NOT NULL,
"TESTDATA" CLOB NOT NULL ENABLE
CREATE INDEX IX_testdata ON test (testdata) INDEXTYPE IS CTXSYS.CONTEXT ONLINE
PARAMETERS ('TRANSACTIONAL MEMORY 500M SYNC(ON COMMIT) section group ctxsys.xmlpathgroup')
PARALLEL 4
insert into test values (1, '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user>
<givenname>victor</fn>
<surname>frandenstein</sn>
</user>
select * from TEST
where
contains(testdata,
'me inpath(/user/givenname) &(victor inpath(/user/givenname))') > 0
This should not result in any results but it does show the record out.
What is it we have to do deal with the word "ME". It works fine for any other values.Since "me" is a default stopword, searching for "me" and "Victor" is like just searching for "Victor", so it returns the row with "Victor" in it. If you want to be able to search for "me", then you need to either remove "me" from your existing ctxsys.default_stoplist using ctx_ddl.remove_stopword or specify another stoplist during index creation that does not contain me or an empty stoplist. You will need to drop and recreate your index after changing or modifying stoplists in order for the changes to take effect. Please see the demonstration below. I have added a couple of rows so that it is clearer what is and is not returned. You can check the token_text column of your dr$...$i index to see what it is tokenized, indexed, and searchable.
SCOTT@10gXE> -- test environment:
SCOTT@10gXE> CREATE TABLE "TEST"
2 (
3 id NUMBER(19) NOT NULL,
4 "TESTDATA" CLOB NOT NULL ENABLE
5 )
6 /
Table created.
SCOTT@10gXE> insert into test values (1, '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <user>
3 <givenname>victor</fn>
4 <surname>frandenstein</sn>
5 </user>
6 ')
7 /
1 row created.
SCOTT@10gXE> insert into test values (2, '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <user>
3 <givenname>me victor</fn>
4 <surname>frandenstein</sn>
5 </user>
6 ')
7 /
1 row created.
SCOTT@10gXE> insert into test values (3, '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <user>
3 <givenname>naren</fn>
4 <surname>frandenstein</sn>
5 </user>
6 ')
7 /
1 row created.
SCOTT@10gXE> exec ctx_ddl.create_section_group ('xmlpathgroup', 'PATH_SECTION_GROUP')
PL/SQL procedure successfully completed.
SCOTT@10gXE> -- reproduction:
SCOTT@10gXE> CREATE INDEX IX_testdata ON test (testdata) INDEXTYPE IS CTXSYS.CONTEXT
2 PARAMETERS
3 ('TRANSACTIONAL MEMORY 500M
4 SYNC(ON COMMIT)
5 section group xmlpathgroup')
6 PARALLEL 4
7 /
Index created.
SCOTT@10gXE> SELECT token_text FROM dr$ix_testdata$i
2 /
TOKEN_TEXT
FRANDENSTEIN
NAREN
VICTOR
givenname
surname
user
6 rows selected.
SCOTT@10gXE> select * from TEST
2 where
3 contains(testdata,
4 'me inpath(/user/givenname) &(victor inpath(/user/givenname))') > 0
5 /
ID
TESTDATA
1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user>
<givenname>victor</fn>
<surname>frandenstein</sn>
</user>
2
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user>
<givenname>me victor</fn>
<surname>frandenstein</sn>
</user>
SCOTT@10gXE> -- solution:
SCOTT@10gXE> drop index ix_testdata
2 /
Index dropped.
SCOTT@10gXE> CREATE INDEX IX_testdata ON test (testdata) INDEXTYPE IS CTXSYS.CONTEXT
2 PARAMETERS
3 ('TRANSACTIONAL MEMORY 500M
4 SYNC(ON COMMIT)
5 section group xmlpathgroup
6 stoplist ctxsys.empty_stoplist')
7 PARALLEL 4
8 /
Index created.
SCOTT@10gXE> SELECT token_text FROM dr$ix_testdata$i
2 /
TOKEN_TEXT
FRANDENSTEIN
ME
NAREN
VICTOR
givenname
surname
user
7 rows selected.
SCOTT@10gXE> select * from TEST
2 where
3 contains(testdata,
4 'me inpath(/user/givenname) &(victor inpath(/user/givenname))') > 0
5 /
ID
TESTDATA
2
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user>
<givenname>me victor</fn>
<surname>frandenstein</sn>
</user>
SCOTT@10gXE> -
Return sales order( with ref. to Invoice) need to have less quantity
Hi Friends,
Here one issue is coming while creating a return sales order with ref. to invoice.
Example is:
In original invoice an article X is of price 10 having 10 quantity and hence total price 100.
but now customer wish to return only 5 articles and creating this Retun sales order with refernce to this invice
now in return sales order quantity is coming correct i.e 5 but the amount is still the same i.e 100.
But this should be 50( 5*10).
Please can someone help to find the reason why the price is not changing while quantity is changing.
I have already check the copy control but there also setting seems to be correct.
Also when i try to update the pricing via condition tab the price got changed. but that is manually.
Thanks
Punit.Thanks Jignesh,
But can you please tell which pricing input should be the best.
As "price redetermine" option can't be selected as price keep changing.
also i did that for "same price and redetermine tax" but doesn't seems to be working.
Please if you can suggest any option where the price of the article will be same (the old one when article was sold) as proportionate to quantity without redetermining the price.
like article x has qty 10 and price 10 hence amount 100
but later price of article change to 11
then if i chose redetermine price then for five article this will be 55 which is again wrong( it should be 50 as at the time of sale the price was 10)
Hope I made the issue clear enough. Which setting in pricing one can recommend.
Regards
Punit
Thanks -
How to return a CSEntryChange with ObjectModificationType Delete in an ECMA2 MA
I'm trying to return a CSEntryChange with ObjectModificationType Delete in my implementation of IMAExtensible2CallImport.GetImportEntries:
var entry = CSEntryChange.Create();
entry.ObjectType = "SomeObjectType";
entry.DN = "SomeDN";
entry.ObjectModificationType = ObjectModificationType.Delete;
However, when that entry is returned, I get a "missing-anchor-component" error in the console. The anchor attribute, in this case, is called "Name".
However, if I try to add the attribute to the AttributeChanges collection with CreateAttributeAdd, I get an exception:
System.ArgumentException: AttributeModificationType Add is invalid when the ObjectModificationType is set to Delete.
Example:
entry.AttributeChanges.Add(AttributeChange.CreateAttributeAdd("Name", "SomeName"));
However, the "CreateAttributeDelete" operation does not let me specify a value for the attribute.
How am I supposed to pass the anchor attribute value in this case?
I could not find any example in the documentation.
Paolo Tedesco - http://cern.ch/idmI just tried with CreateAttributeReplace, CreateAttributeUpdate amd CreateAttributeDelete, and I always get the same exception: AttributeModificationType XXX is invalid when the ObjectModificationType is set to Delete.
So the error message here is misleading - you just cannot touch the AttributeChanges collection with a deleted object.
At this point, what should I do to specify the anchor attribute for a deleted object?
Paolo Tedesco - http://cern.ch/idm -
0Employee_Text master data returns 0 records with Full load
Hi All
0Employee master data texts returns 0 records with full update. I checked PA0000 table and it has 22K records. I am not sure what is missing.
Thanks for your help in advance.
LathaHi again Latha,
I've been checking the extractor 0EMPLOYEE_TEXT (RSA3 in debbug mode) and it gets data from table view V_BW_PA0001_ENM check if you allready have entries in this database view (it's a view from PA0001 with select condition PA0001-SPRPS eq ''.
If you have entries here you should get them with the extractor.
The notes solves extraction problems with several objects (in our case was 0ORGUNIT).
I hope this helps,
Regards.
Carlos. -
Return two queries with cfreturn
Hello All,
I know I've seen it done somewhere, but I can't seem to find
the example. I need to return two queries like:
<cfreturn getCurrentProjects and
getProjectRequestByStatus/>
Something like that... not getting the right syntax or
something. Any clues?
Thanks!You can't!!!! You can only return one value with
<cfreturn...>
But of course there is nothing preventing that one value to
be a
structure or array contain two query record sets.
I.E.
<cfset var myReturn = strunctNew()>
<cfset myReturn.getCurrentProjects =
getCurrentProjects>
<!--- getCurrentProjects is scoped as a local variable
with VAR,
correct? --->
<cfset myReturn.getProjectRequestByStatus =
getProjectRequestByStatus>
<!--- getProjectRequest is scoped as a local variable with
Var, correct?--->
<cfreturn myReturn> -
Hi, imessages won't send from my macbook pro. I am still able to recieve them on mac. I am also able to send and receive on iphone. However on mac every time i press send (enter/return) it disappears, with no red '!' or anything. Any help?
Triple check the Outgoing Mail server info that you entered in your Mail account. If that area says the info is optional enter the outgoing mail server and your password anyway. Also if you have more than one email account check the server that is selected for the GoDaddy account and make sure it's the correct server for the account.
-
Suppress an error message while creating a return PO ( ZRO type) (ME21n)
Hello All,
I have to write a code in order to suppress the below message while creating a return purchase order (of type ZRO) , transaction ME21n after entering the purchase organization, purchase group, the vendor & the material no :-
"You have no authorization to create without reference to another document".
For users with the below values of parameter ID & parameter value :-
parameter ID = EFB & parameter value = 02 in transaction 'SU3' , under "parameters" tab, this message is getting triggered.
My requirement is to suppress this message.
Please suggest an exit name or a BADI name wherein I can implement the code for this requirement.
Regards,
Rachana.You can remove parameter ID EFB
and for Order type other then ZRO you can put check of doc. reference.
Maybe you are looking for
-
how to create an apple account without using a credit card. Im trying to use gift cards but it says i need to usea credit card what can I do
-
_pages does not exist running jsp on Linux
Hi Wrote some jsp's and was running them using iAS 8i on Win 2000. I've now come to move them to their new home on a Linux machine running redhat and I get the following error: Request URI:/dbserv/ds.jsp Exception: java.lang.IllegalArgumentException:
-
How can I create a Pie charts ?
HI all, I'm a beginner in java and i'm investigate in a web project (website) which should display statistical charts. I did a beans to generate basic bar charts, but it is most difficult to build a Pie chart. That's why i need help to put me on the
-
JVM parameters in MANIFEST file
I deployed my Swing app in a JAR file wih the following manifest file: Manifest-Version: 1.0 Created-By: 1.4.0 (Sun Microsystems Inc.) Main-Class: MainApplication Class-Path: . jarfile1.jar ................ jarfilen.jar Everything is ok except I don'
-
Export to PDF from reports page
I have a report saved in .tdr format that contains multiple pages. When I try to export to PDF, it only exports the first page of the 7 that are contained in the report view. The only way I can seem to get all the pages exported to PDF format in a