cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic call of OLI3BW (in R/3)

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

there is a function module called "RS_CREATE_VARIANT".

you can call it in your abap every time you get a range, and schedule a job with this variant.

Gr,

M.

Former Member
0 Kudos

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'.

< -


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

Note: I moved this topic to the ABAP forum.

Message was edited by: T. Jans-Beken

Former Member
0 Kudos

Dear,

don't forget to update us about your issue and any possible solution !

Thanks!

Roberto

Former Member
0 Kudos

Hi dear,

I think you have to look at CALL TRANSACTION statement (search in the ABAP help for more detail or post a question in the ABAP forum

Bye,

Roberto