Skip to Content

how to pass process chain run date in infopackage automatically?

Hi

A process chain is need to be scheduled on every Saturday and we need

to pass process chain's run date in infopackage's (Data Selection) RUN_DATE automatically.

How can I do it??

Thanks

Imran Shafiq

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 07, 2017 at 08:38 AM

    unless the process chain runs for a very long time, the date should be derived from sy-datum

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 09, 2017 at 07:06 AM

    Hi Imran

    There are multiple options to achieve your requirement like ABAP routine, OLAP varibales, TVARVC table etc.

    As Mario said, you can pass sy-datum as it will be same date as the date of current process chain run (in which infopackage is running).

    However, if I have interpreted your question correctly, you want to pass process chain (Say PC1) PC1's start date to an infopackage say IP1 in a different process chain say PC2. So, in this case, you need to write one small & simple ABAP routine by selecting in F4 help of Type in IP1's data selection tab against your RUN_DATE selection and write the code.

    Sample Code for getting desired date:

    SELECT MAX(datum) FROM rspclogchain "MAX used to get latest date of process chain run.

    INTO v_datum

    WHERE chain id = v_chainid "Assign v_chainid with your process chain name after declaration.

    and analyzed_status = 'G' " G is for chain completed successfully, you can change it according to your need.

    if sy-subrc = 0.

    *assign v_datum to your RUN_DATE

    endif.

    Hope it helps.

    Thanks.

    Sushil

    Add comment
    10|10000 characters needed characters exceeded