FM that returns condition price,type and value when PO no.& PO item passed
Dear All,
I am in search of FM that returns all the condition types and its repective values,price for a given PO no. and PO item number.
I used BBP_CONDITIONS_GETDETAIL FM which is not suiting my requirement because , i need only those conditions whose konv-kappl = 'TX' , where as this FM returns all those conditions used for that PO.
I am looking for your valuable inputs.
Regards,
Swetha.
Hi Swetha
From what u'v written , i understand that you need sumthing like this...
PO 1 , Item1
cond - A --200
cond - B --450
PO1, Item2
cond- A -- 350
So you would want your result as:
PO1
Cond A = 550
Cond B = 450.
Now if i am correct here, the first step is data fetching which would be really simple.
Next just sort you internal table by condition number and condition type.
Then use AT NEW with ref to Condition Record Number and then Condition Type, to sum.
That should be it.
Cheers
Ravish
Similar Messages
-
DB Adapter Calling DB Procedure that returns a Record Type
I am trying to call a PL/SQL procedure that returns a Record Type and a VARCHAR2 and I'm getting this error:
<Faulthttp://schemas.xmlsoap.org/soap/envelope/>
<faultcode>env:Server</faultcode>
<faultstring>java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'MY_PROC.GET_ID' ORA-06550: line 1, column 7: PL/SQL: Statement ignored </faultstring> </Fault>
Is there something different I need to do to handle the Record Type OUT parameter?
Thanks.The adapter configuration wizard should take care of the Record Type for you. It should invoke JPublisher to create an equivalent Object type and a package containing a wrapper that will be called by the adapter runtime. The package also contains conversion functions for converting between your Record Type and the generated Object type. Maybe it would help if you posted the signature of your stored procedure (not the body).
-
Condition types and value fields
hi Gurus,
Can anybody please explain me what is condidion type and value field and the purpose of these two in costing??
Regards,
S.SumanaDear Sumana,
Condition types and Value field conjuction is used in Profitability Analysis.
Condition type is an element in pricing procedure. For e.g price of the product consist of several things like base price, discount, tax, etc. so each compenent is called condition type.
Value fields are grouping of cost elements for e.g. you have created a cost element Sales revenue then all revenue cost elements which consist of revenue.
Condtion type Base Price is revenue which is mapped to value field Sales revenue. So as soon as the billing document is created value field is updated.
For more information on Profitability analysis please read the documentation provide in www.help.sap.com
Regards,
Chintan Joshi. -
Movement Types and value string in account determination.
Hi Team,
In the account determination how and where the movement types and value string are assigned to each other.
Thanks,
Sanjayhi
Value Strings
Posting records are assigned to each relevant movement type in Inventory Management and to each transaction in Invoice Verification.
Value Strings indicates the posting rule that always contains the same account assignment characteristics for a certain transaction or event (for example a goods movement or an invoice receipt).
Each goods movement is assigned to a Value String and each Value String in turn is assigned to Transaction/ Event keys. These settings are pre-defined and can not be changed.
You can see the linking of Value Strings in the following tables:
T156S- Movement Type: Quantity/ Value Posting (For movement type--> Value String)
T156W- Posting String Values (For Value String--> Transaction/ Event key)
I had found the following Value Strings in the system: WA01, WA03, WA04, WA06, WE01, WE06 and WF01. -
Read variable type and value from LabView
By using the TS. Sequence class i'm trying to get the variable type and values of locals, parameter, fileglobal and stationglobal. Unfortunately i'm not able to find the right function. Hope someone can help me.
Kind regards
Lars
Solved!
Go to Solution.
Attachments:
ReadName.JPG 34 KBadded PropertyObject Type to the loop. But doesn't matter what i do, i just get the first type from fileglobals back...
Attachments:
With_PropObj_Type.JPG 61 KB
With_PropObj_Type_output.JPG 33 KB -
I have a problem. I take photos with camera of my iPod touch 5 with the effects that comes in the iPod and now when I look to my photos I see that the effects go out and the photos looks like I didn´t put the effects. What is that? How can I solve it?
Try:
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device. -
How to call functions that return package local types?
Hi everyone, I have a Pl/Sql function in a package that returns a package-local type.
I would like to call this function from Java, but I don't know what to pass to "statement.registerOutParameter()"
(it gives this error:
Unable to resolve type: "XDRIVE_B2B.TEST1.MYTYPE)
Here's the simple version with one package:
package TESTPKG IS
TYPE MYTYPE IS VARRAY(1) OF INTEGER;
FUNCTION FCT2 RETURN MYTYPE;
end;
package body testpkg IS
FUNCTION FCT2 RETURN MYTYPE IS
BEGIN
RETURN mytype(55);
END;
end;
and here's the java code:
void javatest(OracleConnection conn)
throws SQLException
String sql = "{ call ? = testpkg.fct2() }";
OracleCallableStatement st =
(OracleCallableStatement) conn.prepareCall(sql);
st.registerOutParameter(1, OracleTypes.ARRAY, "MYUSERNAME.TESTPKG.MYTYPE");
st.execute();
and as I said above, the java code fails with:
java.sql.SQLException: Fail to construct descriptor: Unable to resolve type: "MYUSERNAME.TEST1.MYTYPE"
I can't really have this type live outside of a package because in the real case, it's not a VARRAY(1) of integer, it's a VARRAY(1) of MYTABLE%ROWTYPE, which only seems to compile inside a package.
thanks for any opinions,
george moudry
nullJDBC, JPublisher, and SQLJ do not support PL/SQL-only types. This includes PL/SQL index tables and record types.
-
I Am looking for an app free app that will allow me to type and edit my homework. I am using a 7.1.1 version of I pad. I have a wireless printer from Walmart hp envy 4502 which is working great. Appreciate any input
Only two devices on our plan, so not so much an issue. And I have found myself using it much more than I thought I would when we got them (also first smart phones for both of us). Even got my wife to use hers for checking email while we were out of the country (big step forward for her ). I'm very interested in the ApplePay, but will want to wait a bit before diving into it. And since both phones are still in great working order, will likely wait a bit for the upgrade (sometime next year?). Will depend, I suppose, on the kinds of deals we see and what the plans turn out to be for updating my iPad and getting here one.
-
How to update the condition price in the sales order for all the items
Hi,
How to update the condition price for all the itmes in the sales order to carry out the new price automatically through a stand alone program, for all the orders in the billing due list table?
Thanks,
BalaramHi,
There is a change in the requirement.
Scenario:
I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
Thanks.
Balaram -
I am using a new imac with osx lion 10.7.5 and have just bought Apple iLife 11 on dvd so that I can install iWeb and iDVD, as macs no longer ship with these apps. When I click on install iLife I get a message saying "iLife.kpg was signed with an invalid certificate.
Next problem is that when moving through the installer and get to custom install, as I only want to install iDVD and iWeb, I am presented with the option to install iDVD, Sounds & Jingles and iWeb, but not sure what is going on with the other 3 options iLife Support etc, they seem to be greyed out but still look like they may install over the top of the newer versions already on my imac. Is it ok for me to just go ahead and hit install? Or do I have a problem?Yep, just install iDVD (plus sounds and jingles) and iWeb if you want it (but note that iWeb apparently won't work if you upgrade to Mountain Lion).
Then use Software Update to get any late iDVD updates. -
Ok, i'm a boob, i was using firefox, hit some button inadvertantly and now when i double click to open it, it goes straight to minimized. Using 33.1.1 with windows xp.
Thank you for your advise. While your remedy does work to that end, i usually have my browser set to partial window rather than full screen, so I'd have to make an adjustment that way too. It used to come up into the partial screen, but now drops to the task bar upon opening. Or it opens full screen, if i set it to full screen before closing out my browser. I'm looking to have it open to partial screen like it used to. Any ideas?
Thank you for your time, i appreciate it. -
Movement type and Value string
Hi,
I have copied movement type 101 to Z02. Is it possible to change the value String from WE01 to something else. My purpose is to post to a different account instead of GRIR while MIGO for free goods. So please don't suggest me to change in OBYC as the change is going to effect every MIGO which we don;t want to happen. Any ideas?
ThanksThe value strings contain keys for the posting transactions that can
lead to G/L account updates in the case of an FI-relevant posting. These
value strings are predefined by SAP. You cannot change value strings or
the transactions they comprise in Customizing. For each of these posting
transactions, you can set up automatic postings in dependence on the
other influencing factors.
The value string controls the process of G/L account determination for
transactions/events of the movement type (see unit Valuation and
Account Assignment), whereas the quantity string controls the updating
of the material master fields.
In SAP R/3, the value string WA01 is assigned to various goods issues
and other goods receipts. Further differentiation in the automatic
account determination process for these different movements is
accomplished via the account grouping code. -
A web service that returns a xml file and gets another xml file as input?
Hi,
I want to create a web service which gets an xml document as input then returns again an xml document.How can I create this kind of web service?
Is this kind of implementation is possible?
public Document mywebservice(Document input){
Document d;
return d;
or do I have to use serialization processes which I don't know very much.
I am waiting for your help.Thank you...If you want to deal directly with the Document and not want the SOAP engine to serialize/deserialize the XML into Java objects, then you can easliy implement this using Axis. Look at the Axis documentation (http://ws.apache.org/axis/java/user-guide.html#ServiceStylesRPCDocumentWrappedAndMessage) under the heading "Message Services". One of the provided API methods that Axis provides is in the form you want: public Document method(Document body). Hope that helps. As for how to implement the service using Axis, that is beyond the scope of this forum. Check the Axis docs for more help on that.
-
Stored PL/SQL function that returns REF CURSOR type
Hello everyone,
I've come through the following problem:
1.- I created an PL/SQL stored procedure which returns a REF CURSOR element, definition looks like this:
PACKAGE PKG_LISTADOS AS
TYPE tuplas IS REF CURSOR;
/* Procedimientos exportados por el paquete */
PROCEDURE inicializarModuloListados;
FUNCTION recaudacionUltimoMes(medioPago DEF_MEDIO_PAGO.MEDIO_PAGO%TYPE)
RETURN tuplas;
2.- Now I would like to call the stored procedure and retrieve the PL/SQL cursor as a ResultSet Java Object. The code I wrote is this:
Connection conn;
XmlDocument paramDef;
conn=poolMgr.getConnection str_poolDBConnection);
try
CallableStatement cstmt=conn.prepareCall("{?=call PKG_LISTADOS.recaudacionUltimoMes(?)}");
cstmt.registerOutParameter(1, java.sql.Types.OTHER);
cstmt.setString(2, "MONEDA");
cstmt.executeQuery();
ResultSet rs=(ResultSet)cstmt.getObject(1);
catch(SQLException sqlE)
3.- However, I can't make it OK, all the time I get the following error:
SQL Error(17004), java.sql.SQLException: Non valid column type
May anyone help me with this, thanks in advance:
Miguel-Angel<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by angelrip:
Hello everyone,
I've come through the following problem:
1.- I created an PL/SQL stored procedure which returns a REF CURSOR element, definition looks like this:
PACKAGE PKG_LISTADOS AS
TYPE tuplas IS REF CURSOR;
/* Procedimientos exportados por el paquete */
PROCEDURE inicializarModuloListados;
FUNCTION recaudacionUltimoMes(medioPago DEF_MEDIO_PAGO.MEDIO_PAGO%TYPE)
RETURN tuplas;
2.- Now I would like to call the stored procedure and retrieve the PL/SQL cursor as a ResultSet Java Object. The code I wrote is this:
Connection conn;
XmlDocument paramDef;
conn=poolMgr.getConnection str_poolDBConnection);
try
CallableStatement cstmt=conn.prepareCall("{?=call PKG_LISTADOS.recaudacionUltimoMes(?)}");
cstmt.registerOutParameter(1, java.sql.Types.OTHER);
cstmt.setString(2, "MONEDA");
cstmt.executeQuery();
ResultSet rs=(ResultSet)cstmt.getObject(1);
catch(SQLException sqlE)
3.- However, I can't make it OK, all the time I get the following error:
SQL Error(17004), java.sql.SQLException: Non valid column type
May anyone help me with this, thanks in advance:
Miguel-Angel<HR></BLOCKQUOTE>
Do something like the following:
cstmt = conn.prepareCall("{call customer_proc(?, ?)}");
//Set the first parameter
cstmt.setInt(1, 40);
//Register to get the Cursor parameter back from the procedure
cstmt.registerOutParameter(2, OracleTypes.CURSOR);
cstmt.execute();
ResultSet cursor = ((OracleCallableStatement)cstmt).getCursor(2);
while(cursor.next())
System.out.println("CUSTOMER NAME: " + cursor.getString(1));
System.out.println("CUSTOMER AGE: " + cursor.getInt(2));
cursor.close();
null -
Creating a cursor that returns both a set and a singleton
I have a situation where I have dozens of statically defined pl/sql cursors, along with result processing, where I'd like to modify the cursor definitions in such a way that they may be used to return either a single row or a set.
The effect would be to dynamically add a 'where xx.id = <variable>' predicate to the set oriented cursor to return a single row, but where if I say something (which I know I can't) like 'where xx.id = ANY', then the predicate is effectively ignored.
I don't want to use dynamic sql for performance reasons, and obviously I don't want to have replicate reams of queries and code.
Anyone have any thoughts on how to do this?
Thanks, Jim
Edited by: 922615 on Mar 21, 2012 7:35 PMIt sounds like you just want
CURSOR cursor_name( p_id IN NUMBER )
IS SELECT *
FROM some_table
WHERE (p_id IS NULL or id = p_id );If you pass a NULL for p_id, you'll get every row back. If you pass a non-NULL ID, you'll get just the one row.
Justin
Maybe you are looking for
-
.pdf files naturally in landscape won't print to landscape.
Whether I set landscape as my choice before printing, or I select landscape mode via the printer settings, Adobe will not print the page to resemble the original page. It shrinks the page to profile size even though the paper is in landscape. I've
-
Pleeeeeeaaaaaaseeeeeee Help! I have a flash movie which is taller than the browser window, but rather than it being scrolled by the browsers default scrollbar I want to create a scrollbar swf file which will control the scrolling of the movie within
-
Older Projection TV without HDMI ports
Hello, I was recently given a 65 inch HDTV ready Projection screen tv. Here is the link for the model. http://dprojection-hdtv.blogspot.com/2011/07/toshiba-65h82-65-inch-169-hdtv-ready.html. It is I would like to say 7 years old and does not have h
-
Completed recommended steps of Safe Mode, Default Themes, Extensions, Hardware Accelerators. In the Options setup, Security, The box to "Remember Passwords for Sites" is still greyed out & unusable.
-
Import Wizard Error trying to Import from CE 9 to BOJ XI 3.0
I just installed BOJ XI 3.0 on a new server. I am trying to import the reports, users and data sources from our CE9 server to the new server. When I put in the APS name, log on name and password I get a error message saying.. Unable to connect to clu