Purchase Order lines link with each version of purchase order?
Hi,
I have a requirement of development of a report which will give details of po headers and po lines.
I have to pass parameter revision number which is purchase order revision number.
When I try to get line details of previous revisions of PO the matches were not exact.
I am using tables : PO_HEADERS_ARCHIVE_ALL, PO_LINES_ARCHIVE_ALL.
suppose currently in the system there is 10th revision of PO. User want to generate report for 8th version of PO.
The lines were not exactly matching when user select revision 8 from the report parameter.
Can someone help me in getting the logic of getting exact output.
As PO_LINES_ARCHIVE_ALL only stores those line_num that have been changed for the particular revision of PO.
I am getting only those line details that are changed in the 8th PO. But user want all the lines corresponding to 8th PO whether changed or not changed.
Thanks
Mankind
Thanks a lot. I explored TRM already.
What I found is that whenever there is changes in any level either header or line PO revision got changed.
But when there is change in lines only then for that particular line revision got changed.
So for the 8th revision suppose there were 6 lines. And for 2 lines there were price changes. So those two lines have revision number 8. But for the rest 4 lines revision 8 was not there.
I want to get all the six lines when I choose revision 8 in my report parameter.
How can I achieve this..
My Query is as follow:
Select pha.segment1, pla.item_description, pla.quantity, pla.unit_price
from po_headers_all pha, po_lines_all pla
where pha.po_header_id =pla.po_header_id
and pha.po_header_id = :header_id
and pha.revision_num =nvl(:PO_revision_num,pha.revision_num)
union
Select phar.segment1, plar.item_description, plar.quantity, plar.unit_price
from po_headers_archive_all phar, po_lines_archive_all plar
where phar.po_header_id =plar.po_header_id
and phar.po_header_id = :header_id
and phar.revision_num =:PO_revision_num
and plar.revision_num =:PO_revision_num
and phar.revision_num = plar.revision_num
The issue is when I am selecting the current revision of PO , I am getting correct data as query is fetching data from po_headers_all and po_lines_all tables.
But when I am selecting previous versions of PO, I am getting correct data for header level. But for line level, I am getting only those lines which are amended for that PO.
Client requirement is to get complete line details for that PO whether lines are amended or not. Means if for PO revision 2 , three lines amended and there are total 5 lines---- so all 5 lines need to be displayed.
Thanks for your valuable thoughts.
Regards
Mankind
Message was edited by: user11655073
Similar Messages
-
I have subscribed to the monthly plan for accessing Pro X version and down loaded the SW. However, keep getting a pop-up as king me to continue with Trial Version (or) Purchase the SW. Please let me know whether this message is popping up because of any issues / mistakes I might have made in the download process.
Thanks,
Surya.Hi suryanarayanaj52718002,
For Creative Cloud applications reverting to trial mode issue, I would suggest you to please refer the KB doc link mentioned below:
Creative Cloud applications unexpectedly revert to trial mode | CS6, CCM
Hope that helps.
Regards,
Anubha -
I have a problem regarding sales order line item with confimed quanity
Hi Experts,
I have a problem regarding sales order line item with confimed quanity with '0' with delivery block but confirming the sales order quantity once the order is released from credit check.
The situation arises as per the below scenarios.
Scenario - 1 - When the sales order has two line item - one line item with confirmed qunaity in the schedule line and for the 2nd line item there is no available stock for the Material xxxxxx.
Initially the sales order is created for the line item 2 with confirmed quantity = 0, and having the delivery block = 01 for the Material xxxxxx and the order is set with credit check. Once the order is relased from the credit check. The quanity for the item 2 where the confirmed quantity will be = 0 ( Where it is not changing the confirmed quantity)
Scenario -2- Updating the order qunaity for the line item 2 as (9Pcs) it will goes to credit check and save the order.
Maintain the stock for the line item 2 ( 5 Pcs).
Once the order is released from the credit check. Then for the line item 2 the confirm quanity will be seting to 5 Pcs with Delivery blcok 01.
This should not happen, When the credit check is released even though if it has stock based on the delivery blockl it should set the confirmed quanity to Zero.
Can you please help me how to solve this issue.
Looking forward for your reply.
Thanks and Regards,Hi,
I agree with your point. In the sales order When the complete delivery check box is enabled where the confimed qty is set to zero, it is fine but when we save the orderr it goes to credit check. Once we release the order using VKM3 where in the sales order the confimed quantity is setting to 5, But it should set to Zero quantity. Quatity should not be get confirmed it should be Zero Quantity.
Further in SPRO - customizing in the deliveries blocking reasons - It has a tick mark in the confirmation blcok. But we dont want to remove the - Confirmation Block tick mark
Please any one can help me if you have any solution to solve this problem.
Thanks and Regards. -
E-mail notification for order lines maintained with an invalid license
Hello Experts,
I have a requirement to develop an e-mail notification for order lines maintained with an invalid license.
T-Code VA01, this mail will be triggered if order has been blocked due to invalid or no license at the time of saving.
we can add email notification by using some user exit. Can you please guide me on how to go about looking for the appropiate user exit. Or any other suggestions.
Thanks,
AbhishekAbhishek,
check this
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
Re: va01 user-exit....
http://www.allinterview.com/showanswers/69164.html
Thanks
Bala Duvvuri -
Can sales order line item text be replicated into production order
Hi
Can sales order line item text be replicated to production order through standard PP configuration? If so how can it be done?
If that is not possible through standard configuration then can it be possible to read both sales order line item information and production order information using a BAPI or a program?
Please help me, i have been trying hard for this and also searches sdn for relevant posts but could not find any, I thank all people who can help me with some information on this.
Regards,
JessicaSample code:
DATA:
wa_order_objects TYPE bapi_pp_order_objects.
DATA:
it_order_header TYPE STANDARD TABLE OF bapi_order_header1.
*--Setting Flag to get details of BAPI
wa_order_objects-header = c_x.
CALL FUNCTION 'BAPI_PRODORD_GET_DETAIL'
EXPORTING
number = "Order number"
order_objects = wa_order_objects
TABLES
header = it_order_header. -
Purchase Invoice Quantity link with Sales Invoice Quantity
Hello All Experts,
My client to link Purchase Document with Sales Documents.
1.I create a Sales invoice and it is to be linked with Purchase Invoice means we want to find out that How much quantity sold from the Purchase Invoice quantity ,Because they manage the stock based on Purchase Invoice.
How can be manage it in SAP ?
Thanks & Regards
KrishnaHai Krishna Gopal
If u manage item by batches u can take your report easily
for example u can take report like this
GRPO NO Itemcode qty Batchno ,Invoice no itemcode qty Batchno
If am wrong please correct me -
Classical Order with Order lines entry with Web Service
Hello all,
I want to create a application in ADF that calls a web service for order entry. The Web service accepts an Order Object which contain a array of Order Lines Objects. This is a web service with a complex input object and I think the best is use a jax-ws proxy with a PoJo Data Control.
But my problem is how can I make a suitable user interface for this? How can I create a Form where I can enter the Order Lines? I can bind a Table to this array but then I can only add 1 OrderLine.
Thanks, JoostI found out that it is possible to bind the OrderLines to a table and add a button to the jsp with the following code in a backing bean:
BindingContext bc = BindingContext.getCurrent();
DCBindingContainer bindings = (DCBindingContainer)bc.getCurrentBindingsEntry();
DCIteratorBinding dcib = (DCIteratorBinding) bindings.get("orderlinesIterator");
RowSetIterator iter = dcib.getRowSetIterator();
Row newRow = iter.createRow();
iter.insertRowAtRangeIndex(0, newRow);
This create a new row and everything works fine in combination of the Web Service!
Joost -
Order Management Module - Sales Order Lines stuck with the Workflow
Dear All,
We are using Orcale E-Business Suite for our organization. Here, We are working Order Management Module. When Sales Executives the creating Sales Order, booked, Released and Shipped. After the Sales Order Line is partially closed,
but is not closed all the lines. We are facing the problem for receivable transaction. We have two types of scenario the following as
Scenario 1
We have Sales Order 4 lines first two lines are closed properly after the third line is AWAITING_FULFILLMENT then the fourth line is Closed. So, the thrid line is not in the RA Interface. Please tell me the solution, how we can closed the sales order third line.
Scenario 2
We have Sales Order 3 lines first two lines are closed properly after the third line is FULLFILLED then the fourth line is Closed. So, the thrid line is not in the RA Interface. Please tell me the solution, how we can closed the sales order third line.
Regards
AbdulHi,
Please go through the following documents and see if it helps.
Note: 238480.1 - In Sales Orders Form, Cannot Remove Fulfilment Set From Line in AWAITING_FULFILLMENT Status
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=238480.1
Note: 417292.1 - Sales Order Lines On The ATO Model Are Stuck In Awaiting Fulfillment Status
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=417292.1
Note: 297192.1 - Order Line Workflow Is Not Progressing Beyond Booked Status
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=297192.1
I would also suggest you search Metalink for "AWAITING_FULFILLMENT" and "FULLFILLED", this should return many hits which may be applicable to the issue you have.
Regards,
Hussein -
Sales order line item delete error for MTO sales order
Dear Experts
iam facing below error for MTO sales order line item deletion
"For reasons of cost management, item 000040 cannot
be deleted"
Please help
Regards,
KEdarIt looks you try to delete the sales order line item and you get this error message.
Try to put reason for rejection for the line item and save the order. This is equal to deleting the line item.
You can also refer the OSS note 14097 - Order item cannot be deleted/overwritten for further information.
Regards, -
Sales order and linked with BSX account key?
Respected Members,
I am creationg a purchase order with account assignment category M.
Suppose i have given material ABC and in material master of ABC i have maintain the valuation class 3000.
Now in details of account assignment category i have given the account modification VKA and consumption V and special stock E.
This VKA i have embedded in the GBB in the tcode OBYC and with the valuation class 3000 i have given the GL account
400210 ie consumption account.
Now this account is visible in purchase order as soon as i give the account assignment category and material.
Now secondly when i am giving sales order no in then it is replacing the consumption gl account with inventory gl account.
This inventory gl account is mentioned in the account key
BSX with the same valuation class 3000.
Now the doubt is that how from the sales order it is reaching to account key BSX .kindly explain me this background flow and settings.
I have also brief knowledge about the Requirement type and the requirement class.
Thanks a lot please give me the solution as soon as possible.
Thanks a lot.Hi,
Here is the explanation.
Account determination of valuated sales order stock and project stock
Note that for valuated sales order stock and project stock (special
stock E and Q) and for the transaction/event keys BSX and GBB, you
must maintain an account determination to avoid receiving warning
messages when entering data (purchase order or transfer posting) for
valuated stock.
During data entry, the system attempts to execute a provisional
account determination for GBB for valuated stock. The system will
only replace the provisional account determination for GBB with the
correct account determination for the stock account (BSX), in the
background, if you enter the data for valuated stock at a later
point in time.
Hence if there is an entry in BSX then system replaces the GBB with BSX.
Thanks
Krishna. -
Deleting an order line item with B1WS?
Hi,
I am building an application which uses B1WS as it's interface to DISERVER. There is a situation I am confused about and am hoping the folks here can shed light on.
I have an order object, and I would like to delete a line item from it.
How can I do that?
Thank you,
MikeOk, we figured it out. I wasn't updating the LineNum property after resetting the line items. The code below works for us, and hopefully for you too.
Again, the idea is, to delete a line item, create a new line items collection and put into it every line item EXCEPT the one you want to delete. Then update SAP.
private void DeleteLineFromOrder(string itemCode, string projectCode)
// Load SAP order via B1WS
string sessionID = B1WSLogin();
GetSAPOrder(docEntry, sessionID, out _order, out _document);
int oldLineItemCount = _document.DocumentLines.Count();
// Create collection of the current lineitems, before the add.
DocumentDocumentLine[] originalLineItems = _document.DocumentLines;
// Update the line item count
_document.DocumentLines = new DocumentDocumentLine[oldLineItemCount - 1];
int lineItemCounter = 0;
foreach (DocumentDocumentLine originalLineItem in originalLineItems)
if ((originalLineItem.ItemCode != itemCode) || (originalLineItem.ProjectCode != projectCode))
originalLineItem.LineNum = lineItemCounter;
_document.DocumentLines.SetValue(originalLineItem, lineItemCounter);
lineItemCounter++;
_order.Update(_document);
Cheers,
Mike
Cygnusoft, Inc. -
Sales order line item cannot be rejected as service order has been archived
Iam trying to reject a line item in a sales order with a "AP cancel line item" reason, but it does not allow me saying that the service order does not exist. The service order has been archived earlier. Is there any solution or workaround of this problem ?
Program zz_clear_aufnr can be used to resolve this.
-
My book order gets stuck with the message 'your book order is not complete'
hi,
while trying to place my first order for a book, I get the message above, with the message that the book order is still being sent to the publisher.
during the book submission, I went through what appeared to be a re-registration (although, using the same details, the right information seemed to be picked up in later stages of the process.)
I am using Aperture 3 on Lion (10.7.1)
oddly, I can't get into my 'order status' part of the Account part of the Apple store either.
i'm not sure if something is incomplete, or what!
anyone have any ideas, or has experienced this in the past?
regards,
NickIt seems that closing the application gives you the opportunity to cancel an 'in progress' book submission - the only way that I have come across.
Going in again and re-submitting has *thus far* done what is expected - I am now waiting for my confirmation email.
The address change screens are a bit of a mess, but that should not really make a huge difference if you are not having to change addresses - tabbing around the fields makes some sense of it. (apple, you may well want to fix this - contact me if screen shots would help)
Nick -
Is there any legitimate way to download a previous version of an app (if you already purchased it)? Or is any download of an app on iTunes always going to be the most recent version?
So if it is an app no longer available in the app store, and you download it (since you already purchased it), the version you download will be the most recent version before it was removed and not the version you downloaded right?
-
Issue with production order linked to quote instead of sales order
Hi Gurus,
I did a lot of digging through SAP notes and accross the internet. Before I contact SAP, just wanted to give a shot @ SDN. Please help.
Background- for ATO (VC assemble to Order):
i) Created a quote
ii) Created a sales order with reference to a quote
iii) MRP created a planned order and the planned order is linked to the quote
iV) Production order created and it is also linked to a quote
v) All reports, MD04/COOIS shows that the plnd order/prd order is linked to the quote
My issue - print a shop paper or a customer specific product ID label....guess what 'it prints the quote number everywhere'.
Everything is tied to a quote - which is not a real demand. All purchase orders are tied to the quote. THIS IS STUPID.
I refered to SAP Notes - 181685 and 459734. But I need details of what config settings I should do and where?
I'm a pure PP guy, getting into SD requirement type & account assignement settings. Please help me with details.
http://scn.sap.com/message/8018953#8018953
This guy also had the same problem and his issue was never resolved.
Thanks,Hello
Take a look on the following note where this scenario is described:
16658 - Generate sales order stock based on quotation
The note proposes the following setting as a workaround to this issue:
"As of 3.0, when the requirements type is assigned to the transaction
during requirements type determination, it is possible to assign a
requirements type to the quotation that does not represent make-to-order
production."
Therefore, please check your customizing settings and make sure that a requirement class/type (transactions OVZG and OVZI) without MTO is assigned to the quotation item category (transaction OVZI).
On transaction OVZI, there is a field called "Origin of requirement type in requirement type determination". Please take a look on the information provided on the F1 help of this field:
========================================================================
Origin of requirement type in requirement type determination
In the standard release, the requirements type is determined according
to a certain search strategy depending on the strategy group of the
material.
In this field you can select an alternative search strategy (source):
Source 0 = Material master strategy, then item category and MRP type
Source 1 = Item type and MRP type strategy
Source 2 = Item type and MRP type strategy (as for source 1) with
additional check of the allowed requirements type
========================================================================
Therefore, my suggestion is to set this field to 1 for the quotation item category and assign an MTS requirement type on OVZI.
BR
Caetano
Maybe you are looking for
-
Unable to print a PDF file using the BI Publishing server
Hi, I have a BI publisher server version 10.1.3.4.2 on W2K3 43 bit. I can access through the url that server. From my desktop I access through an url my Oracle APEX application. It has been configures with: Report Printing: Print Server Protocol: Adv
-
4.7 SAPINST fails on phase 5 of 14 - services do not exist
I am installing 4.7 on Win 2003 / sql 2005 and the install - sapinst - fails on Phase 5 of 14 with messages: The specified service does exist as an installed service for saposcol and for sap<SID>_nn This is a local install and java environment variab
-
This just started happening a month ago and I can't figure it out. My X-Fi causes Vista to BSOD on boot when installed. When I take the X-Fi out, it works fine. I'm also getting a ton of "Unknown PCI Device" in the device summary screen on boot. Neve
-
Cannot reinstall or uninstall SP1
I had a consistent crashing problem with VS 2010 with SP1 that appeared when I created a phone app. I tried to repair SP1 but got "file not found" messages. I uninstalled Visual Studio completely but SP1 was still installed. Tried to reinstall Visual
-
Help how do you save a still frame of video as a photo?
Help how do you save a still frame of video as a photo? Thanks