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

Recorded Variants usage in BDCDATA

Former Member
0 Likes
1,134

Hi Friends,

              I had recorded for a transaction (J1I5) in SHDB by selecting certain Selection screen Variant and i will run the program and it will generate a document, So if multiple variants are created for that transaction it has to run for all the variants one by one.

            After my recording the BDC_CURSOR for variants it had selected came like below

                 BDC_CURSOR  04/04

                  BDC_OKCODE  =PICK

                 BDC_CURSOR  05/06

                 BDC_OKCODE  =PICK


           Now how should i use the same in my BDC Program, because in future variants may change or gets added.


          How to decode this to know the what is the varaint ? or is that any formula that is been used like above ??



         Please suggest




Regards,

Lokesh

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
755

As you know the list of program variants (do you?), I advise you to run the program using transaction SA38/SE38 and select there the variant name (to that to avoid using the cursor in dynamic lists).

So, the batch input will run SA38/SE38.

If you have restriction about SA38/SE38 authorizations, you may also duplicate the transaction code to a custom one.

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
756

As you know the list of program variants (do you?), I advise you to run the program using transaction SA38/SE38 and select there the variant name (to that to avoid using the cursor in dynamic lists).

So, the batch input will run SA38/SE38.

If you have restriction about SA38/SE38 authorizations, you may also duplicate the transaction code to a custom one.