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

Updating Extrators-- EXIT_SAPLRSAP_001

What development constructs are people using to update custom fields in extractors? I can think of three here. Each has pluses and minues:

1)

CASE I_DATASOURCE.

WHEN '2LIS_11_VAHDR'.

include zvahdr. "has code directly

WHEN '2LIS_11_VAITM'.

include zvaitm.

etc.

2)

CASE I_DATASOURCE.

WHEN '2LIS_11_VAHDR'.

  • where the "form" routine is part of function group

PERFORM FILL_VAHDR TABLES C_T_DATA.

3)

CASE I_DATASOURCE.

WHEN '2LIS_11_VAHDR'.

  • where the "form" routine is in a separate ABAP

PERFORM FILL_VAHDR TABLES C_T_DATA IN PROGRAM ZFILLHD.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 07, 2004 at 09:02 PM

    Hello Kenneth,

    this is a good question. Most of the time I have seen option 1. However, the disadvantage of options 1 and 2 is that you share (global) variables. A clean solution is option 3 but using CALL FUNCTION. It's better than PERFORM since parameters are defined and checked much thoroughly and you have a clean separation of the code.

    Regards,

    Marc

    SAP NetWeaver RIG, US BI

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2004 at 07:30 AM

    Hi Kenneth,

    Marc is right, the best solution is to create fm for the enhancement of each extractor.

    regards

    Siggi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      By the way the biggest reason to use 3) or a FM instead of 1 or 2 is that you don't have problems with transports because different projects and maintenance can transport their exits independent of each other.

      Best regards

      Dirk

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.