100% found this document useful (1 vote)
426 views5 pages

RE FRICE Specification Consignment PO Release Strategy1

This document describes a release strategy issue with consignment purchase orders (POs) in SAP. When creating a consignment PO, the PO cannot be released or goods received due to missing price information. The solution is to modify the EXIT_SAPLEBND_002 user exit to retrieve the price from the consignment info record table and calculate the total order value for release strategy evaluation. Sample ABAP code is provided to retrieve the price and calculate the total value in the user exit.

Uploaded by

sudhakp
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
426 views5 pages

RE FRICE Specification Consignment PO Release Strategy1

This document describes a release strategy issue with consignment purchase orders (POs) in SAP. When creating a consignment PO, the PO cannot be released or goods received due to missing price information. The solution is to modify the EXIT_SAPLEBND_002 user exit to retrieve the price from the consignment info record table and calculate the total order value for release strategy evaluation. Sample ABAP code is provided to retrieve the price and calculate the total value in the user exit.

Uploaded by

sudhakp
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

SAP REIMPLEMENTATION FRICE Specification

Title: Release Strategy to be triggered based on value in Consignment PO's (MM)

Object ID: RE0058


Version :1.0

Document Details
Object Id RE0058 Description

:
Owner ( Functional consultant) Manoj Technical Consultant Gnaneswari Kumaresan

Release Strategy to be triggered based on value in Consignment PO's

Transport Request DREK900227

Program Name ZMM_MPNA ( CMOD)

T-code ME21N , ME22N , ME23N

Page 1 of 5 Created on <date> TCS-RE Confidential/Proprietary Information

SAP REIMPLEMENTATION FRICE Specification

Title: Release Strategy to be triggered based on value in Consignment PO's (MM)

Object ID: RE0058


Version :1.0

1.Functional Specification
Standard Process for Consignment PO: While creating a consignment purchase order, when trying to release the PO, it throws error message like "Purchasing Document xxxxxxxx cannot be released". So, after skipping this step. Then, trying to goods receipt, it throws error message "Purchasing Document xxxxxx not yet released". A consignment info record contains information on a material that vendors keep available at their own cost on the orderers premises. The info record contains the vendors price for withdrawals by the orderer from consignment stock. As in the case of the pipeline info record, can store prices for different validity periods. Analysis : o So when we create a Po with item category K the price is null. o Finally in release strategy may have characteristics based on price (CEKKO-GNETW) that is the reason release is not firing. o Similarly when creating without item category K system is finding a price (CEKKO-GNETW) and firing release strategy. The following tables for purchase info record and condition details stored.
= > EINA, EINE.

Solution : The Consignment PO price specified in the Info Record was 'pulled' into PO subject to the User Exit EXIT_SAPLEBND_002 in M06E0004 where the system will check in ZXM06U22 to define the value for the Consignment PO.

SAP Notes :

Page 2 of 5 Created on <> TCS - RE Confidential/Proprietary Information

SAP REIMPLEMENTATION FRICE Specification

Title: Release Strategy to be triggered based on value in Consignment PO's (MM)

Object ID: RE0058


Version :1.0

1775812 - Release strategy for purchase orders with itemcategory consignm ent does not consider value.pdf

2.Technical Specification
Logic and Data Flow
Find the User Exits using Transaction code SE84. Find the Application Package or Development class for the required development. Go to SE84 Transaction code, in the left corner of the Navigation, Enhancements option will be there find User Exits. Select the option Customer Exits, Double click it will show one screen on the right side of the same window and provide the package name. Then press F8 Or Execute, Then it will show the available list of user Exits available for the particular transaction ME21N, then select M06E0004 which is suitable for getting line items of ME21N. Now go to T-code CMOD, create a Project name ZMM_MPNA. Then click on Enhancement Assignments button, provide the M06E0004 under enhancement title Now click on Components Button. It will provide the Function Exits used. Double click on the Function Exit EXIT_SAPLEBND_002 and write the below code in the include zxm06u22. TYPES : BEGIN OF ty_eine, infnr TYPE eine-infnr, werks TYPE eine-werks, ebeln TYPE eine-ebeln, ebelp TYPE eine-ebeln, netpr TYPE eine-netpr, END OF ty_eine. DATA : gt_bekpo TYPE mmpur_bekpo, gs_bekpo TYPE bekpo, gv_werks TYPE werks_d, gv_ebeln TYPE ebeln, gv_bsart_ret TYPE bsart, gv_lifnr TYPE lifnr.

Sample code written inside the User-exit.

" PO number

Page 3 of 5 Created on <> TCS - RE Confidential/Proprietary Information

SAP REIMPLEMENTATION FRICE Specification

Title: Release Strategy to be triggered based on value in Consignment PO's (MM)

Object ID: RE0058


Version :1.0

*** To resolve CEKKO-GNETW for Release Strategy for consigment PO ***** DATA: gv_tot_gnetw LIKE i_cekko-gnetw. "Total net order value DATA : gt_eine gs_eine TYPE STANDARD TABLE OF ty_eine, TYPE ty_eine.

IF sy-ucomm = 'MESAVE' OR sy-ucomm = 'MECHECKDOC'. *** To resolve CEKKO-GNETW for Release Strategy for consigment PO ***** CLEAR : gv_tot_gnetw. IF gt_bekpo[] IS NOT INITIAL. SELECT infnr werks ebeln ebelp netpr FROM eine INTO TABLE gt_eine FOR ALL ENTRIES IN gt_bekpo WHERE infnr = gt_bekpo-infnr AND ekorg = i_cekko-ekorg AND werks = gt_bekpo-werks AND esokz = 2. IF sy-subrc = 0. LOOP AT gt_bekpo INTO gs_bekpo. READ TABLE gt_eine INTO gs_eine WITH KEY ebelp = gs_bekpo-ebelp. IF sy-subrc = 0 AND gs_bekpo-pstyp = 2. gv_tot_gnetw = gv_tot_gnetw + ( gs_eine-netpr * gs_bekpo-menge ) . ENDIF. ENDLOOP. i_cekko-gnetw ENDIF. ENDIF. ENDIF. e_cekko = i_cekko.
Page 4 of 5 Created on <> TCS - RE Confidential/Proprietary Information

= gv_tot_gnetw.

SAP REIMPLEMENTATION FRICE Specification

Title: Release Strategy to be triggered based on value in Consignment PO's (MM)

Object ID: RE0058


Version :1.0

Page 5 of 5 Created on <> TCS - RE Confidential/Proprietary Information

You might also like