2009 Jun 19 10:16 AM
Hi,
We are currently running the two standard SAP programs RVV50R10C and SDV03V02 in background mode with static variants. A new requirement has come up whereby we need to run these programs with changing selection criterions, i.e. depending on whether a certain material has had a movement during the day.
We are currently looking at the following options, all of which must be executeable in background mode:
1) Create a Z-program which identifies the materials for which RVV50R10C and SDV03V02 should process, and then at the end of the Z-program save variants containing the materials for each of the two standard programs. The standard programs will be scheduled as step #2 and #3 in the same batch job by using the variant which has been overwritten by the Z-program.
2) Create a Z-program which identifies the materials for which RVV50R10C and SDV03V02 should process, and then at the end of the Z-program call these programs by specifying the material numbers in addition to other relevant selection criterions by passing a batch input table.
3) Copy the standard programs into Z-versions and enhance the selection criterias according to our needs.
Of the options above we would prefer not to use 3) since we rather use the standard programs due to SAP support etc. The preferred option would be 1).
Anyone faced a similar requirement and have some ideas about standard SAP functions to save a variant and what issues we might face in option 1) and 2)?
Hi,
We are currently running the two standard SAP programs RVV50R10C and SDV03V02 in background mode with static variants. A new requirement has come up whereby we need to run these programs with changing selection criterions, i.e. depending on whether a certain material has had a movement during the day.
We are currently looking at the following options, all of which must be executeable in background mode:
1) Create a Z-program which identifies the materials for which RVV50R10C and SDV03V02 should process, and then at the end of the Z-program save variants containing the materials for each of the two standard programs. The standard programs will be scheduled as step #2 and #3 in the same batch job by using the variant which has been overwritten by the Z-program.
2) Create a Z-program which identifies the materials for which RVV50R10C and SDV03V02 should process, and then at the end of the Z-program call these programs by specifying the material numbers in addition to other relevant selection criterions by passing a batch input table.
3) Copy the standard programs into Z-versions and enhance the selection criterias according to our needs.
Of the options above we would prefer not to use 3) since we rather use the standard programs due to SAP support etc. The preferred option would be 1).
Anyone faced a similar requirement and have some ideas about standard SAP functions to save a variant and what issues we might face in option 1) and 2)?
2009 Jun 19 10:22 AM
Hi Geir,
2nd option is good. Create a Z program to identify the material numbers which you want to process & then in the Z Program itself use SUBMIT statement to call the standard programs RVV50R10C and SDV03V02. Using SUBMIT statement you can populate the selection screen parameters for the calling programs.
Please let us know if you need any additional details.
Thanks,
Best regards,
Prashant
2009 Jun 19 10:24 AM
You can use the function module RS_CREATE_VARIANT for creation of variant..and then pass the varaint name when calling the second program...
Hope it helps!
2009 Jun 19 10:32 AM
Thanks a lot for the replies! We will try both options and evaluate which gives us the better result.
2011 Mar 02 11:28 AM
Hi Geir,
I know it's been a long time since your last message, but I have the same problem now..
Did you solved it?
I have a report Z* that selects my order and then does a SUBMIT of rvv50r10c. If I execute the report in foreground mode it's ok but if I execute it in background mode, it doesn't create the delivery!
Thanks!
Ilaria.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |