Creation of Purchase Requisition
All,
I have done configuration of material groups and G/L accounts .
In PR , when the Requestor is selecting a material group then G/L account will be coming automatically .
But requestor can select wrong material groups , he never thinks of G/L posting .
Now this PR with wrong G/L will be converted to PO and GR happens . Also MIRO .
Now this is an wring G/L entry .
1. How we can restrict user from selecting wrong material group .?
2. If wrong entry made in G/L , how Finance can rectify ?
Kindly advise.
regards
Dear PVS,
You can restrict what a user selects and raise an error message if he selects the wrong entry provided you have set of correct entries against which the validation should be carried out.
Implement a proper BAdi/Enhancement.
Please check this sample program from other thread to find BADI and enhancement for a given transaction code. You just need to create a custom program in your system by cut and paste below codes.
REPORT ZTEST.
TABLES: TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA: FIELD1(30).
DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS: P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA: WA_TADIR TYPE TADIR.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
ENDCASE.
Alternatively, you can do the following:
1. For what ever transaction u want the enhancement .. just check for the System-->status (menu) and find out the PROGRAM name....
2. Double click on to the program name and go inside the program (Abap editor)
3. Search for "Call Customer-function " ... and u'll get some search results .. If u get results then u have enhancement in that tcode .....
4. Then it actually calls a Function module .... copy the Function module name .... go to SE80 (object navigator) click on "Repository Information system" then Customer Enhancements .... Give the Function module name in the "Components" field and click Execute ....
ull get a list of Enhancements related to that Componene....
5. Choose which ever enhancement will suit ur business need ..
6. Go to CMOD... create a project .... assign ur enhancement ... and then code ur logic.... activate ur enhancement in CMOD ....... Ur Buisness need will be solved...
For a user exit......
Finding whether there is any User Exit or not for tcode VA42
1. For what ever transaction u want the user exit .. just check for the System-->status (menu) and find out the PROGRAM name.... ( The program name would be for our scenario "SAPMV45A" )
2. Double click on to the program name and go inside the program (Abap editor)
3. Search for the word "USEREXIT" .... u ll find all the user exits in the search result .. and find ur's then ...
Hope this will help.
Regards,
Naveen.
Similar Messages
-
Creation indicator purchase requisition in md02
Hello SAP Gurus,
This is regarding creation indicator purchase requisition in md02.In this creation indicator purchase requisition if we keep setting as 2 than it will create purchase requisition if the dates of PR are in the opening period and will create planned order if dates of PR falls out of opening period.And it takes the opening period from schedule margin key.
My question is , as system calculate the opening date by subtracting the number of days which we have given in opening period in schedule margin key from the order start date.suppose if order start date is 10.03.2008 and we have given the opening period of 5 days,than the opening date will be 05.03.2008 if there are no holidays between it.So how it comes that PR date will fall in opening period?I am confused that when system will create planned order and when system will create PR if we keep creation indicator purchase requisition as 2.
Plz help me with this query.If you could explain with one example than it would be great.
Thanking all in advance.And obviously for suitable answer i will definately give good points.Hi,
System calculates the opening date by subtracting the number days given as opening period at SMK from order start date.
For creation ind =2 ,
MRP run date decides the PR / Planned order creation even if u set procurement F.
If MRP run date falls bettwen the opening date & order start date , it will create PR only,
If run MRP run date falls outside the opening preriod ie earlier than the order opening date, system will create planned order and it has to converted to PR
For examble, Order start date is 28.03.2008 and 2 day is defined as opening period SMK for ROH.
If u run MRP on today it will create planned order.
Hope u understand , ifso reward and close.
Regards
Pradeep -
Sales order - automatic creation of purchase requisition - cost assignment
Hi
When the sales order is released, we have an automatic creation of Purchase requisation. We have given "internal order" as the cost obect in the sales order. But when the system has created automatic purchase requisition, it has not picked internal order. What could be the reason?
Thank you for the help.
Thanks
RamHi
I feel that it is abug in the development you have carried out for creation of Purchase requisition when a sales order is relased,
Please check the enhancement, you need to pass the values to the correct table after derivation.
Thanks & Regards
Kishore -
Sales order - automatic creation of purchase requisition - CO assignment
Hi
When the sales order is released, we have an automatic creation of Purchase requisation. We have given "internal order" as the cost obect in the sales order. But when the system has created automatic purchase requisition, it has not picked internal order. What could be the reason?
Thank you for the help.
Thanks
RamHi
I feel that it is abug in the development you have carried out for creation of Purchase requisition when a sales order is relased,
Please check the enhancement, you need to pass the values to the correct table after derivation.
Thanks & Regards
Kishore -
SNP Heuristic: Creation of purchase requisition
Hi experts,
we face following problem: heuristic creates purchase orders when there is no source of supply.
Background:
there is a forecast demand for a location product on a customer location without transport lane to the production plant due to false master data.
The SNP heuristic generates purchase requisitions to fulfill the demand and there is no requirements shortage.
So it is hard to recognize which forecast demands can't be fulfilled.
Is there a parameter in material master or in a heuristic profie which disables the creation of purchase requisitions in snp heuristic when there is no source of supply.
If no purchase requisition is created there will be a requirement shortage which can be recognised by an alert.
Thanks for your help.
Roberthi.
As per heuristic process , the system will create a purchase requisition if there are no Tlane exists and the material's procurement type is F/X since it is a infinite planning.
Now you can use a optimizer or CTM to restrict the system from creating purchase requisition.
Also you can try with location heuristic.
Hope this can help.
regards,
kaushik -
Auto Creation of Purchase Requisition at Contract Level
Hi All,
I am having business requirement for creation of purchase requisition at contract level for third party Products.
Brief Business requirement
My client is in trading business of telecom product. They are sourcing product from different-different vendors and some of the product is also supplied by him self. As a business practice the system will automatically create an Installed base as per structured by business owner once delivered the product to end customer and also assigned warranty norms.
Once warranty is over then customer will called for contract since at the time sailing the product warranty will be liability of the company which in terns had some mutual contract with supplier (back to back replacement).
But once the same will come under service agreement/contract on that time they want installed base selection of components should had a functionality to segregate component based on vendor because they want to calculate % margin based on net sale value of the product.(e.g 10% of net sale Value 10,0000) not only that they also wants based on that system should automatically create Purchase requisition so that logistic department will take care of third party agreement part.
If any body come across with such kind of business scenario. Please share the proposed solution.
Regards
NeerajHello,
I noticed that this question had status answered. We have the same requirement.... how did you resolve this?
Best Regards
Kristof -
Auto PO creation using purchase requisition
Hi,
I have tried the following steps for auto PO creation using purchase requisition.
i. Maintain Auto PO in Material master Purchasing view
ii. Select Automatic purchase order in Vendor master- Purchase data
iii. Maintain info-record
iv. Create PR through ME51
v. enable source determination during creation of PR
vi. Execute using ME59N
But Auto PO is creating with the same document type (e.g NB) which is used while creating purchase requisition (e.g NB). Following steps have done in SPRO.
1. SPRO - MM - Purchasing - purchase requisition - define document type
a. NB- PR document type LINK TO DI01- PO document type
2. SPRO - MM - Purchasing - Purchase order - Define document type
a. DI01- PO document type LINK TO NB- PR document type
3. There is no linking from NB - NB & DI01 - DI01 but still it is creating auto PO with document type NB iif requisition has been created with document type NB.
Please suggest on this . waiting for ur quick response.
Thanks...
ARATI.
Thanks!
Arati.
Edited by: Rakesh Gupta on Aug 20, 2009 11:00 AMHi
Please check the below thread
PR to PO via ME59 -Doc type issue
Thanks/karthik -
Creation of Purchase Requisition with MRP - MD02
Hello,
I have created a sales order using one material with MRP. When I run MRP-transaction MD02 for this material, a purchase requisition is created.
What we want is to block the creation of the purchase requisition when the sales order has delivery block (code 02). I have been trying to use this enhancements; setting break-points in all function modules, but when running MD02 is does not stop there:
MEREQ001 Customers' Own Data in Purchase Requisi
LMDR2001 User exits restr. profiles of opt. pur.ord.-based load bldg
LMDZU001 User exits in additional planning
M61X0001 User exits PP-MRP materials planning
M61X0002 User Exits PP-MRP Material Requirements Planning Evaluation
Do you know a way to do this or also change data in the purchase requisition created with MD02?
Thanks and regards.Dear ,
Are you very particualr to process the Sales Order demand when there is a delivery block ?
To restrict that one you can do the following steps :
1.Goto Sales Order -VA02-Select the line item -Double Click -Select the Schedule line tab -Set Sechedule line item categoery as CN instead of CP.If it is CP then it will processed through MRP
2.Change the pricining date and make credit block for sales Order and do not release though VKM3 so it will not be tearted through MRP run to have PR geneartion
Hope this is clear
regards
JH -
PM (T-code IW32) - Creation of purchase requisition permitted price=0$
Hi,
In IW32, we are able to enter a price of 0,00$ and save the purchase requisition. In ME51N, this action is not possible, we have to enter a price > 0,00$. Why are we able to save a 0,00$ purchase requisition using IW32, and not ME51N? We should not be able to create a 0,00$ purchase requisition in IW32 !
IW32 procedure of PO creation:
1. Run IW32
2. Enter order number
3. Go to «components» table
4. DO NOT enter component, enter description, reqmnt qty, UM, IC, Plnt, OpAc
5. Select the line item
6. Click on the Purchasing button at the bottom left of the screen
7. Enter Price = 0,00$, G/L account number, and save
8. Quit IW32 transaction
9. Go back in IW32, select the line item, click on the purchasing button, and there will now be a purchasing requisition number in the Purchasing Data table.
10. Go in ME54N. You will now be able to release a 0,00$ purchase requisition....
The system SHOULD NOT allow me to create and release a 0,00$ purchase requisition. How can I fix this?
Thanks,
JulienHi,
Go to SPRO > MM > Purchasing > Purchase Requisition > Define Screen Layout at Document Level > Here for Field selection key "ESTF" i.e. Requisition from prodn. order, mark field "Price and price unit" as required under selection group 'Quantity and price'.
It will start asking Valuation Price during Order Creation for PR. -
Creation of Purchase requisition in Maintainance order
Hi
I have a external operation in maintenance order , i have set the indicator in control key
I assign service order in the maintainance order
When i save the order system creates a purchase requisition
Please let me know where is the setting which controls the creation of this purchase requisition
ThanksHi
Check for Path
SPRO>Plant Maintenance and Customer Service>Maintenance and Service Processing>General Data>Define Account Assignment Cat. and Document Type for Purchase Requisitions
You will get Document Type for PR.
Details of this document type are maintained in MM
SPRO>Materials Management>Purchasing>Purchase Requisition>Define Document Types
Hope this helps
Regards
Manish -
Avoid automatic creation of purchase requisition for bom item N
Dear.
When I create a production order , for the components with bom item N the system create a purchase requisition. I need to avoid this automatic creation , do you know a solution to obtain this ?
Thanks.For the many people that have asked this question.
N item category in the BOM is always going to propose direct procurement. Through configuration I have not found a way to make it go away from the planned order. You can make it go away from the production order.
The IMG path:
Plant Maintenance and Customer Service
-> Maintenance and Service Processing
--> Maintenance and Service Orders
---> Functions and Settings for Order Types
----> Define Change Docs, Collective Purc. Req. Indicator, Operation No. Interval
Under the Res/PurRq -> Specify Never
In order make this setting effective, you must define the following
system message to error or warning, as it is stated on note 569984
Version Appl.A. No. Cat
00000000 C2 280 W
Please note that this setting is effective for reservations and
requisitions.
The best solution is to use BOM item category L with the bulk indicator set. You will not get any direct procurement proposals or planned orders and you can use long term planning to see the time phased MRP results. -
Error in creation of purchase requisition
Hello Sap Guru,
When we are trying to create a purchase requisition under t.code ME51N, we are getting error message "enter valuation price"?
If anyone can please explain the reason & solution of this error.
Thanks In advance
Deepak Garg{code)When we are trying to create a purchase requisition under t.code ME51N, we are getting error message "enter valuation price"?{code)
Hi,
it is sap standard process when you create PR and if material master record exist the price is automatically taken from the valuation price field. if record not exist enter lum sum price of requested material price.
When purchase guy create po with reference to Pr they can change valuation price also.
In custommization for Purchasing under Purchase Requisition -> Define Screen Layout at Document Level, you can set price and price unit. The Valuation price field can be set as a mandatory or optional input field. -
Creation of Purchase Requisition from VA01
Hi,
I have a requirement to apply block Id in me52n from tranasaction VA01 while creating sales order.csan you tell me how purchase requisition is generated from VA01 as this information will help me impose block in me51n from VA01.(Prior to that i have tried various badis and user exit but none of them are really helpful).
Thank you.First of all you need to define the schedule line categories and then assign them to item categories. The system will automatically creates the purchase requision based on the item category/ schedule line.
I guess, you need to look at the copy control process between sales and purchase.
also look at the sales order user exit (Save document prepare / Save document) in MV45AFZZ
Good luck -
Creation of Purchase Requisition from a BID
Hi,
I am trying to create a purchase requisition from a bid instead of a purchase order. Does anyone have any idea on this?
Thanks
SunnyHello,
are you trying to create a local SC or a backend PR ?
If you are in classic mode (so PR and not SC), you could try to derive the PO flow to create a PR instead.
But this is not really clean.
The best way is to add a new button "Create PR" in quote screen (or rename the create PO if you don't use it), linked to your own fcode processing and finally call the META_REQUISITION_CREATE in SRM (instead of META_PO_CREATE).
The last point would be to create a link BID_INV>BID>PR to be displayed in document flow. You have to check if it is possible, because sometimes the system is designed for limited possible flows and does not take into account the flow you want to add.
In standard, you can create directly a backend PO only if the bid was created from a SC in the sourcing cockpit. Otherwise use local or extended PO (replicated in R/3).
If this is the case, FM BBP_PD_SC_TRANS_MULTI_BE_PO will transfer the initial SC items to next document, which is a backend PO. You would need to operate some changes here to create PR.
Rgds
Christophe -
Creation of Purchase Requisition with Sale order
Hi,
I have a scenario where I need to create a Purchase requisiton for the requirement from the sale order (like the Third party sale order).
I have done the required configurations to create the Purchase requisition.
My Sale order has three line items and each line item has different Item category and schedule line category.
I have configured different Purchase requisition document types for every schedule line.
When sales order is saved, I need seperate Purchase requisition since the PR document type are different for every schedule line.
But system creates only 1 PR with multiple lines. It picks the PR doucment type assigned to the schedule line category of 1st line item in the sale order.
How can I get different PR for different doucment type in a single Sale order?
RegardsThis can is happening b'coz at your sale order only one I cat is determining by default.
So, determine diff I cat with diff desired the sch lines cat in the doc.
Say,
maintain, I Cat determination(VOV4)
Sales Order(VOV8) - I Cat Group(material- MM02) - I Cat(VOV7)
ZTPS - ZTA1 - ZTA1
ZTPS - ZTA2 - ZTA2
ZTPS - ZTA3 - ZTA3
and also check.
I Cat (VOV7) - Sch Line Cat (VOV6)
ZTA1 - Z1
ZTA2 - Z2
ZTA3 - Z3
Hope this can assist you in understanding.
Thanks & Regards
JP -
Creation of Purchase requisition with reference to Contract documents
Dear All
I am not able to create the Purchase requisition with reference to Contract documents, in outline agreement field if I enter the contract document number which is already existing it is not copying the details, again I have to enter all the details like Plant, Material, document type, Qty etc. Even after selecting the PR document type as RV for outline agreement also it is not coping. Kindly let me know that can we not able to give reference of Contract number in this outline agreement field to create Purchase requisition.
regards
Dhanu1.Logistics--Materials Management--Purchasing ---Purchase Requisition --Follow-on functions --- Assign and Process
2.ME57
3.Select the Assigned Purchase Requisitions checkbox if you also want to see requisitions already assigned, and choose Execute.
4.On the Assign and Process Purchase Requisitions screen, select the requisition lines for your material.
5.Choose Assign Manually if the info record already exists.
6.On the pop-up Assign Source of Supply Manually dialog box, make the following entries:
Agreement 46XXXXX Agmt item 10
7.Choose Assign Source of Supply.
For assign the source of supply, you can also choose Assign Automatically (only if not already assigned by MRP due to existing source list). If more than one source exists, select the contract in the Source Overview for Purchase Requisition 100XXXXX window and confirm with Enter.
When assigning a source, make sure to select the contract.
8.Choose Save.
9.Select the line item, and then choose Assignments Overview (SHIFT+F5).
10.On the Assign and Process Requisitions: Overview of Assignments screen, select the line below Vendor (you can only select one at a time), then choose Process Assignment.
11.On the Process Assignment: Create PO window, check and make sure the Order Type (NB), Purchasing Group and Purch. Organization fields then choose Continue (Enter) to confirm.
12.On the Create Purchase Order screen, select the requisition in the Document Overview section and choose Adopt in the left part of the Document Overview screen.
13.Choose Save.
Maybe you are looking for
-
Hi All, I am unable to open compound PDF files in adobe reader 9.5.1 in Redhat Linux 64 bit. all I get is a black screen. Does anyone have a fix for this? Regards, Gary.
-
hi, is there any way to limit the number of rows in a jtextpane, i am able to limit the number of chars entered in using the insertString method, but i also need to limit the number of rows, for example the user should not be able to enter more than
-
I am unable to create an Action to Export from .ai to .psd. The steps in the Action such as Open and Export seem inextricably linked to the file from which the original Action was recorded. The steps in the Action do not seem to be generalized comman
-
Stock Posting List and Quantity in Warehouse show different quantities
Hi all, I have an implementation running on 2007 Edition. The case is that there is one item that shows different quantity on Stock Tab of Item Master Data and on Stock Posting List for a specific warehous*e. Specifically, on Stock Data of Item Maste
-
Thunderbird is using 12.5GB of disk space. How can this be reduced?
I took a look at this thread: https://support.mozilla.org/en-US/questions/999525?esab=a&as=aaq However, I don't see any nstmp files, so the solution doesn't transfer. I use Thunderbird to manage six email addresses. At present, Thunderbird is using 1