SAP Function Modules

PK_EVENT_DRIVEN_KANBAN_POST SAP Function module - Erzeugt Kanbans für einen/mehrere Regelkreis(e)







PK_EVENT_DRIVEN_KANBAN_POST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name PK_EVENT_DRIVEN_KANBAN_POST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: MPKB
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM PK_EVENT_DRIVEN_KANBAN_POST - PK EVENT DRIVEN KANBAN POST





CALL FUNCTION 'PK_EVENT_DRIVEN_KANBAN_POST' "Erzeugt Kanbans für einen/mehrere Regelkreis(e)
* EXPORTING
*   i_no_dialog = SPACE         " c             Flag for Background Job
*   i_multi_plaf = SPACE        " c
  TABLES
    ipkerx =                    " pkerg         Enthält die auf FEHLER gesetzen Kanbans
    ipkps =                     " pkps          Enthält alle erzeugten Kanbans
*   ipkhd =                     " pkhd
    .  "  PK_EVENT_DRIVEN_KANBAN_POST

ABAP code example for Function Module PK_EVENT_DRIVEN_KANBAN_POST





The ABAP code below is a full code listing to execute function module PK_EVENT_DRIVEN_KANBAN_POST including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
it_ipkerx  TYPE STANDARD TABLE OF PKERG,"TABLES PARAM
wa_ipkerx  LIKE LINE OF it_ipkerx ,
it_ipkps  TYPE STANDARD TABLE OF PKPS,"TABLES PARAM
wa_ipkps  LIKE LINE OF it_ipkps ,
it_ipkhd  TYPE STANDARD TABLE OF PKHD,"TABLES PARAM
wa_ipkhd  LIKE LINE OF it_ipkhd .

DATA(ld_i_no_dialog) = 'Check type of data required'.
DATA(ld_i_multi_plaf) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ipkerx to it_ipkerx.

"populate fields of struture and append to itab
append wa_ipkps to it_ipkps.

"populate fields of struture and append to itab
append wa_ipkhd to it_ipkhd. . CALL FUNCTION 'PK_EVENT_DRIVEN_KANBAN_POST' * EXPORTING * i_no_dialog = ld_i_no_dialog * i_multi_plaf = ld_i_multi_plaf TABLES ipkerx = it_ipkerx ipkps = it_ipkps * ipkhd = it_ipkhd . " PK_EVENT_DRIVEN_KANBAN_POST
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_i_no_dialog  TYPE C ,
it_ipkerx  TYPE STANDARD TABLE OF PKERG ,
wa_ipkerx  LIKE LINE OF it_ipkerx,
ld_i_multi_plaf  TYPE C ,
it_ipkps  TYPE STANDARD TABLE OF PKPS ,
wa_ipkps  LIKE LINE OF it_ipkps,
it_ipkhd  TYPE STANDARD TABLE OF PKHD ,
wa_ipkhd  LIKE LINE OF it_ipkhd.

ld_i_no_dialog = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ipkerx to it_ipkerx.
ld_i_multi_plaf = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ipkps to it_ipkps.

"populate fields of struture and append to itab
append wa_ipkhd to it_ipkhd.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name PK_EVENT_DRIVEN_KANBAN_POST or its description.