SAP ISH_ASSIGN_TO_MOVEMENT Function Module for









ISH_ASSIGN_TO_MOVEMENT is a standard ish assign to movement SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for ish assign to movement FM, simply by entering the name ISH_ASSIGN_TO_MOVEMENT into the relevant SAP transaction such as SE37 or SE38.

Function Group: N029
Program Name: SAPLN029
Main Program: SAPLN029
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISH_ASSIGN_TO_MOVEMENT pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'ISH_ASSIGN_TO_MOVEMENT'"
EXPORTING
SS_EINRI = "IS-H: Institution
SS_FALNR = "IS-H: Case Number
SS_FALAR = "IS-H: Case Type
* SS_PATNR = "
* SS_LFDNR = "
* SS_WITH_POPUP = "
* SS_DECIDE_CHANGES = "

CHANGING
* SS_CHANGE_DATE = "
* SS_CHANGE_TARAS = "
* SS_CHANGE_ANFOE = "
* SS_CHANGE_ANPOE = "
* SS_CHANGE_ERBOE = "

TABLES
* I_NBEW = "
I_NLEI = "
I_RNLSR = "

EXCEPTIONS
WRONG_MOVEMENT_KEY = 1 NOTHING_SELECTED = 2 MISSING_FALAR = 3 NO_SERVICES = 4 WRONG_CASE_NUMBER = 5 VISIT_BILLED = 6 CASE_FINAL_BILLED = 7
.



IMPORTING Parameters details for ISH_ASSIGN_TO_MOVEMENT

SS_EINRI - IS-H: Institution

Data type: TN01-EINRI
Optional: No
Call by Reference: Yes

SS_FALNR - IS-H: Case Number

Data type: NFAL-FALNR
Optional: No
Call by Reference: Yes

SS_FALAR - IS-H: Case Type

Data type: NFAL-FALAR
Optional: No
Call by Reference: Yes

SS_PATNR -

Data type: NPAT-PATNR
Optional: Yes
Call by Reference: Yes

SS_LFDNR -

Data type: NBEW-LFDNR
Optional: Yes
Call by Reference: Yes

SS_WITH_POPUP -

Data type: NPDOK-XFELD
Optional: Yes
Call by Reference: Yes

SS_DECIDE_CHANGES -

Data type: NPDOK-XFELD
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for ISH_ASSIGN_TO_MOVEMENT

SS_CHANGE_DATE -

Data type: NPDOK-XFELD
Optional: Yes
Call by Reference: Yes

SS_CHANGE_TARAS -

Data type: NPDOK-XFELD
Optional: Yes
Call by Reference: Yes

SS_CHANGE_ANFOE -

Data type: NPDOK-XFELD
Optional: Yes
Call by Reference: Yes

SS_CHANGE_ANPOE -

Data type: NPDOK-XFELD
Optional: Yes
Call by Reference: Yes

SS_CHANGE_ERBOE -

Data type: NPDOK-XFELD
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for ISH_ASSIGN_TO_MOVEMENT

I_NBEW -

Data type: VNBEW
Optional: Yes
Call by Reference: Yes

I_NLEI -

Data type: NLEI
Optional: No
Call by Reference: Yes

I_RNLSR -

Data type: RNLSR
Optional: No
Call by Reference: Yes

EXCEPTIONS details

WRONG_MOVEMENT_KEY - Movement Does Not Exist

Data type:
Optional: No
Call by Reference: Yes

NOTHING_SELECTED -

Data type:
Optional: No
Call by Reference: Yes

MISSING_FALAR -

Data type:
Optional: No
Call by Reference: Yes

NO_SERVICES -

Data type:
Optional: No
Call by Reference: Yes

WRONG_CASE_NUMBER -

Data type:
Optional: No
Call by Reference: Yes

VISIT_BILLED -

Data type:
Optional: No
Call by Reference: Yes

CASE_FINAL_BILLED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISH_ASSIGN_TO_MOVEMENT Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_i_nbew  TYPE STANDARD TABLE OF VNBEW, "   
lv_ss_einri  TYPE TN01-EINRI, "   
lv_ss_change_date  TYPE NPDOK-XFELD, "   
lv_wrong_movement_key  TYPE NPDOK, "   
lt_i_nlei  TYPE STANDARD TABLE OF NLEI, "   
lv_ss_falnr  TYPE NFAL-FALNR, "   
lv_ss_change_taras  TYPE NPDOK-XFELD, "   
lv_nothing_selected  TYPE NPDOK, "   
lt_i_rnlsr  TYPE STANDARD TABLE OF RNLSR, "   
lv_ss_falar  TYPE NFAL-FALAR, "   
lv_missing_falar  TYPE NFAL, "   
lv_ss_change_anfoe  TYPE NPDOK-XFELD, "   
lv_ss_patnr  TYPE NPAT-PATNR, "   
lv_no_services  TYPE NPAT, "   
lv_ss_change_anpoe  TYPE NPDOK-XFELD, "   
lv_ss_lfdnr  TYPE NBEW-LFDNR, "   
lv_ss_change_erboe  TYPE NPDOK-XFELD, "   
lv_wrong_case_number  TYPE NPDOK, "   
lv_visit_billed  TYPE NPDOK, "   
lv_ss_with_popup  TYPE NPDOK-XFELD, "   
lv_case_final_billed  TYPE NPDOK, "   
lv_ss_decide_changes  TYPE NPDOK-XFELD. "   

  CALL FUNCTION 'ISH_ASSIGN_TO_MOVEMENT'  "
    EXPORTING
         SS_EINRI = lv_ss_einri
         SS_FALNR = lv_ss_falnr
         SS_FALAR = lv_ss_falar
         SS_PATNR = lv_ss_patnr
         SS_LFDNR = lv_ss_lfdnr
         SS_WITH_POPUP = lv_ss_with_popup
         SS_DECIDE_CHANGES = lv_ss_decide_changes
    CHANGING
         SS_CHANGE_DATE = lv_ss_change_date
         SS_CHANGE_TARAS = lv_ss_change_taras
         SS_CHANGE_ANFOE = lv_ss_change_anfoe
         SS_CHANGE_ANPOE = lv_ss_change_anpoe
         SS_CHANGE_ERBOE = lv_ss_change_erboe
    TABLES
         I_NBEW = lt_i_nbew
         I_NLEI = lt_i_nlei
         I_RNLSR = lt_i_rnlsr
    EXCEPTIONS
        WRONG_MOVEMENT_KEY = 1
        NOTHING_SELECTED = 2
        MISSING_FALAR = 3
        NO_SERVICES = 4
        WRONG_CASE_NUMBER = 5
        VISIT_BILLED = 6
        CASE_FINAL_BILLED = 7
. " ISH_ASSIGN_TO_MOVEMENT




ABAP code using 7.40 inline data declarations to call FM ISH_ASSIGN_TO_MOVEMENT

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single EINRI FROM TN01 INTO @DATA(ld_ss_einri).
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_change_date).
 
 
 
"SELECT single FALNR FROM NFAL INTO @DATA(ld_ss_falnr).
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_change_taras).
 
 
 
"SELECT single FALAR FROM NFAL INTO @DATA(ld_ss_falar).
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_change_anfoe).
 
"SELECT single PATNR FROM NPAT INTO @DATA(ld_ss_patnr).
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_change_anpoe).
 
"SELECT single LFDNR FROM NBEW INTO @DATA(ld_ss_lfdnr).
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_change_erboe).
 
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_with_popup).
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_decide_changes).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!