Application Development and Automation 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: 
Read only

Calling transactions with pre-filled screen in background processing

geir_kronkvist1
Explorer
0 Likes
936

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)?

4 REPLIES 4
Read only

Former Member
0 Likes
690

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

Read only

former_member212005
Active Contributor
0 Likes
690

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!

Read only

geir_kronkvist1
Explorer
0 Likes
690

Thanks a lot for the replies! We will try both options and evaluate which gives us the better result.

Read only

0 Likes
690

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.