cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in 'EXIT_SAPLRSAP_001' fm

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Subray ,

I tryied your suggestion . But It didn't work .

And when I debug it from rsa3 , I think system didn't enter the include ZXRSAU01 .

Because I puted break-point , but it didn't stop ..............

Any suggestion ?

Thnks

Former Member
0 Kudos

Hi Ertan,

I have the same doubt as the others if your project is active at all. Please try to see if your project in which the enhancement is included is active (CMOD).

Thanks and Regards

Subray Hegde

Former Member
0 Kudos

Hi again ,

Thanks for all , problem is solved . Just activated it again

manju_manjunatha
Participant
0 Kudos

Hi Ertan,

   When add any field to data source, at first it will be hide only. You have to unhide those fields in edit of datasource.

Thanks,

Manjunatha.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi ,

Thanks for reply ,

Yes I did all . But is it necessary to activate all exits ? I mean ( EXIT_SAPLRSAP_001 , 2 , 3 , 4 ) .

I used only this one ( EXIT_SAPLRSAP_001 ) and didn't activate others.

Thnks

Former Member
0 Kudos

Hi,

this has nothing to do with the function modules within the enhancement. You just have to goto transaction cmod. Create a project, if enhancement RSAP0001 isn't already assigned to one, and assign rsap0001 to that project. Activate the project.

That's it.

regards

Siggi

Former Member
0 Kudos

Hi ,

I did it also . I think I should reactive it ?

thnks

vishal_agrawal3
Participant
0 Kudos