Skip to Content
author's profile photo Former Member
Former Member

User Exit

Moved by moderator to correct forum: please in future also use a more meaningful subject for your questions.

Hi Friends....

i displayed a report in ck11n transation code when user select the bellow path.

Path : in Menu tool bar Cost-> User exit display-> Cost Report 2.

my exit is : SAPLXCKA & Function Module is : EXIT_SAPLCKAZ_002 & Inclue is ZXCKAU02.

I Dispalyed body output in REUSE_ALV_GRID_DISPLAY.

Problams :

1. But how to displayed Header & Footer in output layouy.

Note : when i wrote Form & End form statement we got a error. that is

Incorrect nesting :Before the statement the form, the structure interduced by "FUNCTION" must be concluded by "ENDFUNCTION".

Edited by: Matt on Nov 12, 2008 10:09 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2008 at 04:44 AM

    Hi

    create a program (executable or subroutine pool type) and define your subroutine there.

    call that subroutine in your exit : perform <routine name> IN PROGRAM <program name> IF FOUND.

    thanks

    vishal kapoor

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2008 at 02:24 AM

    Seems you are writing a form routine in ZXCKAU02m which is not allowed as it is within function.. end function. You need to see what you want to do , and remopve form routine from that include

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.