cancel
Showing results for 
Search instead for 
Did you mean: 

Calling subroutine in background from dynamic action

former_member201275
Active Contributor
0 Kudos

Calling a subroutine in a program via a dynamic action, works in foreground, but not in background? Any ideas why?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check your line on T588z if you have a /D at the end .

Regards,

Chris

Answers (6)

Answers (6)

former_member201275
Active Contributor
0 Kudos

done

former_member201275
Active Contributor
0 Kudos

Hi,

Thank you for all help. I have managed to get it to work now, using:

0002 GBDAT 06 871 F RETIRE_DATE(ZRETIRE)

0002 GBDAT 06 872 W P0019-VTRMN=RP50D-DATE2

0002 GBDAT 06 873 W P0019-TMART='02'

0002 GBDAT 06 874 I INS,19,02/D

former_member201275
Active Contributor
0 Kudos

The subroutine calculates the retirement date, for infotype 0019, based on the date of birth in infotype 0002.

This works correctly if I leave '/D' out, however if I include it then the date field and task type field in infotype 0019 is empty.

We are going into PA30, infotype 0002, changing the Date of birth field and then saving. This then opens up infotype 0019 and fills in the 'task type' and 'date of task' fields.... but only if the '/D' is left out.

I have tried the last sequence, for the dynamic action, above but to no avail.

Former Member
0 Kudos

Hi Gemini

Why what is your business process?

why you client want to see the funtion call to be done fore ground ?

Why your client want to see it on foreground?

Usually no function call will be done foreground, if it is done foreground it will take more time than back ground.

Explain you customer these are the disadvantages

If you want to see for your self , you always can go for abap debugging /h

Best REgards

former_member201275
Active Contributor
0 Kudos

Thank you both. The dynamic action still not working in background and looks as follows:

0002 GBDAT 06 901 I INS,19,02/D

0002 GBDAT 06 902 F RETIRE_DATE(ZRETIRE)

0002 GBDAT 06 903 W P0019-VTRMN=RP50D-DATE2

Former Member
0 Kudos

Hi gemini ,

Try like this,

0002 GBDAT 06 902 F RETIRE_DATE(ZRETIRE)

0002 GBDAT 06 901 I INS,19,02/D

0002 GBDAT 06 903 W P0019-VTRMN=RP50D-DATE2

Former Member
0 Kudos

Hi,

Dynamic action calls only when you save in foreground, but subroutine can be called when you want to perform dynamic action in background using /D. call subroutine after /D statement.

Regards

Raju