Convert the OTF file to a PDF file using the function module CONVERT_OTF.Call smart form ZDEMO_SFM_01 by using Function module SSF_FUNCTION_MODULE_NAME.ĬALL FUNCTION lv_fm_name "'/1BCDWB/SF00000080'.INTO TABLE belnr = lt_ztab IS NOT INITIAL.ĭATA(ls_header) = VALUE #( lt_ztab ). Using That, Fetch data from the Database table and move it to the Overall structure.ĭATA(lv_key_tab) = VALUE #( it_key_tab-value ). By using IT_KEY_TAB, Fetch the Invoice document number given by the user.Redefine the method named /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_STREAM. Go to RUNTIME ARTIFACTS => ZCL_ZDEMO_ODATA_01_DPC_EXT.Generate the OData project and save it in a local object. ![]() Make sure the Media button in the entity type is enabled. The entity types and entity sets will be created.Select the required fields, set the primary key, and click Finish.Create a data model by importing DDIC structure ‘ZDEMO_STR_01’.Below I made an OData service named ZDEMO_ODATA_01 and saved it in the Local object. To create an OData service go to SAP Gateway Service Builder (transaction SEGW).Below structure is used as a sample source of our data model.Requirement: Pass the Invoice Document number (Belnr) as input and obtain Plant, Purchase document number, Item number, Fiscal year, Material Number, and Reference number as an output through OData Service by using the smart form. The objective is to pass the parameter as input and obtain an output as a PDF using Smart Form. ![]() This blog shows the gateway project using OData service to obtain an output as a PDF by using Smart form.
0 Comments
Leave a Reply. |