Create a Service Purchase Requisition using BAPI_PR_CREATE
Hi Everyone,
I am using BAPI_PR_CREATE.
I am able to create Standard Purchase requisition.
But while creating Service Purchase Requisition, i am not able to create.
I am getting no errors for the PR Item, but even after entering Services for the PR Item i am getting error message in return table of bapi "Please Maintain Services or limits'.
Do i have to pass value to Package_No field in the item level table of BAPI_PR_CREATE.
Please help.
Regards,
Akash
Hi,
Check this link for creation of services.
Bapi_pr_change in services
PO Upload through BAPI_PO_CREATE1 - Problem in Service Item
BAPI_PO_CREATE1 Error
Hope it helps
Sujay
Similar Messages
-
Rounding Values while creating purchase requisitions using ME51N
Hi MM Experts,
I have created some materials with a Rounding Value maintained in MRP1 View of the material master.
Whenever I raise a purchase order, the order quantity rounds off to the value maintained in the material master which is the correct functionality.
But when i try to create a purchase requisition using ME51N, the rounding functionality doesn't work.
Example: Rounding value (in MRP1 view) of a material is 25.
The order quantity entered is 4. But before saving the PURCHASE ORDER the order quantity will be changed to 25(which is the rounding value). This is the correct functionality but doesn't happen with the PURCHASE REQUISITION (ME51N)
Can someone guide me on how to make the rounding value work for purchase requisitions when using ME51N?
Thanks in advance.
cheers,
RandiHi!
i had the same problem with a company.
i did not find any customizing possibilities.
I solved it with BAdI ME_PROCESS_REQ_CUST
Method PROCESS_ITEM.
I hope this helps
Flo -
Attach the file for purchase requisition using BSP service
Hi All,
I have Requirement Attach the any file like(PDF,TXT,PPT) to Purchase requisition using BSP service.Could please provide me any function module or BAPI for this functionality.
Thanks in advance.
Regards,
Rajesh.Hi All,
REPORT ZTESTJLG3 . .
parameter p_mandt like sy-mandt default '120' .
parameter p_equi type equnr default '1000007' .
parameter p_path like IBIPPARMS-path memory id AD_LOCAL_PATH .
parameter p_name(30) default 'Test attach 100007' lower case .
" nom attachement .
data w_prog like sy-repid .
data w_dynnr like sy-dynnr .
data w_attachement type borident .
initialization .
w_prog = sy-repid .
w_dynnr = sy-dynnr .
" test jean luc recuperer le code de
fucntion module 'GOS_EXECUTE_SERVICE'
data lo_container TYPE REF TO cl_gui_container .
*call method lo_container->get_container_type .
at selection-screen on value-request for p_path .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = w_prog
DYNPRO_NUMBER = w_dynnr
FIELD_NAME = 'P_PATH'
IMPORTING
FILE_NAME = p_path .
start-of-selection .
if sy-mandt ne p_mandt .
write 'Erreur mandt ' .
exit .
endif .
data ws_borident like borident .
ws_borident-OBJKEY = p_equi.
ws_borident-OBJTYPE = 'EQUI'.
data w_document like SOOD4 .
data : begin of wt_files occurs 0 .
data fname(128) .
data end of wt_files.
wt_files-fname = p_path .
append wt_files .
data folder_id like SOODK .
call function 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
region = 'B'
IMPORTING
folder_id = folder_id
EXCEPTIONS
others = 1.
w_document-foltp = folder_id-objtp .
w_document-folyr = folder_id-objyr .
w_document-folno = folder_id-objno .
append document to documents.
w_document-objdes = p_name .
w_document-objnam = p_name .
data w_h_data like sooD2 ..
data w_fol_data like sofm2.
data w_rec_data like soos6 .
w_h_data-objdes = p_name .
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
METHOD = 'IMPORTFROMPC'
OFFICE_USER =
REF_DOCUMENT = w_document
NEW_PARENT =
IMPORTING
AUTHORITY =
TABLES
OBJCONT =
OBJHEAD =
OBJPARA =
OBJPARB =
RECIPIENTS =
ATTACHMENTS =
REFERENCES =
FILES = wt_files
CHANGING
DOCUMENT = w_document
HEADER_DATA = w_h_data
FOLMEM_DATA = w_fol_data
RECEIVE_DATA = w_rec_data .
if w_document-okcode = 'CREA' or w_document-okcode = 'CHNG'.
w_attachement-objtype = 'MESSAGE'.
w_attachement-objkey = w_document(34).
CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
EXPORTING
OBJ_ROLEA = ws_borident
OBJ_ROLEB = w_attachement
RELATIONTYPE = 'ATTA'
IMPORTING
BINREL =
TABLES
BINREL_ATTRIB =
EXCEPTIONS
NO_MODEL = 1
INTERNAL_ERROR = 2
UNKNOWN = 3
OTHERS = 4
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif .
For above requirement i am trying like above code.
working fine but which transaction i can find the attach file.I am trying to fine using ME52N transaction but i c't find this file.
Please suggest me how can i find this one
Thanks in advance,
RajeshV. -
Converting Service Purchase requisition to Purchase order
Hi,
In our scenario the service requsitions are generating from Project order (PS module). We have to give multiple purchase orders against this service purchase requisition. System is not allowing to do so.
VivHi,
***As you creates purchase orders in ME21N WRT Purchase requisitions
***Use t.code:ME5A & execute by entering u201CProcessing status u2013 B u201Cin dynamic selection--> Purchase requisition.
***As you needed restrict PO creation with more than PR Quantity and set error message follow path:
SPRO->Materials Management->Purchasing->Environment Data-->Define Attributes of System Messages
06 076 as Error messages.
when all the PR quantity already converts to PO, system will not allow to create a another PO from that same PR again.
Regards,
Biju K -
Creation of Purchase Requisition using BAPI
Hi Experts
Can anyone provide me the sample code for creating Purchase Requisition using BAPI
Thanks in advanceHi siri,
go throught this, hope
http://www.erpgenie.com/abap/bapi/example.htm
Also refer to the following links..
www.sappoint.com/abap/bapiintro.pdf
www.sap-img.com/bapi.htm
www.sap-img.com/abap/bapi-conventions.htm
www.planetsap.com/Bapi_main_page.htm
www.sapgenie.com/abap/bapi/index.htm
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://sap-img.com/bapi.htm
Thanks
Naveen khan
Message was edited by:
Pattan Naveen -
Material Number mandatory for PR exceptP for Service Purchase Requisition
Hi All,
Our client's new requirement is we need to give material number mandatory for Purchase Requisition. But it should not affect for Service Purchase Requisition (as we don't have material number with material type DIEN. Till now, we were using Acc Assignment Category K and Item Category D with only Short Text description). We have separate document type for Service Purchase Requisition(ZSRV).
In order to make Material number mandatory, in PR, we need to give in "Define Screen Layout at Document Level for PR",right? Is there any way to give, "Material Number Mandatory at Document Type Level"?
Please suggest.
Regards,
roshhi sridhar,
Thank you for your answer. So as you said, there is no possibility to make material number as mandatory at DOCUMENT TYPE level through Customzining, right?
Regards,
Rosh -
Service Purchase Requisitions not being transferred
Dear Experts,
I'm not able to transfer the service purchase requisitions with service master but it is working fine for standard purchase requisitions with material master in SRM 7.0 using report bbp_exttransfer_req. Also how to address different purchasing organization and purchase groups with different company codes and plants, as the transferred PR is being defaulted by the channel values in the srm organizational structure. For Service purchase requisitions I'm receiving error as " Define Transaction type for local system" in the srm system and in ecc it is as ANOENTRY.
Note : Apart from using BBP_DOC_CHANGE BADI looking for a standard way of meeting this requirment.
Thanks and Regards,
Venkata Koppisetti.Hi
Follwoing is what I can think in your scenario:
1. Check if the service master is replcated from ECC to SRM, if at all you have service master in your ECC PR.
2. Maintian all the Org. structre elements of ECC(PUR org, Pur grp and Co.Code) of ECC in SRM using transaction PPOCA_BBP. This will take care the same Pur. Group you have on PR of ECC will also moved into SRM documents(RFx or SC sent to SOCO).
3. Since your syaing you are getting an error for define transaction type, check in the attribute "Define transaction" has been mainiantiend.
with regards
Manjunath -
Purchase Requisition using webdynpro
Hi all,
I have a requirement wherein i have to create a purchase requisition using webdynpro by taking Document type, Plant, Storage Location, Material and Quantity as input. I am able to generate a PR NO. for a single Material but when there are multiple Materials for the same plant and storage location the PR does not get generated. Kindly Help.
Regards,
Santhosh.Hi,
In extended notification the approvar will be asked to SAP login details and proceed for approval process. Without log into sap you cannot approve the PR. Please refer below link for better clarity. Thanking you.
Approve workitems from outlook -
Block Project Purchase Requisition using User Status
Dear All,
We need a copy of TECO, we tried to create a new status using BS22 transaction but its totally new activity of creating the system status. This transaction does not allow to copy an existing status. is there any other way to do so
We alos tried to block the Purchase Requisition using user status, but its not working. Please guide
Thanks in advance.
MurtazaYes, you are right I need the said status for WBS Element. I have assigned it to relevant WBS Elements but not working.
Let me explain the scenario little more, there are activities having commitments (Purchase Requisitions), we need to process the existing PRs but new commitments must be blocked. we need to use status on WBSE to control it so that if we need to re-open the new commitments, we can do it by disabling the status.
Murtaza -
Automatic Purchase Requisition using Reorder Point without MRP Run
Dear Freinds,
My client wants Purchase Requisition should be automatically created as soon as the stock falls below reorder level without MRP run.
Is this possible? if possible then what are the settings required.
Thanks
Prashant AtriDear,
It is not possible in standard SAP.
What is the problem to take MRP run?
You can take the MRP run in background through MDBT so system will create automatic Purchase Requisition using Reorder Point.
Hope clear to you.
Regards,
R.Brahmankar -
How to de-activate Qty and Price fields for Service purchase requisition
Dear all,
We have a request to de-activate (leave it as "Display") the fields of quantity and gross price when changing a service purchase requisition of a specific document type.
In example: We want that purchase requisition type NB, allows in change mode (ME52 or ME52N) to change the quantity and gross price of the services. On the other hand, these two fields must be only visible for order type ZNB. Besides this must be happening only for services.
Changing PT9 or PT9B will affect also the creation, and if we only configure based on transacction and document type does not work.
Any help will be highly appreciatted.
CheersHi,
You may have to write a output requirement routine and assign the same to the output type in NACE.
But i don't think you will get the old and new data of Purchase order in requirement routine (program : SAPLV61B). You may have to export the data into memory from either a BADI method or User exit and then import the same in requirement routine.
Regards
Vinod -
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 -
Is it Possible to create a simulation purchase requisition?
Hi everybody,
I was wondering whether it is possible to create a simulative purchase requisition in transaction MS02.
Or if it is possible to convert a Simulative Planned Order into a purchase order in transaction MD02/MD04.
Thank you kindly for your help.
Best regards
MitchHello
There is no such thing as a simulative purchase requisition on LTP. Even for externally procured materials, system still created a planned order.
What you can do is to copy a simulative planned order to the operative MRP. Later, this planned order can be converted to purchase requisition and to purchase order.
Take a look on the following link for more details:
Copying the Long-Term Planning Results to Operative Planning - Long-Term Planning (PP-MP-LTP) - SAP Library
BR
Caetano -
Bom explosion in purchase requisition using BAPi
Hello All,
Is it possible to explode a BOM in a purchase requisition using a functional module.
VivekRajen,
I have a material on which when I run MRP I get purchase requisitions with two different production version.
In one purchase requisition I can see the BOM components and while on the other one I dont see BOM components.
If I pass these two Purchase requisitions in EBAN table I find that RSNUM is blank for the latter case.
If I go in this purchase requisition in change mode and explode the BOM and save, I can see BOM components.
Also If I refresh EBAN table after this activity, I see the RSNUM field is populated.
I hope this helps.
Vivek -
Enter short text error when creating a purchase requisition using ME51
Hello
I would be grateful if someone can help. I am currently trying to raise a purchase req using ME51. The purchase req is for one item so i enter details of this item on line 1. However when i try to save the purchase req i get an error message stating "enter short text" on line 3 and it does not let me continue. Line 3 however does not contain any item information so i dont understand why i am getting this error message.
Another user created the same purchase req and it worked fine for them so i am not sure why i am getting this message.
I would be grateful if you can please help.
Thank you
Regards
BindiSyed
I have tried logging off and logging back in and still having this issue.
Jurgen
No im only having this problem in a ME51 creating purchase requisitions and not in a CATT or any batch input recording
Regards
Bindi
Maybe you are looking for
-
I keep receiving security errors when trying to open a pdf.
I keep receiving a security error when trying to run my javascript program, the function previously worked, but now creates an error after I entered the addWaterMark function. I have put my whole code below for my script. The basic function is to loa
-
Input Excise SHECess not showing in MIGO & Excise Invoice posting, where I made a mistake ? 1.At the Time of MIGO,In Excise Invoice tab SECess Hide in reight side of the Screen 2. At the time of J1IEX, Complete Input Excise SECess Line item is not ap
-
How to sort bookmarks by title A to Z?
What is the process by which bookmark titles can by sorted top to bottom in the toolbar menu alphabetically? Thank you, Pat
-
Error #3: "memory.cpp", line 639; VI used to work, now it stopped
Hello, I am running LabVIEW 6.0.2. I have a rather complicated VI that used to work just fine. I have run it a bunch of times without any problems. I have not changed anything at all, and now it gives me Error #3: "memory.cpp", line 639 every time I
-
Set up Business Connector within SAP ERP 2005
Hello! Which SPRO-Activity is responsible for setting up Business Connector within SAP ERP 2005 (only ABAP-Stack)? What is the effort should be regarded for this issue? Thank you very much! regards Thom