RE FRICE Specification Consignment PO Release Strategy1

6
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 Description Owner ( Functional consultant) Technical Consultant RE0058 Release Strategy to be triggered based on value in Consignment PO's Manoj Gnaneswari Kumaresan Transport Request Program Name T-code DREK900227 ZMM_MPNA ( CMOD) ME21N , ME22N , ME23N Page 1 of 6 Created on <date> TCS-RE Confidential/Proprietary Information

description

mm

Transcript of RE FRICE Specification Consignment PO Release Strategy1

Page 1: RE FRICE Specification Consignment PO Release Strategy1

SAP REIMPLEMENTATIONFRICE Specification

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

Object ID: RE0058Version :1.0

Document Details :

Object Id

Description Owner ( Functional consultant)

Technical Consultant

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

Manoj Gnaneswari Kumaresan

Transport Request Program Name T-codeDREK900227 ZMM_MPNA ( CMOD) ME21N , ME22N , ME23N

Page 1 of 5Created on <date>

TCS-RE Confidential/Proprietary Information

Page 2: RE FRICE Specification Consignment PO Release Strategy1

SAP REIMPLEMENTATIONFRICE Specification

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

Object ID: RE0058Version :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 orderer’s premises. The info record contains the vendor’s 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 5Created on <>

TCS - RE Confidential/Proprietary Information

.

Page 3: RE FRICE Specification Consignment PO Release Strategy1

SAP REIMPLEMENTATIONFRICE Specification

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

Object ID: RE0058Version :1.0

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.

Sample code written inside the User-exit.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,              " PO number       gv_bsart_ret  TYPE  bsart,       gv_lifnr      TYPE  lifnr.

Page 3 of 5Created on <>

TCS - RE Confidential/Proprietary Information

.

Page 4: RE FRICE Specification Consignment PO Release Strategy1

SAP REIMPLEMENTATIONFRICE Specification

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

Object ID: RE0058Version :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         TYPE STANDARD TABLE OF ty_eine,       gs_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  = gv_tot_gnetw.    ENDIF.

  ENDIF.

ENDIF.

Page 4 of 5Created on <>

TCS - RE Confidential/Proprietary Information

.

Page 5: RE FRICE Specification Consignment PO Release Strategy1

SAP REIMPLEMENTATIONFRICE Specification

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

Object ID: RE0058Version :1.0

e_cekko =  i_cekko.

Page 5 of 5Created on <>

TCS - RE Confidential/Proprietary Information

.