Skip to Content
0
Former Member
Apr 25, 2012 at 11:08 AM

how can i modify the EXIT_SAPLRSAP_003?

114 Views

Hi,

Glad to meet you all gurus.

I have to work on text data source Enhancements.

I am poor at ABAP. So, I ask you to know how to correct coding.

this is my code. it has no errors, but it can't extract the data OTL.

what's wrong with my codes?

i want to use 0PROJECT_TEXT for the customer object ZPROJ_NO text data.

and ZPROJ_NO's key is the same as PROJ-PSPNR

as you know, 0PROJECT_TEXT's key is PROJ-PSPID.

and as far as i know, PROJ-PSPID has one-to-one correspondence with PROJ-PSPNR.

so, i expand the PSPHI in 0PROJECT_TEXT's structure PSBWPRJTXT.

this below is my coding.

*&---------------------------------------------------------------------*

*& Include ZXRSAU03

*&---------------------------------------------------------------------*

data: l_s_icctrcst like icctrcst,

l_s_icctract like icctract,

l_s_icctrsta like icctrsta,

l_tabix like sy-tabix.

CASE I_CHABASNM.

*----------------------------------------------------------------------*

* 0PROJECT_TEXT 2012.04.25 Created by leah *

*----------------------------------------------------------------------*

WHEN '0PROJECT'.

DATA: ls_FC TYPE PSBWPRJTXT.

LOOP AT C_T_TEXTS INTO ls_FC .

l_tabix = sy-tabix.

SELECT SINGLE PSPNR FROM PROJ INTO ls_FC-PSPHI

WHERE PSPID = ls_FC-PSPID.

MODIFY C_T_TEXTS FROM ls_FC INDEX l_tabix.

ENDLOOP.

ENDCASE.

Thanks in advance,

Leah.