on 11-13-2007 3:42 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Siegfried Szameitat I was not able to debug my changes in smod. Creating an object in cmod and activating it is the answer to my problem. Thanks.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.