Sei sulla pagina 1di 3

Simple Abap Code Case i_chabsnm is not working

1 of 3

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

10/27/2016 12:08 AM

Simple Abap Code Case i_chabsnm is not working

2 of 3

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

Please help me asap, I am trying to enhance the BW datasource with only one field "Responsible" in
0refx_2 datasource . I am getting the error in code that case i_chabasnm is unknown and tables not
defined by data statement
please help me to correct the code I am just picking the field RESPONSIBLE from Table VIBDPR
Abap Code below:
Tables: VIBDPR. "Property master data table
data: l_tabix like sy-tabix.
case i_CHABASNM.
*Enhancement of Property Master Record
WHEN '0REFX_2'.
case i_datasource.
WHEN '0REFX_2'.
data: l_s_REIS_MEASUREMENT_TRAN like REIS_MEASUREMENT_TRAN.
loop at i_t_data into l_s_REIS_MEASUREMENT_TRAN.
l_tabix = sy-tabix.
select single * from VIBDPR where BUKRS = l_s_ REIS_MEASUREMENT_TRAN - BUKRS.
if sy-subrc = 0.
l_s_BIW_VIBDPR_s-ZZRESPONSIBLE = VIBDPR-RESPONSIBLE.
modify i_t_data from l_s_ REIS_MEASUREMENT_TRAN index l_tabix.
endif.
endloop.
endcase.
endcase

10/27/2016 12:08 AM

Simple Abap Code Case i_chabsnm is not working

3 of 3

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

endcase

soniya kapoor
December 14, 2006 at 17:22 PM
0 Likes

Helpful Answer by Rich Heilman

Rich Heilman

replied
December 14, 2006 at 17:31 PM

The variable i_CHABASNM must be defined


somewhere in the program using a DATA statement.
Regards,
Rich Heilman
0

soniya kapoor

replied
December 14, 2006 at 17:34 PM

hI rich i am not that good at abap can u tell me


how to edit this i_chabasnm
in code.
thanks
soniya
0

10/27/2016 12:08 AM

Potrebbero piacerti anche