Business Object For Purchasing Order Item
Hi All
I want to create event for every change in Purchase Order in the field Delivery Date
For that I am looking for business object in SWO1
Thanks in Advanse
Hi,
Check the Business Object BUS2012.
Regards,
Vara
Similar Messages
-
Class for Purchase order item components and Production order components
I'm looking for a some classes. I'm very new to objects, so I could be searching for them incorrectly.
The first class I'm looking for is a purchase order class that contains the item components. I've looked at CL_PO_ITEM_HANDLE_MM and CL_PO_HEADER_HANDLE_MM. I couldn't find components as a part of either of the classes.
The second one I'm looking for is not as critical. It is for the components for a production order. I have a function module: BAPI_PRODORD_GET_DETAIL that gets the components for the order. However, to take advantage of objects - I read somewhere - that if possible I should avoid calling a function module.
Any help that you could give would be greatly appreciated.
Thank you!
MichelleHello Michelle
I do not think there are already classes available on ERP 6.0 for reading production order (yet I might be wrong...). However, regarding purchase order you are already on the right track.
*& Report ZUS_SDN_OO_READ_PO
*& Thread: Class for Purchase order item components and Production order components
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1206523"></a>
"& NOTE: Coding adapted from BAPI_PO_GETDETAIL1
REPORT zus_sdn_oo_read_po.
TYPE-POOLS: abap, mmpur.
PARAMETER:
p_ebeln TYPE ebeln DEFAULT '3000000045'.
DATA: gs_document TYPE mepo_document,
go_po TYPE REF TO cl_po_header_handle_mm,
gs_header TYPE mepoheader,
gd_tcode TYPE sy-tcode,
gd_result TYPE mmpur_bool.
data: gt_items type PURCHASE_ORDER_ITEMS,
gs_itm type PURCHASE_ORDER_ITEM,
gs_item type mepoitem.
START-OF-SELECTION.
* prepare creation of PO instance
gs_document-doc_type = 'F'.
gs_document-process = mmpur_po_process.
gs_document-trtyp = 'A'. " anz. => display
gs_document-doc_key(10) = p_ebeln.
* object creation and initialization
** l_ebeln = purchaseorder.
CREATE OBJECT go_po.
CALL METHOD go_po->po_initialize( im_document = gs_document ).
CALL METHOD go_po->set_po_number( im_po_number = p_ebeln ).
CALL METHOD go_po->set_state( cl_po_header_handle_mm=>c_available ).
* read purchase order from database
gd_tcode = 'ME23N'.
CALL METHOD go_po->po_read
EXPORTING
im_tcode = gd_tcode
im_trtyp = gs_document-trtyp
im_aktyp = gs_document-trtyp
im_po_number = p_ebeln
im_document = gs_document
IMPORTING
ex_result = gd_result.
* there was a problem in reading the PO
IF ( gd_result EQ mmpur_no ).
** l_messages = l_handler->get_list_for_bapi( ).
** PERFORM return TABLES l_messages return
** poitem poschedule poaccount.
** CALL METHOD l_po->po_close( ).
ELSE.
gs_header = go_po->if_purchase_order_mm~get_data( ).
WRITE: / gs_header-ebeln,
gs_header-bukrs,
gs_header-bsart,
gs_header-lifnr.
ENDIF.
gt_items = go_po->if_purchase_order_mm~get_items( ).
LOOP AT gt_items INTO gs_itm.
gs_item = gs_itm-item->get_data( ).
write: / gs_item-ebelp,
gs_item-matnr,
gs_item-menge.
ENDLOOP.
END-OF-SELECTION.
Regards
Uwe -
Is there a Business Object for Sales Order Create and Change VA01 and VA02
Hi experts -
I am looking for a business object for Sales order create and change VA01 and VA02 respectively?
Thanks,
MarkHi Mark,
I think this question is best answered in [SAP Solutions|/community [original link is broken]; Forums.
- Subhodeep
Edited by: Subhodeep on Aug 29, 2009 11:14 AM -
Business Object For Internal Order
Hi All,
Can anyone tell me what is the business object for internal order that is created for controlling the budget / value of different documents.
This order is created / changed using the tcode KO22/KO24.
Please help me guys.
Regards,
PerumalrajHello,
Please look into the business object "BUDOCUMENT" which has the methods related to the Budget documents. If this BO doesn't suit your requirements, I feel you can take it as a base to create a subtype or a new BO to meet your requirements.
Hope this will help.
Best Regards,
Samson -
Expand Table Control with Fields for Purchase Order Item Overview
Hi Gurus.
Hereu2019s something easy for you, I hope/ think. We just want to additionally show the field u201CMFRPNu201D in the purchase order item overview. See structure MEPO1211 for the table control.
How can we do this? Is it possible without a modification? Is there anything to pay attention to?
Lot's of questions, because we donu2019t find any complete solutions yet. It seems there are no official SAP suggestions for this issue.
Thanks in advance!
Regards
PatricIs there no one out there who can answer my question?
-
Sp Transaction Procedure For Purchase Order Item Checking
Hello All,
I need to create a sp_Transaction notification for Purchase Order where system will check that the document to be added
with Vendor 'A' and ItemCode 'ERT' should not be be previously added for the same vendor 'A.
Example:-
Doc No. Vendor Item Code
1 A ERT
Is added
Next if the Purchase Order is added with same vendor and same Item then system should block the entry and throw a message
'Purchase Order Already Entered for Vendor 'A' with Item Code 'ERT'"
This checking will be done for each line item of currently entered Purchase Order Document.
Thanks ,
AmitHello Amit,
You don't need post identical thread twice. This SP related discussion is usually posted on main forum.
Please close this one.
Thanks,
Gordon -
Sp_Transaction Notification For Purchase Order Item Checking
Hello All,
I need to create a sp_Transaction notification for Purchase Order where system will check that the document to be added
with Vendor 'A' and ItemCode 'ERT' should not be be previously added for the same vendor 'A.
Example:-
Doc No. Vendor Item Code
1 A ERT
Is added
Next if the Purchase Order is added with same vendor and same Item then system should block the entry and throw a message
'Purchase Order Already Entered for Vendor 'A' with Item Code 'ERT'"
This checking will be done for each line item of currently entered Purchase Order Document.
Thanks ,
AmitHi Amit,
i found this on forum. Try this,
if @object_type = N'22' and @transaction_type in (N'A', N'U')
begin
declare @line1 int
declare @lin1 int
declare @out1 int
Set @out1 = 0
SET @lin1 = 0
Declare @Vend as varchar(200)
Declare @ItemCode as varchar(200)
Select @Vend = CardCode From OPOR Where DocEntry = @list_of_cols_val_tab_del
Select @line1 = Max (LineNum)FROM POR1 WHERE POR1.DocEntry = @list_of_cols_val_tab_del
While @lin1 < @line1
Begin
Select @ItemCode=ItemCode From POR1 Where DocEntry=@list_of_cols_val_tab_del and LineNum = @lin1
if (SELECT COUNT(T0.DocEntry) FROM POR1 T0 inner join OPOR T1 on T0.DocEntry = T1.DocEntry
WHERE T0.ItemCode = @ItemCode and T1.CardCode = @Vend)> 1
Begin
Set @Out1 = 1
Break;
END
Else
Begin
Set @lin1 = @lin1+1
Continue
END
END
Set @lin1 = @lin1 + 1
if @out1 = 1
begin
Set @error = 1
Set @error_message = 'Item Code in line ' + CONVERT(nvarchar(4), @lin1) + N'already Exists For This Vendor!'
End
END
Check this too Stored procedure in purchase order for duplicate item for a vendor
Thanks,
Joseph
Edited by: Joseph Antony on Jan 11, 2011 1:37 PM -
Authorization Object for Purchase order Message control
Hi ,
Is there any stadard authoriztion object to control the print and print preview options for Message control .
I am requied to control the print and print preview options for purchase order messages for certain users depeding on there authorizaion.
Thanks in advane.Hi,
When you click on the 'print preview' button on ME22N/ME23N the system
makes an authority check on transaction ME9F activity 04. The current
logic forces the print preview functionality to be accessed ONLY by the
users who print. Therefore, only users that have authorization to use
ME9F are authorized to use the Print Preview button in ME22N/ME23N.
Kindly try the authorization objects M_BEST_EKG, M_BEST_BSA and
M_BEST_EKO = 04.
You can
also have a look the user exit
EXIT_SAPLMEDRUCK_001 in enhancement LMEDR001 for print program
SAPLMEDRUCK.
INCLUDE ZXM01U04
you can create own coding for all possible AUTHORITY-CHECK.
BR
Nadia Orlandi -
Quantity field to be shown on 1ST line only for purchase order items in ALV
Dear All,
I am fetching data from purchase order history table (EKBE) where PO line items contains multiple times. User does not want to view fields that are repeating multiple times in all lines, but in the top line. By sorting the same in ALV , I can do the same with character type fields, but how to do the same with quantity fields. One way out is converting the same into character fields. Is there any other way. Please give me some solution. Also while sorting , the number which gets repeated (i.e Items in PO for different PO's ) does not gets displayed. I want my program to display them.
Thanks,
Debopriyo MallickTry this
loop at ist_mseg into wa_mseg.
ON CHANGE OF wa_mseg-con.
move '111' to wa_mseg-con1.
modify ist_mseg from wa_mseg.
ENDON.
endloop.
loop at ist_mseg into wa_mseg.
if wa_mseg-con1 ne '111'.
move 0 to wa_mseg-menge.
move 0 to wa_mseg-netpr.
endif.
modify ist_mseg from wa_mseg.
endloop.
mseg-con is the concatenation of ebeln and ebelp values.
pk -
BADI for purchase order item confirmation?
Hi all,
In Purchase Order change mode (ME22N), we want to calculate the delivery date based on the confirmation date that was entered in the PO item detail, confirmation tab (instead of based on the PO creation date).
Please help by specifing Which BADI should we use for that purpose? And which method will be helpful?
Thanks,
Vamshi.Hi
You can use BADI ME_PROCESS_PO_CUST
Ranga -
Lock object for Purchase Order
Dear Experts.
I am searching the function module "ENQUEUE_ " , which is for locking & Unlocking
the Purchase order(ekko-ebeln).
Please help me.
Thanks in advance,
Regards,
Rahul.Hi,
Use the Lock object EMEKKOE to Lock and Unloack the Purchase orders
Use this FM to lock
MM_ENQUEUE_DOCUMENT
This is also used in the standard program. While enqueing,
if there is any error (sy-subrc 0), then it means,
that particular purchase order is already locked
Use Fm DEQUEUE_ALL to release all lock at the end of report execution.
Regards,
Shamma
Edited by: Shamma Firdous on Aug 20, 2009 10:22 AM -
Business object for sales order credit status
Is there a sap delivered business object that has a method to get credit status and overall blocked status of a sales order?
This forum is for general questions about Business Objects (the company) products and information; since your question pertains to SAP products you will want to find the forum that relates most closely to your question so you can have experts in that area helping you.
-
Issue in finding GR posting date and quanity for Purchase order item
Hi All,
I have a requirement to list all PO items with Goods receipt posting date and quantity.
So for each po item I have fetched Goods receipt posting date and quantity from table EKBE for movement type 101.
But in transaction ME23n in PO history tab it is displaying 3 records.
2 are movement type 101 and 1 is movement type 102 GR quantity with minus sign.
How to find out Goods receipt posting date and quantity.
what are the movement types we have to consider.
Thanks,
Jwalamovement type 102 is for GR for PO reversal that is why the quantity is negative.
-
Authorisation object for Purchase order release codes
Hi,
Can anyone let me know the authorisation object to be used for the PO release codes to be assigned in the ME28 and ME29N for the users.Hi,
Release code and groups detials for the PO authorisation is as follows.
M_EINK_FRG Release Code and Group (Purchasing)
FRGCO Release code
M_EINK_FRG Release Code and Group (Purchasing)
FRGGR Release group
Regards,
Sakthi -
Issue in EXIT_SAPMM06E_016 for Purchase Order Items
Hi,
We have customer fields in PO header as well as in Items. If i update the value in PO header, the vlaues should pass to items based up on the quantity and order unit.
We have implemented this logic in EXIT_SAPMM06E_016, this is working fine when PO have only one item. If PO has more than one items, t we have to go every PO item manaully in screen o update the values, then only value is updating in screens.
When i read about this exit EXIT_SAPMM06E_016, it says this is PBO module, so it will update only if we go manually on screens. Is there any other way to update with out going on screens?
BADI ME_PROCESS_PO_CUST will work?Hi
Try to use if_ex_me_process_po_cust~process_item which will work .
surya
Maybe you are looking for
-
I cannot forward more than one message at a time.
When I want to share an e-mail with more than one address the second one replaces the first, so can only forward one at a time
-
Problem when exporting the report to PDF viwer a 45,000-page report
I am using Visual Studio 2013 with the report vivew. I have a report that works correctly, however when generating a 45000 pages he is giving memory error when exporting to PDF, any tips?
-
Replacing download with gui_download
Hi, as part of upgradation i am trying to replace Download fm with Gui_download but the problem is in download function i have exp parameter filemask_mask but its not available in gui_download. Is there any way to down load? Please help me out!
-
Create multiple page ssrs report
I am trying to create a SSRS report in SQLServer 2008 r2. The report consist of various pages with lot of static text and few tables in it. The report is around 10 pages long. Can anyone help me on how do i insert page break in text box. Also, if the
-
Started using Mail but didn't really care for it. Switched to Netscape, and after a few weeks decided it was too slow and too crash-y. Got somewhat used to Mail and then decided to import emails from Netscape. Don't recall exactly the folders I had b