Skip to Content
0
Former Member
Oct 05, 2005 at 10:04 AM

Automatic call of OLI3BW (in R/3)

152 Views

To be able to initialise the LIS extractors for purchase we usually schedule a number of parallel processes. I have written an ABAP that proposes document-ranges to have equal size running times for each parallel process. Currently I manually type these proposed ranges in the transaction OLI3BW.

I would rather extend my ABAP to automatically enter the ranges in the OLI3BW transaction and to schedule that range automatically. Unfortunately, my ABAP knowledge is insufficient to create such an extension.

I would like a 'wrapper' for the OLI3BW transaction that I can call like this:

CALL FUNCTION wrapper_oli3bw

EXPORTING

range_low = r_lo

range_high = r_hi

start_time = time

start_date = date.

Any suggestions on how to accomplish this? Any ideas on how to automate initialisations differently are also welcome.

Note: I started this topic in the Business Intelligence forum, but I feel this is more generally an ABAP question.

One of the answers I got was to look at the module RS_CREATE_VARIANT. This function seems usable but...

I am afraid that I need a bit of help with this function.

Can you indicate briefly how to call this function?

I want to call OLI3BW. Lets say for documents '0001' to '0999'. How would I call RS_CREATE_VARIANT?

< -


EXAMPLE CODE BELOW -


>

DATA wt_parm like rsparams occurs 0 with header line.

wt_parm-SELNAME = ?????

wt_parm-KIND = ?????

wt_parm-SIGN = 'I'.

wt_parm-OPTION = 'BT'.

wt_parm-LOW = '0001'.

wt_parm-HIGH = '0999'.

append wt_parm.

CALL FUNCTION 'RS_CREATE_VARIANT'

EXPORTING

curr_report = ????

curr_variant = 'my_var_name'

vari_desc = 'My generated var'

tables

vari_contents = wt_parm

vari_text = ????