2016 May 17 1:39 PM
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
2016 May 18 12:52 PM
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.
2016 May 18 12:52 PM
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.