SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancing FPO4

Former Member
0 Kudos

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!

1 ACCEPTED SOLUTION

chaiphon
Contributor
0 Kudos

Events 9561 is used for filling any field from structure FKKOPRU and FKKOP.

View solution in original post

9 REPLIES 9

chaiphon
Contributor
0 Kudos

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

Former Member
0 Kudos

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.

chaiphon
Contributor
0 Kudos

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

Former Member
0 Kudos

Can you post an example of each of the enhancement, for event 9560 and 9561?

Bet regards.

chaiphon
Contributor
0 Kudos

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.

chaiphon
Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

chaiphon
Contributor
0 Kudos

Events 9561 is used for filling any field from structure FKKOPRU and FKKOP.

Former Member
0 Kudos

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