Hello experts,
The goal is to update the date of a record from the database table ZSHIPM_PLAN05.
In ABAP dictionnany I define a structure ZST_SHIPM_PLAN05 based on a database table in ZSHIPM_PLAN05
Further I define a variable import in function Module(FM): IV_SHIPMENT type ZST_SHIPM_PLAN05.
But I get the following error when compiling the FM: "IV_SHIPMENT" is neither specified under "TABLES" nor defined as a internal table.
Thank you for your Help.
In the top_include I have :
TYPES: BEGIN OF tt_ZST_SHIPM_PLAN05.
INCLUDE STRUCTURE ZST_SHIPM_PLAN05.
END OF tt_ZST_SHIPM_PLAN05.
DATA: gt_outtab TYPE TABLE OF tt_ZSHIPM_PLAN05,
wa_ZSHIPM_PLAN05 LIKE LINE OF gt_outtab.
CALL FUNCTION 'Z_SHIPM_PLAN_SAVE05'
EXPORTING
iv_shipment = gt_outtab
IMPORTING
es_return = gty_bapiret2.
FUNCTION Z_SHIPM_PLAN_SAVE05.
*"----
""Local Interface:
*" IMPORTING
*" REFERENCE(IV_SHIPMENT) TYPE ZST_SHIPM_PLAN05
*" EXPORTING
*" REFERENCE(ES_RETURN) TYPE BAPIRET2
*"----
LOOP AT IV_SHIPMENT INTO wa_ZST_SHIPM_PLAN05.
settings the color
IF wa_ZST_SHIPM_PLAN05-art = 'AA02' and wa_ZST_SHIPM_PLAN05-descr = 'ci0017'.
wa_ZSHIPM_PLAN05-crea_date = sy-date.
ENDIF.
MODIFY gt_outtab FROM wa_ZST_SHIPM_PLAN05 TRANSPORTING crea_date.
ENDLOOP.
"MESSAGE 'Do you want save' type 'I'.
SET SCREEN 0.
ENDFUNCTION.