12-04-2009 4:56 PM
I now that if you need to enhance FPO4, you need to add fields to the following structure FKKOPRU through include SI_FKKOPRU_FOR_LAYOUT, but where do you fill these fields, at event 9560 or 9561? can you tell me the difference between them?
Thanks in advance!
12-08-2009 6:14 PM
Events 9561 is used for filling any field from structure FKKOPRU and FKKOP.
12-04-2009 7:06 PM
Event 9560 is to fill data into the field of the structure.
Event 9561 is to add thefield to display on the screen.
If you add new field in, you probably need to use both of them 9560 to fill the value and 9561 to put in the field name to show it.
Chaiphon
12-04-2009 8:39 PM
Thanks for you answer, now can I create fields that should be filled following a certain logic with infomation from other fields? for example, the field "Days in arreas" filled with "FAEND - SY-DATUM"???.
Best regards.
12-04-2009 9:52 PM
Yes you can put any field in.
These are the exmaple function modules for both events.
FKK_SAMPLE_9560
FKK_SAMPLE_9561
ou just need to copy it and put your logic in and configure it back to FQEVENTS transactions.
Chaiphon
12-07-2009 12:30 PM
Can you post an example of each of the enhancement, for event 9560 and 9561?
Bet regards.
12-08-2009 2:38 PM
SAP already provide an example for you to implement event 9560 and 9561.
For example, you want to add field name PARTNER_NAME into the screen.
First you add the field PARTNER_NAME into structure FKKOPRU.
For event 9560, you copy function module FKK_SAMPLE_9560 and it function group to your customizated FM such as ZFKK_SAMPLE_9560
* Example:
DATA:
wa_cat TYPE fkksp_s_fields.
READ TABLE i_fieldcat INTO wa_cat
WITH KEY orig_field = 'PARTNER_NAME' orig_table = 'FKKOPRU'.
IF sy-subrc = 0.
c_fkkopru-partner_name = 'Any value you want'.
ENDIF.
12-08-2009 2:42 PM
For event 9561, you copy function module FKK_SAMPLE_9561 and it function group to your customizated FM such as ZFKK_SAMPLE_9561.
* Example:
DATA:
wa_ex TYPE fkksp_s_fields.
READ TABLE i_existing_fields INTO wa_ex
WITH KEY orig_field = 'PARTNER_NAME' orig_table = 'FKKOPRU'.
IF sy-subrc = 0.
t_new_fields-orig_table = 'FKKOPRU'.
t_new_fields-orig_field = 'PARTNER_NAME'.
APPEND t_new_fields.
ENDIF.
12-08-2009 3:46 PM
Thanks a lot for the example Chaiphon.
Now I still have the doubt about what event 9561 is used for:
Is it to show the fields filled at event 9560 or to fill field based on other fields already available?
Thanks for your help.
12-08-2009 6:14 PM
Events 9561 is used for filling any field from structure FKKOPRU and FKKOP.
03-04-2010 4:38 PM
Hello Chaipon.
Is it possible to add contract account master data in the list of FPO4? I have open items for contract accounts having an alternative payer (FKKVKP-ABWRE) - but this information is not in DFKKOP (EMGPA is empty) but my users would like to see the master data info from contract account.
I assume I'll have to add this info and select logic in the events 9560 and 9561?
Please advise.
Jean-Marie