Retrieve Cost Price from SAP backend
Hi
How can i retrieve the cost price for all items if the costing method is FIFO and costing is per warehouse?
This needs to be done as a query.
Thanks guys.
hi
SELECT * FROM OINM - that will give all the lines of WH Journal. CalcPrice there is the needed column - that is FIFO-CostPrice.
Similar Messages
-
Is there any standard report available to show cost prices from infor recor
Hi
Can any one tell help me is there any possiblility to make a report showing cost prices from info-records on purchasing org. level incl. prices scales?
We need a report showing the following:
Supplier no.
Supplier name
Material no.
Material name
Price
Price scales (if registred in the info-record)
Purchase organization to be showed
Selection of the report can be done with the following entries:
Supplier no.
Sourcing (material group)
Purchase organization
Please be informed that the above mentioned information and selections are just my first and best guess.
We have tried to use transaction MC$4 - however, this one is only showing the purchased quantity in the period selected.
There must be a standard transaction in SAP R/3, which can show us the prices from info-records.
Best Regards,
Sairam.Hi!
ME1P is the best report for you although it lacked the supplier name, material name and price scales. You can ask your ABAPER to create your desired report by copying the program running ME1P and then creating a Z* report which contains all your desired fields.
Hope this helps! =) -
Transfer cost price from free of charge item to main item but not for VPRS
Hi,
I want to transfer cost price from free of charge item to main item but not for VPRS but for a new Z contidion type.
For CO-PA proposes. Can you help me with This?
Catarina Alveshi,
transfer of cost from sub item to main item is configured in the delivery to billing copy control for the main item. go to VTFL > select the required item cateogry > here at the bottom you will find a check box Cummulate cost. Tick it.
Not really what you meant COPA purposes. But the pricing conditions are mapped to COPA value fields at KE4I transaction.
regards
sadhu kishore -
How to retrieve the data from SAP-BAPI by using VB Code
Hi ,
I am new to BAPI.
V have created an application in Visual Basic with the following fields
EmpNo , EmpName, Addr1, Addr2, City and Phone (Only for Test)
We have written the code for SAVING the data into SAP. Already we have
constructed a table with the respective fields in SAP.
For that we ourself created our own BAPI Structure / Function Group /
Function Module/ Business Object - RELEASED related elements.
1)Established the connection successfully.
2)Stored the data into SAP Successfully and v r in need of
3)HOW TO RETRIEVE THE DATA FROM SAP (USING GETLIST.....GETDETAIL....)
Following is the code :
'BAPI Structure : ZBAPIEMP
'Function Group : ZBAPIEMP
'Function Module : ZBAPI_EMP_CREATEFROMDATA
'Business Object : ZBAPIEMP
'Function Module : ZBAPI_EMP_GETLIST
Dim bapictrl As Object
Dim oconnection As Object
Dim boEmp As Object
Dim oZEmp_Header As Object
Dim oImpStruct As Object
Dim oExpStruct As Object
Dim oreturn As Object
Dim x As String
Private Sub Form_Load()
Set bapictrl = CreateObject("SAP.BAPI.1")
Set oconnection = bapictrl.Connection
oconnection.logon
Set boEmp = bapictrl.GetSAPObject("ZBAPIEMP")
Set oZEmp_Header = bapictrl.DimAs(boEmp, "CreateFromData", "EmployeeHeader")
Set oImpStruct = bapictrl.DimAs(boEmp, "GetList", "EmployeeDispStruct")
End Sub
Private Sub cmdSave_Click()
oZEmp_Header.Value("EMPNO") = txtEmpNo.Text
oZEmp_Header.Value("EMPNAME") = txtEmpName.Text
oZEmp_Header.Value("ADDR1") = txtAddr1.Text
oZEmp_Header.Value("ADDR2") = txtAddr2.Text
oZEmp_Header.Value("CITY") = txtCity.Text
oZEmp_Header.Value("PHONE") = txtPhone.Text
boEmp.CreateFromData EmployeeHeader:=oZEmp_Header, Return:=oreturn
x = oreturn.Value("Message")
If x = "" Then
MsgBox "Transaction Completed!..."
Else
MsgBox x
End If
End Sub
Private Sub cmdView_Click()
End Sub
COULD ANYBODY GUIDE ME, HOW TO RETRIEVE THE DATA FROM BAPI, FOR THE WRITTEN CODE.I didn't seen any other answers but here's how it's been done previously in our organization for a custom BAPI. In this example, we give material and language to return the part description. It's not specific to your project but may give you ideas..
-Tim
Option Compare Database
Dim SAPLOGIN As Boolean
Dim FunctionCtrl As Object
Dim SapConnection As Object
Sub SAPLOGOUT()
On Error GoTo LogoutFehler
SapConnection.logoff
SAPLOGIN = False
Exit Sub
LogoutFehler:
If Err.Number = 91 Then
Exit Sub
Else
MsgBox Err.Description, vbCritical, "Fehler-Nr." & CStr(Err.Number) & " bei SAP-Logout"
End If
End Sub
Function SAPLOG() As Boolean
'Verbindungsobjekt setzen (Property von FunctionCtrl)
Set FunctionCtrl = CreateObject("SAP.Functions")
Set SapConnection = FunctionCtrl.Connection
'Logon mit Initialwerten
SapConnection.Client = "010"
SapConnection.Language = "EN"
SapConnection.System = "PR1"
SapConnection.SystemNumber = "00"
'SapConnection.Password = ""
SapConnection.GroupName = "PR1"
SapConnection.HostName = "168.9.25.120"
SapConnection.MessageServer = "168.9.25.120"
If SapConnection.Logon(0, False) <> True Then 'Logon mit Dialog
Set SapConnection = Nothing
DoCmd.Hourglass False
MsgBox "No connection to SAP R/3 !"
SAPLOGIN = False
SAPLOG = False
Exit Function
End If
SAPLOG = True
End Function
Function MatDescr(MatNr As String)
Dim func1 As Object
Dim row As Object, X As Integer, ErsteNr As String
Dim DatensatzZähler As Long
Dim RowField(1 To 50, 0 To 1) As String, RowLine As Long
If Not SAPLOGIN Then
If Not SAPLOG() Then
MsgBox "No connection to SAP !", 16
SAPLOGOUT
Exit Function
End If
End If
' Instanziieren des Function-Objektes
Set func1 = FunctionCtrl.Add("Z_BAPI_READ_MAKT")
' Export-Paramter definieren
func1.exports("MATNR") = MatNr
func1.exports("SPRAS") = "EN"
DoEvents
If Not func1.call Then
If func1.exception <> "" Then
MsgBox "Communication Error with RFC " & func1.exception
End If
DoCmd.Hourglass False
SAPLOGOUT
Exit Function
Else
MatDescr = func1.imports("MAKTX")
End If
If MatDescr = "" Then
MatDescr = "PART NO. NOT FOUND"
End If
End Function -
How can we trigger the notification from SAP backend system to SMP3.0.
Hi All,
Can any one help me to know is there any standard approaches available to get notification from SAP backend system to SMP3.O server after any event that has been triggered.
Any of suggestion related to above will be helpful.
Thanks,
AnjaliHi Ekansh,
I have few more question regarding push notification from backend.
Refferd Link:-http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40ab6d83-b7b8-3010-65bc-d7a08f0f35f3?QuickLink=index&…
Pushing Notifications Made Easy!!! : Push a Notification
Have perform all the steps till creating RFC Destination to mobile platform by creating a new push service.
I just wanted to have a clarity on target host that we are specifying should also have SMP3.0 server installed???
Actually I am using http listener downloaded from membrane site which is running on that target host machine.
But I am unable to get any response in my listener.
Even wanted to know the necessity of exchange of certificate for SSL Connection.
SMP server Certificate exchange with SAP Backend and SMP server certificate exchange with HTTP Listener????
Because currently I am trying to have a notification from SAP Backend directly to HTTP Listener without having SMP server.
Can u please correct me where I am going wrong.
Thanks & regards,
Anjali Agrawal -
VPRS - Cost price from sales to billing not valuation record
Hi,
I need to get the cost to flow from the sales document to the billing document for the cost price.
We allow selected users to change the cost price at the time of the sales order. But when I create a billing document the moving average price is determined and not the cost price on the sales order.
In copy control pricing is 'G' and price source is order.
Is there a way around this via configuration ?Dear Javaid
Can you confirm that the sale order quantity and the billing quantity are same. In most of the cases, these would be different and hence the cost also.
Meanwhile, in V/06, for this condition type VPRS, ensure that the Calculation Type is "C"
thanks
G. Lakshmipathi -
How to retrieve the data from SAP database.
Hi Pals,
How to retrieve data from SAP R/3 System to my third party software. I will make my query little bit more clear. There is a list of assets entered and stored in the SAP system. For example 3 mobile phones.
1) Mobile 1- Nokia
2) Mobile 2 - Samsung
3) Mobile 3 u2013 Sony
Now think I do not know what all assets is there. I have to retrieve the data and get it on my third party software. Just display the list of assets. Lets say SAP XI is also there. Now how will I map it and get the details.
Please give me step by step method.
N.B: Just to read the data from SAP database.
Please make the flow clear step by step.
Thanking you
AKHi,
You can use RFC or ABAP Proxy to make synchronous call with SAP.
Under RFC or ABAP Proxy Program you can get the data from SAP tables. Direct access to SAP Database is not preferrable even if its possible.
The better way to go for RFC or PROXY.
You will send the request from Third party system and the it will be as input parameters from RFC/ Proxy it will response based on it.
This got it all..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
/people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
HTTP to RFC - A Starter Kit
/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
Refer
Thanks
Swarup
Edited by: Swarup Sawant on Jun 4, 2008 9:32 AM -
Adobe Form with XML interface cannot retrieve all data from SAP
hi all
I want to use the Adobe forms for the real estate module.
I had seen that adobe forms can have an interface with XML input and output as parameter.
In the interface type only the /DOCPARAMS an the DOCXML are INPUT parameters which are available.
No other INPUT parameter can be added to it.
When i try to retrieve the data in real estate there are some default function modules for retrieving the data from real estate.
But this function modules also are going to find out if the form which asks for this information has a IMPORT parameter
for the required data. For example, the SENDER data is retrieved, but before the default function module retrieve this data
the function module checks if the form has a INPUT parameter SENDER.
And that is not the case. And i cannot create the SENDER parameter to it, because this INTERFACE type does not allow it.
Does anybody know a solution herefore?
kind regards,
Anton PierhagenHi Bhaskar
It is a long time ago, almost 2 years.
I created my own custom development for calling the Adobe form. This custom development uses the correct function module interface with the IMPORT XML.
The XML which i sent as IMPORT PARAMETER to the form is also created by own custom development. Via the default XML class of SAP
So that was my solution
Kind regards,
Anton Pierhagen -
New positition number of PCR differs in Portal from SAP Backend
Hi,
There is a critical scenario in our MSS PCR form. Manager initiated a Poition transfer for an emplyee. After all approvals when we are opening the from in IQS23 it is showing a new position number which is different from when we click on Display form which opens in Portal.
In brief the new position number is not same when we see it in SAP backend through IQS23 and when we see from Display Form Action link which takes us in Portal. And importantly this is happening with one user only.
Can anybody help me on this urgently?
Regards
ChanduHi Siddarth,
Thanks for your reply. Yes we are using PCR forms and not HCM forms.
Thanks
Chandu. -
Purchase Order - Retrieve net price from Central contract (SRM or ECC)
Hi,
I'm doing a test by creating a PO referencing a Central Contract, which is made in SRM. When creating the PO, at this moment the net prices is retrieved from SRM.
Question: Is it possible to retrieve the net price from the copied contract which is in the Local ECC system?
(Customizing in ECC) SPRO -->Integration with Other mySAP.com Components >Supplier Relationship Management>Central Contract-->Price Calculation
The value what is at this moment: SRM Pricing Immediate
Should the value be: 1 SRM Pricing Immediately Only for Hierarchy Contract Item
Regards,
AlexanderCheck for existing screen layout name from below settings -
Goto SPRO -> IMG Settings -> Materials Management -> Purchasing -> Purchase Order -> Define Document Types
Check for Field selection key against the PO Type.
Then goto below setting -
SPRO -> IMG Settings -> Materials Management -> Purchasing -> Purchase Order -> Define screen layout at document level
Select the screen layout / Field selection key in this setting and modify the field selection group Quantity and price. Make Price and price unit as display only as per your requirement. -
Dear All,
I am consulting with Cement Industry client, here we have only one Final Product i.e., Cement. We implemented SAP FI and CO module 2 yrs back but till now they are not using Controlling module properly in SAP. Now they need total costing from SAP, mainly Cost Sheet as per Indian cement industrys format. We are following repetetive manufacturing process, by using Product Cost Collectors. Can any body explain what to check for getting Cost Sheet and useful T.codes please.
Regards,
PrasadThe process in SAP costing is you set a standard cost estimate for a material (say Cement bag) and release it to the material master. The cost estimate shall be with quantity structure (i.e with a Bill of material and routing). This will serve as the standard for all production during the year (or any period you decide). To do this you need to set up a costing variant T-code OKKN)
You also need to design a cost component structure created OKTZ to capture various cost element that would be involved in representing the cost of making the cement bag. This can be tailored to suit the format regulated by the industry.
For e.g
Raw materials to include powder of alumina, silica, lime, iron oxide, and magnesium oxide)
Conversion (kiln operations cost)
Pulverizing
Depreciation (of kiln etc)
Labour cost
Packaging etc.
Once you have assigned, you can run the cost estimate through CK40N collectively or cK11N individually.
Cost sheet or costing sheet within SAP is a terminology used to allocate overheads to products. You can also use this feature (found under SPRO>Controlling>PCP>Basic settings>Overheads) This feature will ensure to transfer cost from cost centers to the products on any preferred basis. -
Retrieving(Inbound) IDOC from SAP Error WCF-SAP Adapter
I am attempting to retrieve data from SAP using WCF-SAP Adapter. I used the wizard to retrieve the IDOCTYP(PEXR2002) and the appropriate docrel=740. Whenever I send the IDOC to BizTalk I receive the error below. Anyone have insight to what could be
the problem. BizTalk is not resolving the IDOC types properly.
Also: I am using the schema in a flat file disassembler in the receive pipeline.
Reason: Unexpected data found while looking for:
'E2EDKA1003'
'E2IDBL2000'
'E2IDB02002'
'E2EDL02'
'E2EDL03'
'E2IDLU5001'
'E2IDPU1'
'E2IDBW1'
The current definition being parsed is E2IDKU5001GRP. The stream offset where the error occured is 1483. The line number where the error occured is 11. The column where the error occured is 0.Hi Jordan ,
This really happens when you receive untyped message from your SAP System . Its been well described in below link
Receiving Idocs - getting the raw idoc data
Better option here is to create a pipeline component which will be responsible for your message parsing or try something like below
During the configuration of your one-way Receive Location using WCF-Custom, navigate to the Messages tab. Under the section "Inbound BizTalk Messge Body", select the "Path" radio button, and:
(a) Enter the body path expression as:
/*[local-name()='ReceiveIdoc']/*[local-name()='idocData']
(b) Choose "String" for the Node Encoding.
Thanks
Abhishek -
Data not getting fetched into Flex from SAP backend
Hello....
I have tried fetching data from SAP into Flex for simple BAPIs. For Ex; there would be 2 to 3 fields and we enter some values in it and these values are wrapped into an object and sent to SAP to fetch the details. This works fine.
But now, my problem is, I want to pass a list of data, as the one of the table parameter in the BAPI is mandatory to be passed. For this I created a arraycollection with same field names as in SAP:
<mx:ArrayCollection id="sel">
<mx:Array>
<mx:Object FIELD_NAME="RENTAL_OBJECT" SIGN="I" OPTION="EQ" FIELD_VALUE_LOW="1" FIELD_VALUE_HIGH="9999999"/>
</mx:Array>
</mx:ArrayCollection>
var inp:Object = new Object();
inp.SELOPTION = sel.source; //parameter name in SAP is SELOPTION
operation.arguments = inp;
operation.send();
I get the result back with this. But it will have only the table\structure names. It is not fetching any records, as it does in SAP when BAPI is executed.
You can have a look at the screen shot of it here:
This is the result that I'm getting in Flex:
http://img43.imageshack.us/img43/1477/screenshotgp.jpg
This is the result I get in SAP when I execute the BAPI directly:
http://img340.imageshack.us/img340/3796/screenshot2wa.jpg
Can someone who have come across this please help me out?
Thanx.
DeepakHi Deepak,
To send multiple entries to a table your code should be like this only.
var dateRangeRow:Object = new Object();
input.DATE_RANGE = new Array();
dateRangeRow.SIGN = "I";
dateRangeRow.OPTION = "EQ";
dateRangeRow.LOW = "2002-12-20";
dateRangeRow.HIGH = "";
input.DATE_RANGE.push(dateRangeRow);
Check the below link for details.
http://blog.danmcweeney.com/57
Regards
Basheer -
PO retrieve old price from info record
Hi Experts,
I have maintain 2 pricing condition in info record with different validity date.
Why PO still retrieve price which is validity date was expire instead of the valid pricing?
Thank you.Hi,
Yes. Normally the price will be picked from inforecord if it exits with conditions with valid date, otherwise the price will be picked from the Last PO .
regards,
abi -
Cost Price for Returns order adopting cost from preceding billing doc
Hi Forum Experts,
Our Returns Order (SO) currently obtains cost price (VPRS) based on material moving average price.
However, what we really need is to copy the cost price from the preceding Billing Document.
I've explored using VOFM and created a routine under (Formulas --> Condition Value) as per below.
I found that while the debugger steps through this code, the value of the cost gets copied from the preceding document.
However, immediately after the code finishes execution, the value gets resetted back to the material moving average price again.
What can I do do let the system keep the copied cost price from the preceding document instead?
FORM FRM_KONDI_WERT_998.
DATA: lv_kbetr TYPE kbetr,
ls_vbfa TYPE vbfa,
lv_knumv TYPE knumv.
IF SY-TCODE = 'VA01' OR SY-TCODE = 'VA02' OR
SY-TCODE = 'VA21' OR SY-TCODE = 'VA22'.
IF xkomv-kschl EQ 'VPRS'.
Get billing doc and position
SELECT SINGLE vbelv posnv
INTO corresponding fields of ls_vbfa
FROM vbfa
WHERE vbeln EQ komp-aubel "returns order number
AND posnn EQ komp-aupos "returns order item
AND vbtyp_n EQ 'H' "returns order
AND vbtyp_v EQ 'M'. "invoice
IF sy-subrc EQ 0.
Get billing doc conditions key
SELECT SINGLE knumv
INTO lv_knumv
FROM vbrk
WHERE vbeln EQ ls_vbfa-vbelv.
IF sy-subrc EQ 0.
Get moving average price from billing doc conditions
SELECT SINGLE kbetr
INTO lv_kbetr
FROM konv
WHERE knumv EQ lv_knumv
AND kposn EQ ls_vbfa-posnv
AND kschl EQ 'VPRS'.
IF sy-subrc EQ 0.
Recalculate condition values
xkomv-kbetr = lv_kbetr.
xkomv-kwert = lv_kbetr.
xkwert = xkomv-kwert.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDFORM.
Regards,
EdricHi,
If you bring the Freight condition after PBXX and include in the net value, your problem will be solved. so it will be 120 in MIGO, MIRO, Dellivery and VPRS in billing.
We have the same situation and its working fine for us.
Thanks
Krishna.
Maybe you are looking for
-
Bid Invitation (Notification and Output)
Hi Gurus, I have no clue how to manage Output / Messages for Bid Invitations. I need the system to do the following: 1) Send email notification to Bidders in the bid invitation and also a notification when I make changes to the bid Invitation - How a
-
Hi Experts, Does MDM have any restriction on the Types of Images. Like say, It can only store Images of Type - JPEG etc.. I Dont see any list of Image types that MDM Accepts mentioned in in DM Complete reference!!!! Does anyone see some SAP Link?? We
-
Hi guys, I'm newbie in EJB and Webservices, and I got the following error when I run the project: <faultcode>JWSError</faultcode> <faultstring>com.bea.xml.marshal.XmlEncodingException: Encountered an object of unrecognized type. Type 'com.provider1.H
-
I am renting a movie via itunes to Apple TV and accidently stopped the download, I cant see where to restart download. I have tried to check it out in Settings but cant get any info in regards to "check for rentals" There must be a way i can view the
-
Distorted Terminal Fonts?
I have the cleartype packages installed, and terminus. using the autohinter conf file aswell Last edited by kidawesome (2008-12-27 04:17:43)