06-02-2009 10:12 AM
Hi,
I have added a custom FM copied from sample for an active Product in FIBF for 1030 event.
But this is not getting triggered from f-28.
Can any one help in this regard.
Thanks,
Aruna.
06-02-2009 2:04 PM
Hi Aruna,
After implementing the Function module based on the 'SAMPLE...' module, maintain the implemented function module name in FIBF corresponding to the BTE event number. On maintaining this the 'OPEN_..' BTE module will dynamically call the implementation module.
Regards,
George
06-02-2009 2:15 PM
Hi
Just as George said
U need to mantain the fm module you've created in trx FIBF, i.e u need to link your fm to the event 1030.
That means:
- Or
Transaction BF31:
U assign your fm to event 1030
- Or
Transaction BF24
U create and active an your own product
Transaction BF34
U assign your fm and your product to event 1030
The second option is better than one....I think so
All these transactions open the mantainence views of the tables of BTE where u can do your setting.
Just as George said all these transaction are available in main trx FIBF.
Max
06-03-2009 6:44 AM
Hi,
check the coding below.
go to transaction code FIBF.
Click on Environmenr --> infoSytem (P/S). Select attribute type as 'A' and execute. Select the BTE you want and click sample function module.
For example say 00001030. Double Click on sample function module. Now copy this function module as Z func module & save it in a Z package.
in that Z func module write the following code.
DATA : AC_CONTAINER LIKE SWR_CONT OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF objkey.
DATA: bukrs LIKE bkpf-bukrs.
DATA: belnr LIKE bkpf-belnr.
DATA: gjahr LIKE bkpf-gjahr.
DATA: END OF objkey.
DATA: swe_objkey LIKE sweinstcou-objkey.
DATA: card TYPE p.
DESCRIBE TABLE t_bkpf LINES card.
IF card <= 0.
EXIT.
ENDIF.
READ TABLE t_bkpf INDEX 1.
MOVE-CORRESPONDING t_bkpf TO objkey.
MOVE objkey TO swe_objkey.
IF t_bkpf-tcode = 'F-47' OR t_bkpf-tcode = 'FBA6' OR t_bkpf-tcode = 'FB05'.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'BKPF'
objkey = swe_objkey
event = 'CREATED'
CREATOR = ' '
TAKE_WORKITEM_REQUESTER = ' '
START_WITH_DELAY = ' '
START_RECFB_SYNCHRON = ' '
IMPORTING
EVENT_ID =
TABLES
EVENT_CONTAINER =
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
ENDIF.
ENDFUNCTION.
Now again come back to FIBF main screen.
Click on Settings --> Products --> Of a customer. Enter any product name starting with letter Z. give some text description. Do not activate it now.
Come back to FIBF main screen.
Click on settings --> P/S modules --> Of a customer.
Enter Event as 00001030, product which you defined earlier, and enter your Z func module name.
Save this entry.
Now again come back to FIBF main screen.
Click on Settings --> Products --> Of a customer and activate your entry by selecting the last checkbox.
Let me know if you have any queries.
Regards,
Raj
08-28-2009 5:30 AM