cancel
Showing results for 
Search instead for 
Did you mean: 

Solution for applying a batch input through dynamic actions

Former Member
0 Kudos

Hi Gurus,

I'm working in a batch input in PA30, where I need to fill in some static infotypes, but also some new infotypes which are created through dynamic actions. The problem is, like most of you know, dynamic actions are not executed in batch input mode.

The interfase we are implementing has the goal of making automatic all this process, so we have different options:

1) Replicate dynamic actions code in ABAP: do checks, and then we will know which infotypes we have to create. This one is the SAP recommended option, but it's the worst for us, because our coustomer has more than 3500 lines of dynamic actions, and this work will imply more than 3 weeks of code replication. Moreover, every change in dynamic actions has to be done also in this ABAP code.

2)Modify SAP standard. The report MPPERS00 have the logic of dynamic actions. Inside the form end_of_screen there is the the barrier which doesn't allow to execute dynamic actions in batch input. If we comment this line, we think we can jump over this problem.

...

IF sy-binpt EQ space. -


>from here dynamic actions are executing.

....

But we don't know certainly if this will work or not, because maybe there are more checks that we haven't seen.

3) Calling directly to SAP standard functions that manage the execution of dynamic actions. I found an example of how to do it in this forum, but no one told if it was a good solution or not. The post was:

Here is the references:

1. the logic that retrieve and trigger the dynamic action was written in the include MPPERS00.

2. In this include, check the subroutine "end_of_screen" and "dyn_measure". try debug here:)

3. remember to perform "process_measure(sapfp50m)" after you had retrieve the dynamic measures.

"

Example:

PERFORM dyn_measure(MP000100).

IF dynmeas[] IS NOT INITIAL.

PERFORM process_measure(sapfp50m).

ELSE.

RAISE no_dynamic_action_retrieved.

ENDIF.

This custom function module should only execute after the IT0001 was successfully updated.

"

Which option do you recommend me? Is there another option we can do?

It's not a simple question, so i will appreciate so much all the help you can give me. I know also it is a question i should post in ABAP forum, but i also need someone who can know so much this module. It's a very concrete problem.

Thanks to everybody in advance,

Abel.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI Abel

which way you choose at last ?

i meet the same problem.

Former Member
0 Kudos

Hi,<br> Option 1 has been followed in almost all the projects I have worked. If its gonna take 3 weeks, then no harm in trying option 3 first and test only whether the dyn axn is called or not and try to save with some test values. If it works it great, I would like to see you writing a blog/ article on topic. My recommendation is not to go for Option#2. Good luck<br><br> Thanks, Amosha <br><br>"Known is a drop & unknown is an OCEAN!"