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: 

How to pass data with a changeable type to a Update FM?

ArcherZhang
Advisor
Advisor
0 Kudos

Hi experts,

My case is I need to execute some logic once COMMIT was involved. So I run my FM in UPDATE TASK. But the data structure is not a generic type, each run probably has a different data type, I can not directly pass it via the parameter of FM.

By now I solved it by EXPORT/IMPORT to DATA BUFFER, an XSTRING parameter pass to that FM. But it is Obsolete after NW 740 and I worry about the buffer size could be exceeded. So any other way I can achieve this?

Thanks.

Archer

1 ACCEPTED SOLUTION

horst_keller
Product and Topic Expert
Product and Topic Expert

In fact, I don't fully understand what you try to say, but can't you handle the event TRANSACTION_FINISHED of CL_SYSTEM_TRANSACTION_STATE instead of calling an update FM?

2 REPLIES 2

horst_keller
Product and Topic Expert
Product and Topic Expert

In fact, I don't fully understand what you try to say, but can't you handle the event TRANSACTION_FINISHED of CL_SYSTEM_TRANSACTION_STATE instead of calling an update FM?

Jelena
Active Contributor
0 Kudos

Looks like some internal ABAP training is needed at SAP. Just sayin'...