Application Development and Automation 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: 
Read only

Problem with TCode FKMT in a BDC

Former Member
0 Likes
550

Hi All,

I am trying to create a BDC program based on the Transaction Code FKMT. I will use this to add a new Account Assignment Model that is based on a specific Screen Template. The program I have written does not work all of the time. I have discovered that if the Screen Template associated with the last Account Assignment Model viewed is different from the Screen Template I want to use when I add a new Account Assignment Model, then my add will fail. If the Screen Template associated with the last Account Assignment Model viewed is the same as the Screen Template I want to use when I add a new Account Assignment Model, then my add will succeed. I am also finding that I cannot successfully switch to the Screen Template I want to use with the Account Assignment Model I am creating in the BDC code.

Can anyone help guide me on how I can add a new Account Assignment Model with a specific Screen Template?

Example:

1) Review Existing Records

Acct Assn Model Screen Template

CORP-2010 ZTIC1 <-- Last viewd Acct Assn Model

CORP-3010 ZTIC2

Last Viewed Acct Assn Model was CORP-2010, so default Screen Template is ZTIC1

2) ADD a NEW Acct Assn Model CORP-1010 based on Screen Template ZTIC2.

This ADD will fail and I cannot switch to the Sceen Template ZTIC2 in the BDC code.

3) ADD a NEW Acct Assn Model CORP-4010 based on Screen Template ZTIC1.

This will succeed and there was no need to switch to the Screen Template ZTIC1 since it was the default based on the last Acct Assn Model viewed.

Thank you!

Hi All,

I am trying to create a BDC program based on the Transaction Code FKMT. I will use this to add a new Account Assignment Model that is based on a specific Screen Template. The program I have written does not work all of the time. I have discovered that if the Screen Template associated with the last Account Assignment Model viewed is different from the Screen Template I want to use when I add a new Account Assignment Model, then my add will fail. If the Screen Template associated with the last Account Assignment Model viewed is the same as the Screen Template I want to use when I add a new Account Assignment Model, then my add will succeed. I am also finding that I cannot successfully switch to the Screen Template I want to use with the Account Assignment Model I am creating in the BDC code.

Can anyone help guide me on how I can add a new Account Assignment Model with a specific Screen Template?

Example:

1) Review Existing Records

Acct Assn Model Screen Template

CORP-2010 ZTIC1 <-- Last viewd Acct Assn Model

CORP-3010 ZTIC2

Last Viewed Acct Assn Model was CORP-2010, so default Screen Template is ZTIC1

2) ADD a NEW Acct Assn Model CORP-1010 based on Screen Template ZTIC2.

This ADD will fail and I cannot switch to the Sceen Template ZTIC2 in the BDC code.

3) ADD a NEW Acct Assn Model CORP-4010 based on Screen Template ZTIC1.

This will succeed and there was no need to switch to the Screen Template ZTIC1 since it was the default based on the last Acct Assn Model viewed.

Thank you!

1 REPLY 1
Read only

Former Member
0 Likes
508

I discovered the solution to my problem by debugging the TCode FKMT. Debugging showed me how to identify the last Screen Template used and how I could determine the correct values to use in my BDC code.