Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

export memory statement not working between two methods

Former Member
0 Likes
548

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.

3 REPLIES 3
Read only

Former Member
0 Likes
507

my problem is rectified .

Read only

Former Member
0 Likes
507

If problem is rectified, Please mark as answered.

Sujay

Read only

Former Member
0 Likes
507

rectified by myself