Você está na página 1de 4

text datasource enhancement

1 of 4

https://archive.sap.com/discussions/thread/1472537

10/27/2016 10:33 AM

text datasource enhancement

2 of 4

https://archive.sap.com/discussions/thread/1472537

This question is answered

hello guys
I am trying to enhance text datasourcein R3 and got this problem.
I am trying to load texts for infoobject 'material number' fromR3 table MAKT.....I created view on fields
MANDT,MATNR,MAKTX (client,material number,material description) and then created generic datasource
onthis.now I replicated and loaded texts to Infoobject 'Material Number' in BW.
Now I want to enhance text datasource in R3 so that I will add field MAKTG (material description in capital
letters) from MAKT table...I added append structure in extract structure...then I want to write code in
CMOD....Here I choose RSAP0001 enhancement...then EXIT_SAPLRSAP003 for enhancing text
datasource...here there is no code provided by SAP...so wrote my own code..and activated and then
unchecked 'hide field' ....saved the datasource....nowcame to Extractor Checker RSA3 to check if code is
working....I am able to see the new field MAKTG but its not populated..it means my code or my way of
doing enhancement is wrong...Can anyone please suggest any solution....
here is my code:
data: l_s_ZOXID30088 like ZOXID30088 ,
L_TABIX LIKE SY-TABIX.
case I_CHABASNM.
when 'MATNR'.
LOOP AT C_T_TEXTS INTO L_S_ZOXID30088.
L_TABIX = SY-TABIX.
SELECT SINGLE MAKTG FROM MAKT INTO L_S_ZOXID30088-ZZMAKTG WHERE MATNR =
L_S_ZOXID30088-MATNR..
MODIFY C_T_TEXTS FROM L_S_ZOXID30088 INDEX L_TABIX .
ENDLOOP.
ENDCASE.
Thanx,
S

10/27/2016 10:33 AM

text datasource enhancement

3 of 4

https://archive.sap.com/discussions/thread/1472537

Thanx,
S
Edited by: SChandx200 on Sep 11, 2009 6:37 AM

s chand
September 11, 2009 at 06:38 AM
0 Likes

Correct Answer

Eva Tseng

replied

September 11, 2009 at 10:43 AM

1, just wonder what's the name of your Datasource?


case I_DATASOURCE.
when '<Name of your Datasource>'.
2. Try to put all your code under ZXRSAU02.
0

View this answer in context

Mansi Dandavate

replied
September 11, 2009 at 06:51 AM

Hi,
Just check once if the function module
EXIT_SAPLRSAP_003 is active...

10/27/2016 10:33 AM

text datasource enhancement

4 of 4

https://archive.sap.com/discussions/thread/1472537

Just check once if the function module


EXIT_SAPLRSAP_003 is active...
Becuse after writing code int he include ZXRSAU03
you will have to activate the funciton module...
This has to be done the first time when you
implement the include...
If still it doesnt work.. You can put a break point in
your code and then debug from RSA3 to chk whey it
isnt working...
0

Correct Answer

Eva Tseng

replied
September 11, 2009 at 10:46 AM

1, just wonder
what's the name of
your Datasource?
case
I_DATASOURCE.
when '<Name of
your Datasource>'.
2. Try to put all your
code under
ZXRSAU02.
0

s chand

replied
September 11, 2009 at 13:22 PM

thanks Eva,it worked


when I followed your
suggestion and put
all code under
EXIT_SAPLRSAP_0
02....
i thought when we do

10/27/2016 10:33 AM

Você também pode gostar