Skip to Content
author's profile photo
Former Member

triggering a abap program

Dear all,

I had a doubt regarding triggering an abap program.

Situation is after updating a ztable from an rfc. The program will get trigerred automatically for every update and creation of arecord in the ztable.

How it is possible.

Please help me regarding this.

Thanks in advance,

Ravi

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 06:52 AM

    yes, use SUBMIT statement.

    sameer

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      SUBMIT is a key word used to call an exe report(program) inside a program .

      the calling program may be a type 1,M,F etc except type I (include programs).

      <SYNTAX> SUBMIT <program name>.

      When you are updating the data base through the called program, then screen validation is necessary.

      <SYNTAX> SUBMIT <program name> VIA SELECTION-SCREEN.

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 06:52 AM

    In RFC u might have written statement like MODIFY/ UPDATE or INSERT, Chk Sy-Subrc after this. If it is successful then use statement

    Submit <Report Name>.

    It should trigger ur report after each insert or update.

    Regards

    Sushil

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      After compelte your bapi run this fm.

      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

      So that your bapi data stored to ztable.

      Rewards points if is useful.

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 06:54 AM

    check if the updation is successful.

    If sy-subrc is o.

    then use SUBMIT <REPORT>.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ravi,

      1) Once the table maintenace screen is generated .

      2)goto menu option Environment->Modification->Events.

      3)Create and entry. From F4 choose '05' in the first column. In FORM routine specify some name for e.g. SAVE_DATA. Then clickon the Editor pushbutton which creates a new include program.

      4)in the include program call the submit program within the form routine.

      FORM SACE_DATA.

      submit <>

      ENDFORM.

      5)Activate the code

      Thanks

      Lakshman