SAP Function Modules

ISH_EDI_ORDER_RECREATE SAP Function module







ISH_EDI_ORDER_RECREATE 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 ISH_EDI_ORDER_RECREATE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM ISH_EDI_ORDER_RECREATE - ISH EDI ORDER RECREATE





CALL FUNCTION 'ISH_EDI_ORDER_RECREATE' "
  EXPORTING
    i_einri =                   " nc301s-einri
    i_ediproc =                 " nc301s-ediproc
*   i_msgid =                   " nc301e-arbgb
*   i_msgnr =                   " nc301e-msgnr
*   i_eventsprocessing = SPACE  " rncom-xfeld
*   i_sent_msg = SPACE          " rncom-xfeld
*   i_delete = SPACE            " rncom-xfeld
  IMPORTING
    e_ordercount =              " rncom-quantity
* TABLES
*   i_nc301s =                  " nc301s
*   e_nc301 =                   " nc301
*   r_lf301 =                   " rnrangelf301
*   r_falnr =                   " rnrfal
*   r_dcp =                     " rnrangedas301
  EXCEPTIONS
    PARAMETER_ERROR = 1         "
    NO_MSG_FOUND = 2            "
    FUNCTION_NOT_PERMITTED = 3  "
    .  "  ISH_EDI_ORDER_RECREATE

ABAP code example for Function Module ISH_EDI_ORDER_RECREATE





The ABAP code below is a full code listing to execute function module ISH_EDI_ORDER_RECREATE 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:
ld_e_ordercount  TYPE RNCOM-QUANTITY ,
it_i_nc301s  TYPE STANDARD TABLE OF NC301S,"TABLES PARAM
wa_i_nc301s  LIKE LINE OF it_i_nc301s ,
it_e_nc301  TYPE STANDARD TABLE OF NC301,"TABLES PARAM
wa_e_nc301  LIKE LINE OF it_e_nc301 ,
it_r_lf301  TYPE STANDARD TABLE OF RNRANGELF301,"TABLES PARAM
wa_r_lf301  LIKE LINE OF it_r_lf301 ,
it_r_falnr  TYPE STANDARD TABLE OF RNRFAL,"TABLES PARAM
wa_r_falnr  LIKE LINE OF it_r_falnr ,
it_r_dcp  TYPE STANDARD TABLE OF RNRANGEDAS301,"TABLES PARAM
wa_r_dcp  LIKE LINE OF it_r_dcp .


SELECT single EINRI
FROM NC301S
INTO @DATA(ld_i_einri).


SELECT single EDIPROC
FROM NC301S
INTO @DATA(ld_i_ediproc).


SELECT single ARBGB
FROM NC301E
INTO @DATA(ld_i_msgid).


SELECT single MSGNR
FROM NC301E
INTO @DATA(ld_i_msgnr).


DATA(ld_i_eventsprocessing) = some text here

DATA(ld_i_sent_msg) = some text here

DATA(ld_i_delete) = some text here

"populate fields of struture and append to itab
append wa_i_nc301s to it_i_nc301s.

"populate fields of struture and append to itab
append wa_e_nc301 to it_e_nc301.

"populate fields of struture and append to itab
append wa_r_lf301 to it_r_lf301.

"populate fields of struture and append to itab
append wa_r_falnr to it_r_falnr.

"populate fields of struture and append to itab
append wa_r_dcp to it_r_dcp. . CALL FUNCTION 'ISH_EDI_ORDER_RECREATE' EXPORTING i_einri = ld_i_einri i_ediproc = ld_i_ediproc * i_msgid = ld_i_msgid * i_msgnr = ld_i_msgnr * i_eventsprocessing = ld_i_eventsprocessing * i_sent_msg = ld_i_sent_msg * i_delete = ld_i_delete IMPORTING e_ordercount = ld_e_ordercount * TABLES * i_nc301s = it_i_nc301s * e_nc301 = it_e_nc301 * r_lf301 = it_r_lf301 * r_falnr = it_r_falnr * r_dcp = it_r_dcp EXCEPTIONS PARAMETER_ERROR = 1 NO_MSG_FOUND = 2 FUNCTION_NOT_PERMITTED = 3 . " ISH_EDI_ORDER_RECREATE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_e_ordercount  TYPE RNCOM-QUANTITY ,
ld_i_einri  TYPE NC301S-EINRI ,
it_i_nc301s  TYPE STANDARD TABLE OF NC301S ,
wa_i_nc301s  LIKE LINE OF it_i_nc301s,
ld_i_ediproc  TYPE NC301S-EDIPROC ,
it_e_nc301  TYPE STANDARD TABLE OF NC301 ,
wa_e_nc301  LIKE LINE OF it_e_nc301,
ld_i_msgid  TYPE NC301E-ARBGB ,
it_r_lf301  TYPE STANDARD TABLE OF RNRANGELF301 ,
wa_r_lf301  LIKE LINE OF it_r_lf301,
ld_i_msgnr  TYPE NC301E-MSGNR ,
it_r_falnr  TYPE STANDARD TABLE OF RNRFAL ,
wa_r_falnr  LIKE LINE OF it_r_falnr,
ld_i_eventsprocessing  TYPE RNCOM-XFELD ,
it_r_dcp  TYPE STANDARD TABLE OF RNRANGEDAS301 ,
wa_r_dcp  LIKE LINE OF it_r_dcp,
ld_i_sent_msg  TYPE RNCOM-XFELD ,
ld_i_delete  TYPE RNCOM-XFELD .


SELECT single EINRI
FROM NC301S
INTO ld_i_einri.


"populate fields of struture and append to itab
append wa_i_nc301s to it_i_nc301s.

SELECT single EDIPROC
FROM NC301S
INTO ld_i_ediproc.


"populate fields of struture and append to itab
append wa_e_nc301 to it_e_nc301.

SELECT single ARBGB
FROM NC301E
INTO ld_i_msgid.


"populate fields of struture and append to itab
append wa_r_lf301 to it_r_lf301.

SELECT single MSGNR
FROM NC301E
INTO ld_i_msgnr.


"populate fields of struture and append to itab
append wa_r_falnr to it_r_falnr.

ld_i_eventsprocessing = some text here

"populate fields of struture and append to itab
append wa_r_dcp to it_r_dcp.

ld_i_sent_msg = some text here

ld_i_delete = some text here

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 ISH_EDI_ORDER_RECREATE or its description.