User Exit to add line item in Purchase Order
Hi SAP Gurus,
Can any body tell me which user exit is used to add the line items in Purchase Order. I want to link the Packaging material (material type - VERP) to the header material (Material type - FERT) in PO for order type NB or UB. Because our requirement is what, when we enter the finished material in PO then packaging material linked with that finished material should automatically comes into PO as a line item.
Please help me for the same.
Thanks in Advance.
Regards,
Sujay
Hi,
You can use Function Module for this requirement.
BAPI_PO_GETDETAIL1
Bye,
Muralidhara
Similar Messages
-
To add line items to sales order using User exit.
Hi ,
I have to add line items to sales order .
I have tried adding the code in usr exit move field _VBAP // Check VBAP and in savedocument _prepare . But in all the places I dont see it in VA01 . I can see it in the VA02 and VA03 . But I am not able to save the order as they have made the flooring term as mandatory field, and I am supposed to populate the XVBKD structure for this.
Pls tell me whts the procedure like say , should I popluate the XVBKD / XVBAP / and should i use the bapi_SALES_ITEM_CHECK to populate the structures at the save_document prepare.Hi,
1. It is not possible to delete records using DTW, only importing new records or updating existing ones are supported. These are the only valid operations via DTW.
2. It is possible to delete the contents of an edit text field by using the character / or -1. However it is not possible to clear an entire row/line using this notation.
Thanks & Regards,
Nagarajan -
Automatically add line-items to Sales order
Hello,
Our client needs us to add line items to sales orders. The requirement is such that, when the users enter a material on a line item, they wish to see few more materials automatically added as new line items -- item category to be maintained as "Free" items. This appears similar to automatically getting BOM-sub-items for materials which have BOMs maintained. The client is not willing to maintain BOMs for materials in question. They instead have asked us to maintain sub-item materials in a Z-table and then fetch those to populate the subsequent line-items on the sales order.
So far, we have tried to fiddle around with the XVBAK and XVBAP internal tables in sales exit (MV45AFZZ) and also tried to use BAPI within the same exit. Both methods do not work.
Could you please guide us ? Thank you.
Regards,Hi,
I think you can try with product proposal(Item Proposal). T.Code:VA51.
Using this one can create list of items to be proposed at the time sales order processing.
Item proposal contains list of items with or without default quantities those were frequently ordered by the customer. You can create any no of items in an Item proposal.Like wise you can create any no.of item proposals.
But,You can assign only one item proposal per customer in sales tab of the CMR.So that when ever you are creating order for that customer you can access those materials which are listed in an Item proposal completely or selectively,with or without default quantities.
The items which are proposed from an Item proposal are always changeable.
Item proposal makes sales order processing simple and fast.
Only the thing here is it will not automatically explode like in case of BOM.You have to manually select those items from an item proposal.
Regards,
Revan
Edited by: REVAN on Dec 23, 2008 10:55 AM -
Automatically add line-items to sales orders
Hello,
Our client needs us to add line items to sales orders. The requirement is such that, when the users enter a material on a line item, they wish to see few more materials automatically added as new line items -- item category to be maintained as "Free" items. This appears similar to automatically getting BOM-sub-items for materials which have BOMs maintained. The client is not willing to maintain BOMs for materials in question. They instead have asked us to maintain sub-item materials in a Z-table and then fetch those to populate the subsequent line-items on the sales order.
So far, we have tried to fiddle around with the XVBAK and XVBAP internal tables in sales exit (MV45AFZZ) and also tried to use BAPI within the same exit. Both methods do not work.
Could you please guide us ? Thank you.
Regards,Ist method:
Maintain one Ztable with the fields of Material and sub materials.
write BDC to create order,before entering the material number check if material is existed in Ztable or not.
If it exist take that material and added as a another line item.
if not exist create like normal line item.
2 nd method:
Ask your MM functional consultant to maintain supression of materials concept. -
NEED VL02N VL09 USER-EXIT FOR DELIVERY COMPLETE INDICATOR IN PURCHASE ORDER
I NEED VL02N VL09 USER-EXITS FOR DELIVERY COMPLETE INDICATOR IN PURCHASE ORDER POSITIONS.
F.X: IF POST QUANTITY 10, BUT PURCHASE ORDER POSITION QUANTITY 30, I NEED AT ANY CASE TO SET DELIVERY COMPLETE INDICATOR FOR RELEVANT OUTBOUND DELIVERY AN P. ORDER POSITIONS.
THANKS/Hi Malka,
It's possible set the system to mark automatically the delivery completed indicator.
First you need to set the under delivery and over delivery tolerances.You do this in customizing:
Materials Management under Purchasing -> Material Master -> Define Purchasing Value Keys.
Once you set this, you can insert this value keys on Material Master Record for the materials.
When you create the PO with a material with this value keys set the system will check the under delivery and over delivery set on customizing.
In customizing you also have the option to let the system mark automatically the delivery indicator based on delivery tolerances set.
In Customizing for Inventory Management and Physical Inventory under Goods Receipt -> Set Delivery Completed Indicator, you can determine for each plant whether the system automatically sets the delivery completed indicator for delivery quantities within the underdelivery and overdelivery tolerances.
You can test setting the under delivery for 0 (with a warning message) and see if the system will only mark delivery complete only for over delivery.
You can also work with the following Badi: MB_GOODSMOVEMENT_DCI. This Badi also allows custom logic for setting the delivery completed indicator in a PO item.
Message: M7 433 (The "delivery completed" indicator is set for the purchase order item)
Regards,
Rodrigo -
Delete the perticuler Line Items of PURCHASE ORDERS.
Hi Friends,
i want delete the perticuler Line Items of PURCHASE ORDERS.
EXAMPLE :
I HAVE ONE PO : 2000010.
IT HAVING 10 LINE ITEMS. LIKE 1 , 2 , 3 , 4 ,5 ,6 ,7 ,8 ,9 , 10.
FOR THIS PO , I WANT DELETE THE 5TH LINE ITEM.
MEAN FOR PERTICULAR PO I WANT DELETE ITS SPECIFIC LINE ITEM NO.
ANYBODY EXPLIAN..
THANKSAre you looking to do this from an ABAP program or from the PO Screens? EKPO does have a field for the Deletion Indicator. Is there a reason why you would choose to do this from an ABAP program rather than the ME22n?
-
How to add line item to sales order item table?
Kindly help me the with the below requirement .
Add line item to sales order(va01) dynamically on click of button. The button is also custom created push button.
In the above requirement I have added the pushbutton to va01 tcode. But when I click on that button I need to add line item to sales order item table.
I tried a lot but I am not successful. If possible can u please help on this.
Regards,
RachelHi!
It's quite easy even in the standard SAP to add a line item for a customer order, I don't think it worth to develop a new button for this.
However if you wanted to add a line automatically, the you can do the following in the program MV45AFZZ, FORM USEREXIT_SAVE_DOCUMENT.
You can use similar code, but with some modifications.
DATA: lv_posnr.
LOOP AT xvbap.
MOVE xvbap-posnr TO lv_posnr. "get the last posnr
ENDLOOP.
ADD 10 TO lv_posnr.
MOVE 'XYZ' TO xvbap-matnr. "enter your material number here
MOVE lv_posnr TO xvbap-posnr.
* fill additinal field data in XVBAP if necessary
MOVE 'I' TO xvbap-updkz. "Insert line
APPEND xvbap.
Regards
Tamá -
User exit at the time of saving purchase order
Hi experts
There are some plants for which we need to auto GR. Is there any user exit available which will check these plants in PO at the time of saving PO document and do auto GR.
RegardsEnhancement
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MM06E011 Activate PReq Block
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
User exit for me21n -
Add Line Item In Sales Order VA01
HI All,
I have new requirement in creation of sales order . Here we have free promotion sales . Here if customer buy one material then he will get some other material as free .In standard sap we can give only one line item as free not more than that .
Here our requirement is more than one line item . I suggested them maintain all the free materials in one Ztable when ever the original material will come for sales order then i have to fetch these materials from ztable automatically and it should create sales order. I started doing this using user exit FORM USEREXIT_MOVE_FIELD_TO_VBAP.
These are the below links i checked in our sdn.
Adding Line items to sales order on creation using User-Exit in VA01.
Please give me some idea on this .
Regards,
Madhu.Hi Asik,
Thanks for your reply.In my case i can not got for Bom because the schemes will change for every ten days. I think Bom creation will fill a lot of data but it wont solve my issue.
Regards,
Madhu. -
F-32 ( User Exit / BTE ) Remove line items depending on condition
Hi Gurus,
When i run F-32 transaction, before the line items are displayed I need to remove certain line items depending on some condition.
Is there any user exit or BTE to do that ?
AviHi,
Try any of the below,
Customer-exit
SAPLF051
RFKORIEX
RFEPOS00
RFAVIS01
FEDI0001
FARC0002
F180A001
F050S001
F050S002
F050S003
F050S004
F050S005
F050S006
F050S007
Business Add-in
FI_RES_ITEM_CURRENCY
FI_TRANS_DATE_DERIVE
BADI_ENJ_ALT_ADR
BADI_F040_SCREEN_600
BADI_FDCB_SUBBAS01
BADI_FDCB_SUBBAS02
BADI_FDCB_SUBBAS03
BADI_FDCB_SUBBAS04
BADI_FDCB_SUBBAS05
RFESR000_BADI_001
BADI_MIRO_SPLT_ADD
BADI_PRKNG_NO_UPDATE
FVFZ
INVOIC_FI_INBOUND
AC_QUANTITY_GET
F050S008
ADJUST_NET_DAYS
FBAS_CIN_LTAX1F02
FBAS_CIN_MF05AFA0
FISPLIT
FI_AUTHORITY_ITEM
FI_DOC_DISP_LI
FI_FB08_SUBST_BUDAT
FI_GET_INV_PYMT_AMT
FI_HEADER_SUB_1300
FI_PAYREF_BADI_010
Regards,
Umang mehta -
Hi,
We have a requirement where the GR-based Inv. Verification flag, at the line item level of a Purchase Order (EKPO-WEBRE) needs to be modified, on the save of a Purchase Order.
Is there any user exit that can be used for achieving this?Hi Adarsh ,
u cannt update by using some user exits , SAP will Automatically update this Fields onces u completed ur GR Verifications.
get some more inputs on this business reuirement,orelse Create a BDC to Update ?
or u can use BAPI BAPI_PO_CHANGE. See the Documentation for more info.
Regards
Prabhu -
Substitution for text of line items in purchase order
Hi everyone,
I have this requirement: suppose we create a purchase order, and that this PO is posted to a new (or yet existing) fixed asset. We must update the text in the line item of the PO with some information of the asset (new or existing).
Any BAdI's/user-exits/enhancements to do so?
Any help will be appreciated. Best regards,
AlvaroFinally I decided to repair a standard object to do such substitution
-
User forgot to add delivery costs to purchase order
Got a user that forgot to add delivery costs to a purchase order, now it has been GR and IRd, now they want to add the delivery costs, of course they have to reverse the IR and possibly the GR as well, go to change mode and add this missing condition manually
any other options for doing this?? dont think the invoice has been paid yet
ThanksDear Mark Ojo.
Try to think of this missing activity, User/Client can mistake/forget this delivery cost
at anytime. so, you can consider for solving this missing amount as below ;
- If already this finished the GR and IR procedures, (but invoice has not been paid yet),
best way is also cancellation of entire posted document, but i think that you just try to
apply this delivery cost to MIRO (--> Unplanned delivery costs).
1) MIRO --> "Unplanned delivery costs" on the Detail Tab Screen.
If you are using the conventional Invoice Verification component, the system splits up the
delivery costs entered among the individual items, based on the amounts invoiced so far
plus those in the invoice being entered.
If you are using Logistics Invoice Verification, how the unplanned delivery costs are posted
depends on the Customizing settings. There are two possibilities:
- Unplanned delivery costs are split up as in conventional Invoice Verification.
- Unplanned delivery costs are posted in a separate posting line to a G/L account set
up for this.
2) MIRO --> "Subsequent Debit" on the first screen.
Specifies which transaction you can choose "Subsequent Debit" for such as when you
received an invoice from your vendor for delivered goods.Delivery costs are to be charged.
on the other hand, if you received a credit memo for delivered goods(previously charged
delivery costs are to be credited) , you can choose "Subsequent Credit".
Regards,
Jeong, Yeong-Chul -
Idoc to uodate delivery date of line item on Purchase order
Hi All,
Our vendor sends a delivery file consisting of delivery date and quantity(could be partial) for line items of a purchase order.
I need to update the Purchase order line item with the delivery date and quantity sent from the Vendor. It should add a new confirmation line with custom confirmation category in the confirmation tab of the line item in the Purchase order.
Each time we get a delivery file we need to add a new confirmation line in the confirmation tab of the purchase order line item.
How can I get this working using inbound idoc processing? Which Idoc type should I use to solve my issue. Will ORDERSP work for my scenario?
Thank you in advance!
Sonali.Hi,
I don't know about IDOCS, but since your vendor is not using EDI, but rather sends a file, you could right a small program to read the confirmations from the file, using the standard BAPI "BAPI_PO_CHANGE" to actually change the PO accordingly.
Regards,
Mario -
User-Exit OR a BAdi for the Purchase order create.
Hi,
I am looking for a User-Exit or a BAdi which is fired when the Purchase order is being created in the SRM server via Web template. The requirement is as follows:
There is a flag(Check box) at the the item level, Basic Data tab. This flag is called as Unlimited Overdelivery Allowed. It is with the tolerances field. Now I want this flag to be always set for a PO of a material of certain type.
Can anyone tell me which User-Exit OR Badi I should use to always set this flag?
The Technical field name is UNLIMITED.
I tried a lot but could not get any.
Regards,
Deepak.Hi Deepak,
Did you try doc_change badi? THis badi is available in all the bus objects.
thanks,
Ashwin
Maybe you are looking for
-
Moving iWeb site from one computer to another
Hello, I tried looking for an answer to this, but couldn't find one that was specific to this question. I have iWeb on my computer at home, but I've created a site on a friends computer (using iWeb) and want to add this recently created site to my co
-
Why doesn't my new (refurbished) iMac shut down?
All my years using Windows there was a little voice in the back of my head saying "if only you'd switch to Apple you wouldn't have to deal with all these weird things that don't quite work". Now I find that (at least my particular) Apple products sh
-
i have been asked to write an application that print out every file and folder underneath a given point on the hard disk. dont really even know where to start.. help please.
-
RMAN-06023: no backup or copy of datafile 54 found to restore
Hi Edited by: shakilshaikh on May 20, 2011 1:29 AM
-
Error using wait() function
hi friends, i am very new to java so please help me out of this. while using wait() and nullify() i got error like " unreported exception interrupted exception caught or declared to be thrown"" please help me...