2014 Feb 25 7:18 AM
Hi Expert,
Please let me know best way to enhance info files send and receive to / from collection agency. I have to add more fields in the information files.
Below events are provided by SAP for the info files
should I use above events to enhance my file structure or should I develop custom program to generate file on the application server directly. Please sugest best practice.
Thanks,
Gulrez
2014 Feb 25 8:05 AM
Hi Gulrez,
Event 5051, 5052 and 5053 are called when FPCI is triggered and is the best option to make changes in the file format for the information file.
In these, you can fill industry- and customer-specific fields of the file header, file body and file end record for information to the collection agency.
Hope it helps...
Thanks,
Amlan
2014 Feb 25 8:05 AM
Hi Gulrez,
Event 5051, 5052 and 5053 are called when FPCI is triggered and is the best option to make changes in the file format for the information file.
In these, you can fill industry- and customer-specific fields of the file header, file body and file end record for information to the collection agency.
Hope it helps...
Thanks,
Amlan
2014 Feb 25 11:16 AM
Hi Amlan,
Thanks for your prompt reply. Event 5051, 5052 and 5053 are called when FPCI is triggered and fill file format which gets written on the application server. Now my question is should I enhance standard SAP structure being used to create file ?
Please let me know your views in details.
Thanks,
Gulrez
2014 Feb 25 11:46 AM
Hi Gulrez,
If you have a Business requirement which is not met by the standard FM in the events 5051, 5052 and 5053, you can go and copy the standard FM make the necessary changes and plug them into these events.
On executing FPCI, it will trigger these FM's and will create the Information file as per your requirement.
Hope it clarifies.
Thanks,
Amlan
2014 Feb 25 2:35 PM
Hi Amlan,
Event 5051, 5052 & 5053 generate info file, standard FM can be copied and plug into these events, thats fine.
As per my understanding purpose of the events are :
5051 - Create header of the file - Structure FKKCOLLH_I can be enhanced to put more fields
5052 - Body of the file - Structure FKKCOLLP_IR can be enhanced to put more fields into the file
5053 - Footer of the file - Structure FKKCOLLT_I can be enhanced if footer needs to be changed.
First approach
is to enhance above structures to add required fields into the structure and write logic in the event 5052 to fetch fields.
Second approach
write all the logic in the FM which includes all required fields and write file directly on the application server.
Please suggest which one is the better.
Thanks,
Gulrez
2014 Feb 25 8:28 PM
Hi Gulrez,
I would recommend to go with the second option, as it will only be specific for the Information files and will not have any impact on the structures which may have been used elsewhere as well.
Hope it helps
Thanks,
Amlan
2014 Mar 11 11:03 AM
Hi Amlan,
Thanks for your reply. I have enhanced existing standard structures to add additional fields in the header and body of the submission file instead of decalring custom structure and directly writing file on the application server. This solution is working fine .
Regards,
Gulrez
2014 Feb 26 9:33 AM
Hi ,
You can enhance the 5052 and 5053 event for adding the new fields into the file .5053 will be called to create the file .
Thanks ,
Pankaj