0% found this document useful (0 votes)
15 views

Exit Code

The document discusses exit modules in SAP that can be used for enhancement when required information is not available in standard structures. It provides implementation steps for creating a function module for a custom exit node, including assigning the exit module to the node and testing the app.

Uploaded by

phanindra gadde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Exit Code

The document discusses exit modules in SAP that can be used for enhancement when required information is not available in standard structures. It provides implementation steps for creating a function module for a custom exit node, including assigning the exit module to the node and testing the app.

Uploaded by

phanindra gadde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Standard Structures

FPAYH
FPAYHX
FPAYP

Whne to go for Exit-Module

if your required information is not availabe in above 3 structure then we can go


for Exit-Module.

Exit-Modules Give by SAP FOR Enhancemnet

----DMEE_EXIT_TEMPLATE or
----DMEE_EXIT_TEMPLATE_EXTENDED

Implementation Steps

. Create Node in DMEE and select Exit - in Mapping ------ and note down the
NODE_ID of the newly added node

1. Create Function Group from SE80----------Function Group Name Should Start


with Z or Y only.

ZUDEMY_DME

2. Go To SE37 ---- COPY and Create Your Own Function Module

DMEE_EXIT_TEMPLATE_EXTENDED

FM_FOR_DME_UDEMY

3. Go to SE37 ----- Enter Newly Created Function Modules (FM )and paste the
code and --------Activate.

4. assign Exit module for step-1 node under source

5. Test APP-DME

N_0078934760
----------------------------------ABAP_CODE---------------------------

* PLEASE REPLACE THE NODE_ID in below code-- Take from step 1 of above.

FIELD-SYMBOLS <I_ITEM> TYPE DMEE_PAYM_IF_TYPE.

ASSIGN I_ITEM TO <I_ITEM>.

DATA: V_PHONE TYPE LFA1-TELF1.


CASE I_EXTENSION-NODE-NODE_ID.
WHEN 'N_0078934760'.

SELECT SINGLE TELF1 FROM LFA1 INTO V_PHONE


WHERE LIFNR = <I_ITEM>-FPAYH-GPA1R." VENDOR NUMBER

IF SY-SUBRC EQ 0.

O_VALUE = V_PHONE.

ENDIF.
ENDCASE.

You might also like