Create, Update, Delete purchase order confirmations
Hi all,
How can I maintain confirmations data for a purchase order ?
I'm looking for a function module or a BAPI to do this ...
I tried to update data in SAP table EKES but I have a lot of problems when I access to my modified PO with transaction ME22(23)N, moreover data are false in MD04.
Regards Julien.
Hi,
check out this link for BAPI's:
http://www.sapbapi.com/bapi-list/
and check out this link for FM's:
http://www.erpgenie.com/abap/functions.htm
With luck,
Pritam.
Similar Messages
-
Regarding Purchase order Confirmation
Hi,
I have a flat file from which we have to update the Purchase Order Confirmations at item level.
Is there any Function Module for this ? Because right now i am using BDC for this ?Hi Manju,
i have got the requirement to change the PO items at confirmation tab, i tried with bapi but it is not working, can u please forward the piece of code if u have.
Regards,
D. Raghu Ram. -
WBS & Commitment Code Update in Purchase Order/Down Payment
Sir,
We have created purchase orders by using WBS and Commitment Code and
afterwards, the down payments has been created against the purchase
Orders.
Now we want to change the WBS and Commitment Code in Purchase Orders
and also in Down Payment Request so that the data and reports can be
updated as per the changes.
Pl suggest the way how can we do the same so that our data can be
updated as per the changes in purchase orders.
Regards
Mudit GuptaWhy do you want to change the same now?Has the user entered wrong WBS and Commitment Code?
I yes then cancel the down payment,delete the po & pr...and then through CJ20N create a new automatic pr with correct WBS and Commitment Code.
Regards,
Indranil -
SUS Purchase Order Confirmation notification (or alert) is possible ?
Hello,
We work on a SRM 5 release with a classic scenario.
We use the EBP-SUS supplier collaboration scenario (clients are different for SRM and SUS).
The purchasing document flow is describe below:
1- SRM Shopping Cart
2- R/3 Purchase Request (then, SRM SC history is updated with the PR number)
3- R/3 Purchase Order (then, an IDoc is sent to XI which generates a XML document sent to EBP-SUS in order to create the corresponding sales order - SRM SC history is updated with the PO number).
4- Then, supplier can confirm or reject the PO received. So, the SUS Purchase Order Confirmation is generated and sent back to R/3 ( via XI)
5- R/3 PO is updated with the posted PO confirmation (you can see the confirmation control key AB in the 'Confirmation' tab of the PO item concerned).
My request is to send a notification to the requester's mail client in order to inform him that supplier confirmed or rejected the PO.
I noticed that notification receivers definition is possible in SPRO, but only for "Process Purchase Order Response". I guess this notification is for BUS2209 (SRM POR) and not for BUS2232 (PO confirmation for SUS).
That's why i cannot use it: can anyone confirm this ?
As alternative, i tried to use alert management in SPRO (in the SUS client) for BUS2232 with sub-category of event SRM_SUS_PO_CONF in ALRTCATDEF transaction for SRM Alerts, but it does not work (even if i schedule report RSALERTPROC ).
Does anyone have a suggestion regarding my customizing ?
Finally, when PO confirmation is posted in R/3 (step 5 seen above), the SRM SC history is not updated with the PO confirmation number: is this the standard way ?
If yes and that the described notification (alert) customizing i indicated above are not possible, does it seem i will have to develop a specific notification process in R/3 when R/3 PO is updated with its PO confirmation coming from SRM-SUS ?
Thank you for your help.
Regards.
Laurent.Hello Nagarajan,
>
> Looks like your intent is to notify the Shopping Cart requestor about the PO response that happens in the Back end system!
> This looks strange but then it is really required if you have a common buyer in SRM and MM.
>(...)
Requester being the initiator of purchasing document flow, custumer request is to alert him about supplier POR.
If i send my notification from R/3, i will get Requester name at R/3 PO item. Then, by a RFC call to SRM, i will get his data to generate my e-mail.
>
> The following approach can be adopted:
> 1.Purchase Oder Response Message can be pulled out of the XI thro a technical routing into the SRM which will post the Purchase Oder response in the SRM ( SRM PO will be updated)..There could be some issues with the variance POR and the status of the POR but that can be handled..
>(...)
I cannot do this: PO does not exist in SRM as we are in classic scenario.
>
> I am unsure of the Alert Management.. but I heard there should be a way for that also..
> (...)
I carry on checking this solution
>
> You can raise an OSS Message for the same pls.
>(...)
Don't have time for this and SAP will answer that this is consulting and not support
I will also verify if i can find a BAdI dedicated to SUS Purchase Order Response and use it to generate my e-mail from SUS client (or maybe some enhancements).
Regards.
Laurent. -
Want to create a multiple Purchase Order using one file source
I'm want to create a multiple purchase order using one source file. I want to read the file source create LINES in a purchase order and when the Vendor code changes I want to Add the purchase order and then create a new purchase order and Add LINES and so on.
Right now I get Item.no is missing [POR1.ItemCode][Line 2]Here is a code sample
Private Sub testcode()
Dim strOrdplanFile As String
Dim oLineRec As SAPbobsCOM.Recordset
Dim strLine As String = ""
Dim ItemName As String
Dim Quantity As String
Dim RequiredDate As String
Dim SupplierType As String
Dim ShipTo As String
Dim Vendor As String
Dim oPurchaseOrder As SAPbobsCOM.Documents
Dim bAddPOrder As Boolean = True
Dim bPurchase As Boolean = False
Dim sSQL As String
Dim iReads As Integer = 1
Dim iCurrentPurchaseNumber As Integer = 0
Dim bErrors As Boolean = False
Dim retCode As Double
oPurchaseOrder = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
strOrdplanFile = strFolderLocation & "ORDPLAN.TXT"
If File.Exists(strOrdplanFile) And FileLen(strOrdplanFile) > 0 Then
Dim sr As New StreamReader(strOrdplanFile)
strLine = sr.ReadLine()
txtPurRec.String = "0"
oFormStatus.Update()
Try
Do
Vendor = strLine.Substring(0, 8).Trim()
ShipTo = strLine.Substring(12, 8).Trim()
SupplierType = strLine.Substring(26, 1)
ItemName = strLine.Substring(27, 20).Trim()
Quantity = strLine.Substring(94, 8)
RequiredDate = strLine.Substring(206, 9)
oLineRec = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
sSQL = "SELECT PrcrmntMtd, CardCode FROM OITM WHERE ItemCode = '" & ItemName & "'"
oLineRec.DoQuery(sSQL)
If oLineRec.RecordCount() > 0 Then ' if it exists add the record
If oLineRec.Fields.Item(0).Value.ToString = "B" Then
If (bAddPOrder) Then
oPurchaseOrder.CardCode = Vendor
oPurchaseOrder.DocDueDate = RequiredDate
'Add first item to the purchase order
oPurchaseOrder.Lines.ItemCode = ItemName
oPurchaseOrder.Lines.WarehouseCode = ShipTo
oPurchaseOrder.Lines.Quantity = CDbl(Quantity)
oPurchaseOrder.Lines.Add()
bAddPOrder = False
bPurchase = True
iCurrentPurchaseNumber = iCurrentPurchaseNumber + 1
txtPurRec.String = "R: " & iReads & " W: " & iCurrentPurchaseNumber.ToString
oFormStatus.Update()
Else
'compare CardCode to make sure Vendor hasn't change
If (oPurchaseOrder.CardCode.CompareTo(Vendor) = 0) Then
'Add item to the purchase order
oPurchaseOrder.Lines.ItemCode = ItemName
oPurchaseOrder.Lines.WarehouseCode = ShipTo
oPurchaseOrder.Lines.Quantity = CDbl(Quantity)
oPurchaseOrder.Lines.Add()
Else
'vender code changed
retCode = oPurchaseOrder.Add()
If (retCode <> 0) Then
SBO_Application.MessageBox(oCompany.GetLastErrorDescription(), 1, "OK", "", "")
End If
oPurchaseOrder.CardCode = Vendor
oPurchaseOrder.DocDueDate = RequiredDate
'Add first item to the purchase order
oPurchaseOrder.Lines.ItemCode = ItemName
oPurchaseOrder.Lines.WarehouseCode = ShipTo
oPurchaseOrder.Lines.Quantity = CDbl(Quantity)
oPurchaseOrder.Lines.Add()
bAddPOrder = False
bPurchase = True
iCurrentPurchaseNumber = iCurrentPurchaseNumber + 1
txtPurRec.String = "R: " & iReads & " W: " & iCurrentPurchaseNumber.ToString
oFormStatus.Update()
End If
iReads = iReads + 1
End If 'new
strLine = sr.ReadLine()
End If
End If
Loop Until sr.EndOfStream
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Information)
End Try
If (bPurchase) Then
lRetCode = oPurchaseOrder.Add()
End If
sr.Close()
swLogFile.WriteLine("Purchase orders stored : " & iCurrentPurchaseNumber)
oPurchaseOrder = Nothing
End If
End Sub -
BAPI for Mass Purchase Order Confirmation
Dear All,
In standard SAP,it is possible to confirm for single line item only by using confirmation tab.
We want to confirm Mass PO Confirmation.
Is there any BAPI for Mass Purchase Order Confirmation?
Regards,
RameshHi Sumant,
I have tried with TC:MASS.
By using this TC we can update quantity but not delivery date & Confirmation Control (Fields available in the confirmation tab of ME22n for Vendor Confirmation).
Is there any way to updates all these fields which are available in the Confirmation Tab?
Is there any BAPI which is tranferring confirmation tab details into EKES table?
Expecting your valuable inputs in this regard.
Regards,
Ramesh -
Fast entry transaction for entering purchase order confirmations
Does anyone know of fast entry transaction for entering purchase order confirmations similar to VL31N for inbound deliveries?
Thanksdear John,
if i m not mistaken you want to give confirmation control to your existing POs.
If the case is this you can opt for a BDC to be run for updation.
Ask your abaper to do this thing.
revert back if this is not the the case.
Njoy
Ashish -
Reg Telephone and Fax Number updation in Purchase orders
Hi Experts,
I need small information about Telephone Number and Fax numbers updation in Purchase Orders.
Actually my user requirement is they have been provided the Purchase Organizations XXXX,XXXX.
From this Two Purchase Orgs the users who are all created the POs the Telephone Number,Fax Number need to pick from the relvant User Master(user profile SU01).
For this how i can discuss with my Abaper.
If you have any idea on this please suggest me.
Brgds,
RKHi RK
Where do you need to update this information in the PO or the PO output ( Print / Fax / email)
If you want to update these in the PO then you need to use the customer exit.
Enhancement MM06E005 - Customer fields in purchasing document
If you need to determine the details in the PO output then the smartform / script being used needs to be modified to determine the data of the user derived from table EKKO - ERNAM created by
The address number needs to determined from table USR21 using the user ID - PO created by( EKKO - ERNAM_ and using the address number derive the telephone number and fax number from table ADRC. -
Record Purchase order confirmation via FM
Hi all,
I'm searching for FM for recording Purchase order confirmation.
Any suggestions ?
Thanks,
Shai E.ME_CONFIRMATION_UPDATE ...but its tricky its does direct table update ..(EKES table will be updated directly)
-
Measuring point update by production order confirmation
Hi friends,
I created a prt as equipment and assigned it to the routing. I created a production order and when i confirm the same i am getting following error as:
Document MeasUnit has a different dimension to the characteristic unit
Message no. IR071
Diagnosis
The measurement unit on creation of the measurement document must have the same dimension as the measurement unit of the characteristic of the measuring point.
In this case, the measurement unit % does not suit the character unit EA of the measuring point 103.
System Response
Processing will not be continued.
Procedure
Use the possible entries help.
Please suggest the solution.Hello Sir(s)
i have gone through entire post for the subject related to measuring point auto update from production order confirmation. I have tried the same but i dont know what i am missing.
if i put some value like 1 or 2 and appropriate UOM then only my measuring document is being updated with the same value not with the actual confirmed quantity.. i have already maintained standard formulla in prt view.
my basic requirement is to get actual value of produced quanity as counter update. means if 20 pieces have been produced and confirmed in co11n, then counter must bhe updated with the value of confirmed quantity.
please advice what value should i put as usage in routing master to get actuall counter update.
Will Highly appreciate your quick reply.
Snapshots
Regards.
Mohammad. -
Delete Purchase orders in APO Database
We have some purchase orders in APO that we cannot delete from the database.
When we run WUF for a specific material we can see that we have two ATP orders for the material. When we check the orders in R/3 we can see that the orders are deleted purchase orders. In APO we would like to delete these orders properly as we need to delete the material.
We have tried to do this by running the following programs:
/SAPAPO/SDORDER_DEL
SAPAPO/DELETE_PP_ORDER
/SAPAPO/RLCDELETE
We have also tried to run a comparison (TCODE: /SAPAPO/CCR) but no inconsistencies were found.
None of this has deleted the two purchase order from the data base.
Does anybody know how we can delete these orders?
BR TrineFirst of all you need to understand if these orders were:
- created in APO
- CIFed from R/3
APO: in this case only /SAPAPO/RLCDEL can help you. You can also try /SAPAPO/DELETE_PP_ORDER. I've never had any issues when deleting APO-orders. This shouldn't be a problem.
R/3: in this case you should be able to fix issues via /SAPAPO/CCR. When using this report remember that it compares APO and R/3 ONLY in case material/location exists in integration model. In case you checked integration model and it's OK and /SAPAPO/CCR still not able to find the problem then you can use /SAPAPO/DELETE_PP_ORDER. But when using it together with purchase order you need to slightly modify contents of internal variables.
Report /SAPAPO/DELETE_PP_ORDER, rows 373 - 384
IF sy-subrc = 0.
lv_tabix = sy-tabix.
nur im Expertenmodus k³nnen umgesetzte Auftrôge gel³scht werden
IF lv_execu = gc_true
AND ( TO lt_ordkey_no_del.
DELETE lt_ordkey INDEX lv_tabix.
ENDIF.
ENDIF.
Here you should set lv_execu to TRUE ('X') and then it is able to delete purchase order. DO IT ONLY IF YOU UNDERSTAND THE CONSEQUENCES
Dmitry -
VMI scenario: purchase order confirmation send to vendor
Hello Dear Sappers,
I'm using message type ORDRSP (Idoc ORDERS05) for inbound idoc for Vendor Managed Inventory, and it works. Then, once the PO is created in our SAP, the system automatically send a PO confimattion message to our vendor through message variant VMI in the partner profile for the EDI message category ORDCHG.
The system, once the PO is created, send an automatically ORDCHG Idoc to the vendor. The problem is that the system send the PO confirmation before the PO is release/aproved. That is a problem. My requeriment is to send the PO confirmation Idoc to the vendor after the PO is release.
This is my configuration:
Partner profile:
When a message of the ORDRSP type is processed, a purchase order is created for the vendor who sent the purchase order confirmation.
When a message of the ORDRSP type is processed, a purchase order is created for the vendor who sent the purchase order confirmation.
Partner no. VENDOR_AG
Description: VENDOR AG
Partner Type: LI
Message Type: ORDRSP
Message Code: VMI
Process Code: ORDV
Processing: Trigger immediately
Send Purchase Order confirmation number to VENDOR AG:
Partner no. VENDOR_AG
Description: VENDOR AG
Partner Type: LI
Partner Function VN
Message Type: ORDCHG
Idoc Type: ORDERS05
Message Code: VMI
Receiver Port: CI.SPARES
Pack Size: 1
Output Mode: Transfer Idoc immediately
Message Control Application: EF; Message type ZPOC; Process code ME11 and Change message indicator set.
I created the Output Type ZPOC but when I tried to added manually to the PO "Maintain outgoing EDI-connection data for partner VENDOR_AG.
However the strange thing is that the system send the PO confimation IDoc ORDCHG anyway (without any Output Type). But send the Idoc inmediatly the PO is created (not yet release).
My question here is: how can I only send to the vendor the IDoc ORDCHG only when the PO is release?
Thanks a lot to all
FredHi,
This problem was solved. I had to remove the message variant VMI from the partner profile. Keep the message type ORDCHG but without VMI variant. And with that way, the system do not send the Idoc after the PO is created. SAP send the Idoc after the PO is release and do it by Output Type determination.
The key was to remove the message variant! Unbelievable!
Thanks to all.
Fred.- -
Is there a way to view the information of a deleted Purchase Order?
Hi SAP Experts,
Is there a transaction or program that could help me retrieve the information of a deleted purchase order? (Header and LI) Please take into consideration that the document can no longer be retrieved in SAP thru the regular t/codes.
Thank you,Try with t.code AUT10 -Audit trail using which you can see the change histories.
Regards, -
Purchase order Confirmation data from SRM to MM
Hi,
I am trying to send Purchase order Confirmation data from SRM to MM via PI. In SRM portal i am able to see that the data has been send successfully. But i am not able to receive any data in PI nor iam able to any messages going from SRM in SXMB_MONI.
Please help me.
Thanks & Regards
Kasturika PhukanHi,
In SRM check in sxmb_moni is there any queue is blocked.
If not then,
Check your proxy settings.Select Go To and check connection Test.
Go to sm59 and check H type RFC destination is maintained.
Go to sxmb_adm check the Global setting value,
Application system,dest://RFC destination is maintained.
In XI,
Go to SLD.
Check Technical system (client with logical system) maintained.
Check Business System maintained with role of application system,Related integration engine
maintained.
Regards,
Prakasu.M -
Price during creating of Draft/Purchase Order fails in SP01 PL04
Hi,
we try to port an add-on of us to B1 2005 SP01 PL04. The Add-On create a Draft/Purchase Order by DI Api. Doing so works fine in 2005A SP00 PL08 and PL11.
Now we try to run it at SP01 and we got wrong prices in the DB.
Here some sample code in C#:
SAPbobsCOM.Documents document;
if(createAsDraftDocument == true)
document = (SAPbobsCOM.Documents)MainClass.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts));
else
document = (SAPbobsCOM.Documents)(MainClass.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders));
document.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseOrders;
filling the documents head data
// adding a document line
document.Lines.Add();
// filling line
document.Lines.ItemCode = 1;
document.Lines.SupplierCatNum = otherValue;
document.Lines.Quantity = 1;
document.Lines.Price = 1;
// adding the document
if(document.Add() != 0)
throw(new DocumentCreationException(MainClass.Company.GetLastErrorDescription());
// everything OK now
// fetch last docentry as docentry and save as xml
SAPbobsCOM.Documents d = (SAPbobsCOM.Documents)(MainClass.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts));
d.GetByKey(Convert.ToInt32(docEntry));
string fn = @"E:\draft.xml";
d.SaveXML(ref fn);
In the XML I found:
<?xml version="1.0" encoding="UTF-16"?>
<BOM>
<BO>
<AdmInfo>
<Object>112</Object>
</AdmInfo>
<ODRF>
<row>
<DocEntry>6</DocEntry>
<DocNum>4</DocNum>
<DocType>I</DocType>
<CANCELED>N</CANCELED>
<Handwrtten>N</Handwrtten>
<Printed>N</Printed>
<DocStatus>O</DocStatus>
<InvntSttus>O</InvntSttus>
<Transfered>N</Transfered>
<ObjType>22</ObjType>
<DocDate>20060615</DocDate>
<DRF1>
<row>
<DocEntry>6</DocEntry>
<LineNum>0</LineNum>
<TargetType>-1</TargetType>
<TrgetEntry>0</TrgetEntry>
<BaseRef/>
<TaxOnExpFc>0.000000</TaxOnExpFc>
<TaxOnExpSc>0.000000</TaxOnExpSc>
<DRF1>
<row>
<DocEntry>6</DocEntry>
<LineNum>0</LineNum>
<TargetType>-1</TargetType>
<TrgetEntry>0</TrgetEntry>
<BaseRef/>
<TaxOnExpFc>0.000000</TaxOnExpFc>
<TaxOnExpSc>0.000000</TaxOnExpSc>
<TaxOnExAp>0.000000</TaxOnExAp>
<TaxOnExApF>0.000000</TaxOnExApF>
<TaxOnExApS>0.000000</TaxOnExApS>
<LastPmnTyp/>
<LndCstNum>0</LndCstNum>
<UseCorrVat>N</UseCorrVat>
<BaseType>-1</BaseType>
<BaseEntry>0</BaseEntry>
<BaseLine>0</BaseLine>
<LineStatus>O</LineStatus>
<ItemCode>1</ItemCode>
<Dscription>1</Dscription>
<Quantity>1.000000</Quantity>
<ShipDate>20060615</ShipDate>
<OpenQty>1.000000</OpenQty>
<Price>5.000000</Price>
<TaxOnExAp>0.000000</TaxOnExAp>
<TaxOnExApF>0.000000</TaxOnExApF>
<TaxOnExApS>0.000000</TaxOnExApS>
<LastPmnTyp/>
<LndCstNum>0</LndCstNum>
<UseCorrVat>N</UseCorrVat>
<BaseType>-1</BaseType>
<BaseEntry>0</BaseEntry>
<BaseLine>0</BaseLine>
<LineStatus>O</LineStatus>
<ItemCode>1</ItemCode>
<Dscription>1</Dscription>
<Quantity>1.000000</Quantity>
<ShipDate>20060615</ShipDate>
<OpenQty>1.000000</OpenQty>
<Price>5.000000</Price>
which isn't as we expected and as it worked on PL00.
This is the same the draft-form of the last draft we created shows:
Price is 5 instead of the expected price of 1 we assigned through the DI-Api.
Note: The Article-price in the item master data is set to 5.00.
Is anyone out there who could help us as our add-on didn#t work any more on the new SP.
Thanks
GerdHi all,
we found the problem our self. It seems that the handling of 'Price' and 'UnitPrice' differs a little bit between SP00 and SP01.
Setting the 'UnitPrice' in the document lines instead of of the 'Price' solves the problem.
A little bit ugly that the functionallity changes and there is no documentation found.
Greetings
Gerd
Maybe you are looking for
-
My itunes account keeps giving me this Error message. "You are signed in with a different Apple ID than previously used with podcasts. Do you want to sync these podcasts subscriptions and stations with "gajppl"" gajppl is my only Apple ID. What do I
-
Gross Salary Report Need to develop in ABAP Query -sap-hr
Dear Experts, i need to create salary report through ABAP-query. i have following below stops. 1)Create user group thorugh SQ03. 2) Having problem in creating Infosets,as i need to use PNPCE as ldb and p9001,p9002,p9008,p9000,p90402.but when i am cre
-
Really nervous. Can't get any of the support instructions to work. Error occurred while installing mountain lion upgrade from 10.6.8. PLEASE HELP! I know I'll be checking for responses all night. Thanks
-
How do you import raw motion video projects into Final Cut Pro X
How can I take a raw motion video (not a template for a transition, generator, etc.) and import it into final cut pro so I can just put it right into one of my projects.
-
I have a link bar component that is linked to a ViewStack component, which has four stacks. I want to use modules in the last three stacks and my question is: Will the modules load when the user clicks on that particular stack, or will all of them be