Form Calling from SAP Script

*&———————————————————————* *& Report ZSD_PICKING_FORM *&———————————————————————* *& *&———————————————————————* REPORT zsd_picking_form. ***read shipping notes * To call from from SAP Script: */: DEFINE &ITEM_TEXT& = ‘ ‘ */: DEFINE &LV_VBELN& = ‘0080000103’ */: PERFORM CALL_FROM_SCRIPT IN PROGRAM ZSD_PICKING_FORM */: USING &LV_VBELN& */: CHANGING &ITEM_TEXT& */: ENDPERFORM * To display the variable use the standard: * = &ITEM_TEXT& […]

Read More →
Sending an email from SAP with attachments

FORM send_mail USING xebeln. DATA: is_vendor_adrc TYPE adrc, is_vendor_adr6 TYPE adr6, email_subject(50) TYPE c, email_po_number(10) TYPE c. PERFORM get_vendor_details USING xebeln CHANGING is_vendor_adrc is_vendor_adr6. email_po_number = xebeln. CONCATENATE ‘PO No. ‘ email_po_number INTO email_subject RESPECTING BLANKS. “Subject of the mai. w_document_data-obj_name = ‘MAI_TO_HEAD’. w_document_data-obj_descr = email_subject. “Body of the mai PERFORM build_body_of_mail USING:space, ‘Hello,’, ‘Attached […]

Read More →
Calling a function from SAP Script

*&———————————————————————* *& Report ZFI_GET_INV_DUE_DATE *&———————————————————————* *& *&———————————————————————* REPORT zfi_get_inv_due_date. * for testing purposes PARAMETERS: p_bukrs TYPE bukrs DEFAULT ‘1710’, p_kunnr TYPE kunnr DEFAULT ‘17100100’, p_belnr TYPE belnr_d DEFAULT ‘9400000026’. DATA: lv_faedt TYPE faedt_fpos. PERFORM unit_test USING p_bukrs p_kunnr p_belnr. * To call from from SAP Script: */: DEFINE &DUE_DATE& = ‘00000000’ */: PERFORM CALL_FROM_SCRIPT IN […]

Read More →
SmartForms – Print programs

In order to print a SAP Scrip, Smart Form or Adobe Form you need a print program and an entry point into that program. The entry point is actually a form that gets the data passed in a standardized manner by the calling program. All calling programs use the same way to pass data to […]

Read More →