{"audience":"Foreign trade and import-export teams, sales operations teams, accounting teams and teams working with customs brokers.","authorization_objects":[{"note":"Billing display authorization by sales organization","object":"V_VBRK_VKO"},{"note":"Purchase order display authorization by purchasing organization","object":"M_BEST_EKO"}],"components":[],"countries":[{"country":"TR","legal_basis":"The Inward Processing Regime Decision and Export Communiqué No. 2006/12 on the Inward Processing Regime; Customs Law No. 4458.","note":"The closure application is made through the Ministry of Trade system; the program prepares the import and export lists the application is based on."}],"effort_days_max":15,"effort_days_min":10,"effort_size":"L","faq":[{"a":"In the default setup the number is kept in the header text of the purchase order and the export invoice, so it can be used without adding a field. If the company uses another field (e.g. order reference or batch characteristic), the reading logic is adapted to it during installation.","q":"Where is the certificate number kept in SAP?"},{"a":"Because the commitment lines of the certificate give import and export quantities separately, the program tracks each line with its own quantity. If needed, the raw material content of exported products can also be calculated from BOM component quantities as an extra column.","q":"Is the conversion ratio of raw material into the export product considered?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"From a row you can drill down to the related import orders and export invoices."},{"code":"excel","label":"Export to Excel","note":"Closure lists can also be exported to Excel."},{"code":"email","label":"Send the result by email","note":"A weekly alert e-mail can be sent for certificates close to the deadline with missing exports."},{"code":"log","label":"Line-by-line result and error log","note":""}],"functions":[{"name":"READ_TEXT","role":"Reads the certificate number from the order and invoice text"},{"name":"SAVE_TEXT","role":"Writes the certificate number into the text of the export invoice assigned to the certificate"},{"name":"SSF_FUNCTION_MODULE_NAME","role":"Calls the closure list form"}],"gap":"MB51 lists imported raw material receipts and VF05 lists export invoices separately; neither links the movements to the authorization certificate or shows the remaining obligation against the committed quantity and the certificate deadline. Tracking is usually done in Excel files per certificate, and a shortfall in exports is not noticed until closure. The program produces the balance per certificate and the closure list from SAP data.","id":"tr-inward-processing-diib","industries":[],"input_columns":[{"derived":true,"label":"Certificate no.","required":true,"rule":"Certificate number issued by the Ministry of Trade","target_field":null,"target_table":null},{"derived":true,"label":"Line type","required":true,"rule":"Import or export","target_field":null,"target_table":null},{"derived":false,"label":"Material","required":false,"rule":"","target_field":"MATNR","target_table":"VBRP"},{"derived":false,"label":"Customs tariff no.","required":true,"rule":"","target_field":"STAWN","target_table":"MARC"},{"derived":true,"label":"Committed quantity","required":true,"rule":"Quantity permitted or committed in the certificate","target_field":null,"target_table":null},{"derived":true,"label":"Unit","required":false,"rule":"Unit of measure in the certificate","target_field":null,"target_table":null},{"derived":true,"label":"Deadline","required":true,"rule":"End of validity of the certificate","target_field":null,"target_table":null}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"1. The commitment lines of the certificate (certificate no., import/export line, material or customs tariff number, committed quantity, value, deadline) are read from Excel or taken from the previous run.\n2. Imports: purchase orders whose header text (STXH, READ_TEXT) holds the certificate number are found in EKKO; the realized import quantity comes from goods receipts in EKBE.\n3. Exports: export invoices whose header text holds the certificate number are read from VBRK and exported quantities from VBRP. Export invoices without the text are assigned to a certificate by user selection, and the number is written to the invoice text with SAVE_TEXT.\n4. The customs tariff number (GTİP) comes from MARC; matching to the commitment line is by material or tariff number.\n5. The fulfilment rate, remaining quantity and days to the deadline are calculated per line; certificates close to the deadline with missing exports are flagged.\n6. When closure is selected, the import and export lists are created as a form (PDF) and exported to Excel.","module":"SD","object_type":"form","output_columns":[{"calculated":true,"formula":"Certificate number from the commitment line","label":"Certificate no.","source_field":null,"source_table":null},{"calculated":true,"formula":"Import or export","label":"Line type","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"VBRP"},{"calculated":false,"formula":"","label":"Customs tariff no.","source_field":"STAWN","source_table":"MARC"},{"calculated":true,"formula":"Quantity on the commitment line","label":"Committed quantity","source_field":null,"source_table":null},{"calculated":true,"formula":"For imports Σ EKBE-MENGE (goods receipts), for exports Σ VBRP-FKIMG","label":"Realized quantity","source_field":null,"source_table":null},{"calculated":true,"formula":"Committed quantity − realized quantity","label":"Remaining quantity","source_field":null,"source_table":null},{"calculated":true,"formula":"Realized / committed × 100","label":"Fulfilment %","source_field":null,"source_table":null},{"calculated":true,"formula":"Deadline − today","label":"Days to deadline","source_field":null,"source_table":null},{"calculated":true,"formula":"In progress, at risk (deadline near and short), completed or closed","label":"Status","source_field":null,"source_table":null}],"parameters":[{"example":"2026/D1-01234","kind":"select_option","label":"Authorization certificate number","name":"S_DIIB","ref_field":"","required":true},{"example":"C:\\temp\\diib_2026_01234.xlsx","kind":"parameter","label":"Commitment lines file (on first run)","name":"P_FILE","ref_field":"","required":false},{"example":"1000","kind":"select_option","label":"Company code","name":"S_BUKRS","ref_field":"VBRK-BUKRS","required":true},{"example":"","kind":"checkbox","label":"Create closure lists","name":"P_CLOSE","ref_field":"","required":false}],"part_of":[],"performance":"Read text tables limited by object and text ID; when searching for the certificate number in texts, filter the STXH headers first. Read EKBE and VBRP in bulk by the order and invoice numbers linked to the certificate.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=tr-inward-processing-diib","related":["mm-open-po-by-vendor","mm-subcontracting-component-reconciliation","sd-order-delivery-invoice-status"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists imported raw material receipts; does not link them to the certificate and its commitment.","tcode":"MB51"},{"note":"Lists export invoices; does not show the remaining export obligation per certificate.","tcode":"VF05"}],"summary":"A custom program that matches raw materials imported duty-free under an inward processing authorization (DİİB) with the exports made under the same authorization, per certificate, and shows committed and realized quantities, the remaining export obligation and the certificate deadline. When the certificate is closed, the required import and export lists are prepared as a form.","tables":[{"access":"read","join_on":"","role":"Import purchase orders under the certificate","table":"EKKO","variant":"both"},{"access":"read","join_on":"EKBE-EBELN = EKKO-EBELN AND EKBE-VGABE = '1'","role":"Realized goods receipt quantities of imported raw material","table":"EKBE","variant":"both"},{"access":"read","join_on":"","role":"Export invoices under the certificate","table":"VBRK","variant":"both"},{"access":"read","join_on":"VBRP-VBELN = VBRK-VBELN","role":"Exported materials and quantities","table":"VBRP","variant":"both"},{"access":"read","join_on":"MARC-MATNR = VBRP-MATNR AND MARC-WERKS = VBRP-WERKS","role":"Customs tariff number (GTİP)","table":"MARC","variant":"both"},{"access":"read_write","join_on":"STXH-TDOBJECT IN ('EKKO','VBBK') AND STXH-TDNAME = belge no","role":"Certificate number in the order and invoice header text","table":"STXH","variant":"both"}],"title":"Türkiye Inward Processing Authorization (DİİB) Tracking and Closure Program","url":"https://nekuhub.com/en/programs/turkey-inward-processing-authorization-diib-tracking-and-closure/","vendor_id":"nekudos"}