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: 

BTE Business Transaction Event 1421Master Data Vendor, data transfer

Former Member
0 Kudos

I would like to use this BTE to carry over some data from the vendor master to a custom table used to control custom app email trigger.

When a vendor is getting created or maintained, upon SAVE this function would trigger and present the user with an option pick one of the email addresses (from the vendor master address tab) to be used for custom app.

My issue arises on a save of a new vendor create XK01 or on a maintain vendor (XK02) when new email addresses have just been entered... i.e. this BTE appears to fire prior to commit and does not provide access to the work tables for the ADR6 (where the email addresses are stored)and thus I cannot present an accurate list of current email addresses to select from.

Any suggested would be appreciated,

Thanks,

Rocco

9 REPLIES 9

Former Member
0 Kudos

Hello Martin,

I have done some research and have found out that 1421 is probably not the suitable BTE for your purpose. Please see if you can instead use the BTE DE_BCS2S for your purpose. This one has the required work-structures for the ADR6 table.

Hope this helps.

Regards,

Anand Mandalika.

0 Kudos

Hi Anand,

Thanks for your suggestion however the BTE you mentioned is for Customer master - I am looking for Vendor Master.

Regards,

Rocco Scocco

0 Kudos

Hello Rocco,

I'm not really very familiar with the BTEs, but I can still see a <i>technical</i> possibility to realize your requirement.

The BTE DE_BCS2S, though is intended for the customer master, is getting triggerred on the SAVE operation and the email-address details (from the work table for ADR6) is available for us.

It might be considered inappropriate usage to exploit this BTE for the purpose of obtaining the information we need. But if there were to be no other way of obtaining the information we need, would using this BTE cause any other undesirable side-effects? I would really appreciate it if you could let me know more about this.

Regards,

Anand Mandalika.

0 Kudos

Hi Anand,

I have tried to using event "DE_BCS2S" for the Vendor create/maintain but have not been able to get it to fire upon save...

Interestingly enough - I could not get it to fire for customer address create/maintain either (?)...

FYI: I set it up with same process as I did with the event "00001420" i.e. using BF24 to set up and activate product. followed by BF34 to set up and assign the product.

Not sure if I've missed anything - if anyone has any experience with the event "DE_BCS2S", we'd appreciate your insight.

Thanks,

Rocco

0 Kudos

Hello Rocco,

I'm sure you must already be aware of this, but let us just check whether we have met each of these criteria, which I have learnt to be necessary to meet the requirement:

1. In Transaction BF11, we have to manually activate the Business Transaction Events for the application components. In this case, the Application Component is FI-AP ( just to be on the safe side, also activate it for LO-MD-BP-CM, which is the Application Area for Customer Master) .

2. Assign the Function Module for the BTE DE_BCS2S in the transaction BF24 and write the appropriate application logic.

3. Now Insert a break-point in your Function Module and also in the Function Module BF_FUNCTIONS_FIND in line number 17.

4. Try saving the Vendor Master Data and see if you are able to reach into the code of the Function Module we have written.

5. If not, then use the break-points to debug the code and find out what's wrong.

I can't think of what else might go wrong at this moment. I will try again after i get the results of your trials.

Regards,

Anand Mandalika.

p.s. I'm able to trigger the event and reach into the code of my Function Module for this event and also obtain the email-address value .

0 Kudos

Hi Anand,

You may have uncovered my issue;

(1) I was not able to locate the FI-AP Application Indicator in table TBE11. Unfortunately, I am not able to create entries in this table (not even my sandbox system permits me - I will speak to basis and try to get this created. We also do not have the other indicators you mentioned LO-MD BP-CM (can you confirm the exact names for these... we have LO-MD unchecked but no BP-CM)

(3) The function module BF_FUNCTIONS_FIND, seems to

fire for event 00001450, CAM_1000, 00001420 and 00001421 following a save command. I'm thinking the DE_BCS2S may not be firing due to the missing application indicator (FI-AP) - can you tell me how you determined it belonged to FI-AP?

Thanks for you valuable insight... I appreciate your interest.

Regards,

Rocco

0 Kudos

Hello Rocco,

I must first apologize for opening up a door to mislead us. But the good point is that I (we) have learnt something out of the whole exercise.

Yesterday when I went to the table maintenance of TBE11 (transaction BF11), even I could not find the application component FI-AP. So I had manually entered the entry and activated the indicator. Then I had performed the remaining steps and went to the XK02 transaction and tried to do a save operation. I have seen that I could get into my Function Module without any problem. So I had assumed that this is all because of the configuration change that I have done.

But now, after seeing your post, I just went back to BF11 and removed the entry (for FI-AP) that I had made in there yesterday. And guess what? The Event still fires and I'm still able to get into my Function Module. So this proves that the criteria 1 that have told you about yesterday is not necessary.

To understand the whole thing much more clearly, I would suggest that you go to SE11 and read the documentation for the Data Element APPLK_BF (Application Indicator for BTE).

And lastly, go to transaction SE37 and execute the Function Module BF_FUNCTIONS_FIND for the event DE_BCS2S (i.e., execute it for the import parameter DE_BCS2S) and see if you are able to obtain as the result the custom function module that you want to use for this BTE (the same one as you have assigned to DE_BCS2S in the transaction BF34).

Please let me know the results of your tests. Trust me, we are very very close to the solution and we will get it today at any cost!!

Regards

Anand Mandalika.

0 Kudos

Hello Anand,

I have confirmed BF_FUNCTIONS_FIND with DE_BCS2S does indeed return my function module (Z_SAMPLE_FCTMODULE_DE_BCS2S) where I have added both an 'I' message and a break point.

Regards,

Rocco

p.s. even if we do not get to the bottom of this issue, you have armed me with some interesting tools - and I thank you for that!

0 Kudos

Hi ,

I am trying to activate the following business transaction events, but I could not drilldown these components to make them active

It is necessary to activate the following BTEs

00001025 J_1I_CREATE_DEFTAX_ITEM

00001030 J_1I_SET_DEFTAX_ITEM

00001040 J_1I_CREATE_DEFTAX_ITEM_REVERS

00001050 J_1I_CREATE_DEFTAX_ITEM_MR1M

What are the steps I need to follow and any kind of information on BTE's is appplauded

Plz help me in this regard

Thanks in advance and Ur help gets awarded

with regards,

Ritu