01-12-2015 11:25 AM
Sap Guru's,
Am trying to create treasury BP through BAPI-BAPI_FTR_FXT_CREATE( tcode FTR_CREATE - Treasury BP)
but its prompting me an below error:
E FTR0 161 BAPI processing was terminated
E T7 004 Product type 51A is not product category Foreign exchange
for every product type it showing the same error, so request you to help me to overcome this isssue
Rgds,
Shabs
01-12-2015 12:11 PM
Hi,
please set a break-point in FORM WPO_PRODUKTART of include MF70BF03 at line
SELECT SINGLE * FROM TZPA WHERE GSART = PAR_PRODART.
After a successful SELECT you will get the expected product type in TZSPA-SANLF.
Regards,
Klaus
01-12-2015 12:40 PM
Hi Klaus,
Thank you for your reply.
Could you please let me know how to trigger the above include.
Thanks,
Shabs
01-12-2015 1:15 PM
Hi,
I'm not sure that I've got your issue now.
Join the ABAP EDITOR in SE38 / SE80 and set a BREAK-POINT:
Then call your BAPI. If you arrive at the BREAK-POINT, proceed line by line and check fields SY-SUBRC, TPZA-SANLF, PAR_SANLF and PAR_PRODART.
Regards,
Klaus
01-13-2015 4:22 AM
Hi Klaus - I have tried the same procedure but this include is not triggering when I have executed BAPI - BAPI_FTR_FXT_CREATE.
So please help me on this.
Thanks, Shabs
01-13-2015 6:38 AM
Hi,
please try it again with the system debugging option activated.
If it doesn't stop there, then you can try the following: Set a break-point at this position
in fm FTR_API_FXT_INIT_CREATE. It checks the domain values for structure DEAL_ENTRY. This structure contains field PRODUCT_TYPE of domain VVSART and should validate the content against table TZPA.
In your first try you can continue with F6 and check field SY-SUBRC and content of table L_TAB_RETURN. If error message T7 004 is in the table, you have passed an invalid value to field PRODUCT_TYPE. Please choose another value from table TZPA then.
Regards,
Klaus
03-12-2015 2:14 PM
The BAPI FTR_FXT_CREATE is not for creating Business Partners, but for creating FX transactions. I don't know what is the BAPI for BP's, though. Good luck.