How to close Purchase Order and mark to deletion flag.??
Hi,
We need to close all Open POs(For archiving, some old data) through a report.
Considering .....
1. PO-GR-IR
and 2. STO-Outboundelivery-PGI-IBD-PGR
Checked few threads, though useful but still more information required.
-> Preprocessing program for archiving standard object MM_EKKO 'RM06EV47' is helpful.
-> Example we have four POs p1,p2,p3 and p4.
P1,p2 has deletion flag as 'L' so will be filtered out with
SELECT ebeln FROM ekko INTO TABLE lt_sekko
WHERE ebeln IN er_ebeln
AND ekorg IN er_ekorg
AND bstyp IN er_bstyp
AND bedat IN er_bedat
AND bsart IN er_bsart
AND ekgrp IN er_ekgrp
AND loekz <> 'L'
ORDER BY EBELN.
For P3 has GR .
P4 has to be marked for deletion flag.
Regards
Mohinder Singh
Hi Thanks for the reply. I checked with that bapi too. I used some part of standard code and then manipulated. Will shorty paste the code on to SDN as its general one and may be used by others.It still under testing.
Edited by: Mohinder Singh Chauhan on Feb 20, 2009 4:07 AM
Similar Messages
-
HOW TO BLOCK THE PURCHASE ORDER AND MARK FOR DELETION ?
Hi ,
During the Creation of the Purchase order in the SAP System... After creation of the Purchase order should be blocked and a work item is created for the approver. If the Approver approves the Order then the Order is Unblocked and a mail send to the initiators inbox and the Order is Released. Similarly if the Approver Rejects the Purchase Order then its set for Mark for Deletion.
I did Po creation and release part. But i am facing problem during the Blocking & Unblocking the Purchase order. If he rejects i need to set for "Mark For Deletion". plz help me to solve this...Hi,
You can use bapi 'BAPI_PO_CHANGE' to change the status of PO and for release use bapi BAPI_PO_RELEASE.
Hope this will help you.
Smit -
How to create purchase order and sales orders
Hi guys,
i want to create sales order in IDES and i need to create purchase order ECC.
depending on that i want to create the idoc for that and i want to send info through xi to the other sys.
will u plz any of u can help me in this query.
Thanks & Regard,
Kalyani..Hi,
TCODE for purchase order- me22n
TCODE for sales order- va01
Regards,
S.RamNarender -
HOW WE FIND OUT OPEN PURCHASE ORDER AND CLOSED PURCHASE IN THE TABLE?
HI,
PLZZ HELP ME.
what are fields names for open purchase order and closed purchase order
thanksHi param,
Go to mseg table, pass the purchase order number and purchase order item. if the mseg-menge = ekpo-menge for the corresponding purchase order then consider the purchase order is close, else it is still open. even check if the entries are not there for corresponding purchase order in mseg table then also it is open.
select mblnr zeile matnr menge from mseg into it_mseg where ebeln = it_ekko-ebeln
and ebelp = it_ekpo-ebeln.
if sy-subrc <> 0.
then consider the purchase order is open.
This is the first case.
even u can consider like this
if sy-subrc = 0.
if it_ekpo-menge > it_mseg-menge.
then also the purchase order is open.
Regards,
Santosh Kumar M.
Award points if it is useful. -
How to link asset with purchase order and PO Item.
Hello,
I have to generate a report which contains columns
Asset No , po no(ebeln) ,PO Item(ebelp),Material no etc
My query is how to link asset with purchase order and PO Item.
I am selecting asset and po no. from anla but how to get
po item no(ebelp)?
po line item is important in this report because every line item has differrent asset and material no.
i tried to match asset no in mseg table but i am not getting asset no in mseg .
how should i proceed ?Thanks Thomas & Srimanta for the quick response.
When I checked EKKN table by entering PO there is no asset no. in anln1 field.
Also I would like to add that, In me23n for a PO, account assignment category we are entering 'F' for internal order settlement.
Where can i find the link between asset and po no(ebeln) and po item(ebelp)?
Regards,
Rachel
Edited by: Rachel on Aug 11, 2008 7:23 AM -
How to avoid purchase req and stock transport order to take part in MRP.
Please suggest how to avoid purchase req and stock transport order to take part in MRP.
hi,
check the settings for the MRP type...there you need to show which doc will be taken into considerations...
SPRO >> MM >> CBP...
Under CBP check for the MRP settings where it is placed(check under master data settings)...and check for the indicator for PR's and STO's release orders under tab "Additional external req. in the reorder point planning"..
Regards
Priyanka.P -
Migrate Open items - Sales orders/ purchase orders and unbilled deliveries
Hello All
Can you please tell me the best practice to migrate open sales orders, purchase orders and deliveries due for billing at Cutover to the new system?
Also how can the historical data be migrated? What all comes under historical data?
Many Thanks
CMThe way the sales order data is migrated is largely dependent on the number of orders you are intending to migrate. 'Best practice' would suggest you do the following:
1) Do not migrate any completed orders (they should be kept as 'read only' in the legacy system)
2) Get the business to close as many orders as possible before the cutover
3) Stop entry of any new orders during the cutover the period - hold them back and enter them directly into SAP.
Once you have a manageable numebr of orders to migrate you really have two options:
Upload the basic order into SAP (we have usually done this from a spreadsheet using ALE or some similar tool). The basic data is confirmed to order type, order number, order date, customer number, material code and quantity. Any data in addition to this is then added manually to the system by the users e.g. pricing info (this is really important as pricing data is really difficult to map). To do this you will need to have sequenced this correctly e.g. ensuring that the data and config for both the materials and customers are all already in the system before you load the orders.
The second option would be to load them all completely manually - which is why I said at the beginning that really, the best approach is determined by the quantity of orders you need to migrate.
I am sure other people will have used other methods but these two are the ones we usually use.
(edit) P.S. you must remember that 'open' sales orders are any orders that are not yet billed so even if an order is delivered in your legacy system if it has not been invoiced you MAY need to migrate it. But as I metioned at the beginning - it would really be better to complete that order (i.e. bill it) before you close the legacy system so that it does not need to be migrated.
========
For deliveries - again, there is no simple fix for this. Because the migration of a delivery demands the migration of an open sales order, the best approach is probably to load the sales order basic data, get the users to complete the sales orders (as described above) and then run the delivery due lists or manually and individually deliver each sales order item.
You cannot migrate ONLY the deliveries, you need to migrate the preceeding order(s) as well. But, again, if you take the approach of closing as many as possible in the legacy system, it will be much easier than migrating them.
Edited by: charlieclown on Jun 25, 2009 4:19 PM -
Purchase Order and Purchase Request
Hi Gurus,
do you know how can I get a Purchase Request Number for an item in Purchase Order?
I cannot find it in any BI Content Data Source...
Regards,
DorotaIn R/3 tr: /nme23n- display purchase order
It will show the last Purchase Order that you displayed.
On the Purchase order on the top left corner, click on purchase order, and click "other purchase order".
the pop up asks you to enter either purchase order or purchase order number
enter the purchase request number for which you want to see the purchase order and hit ok and vice versa..
go to status tab and double click on purchase order
you will get the corrsponding purchase order for the purchase request..
and if you chose purchase order on the pop up you can get the purchase request number
For the data source:
2lis_02_itm, 2lis_02_scl
http://help.sap.com/saphelp_sm32/helpdata/en/8d/bc383fe58d5900e10000000a114084/content.htm
Both of them together can address your requirement. -
Purchase order and Account assignement category- Change
hi.,
We are trying to receive the Purchase order of High value components into INVENTORY.
However, most of these Purchase Orders were created with account assignments.
Because of that, if we receives these POs, they will be consumed against the object identified in the account assignment.
Additionally, some of these have been invoiced already and would need to be backed out from the finance side.
Question: How can we receive these STO Purchase orders and then make changes through Movement type ( or any other way ) so that the HIgh Value Components that are consumed against that AC assignment can be subsequently moved into Invenotory.
Also, what are the other options ( FI will not open Previous period) so that the PO's which have been invoiced can be reversed against that AC assignment.
Thanks Allhi Rajesh.,
As mentioned earlier, these Purchase orders are STO's which have been already created and we are waiting to do the GR for the same. Items in the STO PO are of High value which we need to bring into INVENTORY.
But, because these STO PO's were created with account assignments, if we do GR now, they will be consumed against the object identified in the account assignment.
Some of these STO PO's have been invoiced already and FI has indicated that they could cancel the invoices for those STO PO's in previous posting period.
Question again : How can we receive these STO Purchase orders and then make changes through Movement type ( or any other way ) so that the HIgh Value Components that are consumed against that AC assignment can be subsequently moved into Inventory and not to a cost Center (202)
Step (1) Can we cancel the Invoiced items> reverse the GR for invoiced Items>reverse STO for PO ?
Step (2) Can we reverse the STO for PO for which GR has not been done? then
Step (3) Change the PO through ME22N, remove the Account assignment category?
Or how do we correct this situation for
(1) PO's already invoiced.
(2) PO for which GR has not been made. How can we receive them into Stock and not Cost center.
Anticipating a reply
Thanks
Sri -
Purchase Order and Purchase Requisition
Hi To All,
my customer while using tcode me2m hase extracted purchase order opened since 2007. now he want to close all this order and settle them to zero. this operation should be done also for the purchase requisition.
there is a standard way to do this? if not any idea?
thanks
C.Hello
Just by doing
In the PO line item level details, activate DELIVERY COMPLETED check box.
system will not close po from GR
U will have to check what is the gr qty did till date
and update the po with the same qty manually
eq
if po qty is 50 and total gr done till date is 40
change the PO qty to 40 and save
this is the way u can shot close the po
Which effects has the "delivery completed" indicator?
The purchase order item is considered closed, even though the total quantity may not have been delivered.
Although a further delivery is not expected, it is still possible.
At the time of the next goods receipt, the system suggests the item as unselected.
The purchase order item can be deleted, even if the total quantity was not delivered.
Although the "delivery completed" indicator is not set, a purchase order item is still considered closed if the full quantity has been delivered. In this case, the "delivery completed indicator" is not required.
The system allows to make further goods receipts. Why?
Answer
See note 16239 and 856279
hope this helps
Edited by: Umakant Bhangale on Oct 11, 2010 5:20 PM -
Payment terms of Purchase Order and F-47
Dear All,
How can we link Payment terms of Purchase Order and Advance Payment made thru F-47.
i.e if we have given payment terms in Purchase ORder as 50% advance then by advance payment (F-47) we shall allow to pay only 50% of Purchase Order value as advance.
How / where can we define this type of setup.
Regards
Swatihi,
There is no way in the system to restrict the payment amount to 50%once, it is mentioned in the payment terms as 50% advance. System does not have control tocheck and avoid the full payment
Rgards
Uma -
Open purchase orders and sales orders
Hi,
How to handle old open purchase orders and open sales orders after implementing SABRIX for tax calculation??The answer is to update all the open orders with a tax code which will call the external tax engine!
-
To Find MIGO, MIRO No of a Purchase Order and List Of Vendors ?
Hi Experts,
Required your inputs on the Following, Please Guide.
1) My End user has created a Purchase order, and he has done G.R and followed invoice also. And he doesnt remember the G.R Number and Invoice Number, for that Purchase Order.
a) How and where to find GR Number and Invoice Number for that Purchase Order ?
b) Please sugest is there any transaction to find the GR Number and Invoice Number ?
c) How to Find the Open Purchase orders? Is there any transaction to look Over Open Purchase Orders ?
2) My Enduser has Created Vendors with respect to different Company Code.
a) Is there any Standard report to find the List of Vendors with respect to Company Code ?
Please advice with your Valuable inputs.
Best Regards
JaveedHi,
Go to transaction code ME23N and then at item level click on tab called u2018Purchase order historyu2019 for the particular item. You can see both GR & Invoice doc. No.
Transaction ME2L to see the open PO.In the selection screen of this T code please select Scope of List u2013 ALV AND Selection Parameters u2013 WE101 . Then execute. You will get open Pos.
Regards,
Manish -
Purchase Requisitions, Purchase Orders and Receipts
Hello all,
The following is the sequence for Purchasing
Purchase Requision -> Purchase Orders -> Receipts
However I have a requirement to bring in the related Purchase requisions,purchase orders and receipts from 11i into R12 instance.I can do that using the open interfaces.However How do i link these 3 objects together?
I intend to import the purchase orders first and then import its related purchase requistions and the receipts...In doing so how do i link them together.How do i know that this purchase order was created from this Purchase requistion or this receipt is meant for this purchase order? What is the joiing columns in the base/open interface tables?
Thanks
AJMHi Venkat
1. To perform ATP do we need all the issues(Sales Orders, Deliveries) and receipts(Purchase Requisitions, Planned Orders) in APO?
Yes you need all the mentioned elements above in APO to do ATP check. Again, you can also extend the scope of the check to further more receipts and issues. All depends on your configuration of scope of check.
3. I guess in Apo the planned order and process order is a single elment. Is that Correct?
Yes, technically a planned order can be a planned process order or a planned production order.
regards
Mohan Chunchu -
Purchase orders and Sale Orders in DEV and PRD
Hi SAP Experts,
We have a facing some different problem. Unfortunately our clint do some transactions in Development Server. Like Purchase orders and Sales Orders.
After one month we delivery to clinet exact Production server. But he is asking , What ever the purchase orders and Sales Orders Created in Development with same numbers and Same dates, that data will be present in Production server also. Is it possible to do that. IF possible how to do that...
Thanks and Regards
Siri....
Edited by: Alvaro Tejada Galindo on Apr 14, 2008 5:56 PMI think it is possible,as per my knowlwdge our perious client regularly( means every 3-4 months) copied the data from Production server to quality server. by the help of basic person...
So in your case you want to copied the data from devlopment server to production server....please touch with your basic guy, i think he will help out reagrding this...
Maybe you are looking for
-
Seeing that this has become quite a problem, I need to tell you all about this crap. I have been forced to buy a new PC, due to the old one breaking down. (Finally, had it for 8 years...) Now, while I have taken a backup of the iTunes Library, includ
-
Can you fast forward in movies?
When I view a video, if I click the center button I sometimes see the "timing" bar (that shows time played and time remaining) although it doesn't seem to work all the time. Even when I see the bar displayed, it looks like I can't use the wheel to se
-
.pdf with Word hyperlinks opens in internet browser, or not at all
I'm using Adobe Acrobat X and Word 2010. When I create a .pdf from the Word application, all the hyperlinks work fine, EXCEPT that they open in the default internet browser instead of Reader. If I create the .pdf through Acrobat the links don't work
-
N570GTX M2D12D5 Dual monitor not recognized
N570GTX M2D12D5 Windows 7 64 bit Two monitors connected to DVI outputs Second monitor not recognized by Windows 7 or NVIDIA Control Panel Not found by Rigorous Display Detection either. Does something else have to be set to get this card to enable 2
-
What exactly pegged requirement and PIR means