Application Development and Automation 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: 
Read only

How to add my own logic in INCLUDE Program which is in Function Module Exit

Former Member
0 Likes
1,560

Dear Experts,

How to add my own logic in INCLUDE Program which is in Function Module Exit?

I need to add my own logic and add some extra fields to Function Module Exit ,which contains import and export parameters and I used these values to reflect the Function modules export parameters.

FM Exit is : EXIT_SAPLEL40_002

I used one of the FM parameter in include program but it is shwoing error "doesnt exist". If I created new parameter with the same name it shows error "already exist". How to do it?

Please help me out.

Thank in advance.

SEkhar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,267

Hi

It depends on when you get that error, the system can raise that error only if you insert an import/export parameter into a FORM, in this case you should use a global data in order to transfer a value from import/export parameter to the FORM.

If you use the import/export parameter directly in the include ZX..... u shouldn't get that error, in this case try to update navigation index.

Max

Hi

It depends on when you get that error, the system can raise that error only if you insert an import/export parameter into a FORM, in this case you should use a global data in order to transfer a value from import/export parameter to the FORM.

If you use the import/export parameter directly in the include ZX..... u shouldn't get that error, in this case try to update navigation index.

Max

6 REPLIES 6
Read only

Former Member
0 Likes
1,267

hi chandra sekar,

You have to create the include <b>zxel4u02</b> and write your logic inside that.

The parameter available in the FM exit EXIT_SAPLEL40_002 are;

*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     REFERENCE(X_DEVLOC) TYPE  EGPL
*"     REFERENCE(X_OBJ) TYPE  ISU17_SR_DATA OPTIONAL
*"  EXPORTING
*"     REFERENCE(Y_ADDITIONAL_OUTPUT) TYPE  STREETROUTE_CUSTOMER_TEXT
*"  EXCEPTIONS
*"      ERROR_MESSAGE
*"----------------------------------------------------------------------

So you can use fields from X_DEVLOC(Device location Structure) and Object type X_OBJ only, and you can export Y_ADDITIONAL_OUTPUT.

For Which field you are getting Error and what are you doing in your code, if possible reply with the segment of code which is throwing error.

Regards

Karthik D

P.S.: If useful, Reward Points...

Read only

0 Likes
1,267

Hi karthik,

I am facing a critical problem with this.

I need to add 2 fields to EL41 Tcode. 1st screen we need to enter MR unit then press enter. it will display the Tree route for Connection object and Device location.

I need to add (displa) 1 extra field data (adrc-street2) along with Connection object value.

EXIT_SAPLEL40_002 - Display Additional Fields at Device Location Level

EXIT_SAPLEL40_003 - Display Additional Fields at Connection Object Level

I added some code into it, but it is not reflecting anything. please look into it.

its urgent please

mails me: [email protected]

thanks

Sekhar

Read only

0 Likes
1,267

Hi chandrasekar,

have u put a breakpoint and checked that?

Regards

Karthik D

Read only

Former Member
0 Likes
1,268

Hi

It depends on when you get that error, the system can raise that error only if you insert an import/export parameter into a FORM, in this case you should use a global data in order to transfer a value from import/export parameter to the FORM.

If you use the import/export parameter directly in the include ZX..... u shouldn't get that error, in this case try to update navigation index.

Max

Read only

Former Member
0 Likes
1,267

resolved.

Read only

Former Member
0 Likes
1,267

resolved