Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

change values on a PO

Former Member
0 Kudos

Hi everyone,

I'm looking for a way to change default values on a PO.The clients wants that the delivery date is created automatically (e.g. 12 days after the current date). I tried with the user exit MM06E005, but I don 't seem to be able to change any values...

Does someone has an idea on how to do this ?

thanks !

kr

Björn

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Here are the user exits available for creating PO.

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

M06B0004 - Number range and document number

M06B0005 - Changes to comm. structure for overall release of requisn.

M06E0004 - Changes to communication structure for release purch. doc.

M06E0005 - Role determination for release of purchasing documents

ME590001 - Grouping of requsitions for PO split in ME59

MEETA001 - Define schedule line type (backlog, immed. req., preview)

MEFLD004 - Determine earliest delivery date f. check w. GR (only PO)

MELAB001 - Gen. forecast delivery schedules: Transfer schedule implem.

MEQUERY1 - Enhancement to Document Overview ME21N/ME51N

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

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

Badi's available:

EXTENSION_US_TAXES Extended Tax Calculation with Additional Data

ME_ACTV_CANCEL_PO BAdI for Activating the Cancel Function at Header Level

ME_BAPI_PR_CHANGE_01 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Chan

ME_BAPI_PR_CHANGE_02 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Chan

ME_BAPI_PR_CREATE_01 BAdI: Enjoy BAPIs for Purchase Requisitions

ME_BAPI_PR_CREATE_02 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Crea

ME_BSART_DET Change document type for automatically generated POs

ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant

ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standa

ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation

ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO

ME_CHECK_SOURCES Additional Checks in Source Determination/Checking

ME_CIN_LEINRF2R BADI for CIN India - Delivery charges

ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details

ME_CIN_MM06EFKO Copy PO data for use by Country version India

ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control

ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active

ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders

ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions

ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields

ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order

ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation

ME_PO_SC_SRV BAdI: Service Tab Page for Subcontracting

ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Cust

ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Custom

ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer

ME_PURCHDOC_POSTED Purchasing Document Posted

ME_RELEASE_CREATE BAdI: Release Creation for Sched. Agreemnts with Rel. Do

ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions

ME_REQ_POSTED Purchase Requisition Posted

ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address

ME_TRIGGER_ATP Triggers New ATP for Changes in EKKO, EKPO, EKPV

MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Orde

SMOD_MRFLB001 Control Items for Contract Release Order

Regards,

Satish

5 REPLIES 5

Former Member
0 Kudos

hi Dimol,

Try with this User Exit "EXIT_SAPMM06E_017".

In this there are table structure where you can pass values of delivery date....

BEKPO-EINDT

- Transfer Structure Items for Purchasing Documents

The above field is for item delivery date....which is more than enough.....

The below on is for Schedule line, which is not required. if you will update above one then below structure field will update automatically.....

BEKET-EINDT

- Tfr. Structure Sch. Lines for Ord. Acceptance Confirmations

the code should be:

BEKPO-EINDT = ( sy-datum + 12 ) .

reward points.....

Cheers,

Enjoy....

Sagun Desai...

Former Member
0 Kudos

Hi,

You can try with the user exit - MM06E007 and in that function module exit - EXIT_SAPMM06E_020.

Reward if it is useful.

Thanks,

Srinivas

Former Member
0 Kudos

Hi,

Here are the user exits available for creating PO.

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

M06B0004 - Number range and document number

M06B0005 - Changes to comm. structure for overall release of requisn.

M06E0004 - Changes to communication structure for release purch. doc.

M06E0005 - Role determination for release of purchasing documents

ME590001 - Grouping of requsitions for PO split in ME59

MEETA001 - Define schedule line type (backlog, immed. req., preview)

MEFLD004 - Determine earliest delivery date f. check w. GR (only PO)

MELAB001 - Gen. forecast delivery schedules: Transfer schedule implem.

MEQUERY1 - Enhancement to Document Overview ME21N/ME51N

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

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

Badi's available:

EXTENSION_US_TAXES Extended Tax Calculation with Additional Data

ME_ACTV_CANCEL_PO BAdI for Activating the Cancel Function at Header Level

ME_BAPI_PR_CHANGE_01 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Chan

ME_BAPI_PR_CHANGE_02 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Chan

ME_BAPI_PR_CREATE_01 BAdI: Enjoy BAPIs for Purchase Requisitions

ME_BAPI_PR_CREATE_02 BAdI: Enjoy BAPIs for Purchase Requisitions (Method Crea

ME_BSART_DET Change document type for automatically generated POs

ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant

ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standa

ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation

ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO

ME_CHECK_SOURCES Additional Checks in Source Determination/Checking

ME_CIN_LEINRF2R BADI for CIN India - Delivery charges

ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details

ME_CIN_MM06EFKO Copy PO data for use by Country version India

ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control

ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active

ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders

ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions

ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields

ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order

ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation

ME_PO_SC_SRV BAdI: Service Tab Page for Subcontracting

ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Cust

ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Custom

ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer

ME_PURCHDOC_POSTED Purchasing Document Posted

ME_RELEASE_CREATE BAdI: Release Creation for Sched. Agreemnts with Rel. Do

ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions

ME_REQ_POSTED Purchase Requisition Posted

ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address

ME_TRIGGER_ATP Triggers New ATP for Changes in EKKO, EKPO, EKPV

MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Orde

SMOD_MRFLB001 Control Items for Contract Release Order

Regards,

Satish

Former Member
0 Kudos

Hi,

eventually, I solved it by using the processitem from the BADI. I update the field eindt and eeind.

thanks everyone for the help !

kr

Björn

0 Kudos

I know this is old post, but could you post the code sample solution?

thanks.