Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_FTR_FXT_CREATE

Former Member
0 Kudos

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

6 REPLIES 6

former_member195402
Active Contributor
0 Kudos

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

0 Kudos

Hi Klaus,

Thank you for your reply.

Could you please let me know how to trigger the above include.

Thanks,

Shabs

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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.