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

Extend Idoc INVOICE02 - User exit ZXEDFU02

Hi All,

I am trying to extend a standard Idoc – <b>INVOICE02</b> with custom segment. I am trying to implement enhancement “LVEDF001” and FM “EXIT_SAPLVEDF_002”. But when I try to insert a program logic into program “ZXEDFU02” it complains “Statement not accessible” I am not sure what I am doing wrong here. Have anyone used this enhancement and any ideas?

Sample code will be very helpful, since this is the first time I am working on Idoc enhancement. Thank in advance.

Regards,

Tim

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2006 at 04:24 AM

    code please.

    Regards

    Prabhu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2006 at 04:32 AM

    Saple Code:

    ----


    • INCLUDE ZXEDFU02 *

    ----


    data: ls_ka1 like e1edka1,

    ls_edidd like edidd,

    l_lines type i.

    describe table int_edidd lines l_lines.

    check l_lines ne 0.

    read table int_edidd into ls_edidd index l_lines.

    check ls_edidd-segnam eq 'E1EDKA1' and

    ls_edidd-sdata(2) eq 'RS'.

    ls_ka1-parvw = 'ZC'.

    case xvbdkr-bukrs.

    when '1000'.

    ls_ka1-lifnr = '41010005823845840'.

    when others.

    exit.

    endcase.

    ls_edidd-sdata = ls_ka1.

    append ls_edidd to int_edidd.

    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.