11-13-2007 12:27 PM
Hi Experts,
I have one field in XD01, in want to update data into that field (KNA1-BUBKZ).
At present there is one user exit is there (SAPMF02D), but this user exit is not valid one, because on table parameters there is no KNAI-bubkz field.
Is there any other alternative to find this exit.(either BAdi or user exit).
Thanks in advance.
Regards
Rams
11-13-2007 12:30 PM
Ramesh,
try this BADI CUSTOMER_ADD_DATA.
reward if it helps,
Satish
11-13-2007 12:46 PM
Hi,
In Exit 'EXIT_SAPMF02D_001' you have import parameter as KNA1 table, so in that case u wud be able to access KNA1-BUBKZ.
Thanks
11-13-2007 1:25 PM
Hi Swamy,
this one is not valid exit, in table parameter, there is no KAN1-BUBKZ, how can we change the field, is there any possibility.....NO.
Regards
srinivas
11-13-2007 1:50 PM
Hi Ramesh,
Try out the below code.....
This will meet ur requirement,even if u dont have KNA1-BUBKZ in ur tables parameter....
*Local Internal Tables
DATA: lt_kna1 TYPE STANDARD TABLE OF KNA1 ,
*Local Work Areas
DATA: lw_kna1 TYPE KNA1.
*Variables
DATA:
lv_kna1 TYPE char30 VALUE '(SAPMF02D)KNA1-BUBKZ'.
FIELD-SYMBOLS:
<fs_kna1> STRUCTURE KNA1 DEFAULT KNA1.
*Assigning the values of table ANLA to field symbol
ASSIGN (lv_kna1) TO <fs_kna1>.
MOVE <fs_kna1> TO lw_kna1.
****Do ur Validation here for lw_kna1.****
MODIFY lt_kna1 INDEX 1.
<fs_kna1>[] = lt_kna1[].
Thanks.