Deletion purchase requisition linked to sales orders
Hi gurus,
in my SAP system there are purchase requisition created by schedule line from sales orders. For different reasons the sales orders were deliveried and billed with stock free and not with customer stock.
When I try delete de purchase requisition, because the sales order is completed, the system alarms a message that is not posible to delete in purchase requisition else in sales order. But the sales order is completed and we don't touch it.
Any idea to delete this purchase requisitions?
Thank you, I will revvard all answers..
Hi Mancho ,
Try to run the program BANF_OHNE_KDAUF in Transaction SE38 and delete the PR.
The other way would be to change the item category in Sales Order - Line Item so that no PR is generated.But in this case i doubt whether system permits u to change the Item category as u had completed the subsequent process.Just check it.
Unfortunately currently i am not at my system to check the same.
Regards
Ramesh Ch
Similar Messages
-
Deletion Purchase requisition created by sales orders
Hi gurus,
in my SAP system there are purchase requisition created by schedule line from sales orders. For different reasons the sales orders were deliveried and billed with stock free and not with customer stock.
When I try delete de purchase requisition, because the sales order is completed, the system alarms a message that is not posible to delete in purchase requisition else in sales order. But the sales order is completed and we don't touch it.
Any idea to delete this purchase requisitions?
Thank you, I will revvard all answers..Hi ,
We can not delete the purchase requisition if there is any subsequesnt documents created against this.
If you want to delete the same then reverse the delivery then delete the delivery and then delete the purchase requisition by using the guide lines given in below path.
www.passhe.edu/.../ME52N%20-%20Delete%20a%20Purchase%20Requisition.pdf
Hope it helps.
Regards,
Pasapula. -
MRP: Delete Purchase Requisitions and Create Planned Orders
Hi there,
I have a scenario, where in a material (HALB) was marked as externally procured. MRP was run for FERT material. The dependent requirements for FERT were created. Planned orders of the HALB material were changed to Purchase Requisitions.
Later, the procurement type of material was changed to Inhouse Production.
Now, I want all the Purchase requisitions that were created to be deleted and Planned orders should be created when I run MRP.
I tried all the possibilities, but of no success.
Please lemme know if there is any possibility to delete the P.Rs and Create Planned orders by running MRP.
Regards,
ABCI Haven't read the Plan order is converted in to PR Before
If YOU convert the plan order in to PR, system will firm the Requirement, YOU need to remove the firm indicator FIxed iD in PR Before doing the MRP Run Again
Do the following thing in PR
In PR Remove the Fixed ID in Quantities and Dates tab of the item
and Rerun the MRP with Planning Mode 3 It will create a plan order
Edited by: Sundaresan . E. V on Oct 29, 2010 6:39 PM -
Val.Price for the requisition on the sales order
Hi,
I am creating automatically purchase requisition on the sales order with NLAG material type.
My problem is system asking Val.Price for the requisition on the sales order. I don't want the this screen when sales order create.
My Purchase Req. Doc Type = NB
Field Selection key = NBB for the NB
NBB Field Label >> Quantity and Price >> Price and price unit = Optional Entry
Thank you
Gulay CelikHi Gulay,
The error is coming because you have not maintained Accouting view of this material for teh plant, from where you want to procure/ship the material.
Or even after you have maintained the Accouting view, Material price (Moving avegare price when price control is V must be Zero)
Kindly check the master data records.
This will resolve your issue.
Regards,
Dnyandeo H. Ainarkar -
Purchase Requisition & Planned Order link to sales order
Dear Gurus,
please help me to find the link between
- sales order item
and
- ( purchase requisition & Planned orders for semi-finished )
that created from running the MRP.
dispite we can see all these data in one screen
in TCode (MD4C) or (MD09)
thnak you .
Edited by: Alvaro Tejada Galindo on Feb 5, 2008 10:50 AMHi,
For third party order, either you can create the material master with item category group as BANS, so the system will automatically pick TAS in the sales order for the material or you can change the item category manually to TAS in the order.
This will trigger a PR, based on the PR a PO will be generated.
Defining Item Category Group
IMG ® Sales and Distribution ® Sales ® Sales Documents ® Sales Document Item ® Define Item category groups
Defining Item CategorySales and Distribution ® Sales ® Sales Documents ® Sales Document Item ® Define Item Categories
Item category TAS
Description 3rd party with SN CM
Item type Blank
Completion rule Blank
Special stock Blank
Relevant for billing B
Billing plan type Blank
Billing block Blank
Pricing X
Statistical value Blank
Revenue recognition Blank
Delimit. start date Blank
Business data item X
Sched. line allowed X
Item relev. for delivery Blank
Returns Blank
Weight/Vol.- relevant X
Credit active X
Determine cost X
Aut. batch determ. Blank
Rounding permitted Blank
Order qty = 1 Blank
Incomplete proced. 28
PartnerDetermProced T
TextDetermProcedure 01
Item cat. status group 1
Screen seq. group N
Status profile Blank
Create PO autom. Blank
Config. strategy Blank
Mat. variant action Blank
ATP material variant Blank
Structure scope Blank
Application Blank
Value contract material Blank
Contract release ctrl Blank
Repair procedure Blank
Billing form Blank
DIP profile Blank
Assigning Item Category
IMG Sales and Distribution Sales Sales Documents Sales Document Item Assign Item categories
Creating Material
MM01
1. On the screen Create Material (Initial Screen) enter the material number if External.
2. Choose Select View(s). (Basic View 1&2, Sales Views, Purchasing views and accounting views).
3. Enter the relevant data and save the material. Use material group BANS in the item material group field.
Creating SD Pricing Conditions for material
VK11
Creating Vendor Master
XK01
Regards -
Linking Between Sales Order And Purchase ORder
Dear Gurus,
How to link the Sales Order Number and Purchase Order Number. I know the Sales Order Number and I need the tables from which I can know the Purchase Order Numbers for that Sales Order Number.
Points will be awarded.
Thanks,
RaviHi,
Goto Table Mseg-kdauf is sales order no.
get mseg-ebeln is purchase order.
Or u can do the following code.
from sales order no VBELN get VBFA-VBELV.
SELECT SINGLE vbeln FROM likp
INTO l_delno
WHERE vbeln = vbfa-vbelv.
SELECT SINGLE ebeln
INTO l_sono
FROM ekbe
WHERE belnr = l_delno
AND bewtp = 'L' .
L_DELNO IS PURCHASE ORDER.
If it is helpfull pls reward it.
Regards
Srimanta -
Delete or insert item in Sales Order and Purchase Order will update as well
Hi,
Is anyone got the program code that when i delete or insert item in Sales Order and the back to back Purchase Order will do the same action.
Please help.
Regards,
AnnaHi,
I guess u can try the following,
Once the SO is updated, check with a SQL query if there are any target docs for that SO then, if there are any target docs u have to check for the item thats updated and then update ur PO using DI.
Hope it helps,
Vasu Natari. -
Several purchase requsitions from one sales order
Hi,
I am using item category TAB to create a purchase requsition from a sales order, this works fine.
What I really want to do is to create one purchase requsition for each condition type of a special kind from the TAB position in the sales order.
Another possibility is to create several purchase orders from one purchase requsition, split on the earlier mentioned condition types. In any case, the end result should be several POs from one SO, split on condition types.
Can this be done in config or do you have a suitable user-exit for me?
Thanks in advance!
Best Regards
ViktorHI,
The Cost Center Determination settings is in OVF3, the standard works only at the header level though, so it would not work if cost center is needed on the line item.
For this case I suggest to try from CO view:
A material is linked to a profit center. From this profit center you can determine a cost center using txn OKB9
In combination with the material's account assignment field and account determination customizing, an alternate revenue account can be determined for this material. ("Normal" revenue accounts are to be used in combination with CO-PA).
If this account is a cost element with category type "1" you need the entries in OKB9.
Hope this help!
Regards! -
Purchase items report for sales orders - very important
Hi Folks,
Could you please guide me on how to create a report of "items purchased" for a particular "sales order". if i am able to include various fields of items purchased, like....quantity, item description, vendor name, item price, etc., it will be very useful.
This report is required for a client, who assembles machines in a "make to order" scenario, and most of the BOM child items are "purchase items".Hello Krishna,
Few things to note:
Is the PO created from the SO. Is YES, then you could use the base document ref at the POR1 table.
OR
Are the BOM components defined with a default vendor in the Item Master and if YES are the components always purchased from the same vendor.
I am trying to see how to establish the relationship of the items between the PO and SO.
Please give me the details and I could guide you further
Thanks
Suda -
Hi All,
Greetings.
I have two queries namely,
1.Query for cancelled requisitions and
2.Query for Internal Requisitions without Internal Sales Orders.
I was on a task to combine those two queries..
Can we do that? if so, please help me do that..
Thanks in Advance,
Bhaskar.Hi All,
Greetings.
I have two queries namely,
1.Query for cancelled requisitions and
2.Query for Internal Requisitions without Internal Sales Orders.
I was on a task to combine those two queries..
Can we do that? if so, please help me do that..
Thanks in Advance,
Bhaskar. -
How to delete header condtion line of sales order by BAPI
Hi,
I want to delete the condtion line of sales order header using BAPI "BAPI_SALESORDER_CHANGE",
it is work well in item level condition type, but it is not work for header condition type. show error message "missing item number" since of pass item number "000000" for header condition line.
Below is reference source code, thanks in advance.
*& Report ZTEST_BAPI_SO_DELETECONDLINE
*& Sample program to call BAPI_SALESODRER_CHANGE to
*& delete condition line of so line item
REPORT ZTEST_BAPI_SO_DELETECONDLINE.
***--- Structures for create BAPI
DATA: SALESDOCUMENT LIKE BAPIVBELN-VBELN.
DATA: ORDER_HEADER_INX LIKE BAPISDH1X,
BEHAVE_WHEN_ERROR LIKE BAPIFLAG-BAPIFLAG,
SIMULATION LIKE BAPIFLAG-BAPIFLAG.
DATA: BEGIN OF ORDER_ITEM_IN OCCURS 2.
INCLUDE STRUCTURE BAPISDITM.
DATA: END OF ORDER_ITEM_IN.
DATA: BEGIN OF ORDER_ITEM_INX OCCURS 2.
INCLUDE STRUCTURE BAPISDITMX.
DATA: END OF ORDER_ITEM_INX.
DATA: BEGIN OF SCHEDULE_LINES OCCURS 2.
INCLUDE STRUCTURE BAPISCHDL.
DATA: END OF SCHEDULE_LINES.
DATA: BEGIN OF SCHEDULE_LINESX OCCURS 2.
INCLUDE STRUCTURE BAPISCHDLX.
DATA: END OF SCHEDULE_LINESX.
DATA: BEGIN OF ORDER_CFGS_REF OCCURS 2.
INCLUDE STRUCTURE BAPICUCFG.
DATA: END OF ORDER_CFGS_REF.
DATA: BEGIN OF ORDER_CFGS_INST OCCURS 2.
INCLUDE STRUCTURE BAPICUINS.
DATA: END OF ORDER_CFGS_INST.
DATA: BEGIN OF ORDER_CFGS_VALUE OCCURS 2.
INCLUDE STRUCTURE BAPICUVAL.
DATA: END OF ORDER_CFGS_VALUE.
DATA: BEGIN OF CONDITIONS_IN OCCURS 2.
INCLUDE STRUCTURE BAPICOND.
DATA: END OF CONDITIONS_IN.
DATA: BEGIN OF CONDITIONS_INX OCCURS 2.
INCLUDE STRUCTURE BAPICONDX.
DATA: END OF CONDITIONS_INX.
DATA: BEGIN OF EXTENSIONIN OCCURS 2.
INCLUDE STRUCTURE BAPIPAREX.
DATA: END OF EXTENSIONIN.
DATA: BEGIN OF RETURN OCCURS 2.
INCLUDE STRUCTURE BAPIRET2.
DATA: END OF RETURN.
DATA: TMP_POSNR LIKE VBAP-POSNR,
L_KNUMV LIKE VBAK-KNUMV,
L_KSCHL LIKE KONV-KSCHL,
L_STUNR LIKE KONV-STUNR,
L_ZAEHK LIKE KONV-ZAEHK.
***--- Selection
PARAMETERS: P_VBELN LIKE VBAK-VBELN OBLIGATORY MEMORY ID AUN DEFAULT '7000510', "'0001007443', " SO
P_POSNR LIKE VBAP-POSNR OBLIGATORY DEFAULT '000000' , " so item
P_CONDN LIKE KONV-KSCHL DEFAULT 'ZOSP', " condition type
P_CONDI LIKE KONV-ZAEHK DEFAULT '01', " Condition item number
P_TEST AS CHECKBOX DEFAULT 'X'. " test mode
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = P_VBELN
IMPORTING
OUTPUT = P_VBELN.
CLEAR: L_KNUMV.
SELECT SINGLE KNUMV INTO L_KNUMV
FROM VBAK
WHERE VBELN = P_VBELN.
IF SY-SUBRC = 0.
CLEAR: L_KSCHL,L_ZAEHK,L_STUNR.
SELECT SINGLE KSCHL ZAEHK STUNR INTO (L_KSCHL, L_ZAEHK, L_STUNR)
FROM KONV
WHERE KNUMV = L_KNUMV
AND KPOSN = P_POSNR
AND ZAEHK = P_CONDI
AND KSCHL = P_CONDN.
IF SY-SUBRC <> 0.
WRITE:/ 'Condition type or condition item is not exist.'.
EXIT.
ENDIF.
ELSE.
WRITE:/ 'Sales order number is not exist'.
EXIT.
ENDIF.
IF L_ZAEHK IS INITIAL.
WRITE:/ 'Condition type or condition item is not exist.'.
EXIT.
ENDIF.
SALESDOCUMENT = P_VBELN. " Sales order number
ORDER_HEADER_INX-UPDATEFLAG = 'U'. "U = change sales order
***Item Data
ORDER_ITEM_IN-ITM_NUMBER = P_POSNR.
APPEND ORDER_ITEM_IN.
ORDER_ITEM_INX-UPDATEFLAG = 'U'. "I = add, U= update, D=delete
ORDER_ITEM_INX-ITM_NUMBER = P_POSNR.
APPEND ORDER_ITEM_INX.
***--- Begin delete a condition line
***--- Make sure to use update flag 'D'. Here I = add, U= update, D=delete
CLEAR: CONDITIONS_IN,CONDITIONS_INX.
REFRESH: CONDITIONS_IN,CONDITIONS_INX.
CONDITIONS_IN-ITM_NUMBER = P_POSNR.
CONDITIONS_IN-COND_ST_NO = L_STUNR.
CONDITIONS_IN-COND_COUNT = L_ZAEHK.
CONDITIONS_IN-COND_TYPE = L_KSCHL.
APPEND CONDITIONS_IN.
CONDITIONS_INX-UPDATEFLAG = 'D'.
CONDITIONS_INX-ITM_NUMBER = P_POSNR.
CONDITIONS_INX-COND_ST_NO = L_STUNR.
CONDITIONS_INX-COND_COUNT = L_ZAEHK.
CONDITIONS_INX-COND_TYPE = L_KSCHL.
APPEND CONDITIONS_INX.
***--- End delete a condition line
BEHAVE_WHEN_ERROR = 'P'.
SIMULATION = P_TEST. " Test mode or not
"=== call BAPI
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = SALESDOCUMENT
ORDER_HEADER_INX = ORDER_HEADER_INX
LOGIC_SWITCH = ' U'
TABLES
RETURN = RETURN
ORDER_ITEM_IN = ORDER_ITEM_IN
ORDER_ITEM_INX = ORDER_ITEM_INX
CONDITIONS_IN = CONDITIONS_IN
CONDITIONS_INX = CONDITIONS_INX .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Return code =', SY-SUBRC.
SKIP 1.
LOOP AT RETURN.
WRITE: / RETURN-MESSAGE.
ENDLOOP.
Edited by: hank jiang on May 21, 2010 5:07 AM
Edited by: hank jiang on May 21, 2010 5:25 AM
Edited by: hank jiang on May 21, 2010 5:27 AMSALESDOCUMENT = P_VBELN. "Sales order number
ORDER_HEADER_INX-UPDATEFLAG = 'U'. "U = change sales order
ORDER_ITEM_IN-ITM_NUMBER = P_POSNR.
APPEND ORDER_ITEM_IN.
ORDER_ITEM_INX-UPDATEFLAG = 'U'. "I = add, U= update, D=delete
ORDER_ITEM_INX-ITM_NUMBER = P_POSNR.
APPEND ORDER_ITEM_INX.
"Begin delete a condition line
"Make sure to use update flag 'D'. Here I = add, U= update, D=delete
CLEAR: CONDITIONS_IN,CONDITIONS_INX.
REFRESH: CONDITIONS_IN,CONDITIONS_INX.
CONDITIONS_IN-ITM_NUMBER = P_POSNR.
CONDITIONS_IN-COND_ST_NO = L_STUNR.
CONDITIONS_IN-COND_COUNT = L_ZAEHK.
CONDITIONS_IN-COND_TYPE = L_KSCHL.
APPEND CONDITIONS_IN.
CONDITIONS_INX-UPDATEFLAG = 'D'.
CONDITIONS_INX-ITM_NUMBER = P_POSNR.
CONDITIONS_INX-COND_ST_NO = L_STUNR.
CONDITIONS_INX-COND_COUNT = L_ZAEHK.
CONDITIONS_INX-COND_TYPE = L_KSCHL.
APPEND CONDITIONS_INX.
"End delete a condition line
BEHAVE_WHEN_ERROR = 'P'.
SIMULATION = P_TEST. " Test mode or not
"=== call BAPI
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = SALESDOCUMENT
ORDER_HEADER_INX = ORDER_HEADER_INX
LOGIC_SWITCH = ' U'
TABLES
RETURN = RETURN
ORDER_ITEM_IN = ORDER_ITEM_IN
ORDER_ITEM_INX = ORDER_ITEM_INX
CONDITIONS_IN = CONDITIONS_IN
CONDITIONS_INX = CONDITIONS_INX .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Return code =', SY-SUBRC.
SKIP 1.
LOOP AT RETURN.
WRITE: / RETURN-MESSAGE.
ENDLOOP. -
Delete the line item in sales order in VA01/VA02 when the quantity is modif
Hi SAP,
I have requirement to delete a line item in sales order.Please suggest me to do the same.
THe scenarios is , we are inserting a free good line item based on some condition and quantity, If the quantity is modified the free good line item inserted needs to be deleted.
Waiting for your responce
Thanks,
Billa
Moderator message : Spec dumping is not allowed,search for available information. Thread locked.
Edited by: Vinod Kumar on Nov 14, 2011 1:54 PMHi,
Can you also check the SALES LINE.
Sales line is the combination of SALES ORGANISATION + DISTRIBTION CHANNEL +PLANT.
Hope it was not maintained.
Transaction code : OVX6
PATH: IMG->ENTERPRISE STRCTRE->ASSIGNMENT>SALES AND DISTRIBTION->ASSIGN SALES ORG- DISTRIBTION-PLANT.
please revert if the error still exists.
santosh -
Badi for purchase requisition and stock transfer order
Hi,
Could anybody please tell the BADI to update the item details (dates etc) in the 'Purchase requisition' and stock transfer orders.
I could find ME_PROCESS_REQ etc but could not locate the methods to modify the item level data.
Thanks & regards,
RavishHi,
You can use the same badi which you found out.
ME_PROCESS_REQ.
In that there is a method process_item.
There you can get the line items of the PR.
Then in the POST method you can do the stock transfer .
In the check method also you can check the entire process of PR.
With Regards,
Sumodh.P -
One Purchase Requisition for One Maintenance Order
Dear Consultants,
We have implemented mySAP ECC 6.0. We have more than 20 line items in one Maintenance order for Item category N. Curently system is generating Purchase requisitions by line itemwise for Item category N(Non-stock items). Our client requires only one purchase requisition for every Maintenance Order. Is it possible to generate one PR for one Maintenance Order? If possible please give us the solution.
Thanks,
DevDear Pete Atkin,
With your help my issue has been resolved. Thank you very much.
With Best Regards,
Dev -
How can i delete Purchase Requisition item
how can i delete Purchase Requisition item
can any one hepl me
thanks in advanced.Deleting a PR item in then sense via transaction or program.
If itz transaction, you can use transaction ME52N.
1. Go the PR via transction ME52N
2. Select the respective item, and click on TRASH BIN button i.e delete button from the above icons.
If you want to do it programmatically,maybe you can use: BAPI_PR_CHANGE for the same.
Kind Regards
Eswar
Maybe you are looking for
-
How do I start over with my mac book pro
I used disk utility and found my hard drive to be corrupt. How do I start over and clean this up?
-
When Firefox is opened a download file dialog box pops up
When I open Firefox, a download file prompt appears for a file that I previously downloaded. I'm using Windows 8 x64 on a brand new laptop. (Not the computer I'm posting from) I've tried the following: Set Firefox to use the default homepage. There a
-
Why does iTunes quit unexpectedly when I try to play music
This happened after I recently plugged in my iPhone 4 and was waiting for an upgrade to instal. Now I can't get iTunes to play music. It just quits each time.
-
WLSE error with new firmware 12.4-3g
when i update my 1131 APs, WLSE send this message ; Inconsistent device state found: CISCO-DOT11-IF-MIB cd11IfStationConfigTable.cd11IfStationRole must be in the range [1..11] (was 0)"
-
Hi All I am learning XI and the difference between " ALE, IDOC, RFC, BAPI, BADI " Not clear and when to use what and how in point of XI ? Pl..clarify me Adv..thanks and points --- Rakesh Behera