Skip to Content

BAPI call from Process Chain

Hi,

in our system , a Program runs everyday in R3 system to fill the customized delta tables and we run the process chain to load the data in BW from Delta tables in R3 system.But problem in the above scenario, after completion of R3 Job in R3 system the BW system does not aware of R3 job status so we have schedule the process chain in such a way that the process chain start after 2 Hours of completion of R3 jobs.

to overcome this, i need to implement either of the below requirement.

a BAPI call so that the R3 job can be triggered from BW from a process chain, and then the BW metachains can start once it is finished.

Or

we are using a ABAP program in R3 system to fill Delta table. So at the end of the ABAP code, send an RFC message to BW, which can trigger a job in BW which will start 1 meta chain.

please tell me which is the better option and how can i

Regards

Atul

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 19, 2011 at 10:11 AM
    Add a comment
    10|10000 characters needed characters exceeded

    • hi

      i have tried below logic in R3 side

      Create a Customized FM with Remote Enabled in BW system

      call that FM with RFC destination and Event name as Export parameter from a ABAP program in R3 Side

      i have given the Event name in Variant as same as i have created in BW system SM62

      when i had run the Program in R3 side the program run successfully but the process chain did not run in BW system.

      please let me know what is the reason behind this.

      below code i have written in ABAP program in R3 side

      parameters: rfcdest like rfcdisplay-rfcdest,

      zevent type char32.

      CALL FUNCTION 'Z999B_CB_F_EVENTRAISE' destination rfcdest

      EXPORTING

      EVENTID = ZEVENT

      EXCEPTIONS

      BAD_EVENTID = 1

      EVENTID_DOES_NOT_EXIST = 2

      EVENTID_MISSING = 3

      RAISE_FAILED = 4

      OTHERS = 5

      .

      IF SY-SUBRC <> 0.

      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

      ENDIF.

      Below FM i have developed in BW system with Remote Enabled in Attribute tab page of FM.

      FUNCTION Z999B_CB_F_EVENTRAISE.

      *"----


      ""Local Interface:

      *" IMPORTING

      *" VALUE(EVENTID) TYPE CHAR32

      *"----


      CALL FUNCTION 'BP_EVENT_RAISE'

      EXPORTING

      eventid = eventid

      • EVENTPARM = ' '

      • TARGET_INSTANCE = ' '

      EXCEPTIONS

      BAD_EVENTID = 1

      EVENTID_DOES_NOT_EXIST = 2

      EVENTID_MISSING = 3

      RAISE_FAILED = 4

      OTHERS = 5

      .

      IF sy-subrc <> 0.

      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

      ENDIF.

      ENDFUNCTION.

      Regards

      Atul

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.