on 10-09-2008 3:27 PM
Calling a subroutine in a program via a dynamic action, works in foreground, but not in background? Any ideas why?
Check your line on T588z if you have a /D at the end .
Regards,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.