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

Problem in 'EXIT_SAPLRSAP_001' fm

Hi all ,

I have a problem with function 'EXIT_SAPLRSAP_001' .

I want to add new field in datasource . Steps I followed ;

1. Adding field (zzverpr ) to MC13VD0ITM with append structure

2. Activating 'EXIT_SAPLRSAP_001'

3. Creating ZXRSAU01 include

4. writing codes as follows ;

DATA : l_s_mc13vd0itm LIKE mc13vd0itm .

DATA : zverpr LIKE mbew-verpr ,

l_tabix LIKE sy-tabix.

CASE i_datasource.

WHEN '2LIS_13_VDITM'.

LOOP AT c_t_data INTO l_s_mc13vd0itm .

l_tabix = sy-tabix.

CLEAR zverpr .

SELECT SINGLE verpr FROM mbew INTO zverpr

WHERE matnr EQ l_s_mc13vd0itm-matnr AND

bwkey EQ l_s_mc13vd0itm-werks .

l_s_mc13vd0itm-zzverpr = zverpr .

MODIFY c_t_data FROM l_s_mc13vd0itm INDEX l_tabix.

ENDLOOP.

ENDCASE.

But it didn't work 😔 . When I filled the setup table ( Application-Specific Setup of Statistical Data - SD-Billing Documents - Perform Setup ) there are no data in this field . And I am sure that it must be . Where is the problem , can anyone help me ?

Thanks a lot

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2007 at 03:52 PM

    Hi,

    did you try to run the datasource in rsa3? Did you add the enhancement to a project via transaction cmod? Did you activate the project?

    regards

    Siggi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2007 at 03:53 PM

    Hi Ertan,

    Your procedure looks good. Clear l_tabix before the end of loop and see if the data appears. I feel in your case, it is not getting cleared and the first record must be getting all the updates. So, "Clear l_tabix" must be the last statement befoer "Endloop". Hope it elps.

    Thanks and Regards

    Subray Hegde

    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.