New on POO : get items from purchase order
Hi,
i'm new in OO, i must implement the BADI IF_EX_ME_PROCESS_PO_CUST~CHECK. In this method i would like to get items of my current purchase order, how can i do that ?
Thanks a lot.
Cheers
Hello
Please note that if you have understood this BAdI then you have understood the basics of ALL BAdIs dealing with business objects that have a header and one or more items.
Example: BAdI ME_PROCESS_REQ_CUST (purchase requisition)
METHOD if_ex_me_process_REQ_cust~check.
* define local data
DATA:
lt_items TYPE mmpur_requisition_items,
* ls_item LIKE LINE OF lt_items, " alternatively
ls_item TYPE mmpur_requisition_item,
ls_header TYPE mereq_header.
" Change data types of local variables (compared to if_ex_me_process_PO_cust~check)
" but use the very same coding to retrieve the items.
* (1) Get the order items
* CALL METHOD im_header->get_items
* receiving
* re_items = lt_items.
* Short version:
lt_items = im_header->get_items( ).
LOOP AT lt_items INTO ls_item.
ls_detail = ls_item-item->get_data( ).
* do something ...
ENDLOOP.
* (2) Get header data
* CALL METHOD im_header->get_data
* receiving
* re_data = ls_header.
* Short version:
ls_header = im_header->get_data( ).
ENDMETHOD.
Regards
Uwe
Similar Messages
-
"All items from purchase order cannot be invoiced"
Hello,<br />
<br />
I'm on a SRM 7.0 SP 5 system (ext-classic scenario). Here i try to create an invoice with reference to a Purchase Order, but none of my Purchase Orders can be used for reference. I get the following warning message 'All items from purchase order cannot be invoiced'.<br />
<br />
- Created via POWL (create with reference -> invoice/credit memo) i always get the warning message 'All items from purchase order cannot be invoiced'. And no items are converted / can be used for invoicing. Additionally when i use the search option 'find purchase order' within the create invoice transaction i can not find any purchase order to use, it shows 'There is no search result' while there are plenty purchase orders marked with 'invoice expected'.<br />
<br />
I am able to create invoices without reference.<br />
<br />
I tried vendors set up only for 'invoice expected' and 'GR', 'invoice expected' / 'GR' / 'GR-based-IV' and 'invoice expected' only none of them works, indicators set on vendor master are correctly used on the created purchase order. Outputting PO doesn't make any difference neither.<br />
<p />
I have not set up the following (do i need to?):<br />
- Deactivated the 'CRME' transaction type, no Credit Memo transaction type has been configured/is active.<br />
- I have not defined the 'INV' transaction type as a follow-on document for my ECPO transaction type within the define transaction type transaction.<br />
- Tollerances<br />
<br />
<b>edit</b> -> i've already searched thorougly for SAP notes but no note seems to cover this particular problem.<br />
<br />
Help is very much appreciatedSolved! Added SYS attribute for back-end system in organisational scheme.
-
Not to include item from purchase order to the delivery order
Hi,
i need some guidance on above topic. The user requested to have the functionality not to include the item from purchase order to delivery order when the item having order balance quantity more than the available stock.
In other words, if a PO contains several items, those order balance quantity which is more than the available stock will not be included in the DO.
is the above scenario possible?
please advise.
Thanks.Hi Yue ,
u can do it , but in this case u have to make use of user exit or BADI.
option 1 .
by using user exit , u can delete/change picking/confirm qty .
option2:
while doing the PGI , do can cross check stock avail with PO qty and raise error messages.
LE_SHP_GOODSMOVEMENT --> see its documentations in se18.
Regards
Peram -
Delete item from Purchase Order
Dear All,
I want to cancel line item from Purchase Order.
But i am unable to do it as i have already made advance payment against PO/Item.
Actually advance payment was against another Item of PO but by mistake selected wrong item while f-47.
Now i want to delete item for which made avance payment and transfer advance payment with another PO item.
How to do it.
Regards
SwatiHi,
Your Issue
Lets say, you have created two items in a PO, and made adv payment against item 10 instead of 20.
Now you want to delete the item 10---
Solution
I hope you have not done any GRN to both items (10 & 20) of your PO.
Then make your item 10 as same as your item 20. (Do change the material code, order qty, price etc)
Then delete the item 20.
So with this, you have made your errorised PO item as actual item, and deleting yout actual PO item as errorised item.
This is as good as swaping the items from one item to another item in the same PO.
This will resolve your issue.
Thanks,
Srinu -
Creating new DMS info record directly from purchase order transactions
Hello Everybody,
does anyone knows of a way to make it possible for users to Create New DMS info record directly from the purchase order transactions ?
e.g:
in ME22N there is a button of "Documents" for an item level in the order, but that button only allows to link an existing info record.
Link To a screenshot:
http://img263.imageshack.us/i/me22n1.jpg/
Regards,
Yossi Fridman.hi
This query has already been addressed in the following Forum by Christoph Hopf..
pls chk link below.
Create DIR through P.O and Sales order screen
Thanks
john
Edited by: johnpp on Feb 15, 2011 11:54 AM
Edited by: johnpp on Feb 15, 2011 11:57 AM -
Restriction for items from Purchase Order based on Sale Order
Hi !
We create PO directly from Sale Order ( by ticking Option under Logistic tab, 'Purchase Order') for customer C01 (for eg).
From the PO created, we post GRPO.
Now our need is,
Assume if 10 Qty is been ordered in such a way and been received (GRPO posted). it 'll add on to the stock account i.e will increase stock qty at our whse.
is it possible to restrict these 10 qty of item from being sold to any other Customer other than whom hav ordered i.e if we create sale order for C02 the SBO should not take the items received from PO created based on Sales Order created for C01?
Meera.Meera,
Which version of SBO are you using 2005 or 2007?
I don't think Serial numbers can help in this scenario. There is no hard allocation or blocking possible using Serial numbers.
This is the Work around I am thinking about.
Set the items to be Batch Managed - On Every Transaction
When performing Goods Receipt, enter the Sales Order Number as the Batch Number
When creating the delivery, using SBO_SP_TransactionNotification we can easily check the Batch of the Item being selected and verify it with the BaseRef of Delivery lines to match with Sales Order number.
If the numbers don't match we can warn user with message, "The items batch reserved for Sales Order xyz"
Even if you make a mistake when entering the batch number same as Sales Order number when doing a goods receipt. It can still be traced and blocked during delivery.
Hint: The Batch table records the Goods Receipt transaction along with the BaseDocument number, Base Ref, etc
If you decide to go this route, I could help you further.
Let me know
Suda -
Returns item from purchase order in SRM
Hi,
Is it possible to return item from a purchase order in SRM?
meaning : to return goods to an external vendor.
in ECC i know its possible. but i want to know if its possible in SRM.
if yes, how?
(i dont want to return by confirmation)
we are using SRM550.
regards,
vered
Edited by: Vered Madar on Aug 2, 2010 1:28 PMHi,
In SRM POs, GR based invoice indicator for Goods item is ticked based on the Vendor Master. If the vendor master has the tick, then PO will have the tick for GR based invoice. However for a service PO/limit PO, GR based invoice comes as default in PO and cannot be undone.
Regards,
Sanjeev -
How 2 Copy Header & Line Item Text from Purchase Order 2 Out Bound Delivery
Hi SD Gurus,
I want to copy header and line item text from Purchase Order to Out Bound Delivery (This is required in Stock Transfer Process).
I have been able to do successful config. for copying header and line item text from Sales Order to Outbound Delivery but config. doesn't seems to be same for copying text from PO to OBD.
Is there any way to achieve the same? Can some expert show the way to achieve this.
Thanks in advance.
Warm regards,
Rahul MishraHi Ravikumar thanks for u quick reply.
This is wht is currently coded.
concatenate values to get item text for read text function
invar3+0(10) = invar1. "PO number
invar3+10(5) = invar2. "PO line number
SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
AND tdname = invar3
AND tdid = 'F01'
AND tdspras = sy-langu.
IF sy-subrc = 0.
invar4 = invar3.
reading the text for the document items.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'F01'
language = sy-langu
name = invar4
object = 'EKPO'
TABLES
lines = it_itab.
I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
anyhelp will be appreciated and rewarded.
thanks -
No update of sales order from purchase order
Hi,
When I am trying to change the delivery date of a purchase order line item, I get the error
"No update of sales order xxxxx from purchase order (error V1 348)" How can I resolve this?
Sincerely,
KetanHi,
Check whether this PO is created w.r.t. PR and PR is created automatically during Sales order creation.
If it is so then need no to change the delivery date in PO, it will always get updated as per the Schedule Line date of sales order.
You can go for GR w.r.t. PO directly. -
Table links from Purchase order to condition types
Hi,
I am looking for the tables to go from purchase order, and to read the conditions associated with the PO.
I have EKKO, and EKPO, but I cannot find the table where the condition information is stored. I have KONV and KONP, but they seem to be the tables where the condition type info is stored, not the link table where the purchase order specific information is stored.
Can somebody please point in the right direction?
Regards
Piet
Edited by: Piet Strydom on May 12, 2009 12:52 PMHi,
The PO and the Condition Record Number Link happens in the Table EKKI.
from this table get the condition Record number line item wise and execute in KONV.
Hope so it helps
Regards
Anjanna
you can check the below thread posted by self for further ing
Re: PO item Condition Record number and delivery address of PO - Need a table n
Edited by: Shiva Rajanala on May 12, 2009 1:42 PM -
Creating asset from purchase orders
Dear Gurus.
Please let me know how to create asset from purchase orders.
Thanks
Rgds,
Saurabhhi,
First, determine the information that is necessary for creating the purchase order:
Check in the Purchasing component whether a purchase requisition exists for the asset (Logistics - Materials management - Purchasing).
Determine the vendor from whom you are ordering the asset. If needed, enter the purchasing data for the vendor.
Determine the asset number of the asset that is being ordered. If necessary, create a new asset.
Create the purchase order. If there is a purchase requisition, use it as a reference (in Purchasing: Purchase order - Create).
In the initial screen, when you specify the account assignment type A (for asset), this determines
The account assignment to an asset
How the goods receipt or the invoice receipt is to be handled (are asset values to be posted at the time of the goods receipt or at the time of the invoice receipt).
Once you have entered the general purchasing data in the first screen (order date, material group, etc.), a dialog box appears. Enter the asset to which account assignment is to be made in this dialog box.
If the asset master record for your purchase has not yet been created, you can create it directly from within the purchase order transaction.
Display the order item and its current delivery status (in Purchasing: Purchase order - List display - By account assignment).
Later, post the goods receipt or the invoice receipt. (The Customizing definition of the account assignment type determines when the asset values are posted - either at goods receipt or at invoice receipt.) See the corresponding documentation for the Materials Management (MM) component.
regards,
Siddharth. -
Get Items from limited list by providing username and password - C#
I'm using the code at the following link in order to get items from SharePoint list,
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.list.getitems.aspx
I have a SharePoint list that limited to certain users.
How can I provide by this code (or else) a username and password and log in as a different user who has access to this SharePoint list and get its items?
Thanks!Sorry, previous post didn't see you were using client object model.
Service.Credentials = (create new credentials passing username and password)
ICredentials credentials = new NetworkCredential("Joe",SecurelyStoredPassword,"mydomain");
math.Credentials = credentials
Thanks!
Actually, my full question already posted here:
http: //sharepoint.stackexchange.com/questions/84917/c-why-impersonation-is-expired-while-clientcontext-executequery-is-performe
but I was unable to post it here as a new user (images, links, lenght ...) even the link above I was need to insert spaces after "http:" to be able to post it.
Anyway, I don't know "client object model." am I using it?
You mentioned "Service.Credentials", What do you mean "Service"? -
Alternative items on Purchase Order
Hi Experts:
I have a question regarding the alternative items on Purchase order. If alternative item A2 is setup for item A1 from Vendor XYZ, and if we place a PO with XYZ for item A1 but they ship item A2: can we receive A2 in stock on the initial PO for A1? Dose SAP have these kind of solutions?
Thanks and best regards
Xincheng JINHi,
there is one good solution for this sort of requirement...However, the limitations are there; may be suitable for example, we order for envelopes from vendor. You may order for one type of envelope and vendor may send other type...size may be the same, one envelope with window for address and other type may not have a window....similar such situations can be easily address using the standard SAP's below example: (I implemented this already in 2 projects previously)
http://help.sap.com/saphelp_47x200/helpdata/en/9f/fb79385feddf6ae10000009b38f8cf/frameset.htm
Example: Configurable Materials in Purchasing
You are responsible for procuring office supplies for your company, including envelopes. A printing firm supplies you with envelopes featuring your company logo in various sizes, with or without an address window.
In order not to have to create separate material master records for every possible combination (e.g. C5 with window, C6 without window), you wish to use a configurable material.
You must carry out the following activities for a configurable material:
Create characteristics
Create class
Create material
Create configuration profile
Create Characteristics
You define the criteria you use to differentiate between the variants of a material (in this case, the size of the envelope and the address window) by means of characteristics. You must create a characteristic for each criterion under Logistics ® Central Functions ® Classification System ® Master Data ® Characteristics Management.
Characteristic: Size of envelope
Enter size_of_envelope in the field Characteristic.
Choose Create.
Enter the following data on the tab page Basic Data:
· Description: Size of envelopes
· Data type: Character format
· Number of characters: 20
This indicates how many characters a characteristic value may comprise.
· Select the Single value indicator in the area Value assignment.
If you set the Single value indicator, one value only may be assigned to the characteristic. For example, only one size may be chosen when you specify the dimensions of the envelopes that are to be ordered in a PO.
Enter the following data on the tab page Values:
· Enter possible values for the characteristic:
Characteristic value
Description
DIN C4
229 mm x 324 mm
DIN C5
229 mm x 162 mm
DIN "Langhülle"
218 mm x 114 mm
DIN C6
162 mm x 114 mm
· Select the Additional values indicator.
If this indicator is selected, you may also specify values that you have not yet defined here when assigning values to the characteristic.
Choose the class type 300 (variants) on the tab page Restrictions.
Choose Save.
Characteristic: Address window in envelope
Enter window_in_envelope in the field Characteristic.
Choose Create.
Enter the following data on the tab page Basic Data:
· Description: Address window in envelopes
· Data type: Character format
· Number of characters: 4
· Select the Single value indicator in the area Value assignment.
Enter the following data on the tab page Values:
· Values of characteristic: yes , no
· Do not select the Additional values indicator.
Choose the class type 300 (variants) on the tab page Restrictions.
Choose Save.
Create Class
You group several characteristics to form a class. The class is then assigned to a material.
Choose Logistics ® Central functions ® Classification system ® Master data ® Class management.
Enter the following data on the initial screen:
· Class : Envelope
· Class type: 300 (variants)
Choose Create.
Enter a short description of the class in the Description field on the tab page Basic data: Envelopes with company logo.
On the tab page Characteristics, enter the characteristics you created previously: size_of_envelope, window_in_envelope .
Choose Save.
Create Material
Choose Logistics ® Materials management ® Material master ® Create material ® Create (general) ® Immediately.
Enter the following data:
· Material: Envelope
· Industry sector: Office supplies
· Material type: Configurable material
Choose Enter.
Choose the views Basic Data 1, Basic Data 2, Purchasing, and Accounting 1.
Enter plant 0001.
Enter the following data on the tab page Basic Data 1:
· Short description of the material: Envelopes with company logo
· Base unit of measure: KI (box)
· Material group: Office supplies
On the tab page Basic Data 2, check whether the Material is configurable is selected.
On the tab page Purchasing, select the Subject to batch management indicator.
On the tab page Accounting 1, enter the following data:
· Valuation class:
· Price control: V
· Moving average price: 99.95
Choose Save.
Create Configuration Profile
In the configuration profile, you assign characteristics to the material via a class.
Choose Logistics ® Central functions ® Variant configuration ® Configuration profile ® Create.
Select Material and choose Enter .
Enter envelope in the field Material.
Choose Goto ® Profile overview.
Enter the following data:
· Priority: 01
· Profile name: Envelopes
· Class type: 300 (variants)
Choose Goto ® Class assignment and enter envelope in the Class field.
Choose Save.
Use in Purchasing
You can now create, change and display this configurable material in all purchasing documents.
Display
If a configuration already exists for the material, you can display it in the purchasing document.
Change
If the configuration of the material was adopted from a sales order or from the material master record, you can change it in the purchasing document. This may be necessary if a material with the selected characteristic value cannot be supplied (is not available) and has to be changed to the material in the quotation.
If you change the configuration of a material in the purchasing document:
A new price determination process is carried out
You do not change the original configuration in the sales order or in the material master record as a result
Subsequent changes to the sales order or the material master record do not affect the configuration in the purchasing document
Create
If no configuration yet exists for a configurable material, you can create one in the purchasing document. This may be necessary, for example, if a configurable material is to be ordered without reference to a sales order.
Subcontracting items and the archiving of the characteristic values are not supported.
For more information on configurable materials, refer to the section LO Variant Configuration. -
Is there is a way to have a link from purchase order to cost center report.
Is there is a way to have a link from purchase order to cost center report.
I am meaning kind of:
Standard way to customized this link?
or
User exit to have this link in place
or
Any other solution
ThanksFor me it does not make any sense from going from PO to cost center report.
However, if you want to see the purchase order cost incurred with a cost center, execute KSB1 report. Within the layout, bring "Purchasing Document" field, where you can see the purchase order number in cost center line item report. -
A report to view the cash flow coming from Purchase Orders.
Hi All,
Could anyone suggest me a report to view the financial obligations which comes from Purchase Orders?
Thanks
GandalfHi,
You will have to activate basic cash management (part of FSCM) and use TCode FF7B (liquidity forecast). What the report would do is, based on the delivery date of the purchase order and the payment terms of the vendor (plus some grace days for clearing the payment as per configuration) determine the date of expected payments and project the cash (and bank) balance by days/week or months.
Alternatively you can write your own ABAP code which will do the same thing.
a. Take a list of all open POs and determine the delivery date (EKKO and EKPO)
b. Add the payment terms as per purchase order to the delivery date
c. Compute the cost of the purchase order item
d. Display the report which projects expected payments by date
Rgds
Shivram.
Maybe you are looking for
-
IMac Mid 2010 kernel panic after wake up from sleep mode
Hello. One month ago starting my iMac Mid 2010 occasionally goes to kernel panic. When I click on mouse or press any key, system starting up, but very very slowly, (time on logon screen stay same without refresh) and after few minutes (from 1 - 10 mi
-
Mid-2010 MacBook Pro '13 Dead.
So I've had an issue for the past week with my Mid 2010 MacBook Pro 13-inch. For a little while, it has been losing the time, and shut down randomly a few times, but last sunday, it shut down, and wouldn't boot back up. When I press the power button,
-
I am having trouble with the cache in bridge. When i open I get a message saying bridge has encountered a problem reading the cache try purging in the central cache to correct the situation. I did that but now when I try to get to the folders where
-
I cannot locate my computers on the apple tv
I cannot locate my ipad on the apple tv. I want to display my ipad home screen
-
Deleting/Moving Wiki Pages
When deleting a page, if there's a replacement, put a redirect in to the replacement, not "(candidate for deletion)". To put in a redirect, replace the contents of the page with: #REDIRECT [[page linking to]] This helps stop broken links, and will ma