09-06-2011 2:18 PM
Hi,
I have added custom fields in transaction PKMC using the user-exit - MPKCCY01 but i am facing an issue of missing scroll bar after activation of the exit.
I am not able to find the exact issue.
Kindly help.
Thanks in advance.
09-06-2011 2:41 PM
Hi Kaushik,
Welcome to SCN.Can you paste your code.
Regards,
Madhu.
09-06-2011 2:49 PM
Code in the include of 'FM EXIT_SAPLMPK_CCY_UI_001'
data : l_pkhd like pkhd,
l_cust_pkhd LIKE cust_pkhd,
l_mode type c.
l_pkhd = i_pkhd.
l_mode = i_mode.
if not ( l_pkhd-zzmax_knbn_no = 0 and l_pkhd-zzmax_knbn_qty = 0 and l_pkhd-zz_container_iss = 0 ) .
if l_pkhd-behaz ge l_pkhd-zzmax_knbn_no or
l_pkhd-behmg ge l_pkhd-zzmax_knbn_qty .
message 'Please enter correct value' type 'E'.
endif.
endif.
*IMPORT l_cust_pkhd FROM MEMORY id '125'.
export l_pkhd to memory id '123'.
export l_mode to memory id '124'.
Code in the include of 'FM EXIT_SAPLMPK_CCY_UI_002'
data: l_cust_pkhd like cust_pkhd.
import l_cust_pkhd from memory id '125'.
e_cust_pkhd = l_cust_pkhd.
In the PBO of screen
tables : pkhd.
import l_pkhd from memory id '123'.
import l_mode from memory id '124'.
if l_mode = 'X'. "Anzeigemodus
loop at screen.
if screen-group1 = '004'.
screen-input = 0.
modify screen.
endif.
endloop.
else. "Aenderungsmodus
loop at screen.
if screen-group1 = '004' .
screen-active = 0.
screen-input = 1.
modify screen.
endif.
endloop.
endif.
pkhd-zzmax_knbn_no = l_pkhd-zzmax_knbn_no.
pkhd-zzmax_knbn_qty = l_pkhd-zzmax_knbn_qty.
pkhd-zz_container_iss = l_pkhd-zz_container_iss.
In the PAI of screen SAPLXMPK
l_cust_pkhd-zzmax_knbn_no = pkhd-zzmax_knbn_no.
l_cust_pkhd-zzmax_knbn_qty = pkhd-zzmax_knbn_qty.
l_cust_pkhd-zz_container_iss = pkhd-zz_container_iss.
export l_cust_pkhd to memory id '125'.
09-06-2011 4:27 PM
Hi,
Sometimes, standard subscreen area; in which your custom screen is called, has not the "scrolling" option activated. I don't know the reason. You can check that by activating the screen debug, and see in what standard screen your custom screen is included, and display the attributes of the corresponding subscreen area to see if this option is checked or not. If it's not ticked, then you have the explanation.
Sandra
09-08-2011 6:25 AM