‎2010 Aug 16 10:51 AM
hello all
i m implementing one BADI MB_MIGO_BADI .this BADI is having 2 methods 1)LINE_MODIFY and 2)PBO_DETAIL.
the followng is the code in LINE_MODIFY methd
DATA : c_flag TYPE c .
TYPES:BEGIN OF tp_ecppa,
prvsy TYPE /sapsll/prvsy_spi,
ecpid TYPE /sapsll/ecpid_spi,
END OF tp_ecppa.
DATA:wl_ecppa TYPE tp_ecppa.
IF cs_goitem-matnr IS NOT INITIAL.
SELECT prvsy ecpid UP TO 1 ROWS FROM /sapsll/ecppa INTO wl_ecppa WHERE prvsy = cs_goitem-matnr.
ENDSELECT.
IF wl_ecppa-ecpid EQ 'DE3203CWIP'.
c_flag = 'X'.
ENDIF.
ENDIF.
SET PARAMETER ID 'PMEM' FIELD c_flag.
export c_flag from c_flag to memory id 'mem1'.
the following is the code in PBO_DETAIL method
METHOD IF_EX_MB_MIGO_BADI~PBO_DETAIL.
IF SY-UNAME = 'E494049' or sy-uname = 'E491754'.
DATA:C_FLG TYPE C .
CLEAR C_FLG.
if gf_class_id eq i_class_id.
GET PARAMETER ID 'PMEM' FIELD c_FLG.
Import c_flg to c_flg from memory id 'mem1'.
IF C_FLG = 'X'.
E_CPROG = 'ZP1_SCREEN'.
E_DYNNR = '0001'.
E_HEADING = 'GTS'.
ENDIF.
endif.
endif.
free memory id 'PMEM'.
ENDMETHOD. "IF_EX_MB_MIGO_BADI~PBO_DETAIL
but the new tab is not displayed in MIGO . so i think there is some mistake in export memory statement .
so could you please check if i have used export/import statements correctly.
‎2010 Aug 16 10:55 AM
‎2010 Aug 16 10:59 AM
‎2011 Jan 03 6:39 AM