SAP ADPIC_UPDATE_PO_FROM_MIGO Function Module for Update PO with IC materials from MIGO (in new task)









ADPIC_UPDATE_PO_FROM_MIGO is a standard adpic update po from migo SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update PO with IC materials from MIGO (in new task) processing and below is the pattern details for this FM, 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 adpic update po from migo FM, simply by entering the name ADPIC_UPDATE_PO_FROM_MIGO into the relevant SAP transaction such as SE37 or SE38.

Function Group: ADPIC_MIGO
Program Name: SAPLADPIC_MIGO
Main Program: SAPLADPIC_MIGO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ADPIC_UPDATE_PO_FROM_MIGO 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 'ADPIC_UPDATE_PO_FROM_MIGO'"Update PO with IC materials from MIGO (in new task)
EXPORTING
* IT_IMSEG = "Table Type with Structure IMSEG
* IV_GOACTION = "
* IV_PROCESS_CODE = "Pseudo Process Code for Processes Supporting Auto. IC/RIC

TABLES
* ET_ALL_RETURNS = "Return Parameter
CT_ITEMS_FOR_EXCHANGE = "Table type of ADPIC_S_MIGO_ITEM

EXCEPTIONS
PO_UPDATE_FAILED = 1 PO_UPDATE_NOT_NECESSARY = 2
.



IMPORTING Parameters details for ADPIC_UPDATE_PO_FROM_MIGO

IT_IMSEG - Table Type with Structure IMSEG

Data type: TY_T_IMSEG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_GOACTION -

Data type: GOACTION
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_PROCESS_CODE - Pseudo Process Code for Processes Supporting Auto. IC/RIC

Data type: ADPIC_D_PROCESS_CODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ADPIC_UPDATE_PO_FROM_MIGO

ET_ALL_RETURNS - Return Parameter

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

CT_ITEMS_FOR_EXCHANGE - Table type of ADPIC_S_MIGO_ITEM

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

EXCEPTIONS details

PO_UPDATE_FAILED -

Data type:
Optional: No
Call by Reference: Yes

PO_UPDATE_NOT_NECESSARY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ADPIC_UPDATE_PO_FROM_MIGO 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:
lv_it_imseg  TYPE TY_T_IMSEG, "   
lt_et_all_returns  TYPE STANDARD TABLE OF ADPIC_T_ERROR_LOG, "   
lv_po_update_failed  TYPE ADPIC_T_ERROR_LOG, "   
lv_iv_goaction  TYPE GOACTION, "   
lt_ct_items_for_exchange  TYPE STANDARD TABLE OF ADPIC_T_MIGO_ITEM, "   
lv_po_update_not_necessary  TYPE ADPIC_T_MIGO_ITEM, "   
lv_iv_process_code  TYPE ADPIC_D_PROCESS_CODE. "   

  CALL FUNCTION 'ADPIC_UPDATE_PO_FROM_MIGO'  "Update PO with IC materials from MIGO (in new task)
    EXPORTING
         IT_IMSEG = lv_it_imseg
         IV_GOACTION = lv_iv_goaction
         IV_PROCESS_CODE = lv_iv_process_code
    TABLES
         ET_ALL_RETURNS = lt_et_all_returns
         CT_ITEMS_FOR_EXCHANGE = lt_ct_items_for_exchange
    EXCEPTIONS
        PO_UPDATE_FAILED = 1
        PO_UPDATE_NOT_NECESSARY = 2
. " ADPIC_UPDATE_PO_FROM_MIGO




ABAP code using 7.40 inline data declarations to call FM ADPIC_UPDATE_PO_FROM_MIGO

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.

 
 
 
 
 
 
 


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!