BADI in ME52N Change Purchase Requisition
Dear All,
I am working on ME52N (Change Purchase Requisition). I got the ME_PROCESS_REQ_CUST BADIu2019s in ME52N. I need to initialize the Purchase Requisition Number in ME52N Screen before ME52N screen is displayed.
Can any suggest where shoul I clear the Parameter id(BAN).
Regard,
V.S.Naidu.
Hi,
Refer:
* BAPI to change the PR details
CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
EXPORTING
number = v_banfn "<--PR Number
TABLES
requisition_items_old = it_old_detail "<--pass in old PR details
requisition_items_new = it_new_detail "<--pass in new PR details
return = it_return_change. "<--return table
* "read for error message while changing details for PR
READ TABLE it_return_change INTO wa_return_change WITH KEY type = 'E'.
IF sy-subrc = 0.
"check for ERROR
ENDIF.
Hope this helps you.
Regards,
Tarun
Similar Messages
-
BADI/User exit for Purchase Requisition from MRP
I am looking for a BADI or any enhancement when a purchase requisition is created or modified from MRP .ie. MD50 transaction. Can anyone help ?
THanks in advance.Hello Shareen
Have you had a look at package <b>MD03 </b>(contains transaction MD50). It contains lots of BAdIs. Perhaps the following ones may be useful:
MD_PLDORD_CHANGE (BAdI for Changing Planned Orders)
MD_PURREQ_CHANGE (BADI for changing purchase requisitions)
However, I should mention that I have not found anything when I checked the <i>Where-Used-List</i> for these BAdIs (on ECC 5.0).
Regards
Uwe -
Change Purchase Requisition Document Type when item category is D
Hi experts,
i have problem, when i put servis number in to the servis line i havent change Purchase Requisition Document Type. Account
Assignment Category is K and Item Category is D. It is standard of Purchase Requisition? When i set that i can change document type when item category is D.
When i putting only material i can change Purchase Requisition Document.
Thx for your answer.
LacoHi,
One thing please note that once you select the document type and draft the PR and save the PR, you will get the doc number.
Once you get the document number you cannot change the PR document type .
The reason is document type is linked with number range so it cannot be changed because different seriers of document number is assined to differentdocument type.
And moreover document type is linked with the screen settings also. So I would request you to check the settings for each doc. type -
Change Purchase Requisition Price after assigned to Quotation
Hello.
I created purchase requisition and assigned to Quotation.
It if possible change purchase requisition price when is already assigned to Quotation?
The item price is display and don't let me apply changes.
Regards,
Hector.Hello.
I did not converted the Purchase Requsition in Purchase Order.
I just running a Test Script, and after assigned a Quotation, the vendor sent me some price changes.
When I call the requisition, the system don't let me change any price.
I believe there is a good reason for that, but I need to read it.
If anyone knows any documentation available, please let me know. -
Problems with event when changing Purchase Requisition. (BO:BUS2009)
Hi experts,
I have a doubt with this. When i erase a position in the Purchase Requisition (ME52N), the event SIGNIFICANTLYCHANGED of BUS2009 is raised.
When I try to modify the Purchase Requisition not erasign the position but changing the Material group the event is not raised. Can i customize the system to define that changing the Material group is a significantly change for my system? If not, can i raise another event when this happens?
Thanks!!
Artur.Hi,
Simply create a custom event called CHANGED in the BO.
Create a entry for this event in SWEC tcode. Select the radio button on change.
This should do the job.
Note : This event will be raised for any kind of changes in this purchase requisition.
Regards,
Raj -
Error in Bapi : Change Purchase Requisition
Dear All,
We have requirement where we need to update the Purchase Requisition Quanity.
For this purpose, I am using Bapi '/AFS/CHANGE_AFS_PR_DATA'.
In this I want to change Sheduled Qty. (AFS Grid Qty.), but I m getting error like
"Line item 0010 : different quantities in item and schedule line". (Sy-subrc = 3)
Can any one help me out with this.
Thanks in advance.
Regards ,
Vishal.Hi,
Refer:
* BAPI to change the PR details
CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
EXPORTING
number = v_banfn "<--PR Number
TABLES
requisition_items_old = it_old_detail "<--pass in old PR details
requisition_items_new = it_new_detail "<--pass in new PR details
return = it_return_change. "<--return table
* "read for error message while changing details for PR
READ TABLE it_return_change INTO wa_return_change WITH KEY type = 'E'.
IF sy-subrc = 0.
"check for ERROR
ENDIF.
Hope this helps you.
Regards,
Tarun -
Changing purchase requisition with processing status B
How can I restrict purchase requisition changes with processing status B regardless release indicator. Rel 4.7
Hi Mitra,
You will find your answer here.
MRP controller for PR document type
Do let me know if it helped, as I might have to explore this option for an upcoming requirement.
Thanks
Shailesh -
I'm trying to change the Purchase Requisition data, so, as a first test, I'm trying to invoke the change method but actually not changing a thing.
I'm getting an error '80040e21' when I call the BapiChange.
Does anybody knows what might be the problem?
The code follows below:
<%
Dim oBAPI
Dim objRequisitionItemsOld
Dim objRequisitionItemsNew
Dim objRequisitionAccountOld
Dim objRequisitionAccountNew
Dim objRequisitionTextOld
Dim objRequisitionTextNew
Dim objReturnChange
' get detail objects
Dim sNum
Dim objsRequisitionAccountAs
Dim objReturnGetDetail
Set objRequisitionItemsOld = Nothing
Set objRequisitionItemsNew = Nothing
Set objRequisitionAccountOld = Nothing
Set objRequisitionAccountNew = Nothing
Set objRequisitionTextOld = Nothing
Set objRequisitionTextNew = Nothing
Set objReturnChange = Nothing
Set objsRequisitionAccountAs = Nothing
Set objReturnGetDetail = Nothing
sNum = "0000000001"
' Connect to business object PurchaseRequisition
Set oBAPI = CreateObject("SAP.PurchaseRequisition.1")
oBAPI.Destination = "DCOM-DESTINATION"
oBAPI.InitKeys(sNum)
oBAPI.BapiGetDetail objRequisitionItemsOld, ,"X", , objsRequisitionAccountAs, objRequisitionTextOld, , , , objReturnGetDetail
Set objRequisitionItemsNew = objRequisitionItemsOld
Set objRequisitionAccountNew = objRequisitionAccountOld
Set objRequisitionTextNew = objRequisitionTextOld
oBapi.BapiChange objRequisitionItemsOld, objRequisitionItemsNew, objRequisitionAccountOld, objRequisitionAccountNew, objRequisitionTextOld, objRequisitionTextNew, objReturnChange
%>Hi Leonardo,
I never used <whatever language this is>, but I see a difference in parameter definition of function modules BAPI_REQUISITION_GETDETAIL and BAPI_REQUISITION_CHANGE.
In FM ...getdetail table REQUISITION_ITEMS is of structure BAPIEBAN (120 fields), in FM ...change table REQUISITION_ITEMS_OLD is of structure BAPIEBANV (34 fields).
Maybe there is an automatic conversion - maybe you have to define two different sets of variables and convert result of FM ...getdetail yourself for input in FM ...change.
Regards,
Christian -
User Exit for ME52N with Purchase Requisition number & line item number
Does anyone know which user exit I could use to get at the purchase requisition number and line item number when I am trying to change a PR. I see various exits with im_req_item but when I code a popup in the include it is not appearing. I am just not finding the right exit.
You can use enhancement MEREQ001, function exit EXIT_SAPLMEREQ_005. This enhancement description gives impression that it can only be used if you have custom fields but it can be used even when you don't have custom fields.
-
Transaction me52n (Change Purchase Req.)
Hallo Dear Experts,
in the Standard Program of me52n there is no menue (button) to print Purchase Requisitions. Is it possible to extend the Menue with printing functionality? Has any body an Example for that.
Thank a lot and Regards
FissehaOutput in sap is available for External Purchasing documents (eg: PO, Contract, RFQ etc.).
PR is internal document and we can not output this. No standard transactions available for this. However print out can be obtained from the Item level -
FM to change Purchase Requisition processing status
Dear experts,
Any idea what is the function module that is being called to change the PR processing status?
ie. When a PC is created from the PR, the PR processing status will be changed to "PC created".
Thanks.
Regards
EarlUse BAPI_REQUISITION_CHANGE
-
Change purchase requisition item number
Hi,
I want to copy an existing line item in the PR but, also I want to assign it the item number. Right now this field is display only for existing line items.
Example:
I have one line item with item number 10. Item number can not be changed (display only). Then I select the line item and click on "copy item" button.
The new line item is created but, the item number can not be changed (default is 20).
I looked for some fields in field status group but this field is not available for PR's.
How can I change the item number for new copied items?
CD.hello
No u can not change the item serial no while coping or any time, as its standred functionality of sap
reward if usefull -
BAPI to change Purchase requisition
Hi
I want to change pruchase requsition EBAN- AFNAM ( requested by feild in PR line item ) . Is there any BAP to do so .
I beleive we annot do so by using BAPI_REQUISITION_CHANGE ?Hi,
Are you referring to BAPI_PR_CHANGE?, Please refer SAP Note 325947.
Why don't you try MASS?
Regards
Shailesh -
User exit to change Purchase requisition created from VA01
Hi,
I am using item categories ZRUI and ZRUD for which PR is created in VA01 while saving the sales order.
I need to change address data in such PR. Can anyone suggest user exit to be used??Hi,
You may use USEREXIT_MOVE_FIELD_TO_ME_REQ.
You can find this in include MV45AFZB.
<REMOVED BY MODERATOR>
Regards,
Sharad
Edited by: Alvaro Tejada Galindo on Jul 21, 2008 12:37 PM -
Viewing purchase requisitions/purchase orders
Hi Every body,
Can anybody guide me any transactions to view purchase requisitions/purchase orders/planned orders at a glance for the selected materials
Regards,
ManishHi check with this
ME52N Change Purchase Requisition
MEMASSRQ Mass-Changing of Purch. Requisitions
ME53N Display Purchase Requisition
ME51N Create Purchase Requisition
ME56 Assign Source to Purch. Requisition
ME57 Assign and Process Requisitions
ZPRPRINT
ME54N Release Purchase Requisition
ME55 Collective Release of Purchase Reqs.
ME5F Release Reminder: Purch. Requisition
ME5A Purchase Requisitions: List Display
ME5K Requisitions by Account Assignment
ME26 Display PO Supplement (IR)
ME24 Maintain Purchase Order Supplement
MEPO Purchase Order
ME23N Display Purchase Order
ME22N Change Purchase Order
ME21N Create Purchase Order
ME28 Release Purchase Order
ME29N Release purchase order
Z
ME9F Message Output: Purchase Orders
ME2W Purchase Orders for Supplying Plant
ME2M Purchase Orders by Material
ME2K Purch. Orders by Account Assignment
ME2B POs by Requirement Tracking Number
MELB Purch. Transactions by Tracking No.
ME2C Purchase Orders by Material Group
ME2N Purchase Orders by PO Number
ME2A Monitor Confirmations
ME80FN General Analyses (F)
ME81N Analysis of Order Values
ME2L Purchase Orders by Vendor
ME1P Purchase Order Price History
ME22N Change Purchase Order
MEPO Purchase Order
ME23N Display Purchase Order
ME24 Maintain Purchase Order Supplement
ME22N Change Purchase Order
ME26 Display PO Supplement (IR)
ME21N Create Purchase Order
ME28 Release Purchase Order
ME29N Release purchase order
Z
ME9F Message Output: Purchase Orders
MELB Purch. Transactions by Tracking No.
ME2N Purchase Orders by PO Number
ME2M Purchase Orders by Material
ME2K Purch. Orders by Account Assignment
ME2C Purchase Orders by Material Group
ME2B POs by Requirement Tracking Number
ME2W Purchase Orders for Supplying Plant
ME2A Monitor Confirmations
ME80FN General Analyses (F)
ME81N Analysis of Order Values
ME2L Purchase Orders by Vendor
ME1P Purchase Order Price History
ME22N Change Purchase Order
ME26 Display PO Supplement (IR)
MEPO Purchase Order
ME22N Change Purchase Order
ME23N Display Purchase Order
ME24 Maintain Purchase Order Supplement
ME21N Create Purchase Order
ME28 Release Purchase Order
ME29N Release purchase order
Thanks & Regards
Mangal
Maybe you are looking for
-
Mp4/m4a podcast upload problems
I have a huge collection of AIFF files that I had exported via QT to mp4 files. As of recently, I have a group who's doing some EDU podcast related stuff who was hoping to post up my podcast list, but sent me an email letting me know that they couldn
-
Hi experts I am trying to install AD connector on OIM 11g. However, when i run the installation, the first two steps i.e, Configuration of Connector Libraries and Import of Connector XML files complete successfully, however, the third step "Compilati
-
Unable to resolve resource bundle "myResources" locale "en_US" ?
Hi All, I have created two locales one is en_US and Second one is fr_FR. I placed these two files in locale file. These files directory structure is ......\src\locale\en_US and .....\src\locale\fr_FR . After placi
-
Do blocked calls show up on the Comcast call logs? I have blocked a local number because whoever owns it keeps calling me multiple times during the night and early morning. Never during the day. They don't say anything and I don't think it's a telema
-
How to authorize users to use only certain tax codes not all
After creating tax codes uasing FTXP, is there any way we can control the use of it by assigning only few to users to use ant all. Any help. Regards Robert