R3_CALL_TRANSACTION

Use the R3_CALL_TRANSACTION script element to call an SAP transaction. Before calling the transaction, you must define the required data using the R3_SET_BDCDATA script element. For more information, see R3_SET_BDCDATA.

Important!

  • Use separate AE jobs for R3_CALL_TRANSACTION and R3_SET_BDCDATA. Otherwise, the user defined for R3_CALL_TRANSACTION may influence other SAP JCL script elements such as R3_ACTIVATE_REPORT.

  • For security reasons, this transaction is not executed using RFC user rights (SAP system user). The AE normally logs on to SAP with these rights to schedule background jobs. To call the transaction, the agent logs off the SAP system and logs on again using the user defined in the Login object for the corresponding AE job.

  • Use a dedicated SAP user for calling transactions from AE. This user must have the required transaction rights.

Transaction: -

Interface: AE

Syntax

R3_CALL_TRANS[ACTION] CODE=...[,UPDATE=...][,RACOMMIT=...][,NOBINPT=...]

Parameters

Parameter Description Format Allowed Values Default Value
CODE= Transaction code. Maximum 20 characters. Script literal n.a. n.a.
UPDATE=

(Optional)

Booking mode for the transaction Script literal
  • S — Synchronous
  • A — Asynchronous
  • L — Local
S
RACOMMIT=

(Optional)

Controls whether the transaction ends when the ABAP COMMIT WORK statement is executed Script literal
  • "" — The transaction continues until it ends normally
  • X — The transaction ends when COMMIT WORK completes
""
NOBINPT=

(Optional)

Controls the processing mode for the transaction Script literal
  • "" — The transaction is processed in BDC mode
  • X — The transaction is processed in the same way as transactions started by a dialog user
""

Examples

The following example fills the screen forms of the SA38 transaction with BDC data and then calls the transaction to process a data update.

R3_SET_BDCDATA PROGRAM="SAPMS38M", DYNPRO="0101", DYBEGIN="X"

R3_SET_BDCDATA FNAM="BDC_OKCODE", FVAL="=SSET"

R3_SET_BDCDATA FNAM="RS38M-PROGRAM", FVAL="RSEINB00"

R3_SET_BDCDATA PROGRAM="SAPLSVAR", DYNPRO="0302", DYBEGIN="X"

R3_SET_BDCDATA FNAM="BDC_OKCODE", FVAL="=CHNG"

R3_SET_BDCDATA FNAM="RSVAR-VARIANT", FVAL="UM-V1"

R3_SET_BDCDATA FNAM="RSVAR-FLAG1", FVAL="X"

R3_SET_BDCDATA PROGRAM="RSEINB00", DYNPRO="1000", DYBEGIN="X"

R3_SET_BDCDATA FNAM="BDC_OKCODE", FVAL="=SAVE"

R3_SET_BDCDATA FNAM="P_FILE", FVAL="test.txt"

R3_SET_BDCDATA PROGRAM="RSEINB00", DYNPRO="1000", DYBEGIN="X"

R3_SET_BDCDATA FNAM="BDC_OKCODE", FVAL="=VBAC"

R3_SET_BDCDATA PROGRAM="SAPLSVAR", DYNPRO="0302", DYBEGIN="X"

R3_SET_BDCDATA FNAM="BDC_OKCODE", FVAL="/EBACK"

R3_SET_BDCDATA PROGRAM="SAPMS38M", DYNPRO="0101", DYBEGIN="X"

R3_SET_BDCDATA FNAM="BDC_OKCODE", FVAL="=BACK"

R3_CALL_TRANSACTION CODE="SA38", UPDATE="S"

See also: