Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

logic

Hi ALL,

There is a FUNCTION EXIT.

FUNCTION EXIT_SAPMM06E_012.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(I_EKKO) LIKE EKKO STRUCTURE EKKO

*" VALUE(I_TRTYP)

*" VALUE(I_BSTYP) LIKE EKKO-BSTYP

*" VALUE(I_NO_SCREEN)

*" VALUE(I_LFA1) LIKE LFA1 STRUCTURE LFA1

*" VALUE(I_LFM1) LIKE LFM1 STRUCTURE LFM1

*" VALUE(I_KEKKO) LIKE EKKO STRUCTURE EKKO

*" VALUE(I_AEKKO) LIKE EKKO STRUCTURE EKKO

*" VALUE(I_REKKO) LIKE EKKO STRUCTURE EKKO

*" VALUE(I_CI_EKKO) LIKE EKKO_CI STRUCTURE EKKO_CI

*" VALUE(I_VORGA) LIKE T160-VORGA

*" TABLES

*" TEKPO STRUCTURE BEKPO OPTIONAL

*" TEKET STRUCTURE BEKET OPTIONAL

*" TEKKN STRUCTURE EKKNU OPTIONAL

*" TKOMV STRUCTURE KOMV OPTIONAL

*" CHANGING

*" VALUE(C_CI_EKKO) LIKE EKKO_CI STRUCTURE EKKO_CI OPTIONAL

*"----


INCLUDE ZXM06U43 .

ENDFUNCTION.

Requirement is this

Logic to compare the PO with reference to PR:

When user is creating a Purchase order with tcode ME21N, he creates a PO with reference to PR as per the present validation.

The Purchase requisition number is key in the field u201CBANFNu201D and item in filed u201CBNFPOu201D and the PO price in the field NETPR net price.

Steps:

1.Goto EBAN table , pass the BANFN to eban-banfn and BNFPO to eban-bnfpo fetch the details PREIS i.e unit price.

2.compare the price obtained from table EBAN with the price from the PO screen u201CNETPRu201D

3.This price u201CNETPR u201Cshould lie in the tolerance range between u201C10%u201D upper and lower limits.

who to write logic in INCLUDE ZXM06U43 .

pls can you help

Thanks

Ravi

Former Member
Not what you were looking for? View more on this topic or Ask a question