SAP Sponsored Program / RGPROGRAM BAPI

ls_igms-sponsored_prog = prps-pbukr. “External No.
ls_igms-description = prps-postu. “Description

“Responisible Person
ls_gmspreson-sponsored_prog = prps-pbukr. “External No
ls_gmspreson-responsibility = ‘COPI’. “Type of responsibility
ls_gmspreson-object_type = ‘P’. “Position
ls_gmspreson-object_id = prps-vernr. “Peronal No.
ls_gmspreson-from_date = prps-erdat. “Start Date
ls_gmspreson-to_date = lc_enddt.
APPEND ls_gmspreson TO lt_gmspreson.
*
“financial data
ls_gmsprog-sponsored_prog = prps-pbukr. “External No
ls_gmsprog-fm_area = prps-fkokr. “FM Area
ls_gmsprog-funds_center = prps-fkstl. “Fund Center
ls_gmsprog-functional_area = prps-func_area. “Functional Area
ls_gmsprog-measure = prps-pbukr.
ls_gmsprog-default_budget = abap_true.
APPEND ls_gmsprog TO lt_gmsprog.

CALL FUNCTION ‘GM_SPONSORED_PROGRAM_CREATE’
EXPORTING
i_igmspprogram = ls_igms
TABLES
t_responsible = lt_gmspreson
t_gmspprogram_fmbt = lt_gmsprog
EXCEPTIONS
error = 1
OTHERS = 2.

Leave a Reply

Your email address will not be published. Required fields are marked *