07-10-2007 2:27 PM
Hello Guys,
i enahannced table dfkkop with 2 additional fields .i extended the idoc and linked to the message type,now my development is populate the data in to the two additional using user exit fkya002x.can any one help me in this development .
Regards
Janapathi
07-11-2007 5:49 AM
Hi,
Check these user exits for FPL9,
FKYA001X:Customer Exit for Format AT_DOM (Header)
FKYA002X:Customer Exit for Format AT_DOM (Payment Record)
FKYA003X:Customer Exit for Format AT_DOM (Trailer)
you can use an event.
Use transaction FQEVENTS and look for 'account'. I'd recommend to use event 1200 (Acct Balance: Set Header Data).
You have to create and set active a function module. This function should be a copy of
FKK_SAMPLE_1200
In the interface, you get company code (I_BUKRS), business partner (I_GPART) and contract account (I_VKONT).
Check those values, do the AUTHORITY check and issue an E message if the user is not allowed.
<b>Reward points</b>
Regards
07-11-2007 2:12 PM
Hello,
can you explain me more in step by step approach please.
regards
Janapathi
07-11-2007 2:23 PM
Janapathi,
You can populate and fill the data as.. the below example....
This example is for CREMAS ...
data: ls_data_a type E1LFA1A,
ls_data_m type E1LFA1M,
ls_data_b type e1lfb1m,
ls_data_m1m type e1lfm1m,
ls_data_t3m type e1wyt3m,
ls_idoc_data type edidd,
lv_index type sy-tabix.
if segment_name = 'E1LFB1M'.
read table idoc_data into ls_idoc_data with key segnam = 'E1LFB1M'.
if sy-subrc = 0.
* lv_index = sy-tabix.
ls_data_b = ls_idoc_data-sdata.
clear ls_data_b-lifnr.
ls_idoc_data-sdata = ls_data_b.
* modify idoc_data from ls_idoc_data index lv_index.
modify idoc_data from ls_idoc_data transporting sdata where segnam = 'E1LFB1M'.
endif.
endif.
Hope this helps....to do the changes for your req...
Chandra.