Ansicht
Dokumentation
/OPT/VIM_IIC_GET_OBJECT_DATA - Get object related data (template)
PERFORM Short Reference CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
This function module can be used as a template to determine the object related information to customer workflow tasks regarding object types different to DP document, Non-PO based invoice and PO based invoice.
All VIM standard fields as well as customer fields can be updated.
Example
The current work item is related to a purchase order. The data of the purchase order is read and set in the respective VIM standard fields as well as customer fields:
es_workitem = is_workitem.
CASE is_workitem-obj_type.
WHEN 'BUS2012'. "Purchase order
* Read data of purchase order into an internal structure ls_po_data
* ...
* Read vendor data into an internal structure ls_vendor_data
* ...
* Fill VIM standard fields
es_workitem-lifnr = ls_po_data-lifnr.
es_workitem-vend_name = ls_vendor_data-vend_name.
* ...
* Fill customer fields
es_workitem-zz_nplnr = ls_po_data-nplnr.
* ...
WHEN OTHERS.
ENDCASE.
Notes
Further information
Parameters
ES_WORKITEMIS_WORKITEM
Exceptions
DOCUMENT_NOT_FOUNDFunction Group
/SAPLVIM_FGIICSUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 1794 Date: 20240424 Time: 060856 sap01-206 ( 34 ms )