<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by UMUT TOSUN on Medium]]></title>
        <description><![CDATA[Stories by UMUT TOSUN on Medium]]></description>
        <link>https://medium.com/@tosun.umutt?source=rss-4f1c99cffb02------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*efjdaCqNItxgr0aaWHOhmA.jpeg</url>
            <title>Stories by UMUT TOSUN on Medium</title>
            <link>https://medium.com/@tosun.umutt?source=rss-4f1c99cffb02------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 09:52:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tosun.umutt/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[JWT 101 — BÖLÜM2]]></title>
            <link>https://medium.com/@tosun.umutt/jwt-101-b%C3%B6l%C3%BCm2-e2dd8bf918ff?source=rss-4f1c99cffb02------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2dd8bf918ff</guid>
            <category><![CDATA[jwt-token]]></category>
            <category><![CDATA[jwt]]></category>
            <category><![CDATA[json-web-token]]></category>
            <category><![CDATA[jwt-auth]]></category>
            <dc:creator><![CDATA[UMUT TOSUN]]></dc:creator>
            <pubDate>Wed, 18 Mar 2026 11:36:13 GMT</pubDate>
            <atom:updated>2026-03-18T11:36:13.788Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o-JxFyHn9gCu8XIrObfCEw.png" /><figcaption>Nano Banana Pro tarafından üretilmiştir.</figcaption></figure><p>Bu yazımda JWT serisine devam edeceğiz, eğer ilk bölümü okumadıysanız bu link üzerine erişim sağlayabilirsiniz.</p><p><a href="https://medium.com/@tosun.umutt/jwt101-0a32b0f54869">JWT 101 — BÖLÜM1</a></p><p>Bu yazının konu başlıkları aşağıdaki gibidir.</p><ul><li>JWT Anatomisi — Token Yapısı</li><li>Header, Payload, Signature</li><li>Claims nedir? (Registered, Public, Private claims)</li></ul><p>JWT noktalarla ayrılarak 3 bölümden oluşur. Bu üç parça sırasıyla aşağıdaki gibidir.</p><ul><li>Header</li><li>Payload</li><li>Signature</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3o5vxGyYG5rBTyLMMbUUDA.png" /></figure><p>Örnek olan bir jwt aşağıdaki gibi görünür.</p><pre>hhhhhhhhh.ppppppppp.ssssssssss</pre><h3>HEADER</h3><p>Token içerisinde yer alan bölümlerden ilk olarak headerı inceyelim, header genellikle 2 bölümden oluşur.</p><ul><li>TYP = Token tipi örnek olarak, şuan yazıda yer alan <strong>json web token</strong></li><li>ALG = HMAC, SHA256, …</li></ul><pre>{<br>  &quot;alg&quot;: &quot;HS256&quot;,<br>  &quot;typ&quot;: &quot;JWT&quot;<br>}</pre><p>Buradaki yer alan bilgi Base64Url ile encode edilip token’ın ilk parçasını oluşturur.</p><h3>PAYLOAD</h3><p>Payload, token’ın ikinci bölümüdür ve <strong>claims</strong> ) içerir. Claims, genellikle kullanıcı hakkındaki bilgileri ve ek verileri taşıyan ifadelerdir.</p><pre>{<br>  &quot;sub&quot;: &quot;1234567890&quot;,<br>  &quot;name&quot;: &quot;Umut Tosun&quot;,<br>  &quot;admin&quot;: true,<br>  &quot;iat&quot;: 1516239022<br>}</pre><p>Bu JSON da Header gibi <strong>Base64Url</strong> ile encode edilip token’ın ikinci parçasını oluşturur.</p><h3>SIGNATURE</h3><p>Signature, header ve payload’ın Base64Url encode edilip birleştirilmesiyle oluşturulur, ardından header’da belirtilen algoritma ve secret key ile imzalanır.</p><p>Signature’ın temel amacı <strong>bütünlük</strong> (integrity) sağlamaktır.</p><p>Token içindeki herhangi bir veri değiştirilirse signature artık eşleşmeyecek ve doğrulama başarısız olacaktır.</p><p>Burada dikkat edilmesi gereken önemli bir nokta vardır: <strong>Base64Url encoding bir şifreleme değildir.</strong></p><p>Header ve payload’ı herkes decode edebilir. Signature yalnızca verinin değiştirilmediğini garanti eder, gizlemez.</p><p>Bu nedenle token içine şifre, kredi kartı numarası gibi hassas veriler <strong>kesinlikle koyulmamalıdır.</strong></p><h3>CLAIMS NEDİR?</h3><p>Claims üç kategoriye ayrılır: <strong>Registered</strong>, <strong>Public</strong> ve <strong>Private</strong>.</p><h4>1. Registered Claims</h4><p>RFC 7519 standardıyla tanımlanmış, zorunlu olmayan ancak interoperability için önerilen claim’lerdir.</p><p>3 harfli kısa isimler kullanılır.</p><blockquote>JWT’nin kompakt bir yapıya sahip olması hedeflendiğinden, claim isimlerinin yalnızca üç karakterden oluştuğuna dikkat edin. (<a href="https://www.jwt.io/introduction#why-use-json-web-tokens">https://www.jwt.io/introduction#why-use-json-web-tokens</a>)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*tKCMkoeDMQFKPHAsSPPYiw.png" /></figure><h4>2. Public Claims</h4><p>Herkes tarafından kullanılabilir claim’lerdir.</p><pre>{<br>  &quot;email&quot;: &quot;user@example.com&quot;,<br>  &quot;name&quot;: &quot;Nano Banana&quot;<br>}</pre><h4>3. Private Claims</h4><p>Belirli iki taraf arasında kullanılan, uygulamaya özel claim’lerdir.</p><pre>{<br>  &quot;employee_id&quot;: &quot;EMP-4421&quot;,<br>  &quot;department&quot;: &quot;engineering&quot;<br>}</pre><p>Burada taraf olarak bahsettiğim Token`ı üreten ve tüketen sistemlerdir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*g05KL-vE9yC5IIx_z-uRVQ.png" /></figure><p>Yazıyı yazarken kullandığım kaynaklar.</p><ul><li><a href="https://www.jwt.io/introduction#how-json-web-tokens-work">https://www.jwt.io/introduction#how-json-web-tokens-work</a></li><li><a href="https://www.geeksforgeeks.org/web-tech/json-web-token-jwt/">https://www.geeksforgeeks.org/web-tech/json-web-token-jwt/</a></li><li>Gemini.AI ( Bazı görseller için )</li><li>Claude.AI ( Bazı düzenlemeler ve tablolar için )</li></ul><p>Yazım buraya kadardı umarım faydalı olmuştur.</p><p>Bölüm 3`de görüşmek üzere.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2dd8bf918ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JWT 101 — BÖLÜM1]]></title>
            <link>https://medium.com/@tosun.umutt/jwt101-0a32b0f54869?source=rss-4f1c99cffb02------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a32b0f54869</guid>
            <category><![CDATA[json-web-token]]></category>
            <category><![CDATA[jwt]]></category>
            <category><![CDATA[jwt-authentication]]></category>
            <category><![CDATA[jwt-token]]></category>
            <dc:creator><![CDATA[UMUT TOSUN]]></dc:creator>
            <pubDate>Sat, 27 Dec 2025 16:59:55 GMT</pubDate>
            <atom:updated>2025-12-27T17:11:14.111Z</atom:updated>
            <content:encoded><![CDATA[<h3>JWT 101 — BÖLÜM1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCgCRKcJcM8CFx0Akix5vQ.png" /><figcaption>Nano Banana Pro tarafından üretilmiştir.</figcaption></figure><p>Bu yazımda sizlere JWT (JSON Web Token) hakkında bilgiler vermeye çalışacağım.</p><ul><li><strong>Jwt Nedir ?</strong></li><li><strong>Authentication — Authorization Nedir ?</strong></li><li><strong>Jwt.io token decode nasıl edilir?</strong></li><li><strong>Token nerede depolanır?</strong></li></ul><p>JWT (JSON Web Token), iki taraf arasında güvenli bilgi alışverişi için kullanılan açık standart (RFC 7519) bir token formatıdır. Kompakt, URL-safe ve JSON formatında bilgi taşıyan bir string’dir.</p><p>JWT’nin en önemli özelliği <strong>self-contained</strong> (kendi kendine yeterli) olmasıdır. Token içerisinde kullanıcı bilgileri, roller ve diğer metadata bulunur. Bu sayede sunucunun her istekte veritabanına sorgu atmasına gerek kalmaz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-8LGxCeScaNguIohl8IjQ.png" /><figcaption>Nano Banana Pro tarafından üretilmiştir.</figcaption></figure><p>Öncelikle sıklıkla karıştırılan <strong>Authentication</strong> (kimlik doğrulama) ve <strong>Authorization</strong> (yetkilendirme) kavramlarını açıklayalım. Authentication, kullanıcının sistemde kimliğini doğrulama süreciyken; Authorization, doğrulanmış kullanıcının sistem içindeki erişim haklarını kontrol etme işlemidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ZbKvH6NMaBnqt0-eanwjg.png" /><figcaption>Nano Banana Pro tarafından üretilmiştir.</figcaption></figure><p>JWT, bu iki güvenlik mekanizmasını gerçekleştirmek için kullanılan token tabanlı bir kimlik doğrulama yöntemidir. Kullanıcı başarılı bir şekilde giriş yaptığında, sistem bir <strong>access_token</strong> ve bu token için bir <strong>expiration time</strong> (geçerlilik süresi) döner. Bu token, kullanıcı bilgilerini şifreli ancak decode edilebilir bir formatta taşır.</p><pre><br>    &quot;data&quot;: {<br>        &quot;token&quot;: &quot;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidG9zdW51bXV0dCIsInN1YiI6ImEwNjgzMmExLTgzNjctNGE2Ny1iY2Y0LTE5MzA0MTM4MzZhNiIsImVtYWlsIjoidG9zdW4udW11dHRAZ21haWwuY29tIiwiRnVsbE5hbWUiOiJVbXV0IFRPU1VOIiwibmJmIjoxNzY2ODUyOTQ1LCJleHAiOjE3NjY4NjAxNTAsImlzcyI6Imh0dHBzOi8vYXBpLnNhcmppc3Rhc3lvbmxhcmlibG9nLmNvbSIsImF1ZCI6Imh0dHBzOi8vd3d3LnNhcmppc3Rhc3lvbmxhcmlibG9nLmNvbSJ9.iOHAeHiNwRuVdIM-NjacODGtyKvrPeVlZpQu82SiGpk&quot;,<br>        &quot;expirationTime&quot;: &quot;2025-12-27T18:29:10.0278454Z&quot;<br>    },<br>    &quot;messages&quot;: null<br>}</pre><p>Token’ın içeriğinde kullanıcı adı, email, roller gibi <strong>public claims</strong> bulunur ve bu bilgiler client tarafında kolayca okunabilir.</p><p><a href="https://www.jwt.io/">JSON Web Tokens - jwt.io</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qUJ9t8MNedKjp5FqthTrcA.png" /><figcaption>Mevcut Token DECODED Payload</figcaption></figure><p>Client tarafında token genellikle <strong>Local Storage</strong>’da saklanır ve her API isteğinde header’a eklenir. Token’ın güvenliğini sağlayan unsur, sunucu tarafındaki <strong>secret key</strong> ile imzalanmış olmasıdır.</p><p>Bu secret key bilinmeden token değiştirilemez veya sahte token üretilemez.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6iy8_au_ath0pEL09Rb7Gg.png" /></figure><p>Yazım buraya kadardı umarım faydalı olmuştur.</p><p>Bölüm 2`de görüşmek üzere.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a32b0f54869" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VS Code üzerinden fiori projesi nasıl deploy edilir ?]]></title>
            <link>https://medium.com/@tosun.umutt/vs-code-%C3%BCzerinden-fiori-projesi-nas%C4%B1l-deploy-edilir-1214030d8ed3?source=rss-4f1c99cffb02------2</link>
            <guid isPermaLink="false">https://medium.com/p/1214030d8ed3</guid>
            <category><![CDATA[ui5]]></category>
            <category><![CDATA[fiori]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[vscode]]></category>
            <dc:creator><![CDATA[UMUT TOSUN]]></dc:creator>
            <pubDate>Sun, 25 Aug 2024 12:42:50 GMT</pubDate>
            <atom:updated>2024-08-25T12:57:10.550Z</atom:updated>
            <content:encoded><![CDATA[<h3>VS Code Üzerinden Fiori Projesi Nasıl Deploy edilir ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IgVI8VTCeN32j41suFfZsg.jpeg" /></figure><p>Bir önceki fiori yazımda sizlere nasıl yeni bir fiori projesi oluşturabileceğinizden bahsetmiştim. Bugün ise oluşturduğumuz projeyi sap sistemine nasıl deploy edeceğimiz hakkında bilgi vereceğim.</p><p>Projeyi oluştururken deploy config eklensin mi ? Sorusuna hayır diyebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*y-RxT3-kQDWYN-i_9iCePw.png" /><figcaption>No</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*LUHyfX8se0EXXih0CGujOA.png" /></figure><p>Terminal → new terminal seçiyoruz ve deploy işlemi için gerekli olan kütüphaneleri import ediyoruz.</p><p><strong>nwabap-ui5uploader, rimraf </strong>bu 2 paketi npm komutu ile projemize import ediyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*3FhVc1XcubU-c12MGiFZDQ.png" /></figure><pre>npm i nwabap-ui5uploader, rimraf</pre><p>Sonrasında projenin kök dizininde <strong>.nwabaprc</strong> diye klasör oluşturuyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hmfsWuCPEVhFUArra9-uw.png" /><figcaption>Config şablonu</figcaption></figure><pre>{<br>    &quot;base&quot;: &quot;./dist&quot;,<br>    &quot;conn_usestrictssl&quot;: false,<br>    &quot;conn_server&quot;: &quot;&quot;,<br>    &quot;conn_client&quot;: &quot;&quot;,<br>    &quot;conn_user&quot;: &quot;&quot;,<br>    &quot;conn_password&quot;: &quot;&quot;,<br>    &quot;abap_package&quot;: &quot;&quot;,<br>    &quot;abap_bsp&quot;: &quot;&quot;,<br>    &quot;abap_bsp_text&quot;: &quot;Deploy Medium Yazısı&quot;,<br>    &quot;abap_transport&quot;: &quot;&quot;,<br>    &quot;calcappindex&quot;: true<br>}</pre><p>Buradaki alanları kendi sisteminize göre uygun bir şekilde doldurmanız gerekiyor.</p><pre><strong>conn_server</strong> : Fiori port url kısmını temsil ediyor.<br>https://testdev.x.com.tr:8443/ - örnek url<br><br><strong>conn_client</strong> : Sisteminiz client numara bilgisidir.<br>( 100, 200, 400, 001 gibi değerler alabilir.<br><br>conn_user : Deploy için sistemdeki sap kullanıcı adınız.<br>conn_password : Deploy için sistemdeki sap kullanıcı parolanız.<br><br><strong>abap_package</strong> : Projenin deploy olacak paket ismi.<br>Herhangi bir paket yoksa se80 işlem kodu üzerinden oluşturabilirsiniz.<br><br><strong>abap_bsp</strong> : Projenin sistemdeki bsp application adını belirler.<br>Z ile başlamalıdır.<br><br><strong>abap_bsp_text</strong> : Proje bsp açıklaması.<br><br><strong>abap_transport</strong> : Deploy için bir request oluşturmalı,<br>ve bu request numarasını buraya yazmalısınız.</pre><p>Son olarak projemizin <strong>packgage.json</strong> dosyasında değişiklik yapıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*rN3V0oavoagyWCmAiBvv0A.png" /></figure><p>Buradaki deploy kısmını aşağıdaki şekilde değiştiriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oYmX-KZZHSHyz2tUKRO49w.png" /></figure><pre>  &quot;deploy&quot;: &quot;npm run build &amp;&amp; npx nwabap upload&quot;</pre><p>Terminalde <strong>npm run deploy</strong> komutunu çalıştırdğımız önce build alacak sonrasında ilgili sisteme deploy işlemini gerçekleştirecektir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*e6iqbTMCIoTh0ONFrMRKuQ.png" /></figure><p>Deploy aşamasında i18n.properties dosyası upload edilirken aşağıdaki hatayı alabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*sOfTHXR3CAnqP5Xm-9FwMA.png" /></figure><p>Bu hata i18n içerisindeki özel karakterlerden kaynaklanıyor.</p><p>Özel karakterleri silebilir veya aşağıdaki çözümleri deneyebilirsiniz</p><p><a href="https://sapui5.netweaver.ondemand.com/#/topic/df86bfbeab0645e5b764ffa488ed57dc">https://sapui5.netweaver.ondemand.com/#/topic/df86bfbeab0645e5b764ffa488ed57dc</a>.</p><p>Deploy işleminde herhangi bir hata almazsanız <strong>se80 işlem kodu</strong> üzerinde <strong>bsp application kategorisinde</strong> deploy olan projenizi görüntüleyebilirsiniz.</p><p>Daha farklı başlıklarda görüşmek üzere …</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1214030d8ed3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sap Fiori & VS Code Kurulum]]></title>
            <link>https://medium.com/@tosun.umutt/sap-fiori-vs-code-kurulum-78733497dca7?source=rss-4f1c99cffb02------2</link>
            <guid isPermaLink="false">https://medium.com/p/78733497dca7</guid>
            <category><![CDATA[fiori]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[sap-ui5-tutorial]]></category>
            <category><![CDATA[vscode]]></category>
            <dc:creator><![CDATA[UMUT TOSUN]]></dc:creator>
            <pubDate>Tue, 06 Aug 2024 19:33:46 GMT</pubDate>
            <atom:updated>2024-08-06T19:33:46.956Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhaba değerli okurlar, bugün vs code üzerinde fiori uygulamaları geliştirmek için gerekli paketleri, uygulamaları anlatıyor olacağım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ve5K-CRX5OzKaq5tYbcFXw.jpeg" /></figure><h4>VS-Code Kurulumu</h4><p>Büyük ihtimal bilgisayarınızda vs-code kurulu fakat kurulu değilse bu link üzerinden bilgisayarınıza uygun işletim sistemine göre kurulum sağlayabilirsiniz.</p><p><a href="https://code.visualstudio.com/download">Download Visual Studio Code - Mac, Linux, Windows</a></p><h4>Node Js Kurulumu</h4><p>Npm komutlarını kullanabilmemiz ve node paketlerini indirebilmemiz için node js kurmamız gerekiyor hangi yılda olursanız olun lts( long term support ( uzun sürelü destek ) ) sürümünü indirmenizi tavsiye ederim.</p><p>Aşağıdaki siteden işletim sisteminize uygun paketi indirebilirsiniz.</p><p><a href="https://nodejs.org/en">Node.js - Run JavaScript Everywhere</a></p><h4>Visual Studio Code Eklenti ( Extension ) Kurulumu</h4><p>Tüm eklentileri tek tek kurmak yerine bizim için gerekli olan eklentileri tek bir eklenti içerisinde toplayan eklentiyi indirerek hızlı bir şekilde kurulumu bitirebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iqJxRKvVbRHuO_RH8p2_ZQ.png" /><figcaption>Eklenti</figcaption></figure><p>Soldaki panelden kırmızı ile olan işaretli butona tıklıyoruz ve <strong>sap fiori tools</strong> aramasını yaptıktan sonra <strong>SAP Fiori Tools — Extension Pack </strong>eklentisini indiriyoruz.</p><p>Bu eklentiyi indirdikten sonra herhangi bir işlem yapmamıza gerek kalmıyor artık yeni bir fiori projesini oluşturabiliriz.</p><h4>Yeni Bir Fiori Projesi Oluşturma</h4><p>Ctrl+shift+p kısa yolunu yaptıktan sonra <strong>Fiori : Open Application Generator</strong> yazıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*4IlZJCu-kgfyAvBl0mN8rQ.png" /><figcaption>En Üstteki Seçenek</figcaption></figure><p>Burada sizde bu seçenek gelmiyorsa vs-code editörünü yeniden başlatabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VTOjt1cQsSbh_Pq09cQ74Q.png" /><figcaption>Wizard</figcaption></figure><p>Karşımıza gelen bu sayfada <strong>proje şablonunu seçtikten sonra next butonuna tıklamalıyız,</strong> ben bu örnekte <strong>basic</strong> olan üzerinden devam edeceğim. Siz istediğiniz şablonu seçebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*ApQsKMIsJ2j7kZP5M4_X8w.png" /></figure><p>Proje oluşturmanın bu adımında yeni bir sistem tanımlayabiliriz veya bir Odata service tanımı da yapabiliriz. Burada c<strong>onnect to a system seçeneği</strong> ile devam ediyoruz. Daha önce hiçbir sisteme bağlanmadıysanız bu aşamada yeni bir sistem tanımı gerekiyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*Yqx4zef1e8Orn3ekd9RhpQ.png" /></figure><p>Burada hiçbir sistem tanımlı olmadığı için sadece <strong>New System seçeneği</strong> geliyor biz buraya yeni sistem eklediğimizde sonradan proje oluştururken, oluşturduğumuz sistem burada görünecektir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*9gBR80XK5kGMtX4lbaJQ3Q.png" /></figure><p>Sistem tipini, url adresini, client ve auth bilgilerini girdikten sonra sağ altta kırmızı ile işaretli butona tıklıyor ve login bilgilerini kontrol ediyoruz. Eğer herhangi bir problem yoksa <strong>sol alttaki next butonu aktif olacaktır.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*p8TTavJzfV2StMa0x1UnQA.png" /></figure><p>Aşağıda gelen servis seçme yerinde odata servisimizi seçiyoruz, ben bu proje için daha önceden test amaçlı bir odata servisi oluşturdum ve onu seçtim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HjRUulq8p6mi3FbnvLX0cw.png" /></figure><p>Son adımda ise projemizin adınızı, oluşturulacağı klasörü ve versiyon bilgilerini seçiyoruz. Buradaki bilgileri de doldurduktan sonra finish butonuna tıklayarak projemizi oluşturabiliriz. Proje oluştuktan sonra terminali açıyoruz ve <strong>npm start</strong> komutu ile projemizi ayağa kaldırıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*111Qz4ofbxJzZZWiBhZqFw.png" /></figure><p>Burada npm komutu hata veriyorsa, node js kurulumu kontrol etmeniz gerekir. Herşeyi eksiksiz yaptıysanız proje default olarak 8080 üzerinden ayağa kalkacaktır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AUu94Rv15zWZCSaiDKIaGQ.png" /></figure><p>Bu şekilde proje ayağa kalkmış oldu.</p><p>Burada yazımı noktalıyorum, vs code üzerinde yeni geliştirme yapacak arkadaşlar için umarım faydalı bir kaynak olur.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78733497dca7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sapui5 Fragment Nedir ? Nasıl Kullanılır ?]]></title>
            <link>https://medium.com/@tosun.umutt/sapui5-fragment-nedir-nas%C4%B1l-kullan%C4%B1l%C4%B1r-477b29e81ec4?source=rss-4f1c99cffb02------2</link>
            <guid isPermaLink="false">https://medium.com/p/477b29e81ec4</guid>
            <category><![CDATA[sapui5]]></category>
            <category><![CDATA[fiori]]></category>
            <category><![CDATA[fragments]]></category>
            <category><![CDATA[sap]]></category>
            <dc:creator><![CDATA[UMUT TOSUN]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 07:13:34 GMT</pubDate>
            <atom:updated>2024-04-02T07:13:34.141Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sapui5 Fragment Nedir ? Nasıl Kullanılır ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EDGJg7N7WvtpqcYK6oOLsQ.jpeg" /><figcaption>AI IMAGE FROM BING IMAGE CREATOR</figcaption></figure><p>Merhaba değerli okurlar, bugün sapui5 tarafında fragment yapılarını inceleyeceğiz.</p><p>→ Fragment Nedir ?</p><p>→ Fragment Nasıl Oluşturulur ?</p><p>→ Fragment Nasıl Çağrılır ?</p><h3>Fragment Nedir ?</h3><p>Fragmentler, ekran tasarımını parçalara bölmek ve tekrar kullanılabilir bileşenler oluşturmak için kullanılan bir yapıdır. Bu, kod tekrarını azaltır, bakımı kolaylaştırır ve geliştirme sürecini hızlandırır. Aynı zamanda pop-up şeklinde diyalog ekranlarını da yapmamızı sağlar.</p><h3>Fragment Nasıl Oluşturulur ?</h3><p>Fragment oluşturmak için projemizin içerisinde fragment klasörü oluşturmamız gerekiyor. Bunu direkt olarak proje içerisinde veya view klasörünün içinde oluşturabiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*8s--qxBC4ImjI5vDwMkoxg.png" /><figcaption>Klasör İskeleti</figcaption></figure><p>Projenin içerisinde <strong>fragments</strong> adında bir klasör oluşturdum, şimdi bunun içine yeni bir <strong>fragment </strong>eklememiz gerekiyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*SXK3S63reWobydRnTYOVbA.png" /><figcaption>Fragment Oluşturma Adımı</figcaption></figure><p><strong>Klasöre sağ tık -&gt; new file</strong></p><p>Dosya adını <strong>projeadı.fragment.xml</strong> şeklinde oluşturuyoruz.</p><pre>&lt;core:FragmentDefinition xmlns=&quot;sap.m&quot; xmlns:l=&quot;sap.ui.layout&quot; xmlns:f=&quot;sap.ui.layout.form&quot; xmlns:core=&quot;sap.ui.core&quot;&gt;<br> &lt;Page &gt;<br>  &lt;content&gt;<br>   &lt;VBox class=&quot;sapUiSmallMargin&quot;&gt;<br>    &lt;f:SimpleForm layout=&quot;ResponsiveGridLayout&quot; labelSpanXL=&quot;4&quot; labelSpanL=&quot;3&quot; labelSpanM=&quot;4&quot; labelSpanS=&quot;12&quot; adjustLabelSpan=&quot;false&quot;<br>     emptySpanXL=&quot;0&quot; emptySpanL=&quot;4&quot; emptySpanM=&quot;0&quot; emptySpanS=&quot;0&quot; columnsXL=&quot;2&quot; columnsL=&quot;1&quot; columnsM=&quot;1&quot; singleContainerFullSize=&quot;false&quot;&gt;<br>     &lt;f:content&gt;<br>      &lt;Label text=&quot;Ad&quot;/&gt;<br>      &lt;Input type=&quot;Text&quot; value=&quot;&quot;/&gt;<br>      &lt;Label text=&quot;Soyad&quot;/&gt;<br>      &lt;Input type=&quot;Text&quot; value=&quot;&quot;/&gt;<br>      &lt;Label text=&quot;Doğum Yeri&quot;/&gt;<br>      &lt;Input type=&quot;Text&quot; value=&quot;&quot;/&gt;<br>     &lt;/f:content&gt;<br>    &lt;/f:SimpleForm&gt;<br>   &lt;/VBox&gt;<br>  &lt;/content&gt;<br> &lt;/Page&gt;<br>&lt;/core:FragmentDefinition&gt;</pre><p><strong>Fragment</strong> içerisinde basit bir form kodu yazıyoruz.</p><h3>Fragment Nasıl Çağrılır ( Pop-up / Partial ) ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fI-bwHtYjLzkZW_t6QKYA.png" /><figcaption>Fragment`i Partial Olarak Çağırma</figcaption></figure><p>Oluşturduğumuz fragment`i <strong>pop-up</strong> ya da <strong>partialview</strong> olarak çağırabiliriz yukarıdaki örnekte partialview mantığında çağırdık.</p><p>FragmentName = <strong>projectId.fragments.fragmentname</strong></p><p>Proje Id değerinizi <strong>manifest.json</strong> üzerinden görüntüleyebilirsiniz.</p><p>Şimdi bu fragmenti pop-up şeklinde çağıralım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XjxKMfDMcECcAVzoLlfoYg.png" /></figure><p>İlk olarak mevcut fragment koduna dialog etiketi ekledim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*91UX6MLhyug72zIrNvmfNg.png" /></figure><p>Fragment`i tetikleyecek butonu worklistview içerisinde ekledim ve press değerine fonksiyon adımı yazdım.</p><pre>onCallFragment: function() {<br><br>   if (!this.fragment) {<br>    this.fragment = sap.ui.xmlfragment(&quot;com.emlakkonut.tr.ZFragment_Tutorial.fragments.registerform&quot;, this);<br><br>    this.getView().addDependent(this.fragment);<br>   }<br><br>  <br><br>   this.fragment.open();<br><br>  }</pre><p>JavaScript kodunu yazdıktan sonra butona basıktan sonra ekrana <strong>pop-up olarak fragment gelecektir.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*SFTV6eltUBgfQSu5cUa9OQ.png" /></figure><p>Fakat ekrana gelen fragment`i kapatamıyoruz bunu nasıl yaparız ? Kapat butonu ekleyip, js kodunu yazmamız gerekiyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*WFVXgTbOrSb_ZbSoykOaqQ.png" /></figure><p>Fragment içinde bu şekilde kod eklemesi yaptım, sonrasında js kodunu yazmamız gerekiyor.</p><pre> onCloseFragment: function() {<br>   this.fragment.close();<br>  }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*d_QOjnAqkXdr9i2Z-D17cw.png" /></figure><p>Kapat butonuna tıkladığımız zaman fragment artık kapanıyor.</p><p>Çalışmamız burada tamamlandı.</p><p><strong>Çalışmayı yaparken olası hata alma nedenleriniz :</strong></p><ul><li>Yanlış isimlendirme, klasör adlarının path ile uyuşmaması</li><li>View tarafında kütüphane eklenmemesi ( örnek core )</li></ul><p>Buraya kadar okuduğunuz ve uyguladığınız için teşekkür ederim.</p><p>Yeni fiori yazılarında görüşmek üzere …</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=477b29e81ec4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sap Abap İle Rapid Api Kullanımı]]></title>
            <link>https://medium.com/@tosun.umutt/sap-abap-i%CC%87le-rapid-api-kullan%C4%B1m%C4%B1-ebd253d22791?source=rss-4f1c99cffb02------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebd253d22791</guid>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[rapidapi]]></category>
            <category><![CDATA[rapid]]></category>
            <dc:creator><![CDATA[UMUT TOSUN]]></dc:creator>
            <pubDate>Mon, 05 Feb 2024 08:23:33 GMT</pubDate>
            <atom:updated>2024-02-05T08:23:33.892Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eJcqQVnA-kb4jykd7DZBYA.jpeg" /></figure><p>Merhabalar abap programlama dilinde <strong>rapid api</strong> üzerinden <strong>text-translator</strong> apisini kullanarak girilen türkçe metni ingilizce diline çevireceğiz.</p><p>İlk olarak <strong>rapid api</strong> sitesinde hesabınız yoksa <a href="https://rapidapi.com/auth/sign-up?referral=/hub">https://rapidapi.com/auth/sign-up?referral=/hub</a> bu link üzerinden hesap oluşturabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3J2qcgC2JsHfazNbX47lGQ.png" /><figcaption>Kullanıcağımız API</figcaption></figure><p>Hesap oluşturduktan veya mevcut hesabınıza girdikten sonra yukardaki apiye ücretsiz olarak <strong>abone</strong> olabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HHerXQm79XTx77BRMdGdpw.png" /><figcaption>Api Test Ekranı</figcaption></figure><p>Abone olduktan sonra servis bize bir adet key veriyor, <strong>bu key kişiye özeldir.</strong> Bu key ile servisi tetikleyebiliriz.</p><p>Vakit kaybetmeden <strong>se38</strong> işlem kodundan <strong>yürütülebilir</strong> yeni bir program oluşturalım.</p><pre>REPORT zrapidapi_ut.<br><br>TYPES: BEGIN OF ty_inner_data,<br>         translatedtext TYPE string,<br>       END OF ty_inner_data.<br><br>TYPES: BEGIN OF ty_translated_data,<br>         status TYPE string,<br>         data   TYPE ty_inner_data,<br>       END OF ty_translated_data.<br><br>DATA: lv_response  TYPE string,<br>      ls_returnval TYPE ty_translated_data.<br><br><br>DATA: http_client TYPE REF TO if_http_client.<br><br>DATA: lv_http_status TYPE i,<br>      lv_status_text TYPE string.<br><br>DATA: lv_url      TYPE string.<br><br></pre><p><strong>ZRAPIDAPI_UT a</strong>dında yeni bir program oluşturdum ve bu program için gerekli tanımlamalarımı yaptım.</p><p>Servisten json olarak dönen veriyi karşılayabilmek için 2 adet type oluşturduk, bu tipleride <strong>ls_returnval</strong> değişkeninde kullandık.</p><p>Servise istek atabilmek için <strong>client</strong> oluşturduk ve bu client için status ve status text alanları da tanımladık.</p><pre>lv_url = &#39;https://text-translator2.p.rapidapi.com/translate&#39;.<br><br>cl_http_client=&gt;create_by_url(https://medium.com/EXPORTING%20url%20%20%20%20=%20lv_url%20IMPORTING%20client%20=%20http_client).<br><br>http_client-&gt;request-&gt;set_header_field( EXPORTING name  = &#39;~request_method&#39; value = &#39;POST&#39; ).<br><br>http_client-&gt;request-&gt;set_form_fields(<br> EXPORTING<br>   fields     = VALUE #(<br>                         ( name = &#39;source_language&#39;           value = &#39;tr&#39; )<br>                         ( name = &#39;target_language&#39; value = &#39;en&#39; )<br>                         ( name = &#39;text&#39; value = &#39;Mevcut borcunuzu bir aç içinde ödemelisiniz?&#39; ) ) ).<br><br>http_client-&gt;request-&gt;set_header_field( EXPORTING name = &#39;X-RapidAPI-Key&#39; value = &#39;YOURKEYVALUE&#39; ).<br><br>http_client-&gt;request-&gt;set_header_field( EXPORTING name = &#39;X-RapidAPI-Host&#39; value = &#39;text-translator2.p.rapidapi.com&#39; ).<br>```</pre><p><strong>YOURKEYVALUE </strong>alanında rapid api üzerinde size özel tanımlanan değeri girmelisiniz.</p><p>Yukardaki kısımda <strong>set_form_fields</strong> yapısı ile bizden istenen parametreleri gönderdik</p><p><strong>set_header_field </strong>yapısı ile method türünü belirledik farklı methodlarda burası get`de olabilir.</p><pre>http_client-&gt;send( timeout = if_http_client=&gt;co_timeout_default ).<br><br>http_client-&gt;receive( ).<br><br>http_client-&gt;response-&gt;get_status( IMPORTING code = lv_http_status reason = lv_status_text ).<br><br>lv_response =  http_client-&gt;response-&gt;get_cdata( ).<br><br>CALL METHOD /ui2/cl_json=&gt;deserialize( EXPORTING json = lv_response CHANGING data = ls_returnval ).<br><br>WRITE ls_returnval-data-translatedtext.</pre><p>Yukardaki kod blogunda ise sabit bir timeout belirledik, receive methodu ile yanıtı aldık.</p><p>Status ve statustext alanlarınız <strong>get_status methodu</strong> ile doldurduk.</p><p><strong>CALL METHOD /ui2/cl_json=&gt;deserialize</strong> ile <strong>json</strong> datayı kendi değişkenimize aktardık. Burada yapılması gerekli en önemli nokta json data ve ondan gelen datayı aktaracağınız internal table veya internal structure yapısı uyumlu olmalıdır.</p><pre>IF lv_http_status = 200.<br><br>  lv_response =  http_client-&gt;response-&gt;get_cdata( ).<br><br>  CALL METHOD /ui2/cl_json=&gt;deserialize( EXPORTING json = lv_response CHANGING data = ls_returnval ).<br><br>  WRITE ls_returnval-data-translatedtext.<br><br>ENDIF.</pre><p><strong>lv_http_status</strong> eğer 200 döndürmüşse başarılı bir şekilde istek atmışız demektir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*fsMYaAUqybLoPSR6jUecog.png" /></figure><p>Programı çalıştırıyoruz ve istediğimiz yapıyı başarılı bir şekilde kurmuş oluyoruz.</p><p>Bu mantık ile rapidapi üzerinden istediğiniz servisi programlarınıza entegre edebilirsiniz.</p><p>Daha farklı konularda görüşmek üzere …</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebd253d22791" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sap Abap Deep Entity İle Servis Bağlama Ve Test Etme]]></title>
            <link>https://medium.com/@tosun.umutt/sap-abap-deep-entity-i%CC%87le-servis-ba%C4%9Flama-ve-test-etme-89996c386b42?source=rss-4f1c99cffb02------2</link>
            <guid isPermaLink="false">https://medium.com/p/89996c386b42</guid>
            <category><![CDATA[abap]]></category>
            <dc:creator><![CDATA[UMUT TOSUN]]></dc:creator>
            <pubDate>Tue, 02 Jan 2024 08:08:46 GMT</pubDate>
            <atom:updated>2024-01-02T09:00:56.484Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese selamlar abap ve fiori tarafında bilgilerimi genişletmeye ve sizlere aktarmaya devam ediyorum. Bu içerikte <strong>abap</strong> tarafında fonksiyon modül oluşturduktan sonra <strong>deep entity</strong> ile servis yapısı kuracağız. Oluşturduğumuz servisi fiori makinesinden test ederek çalışmayı tamamlayacağız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*vbtoMe1SDHNrvKgWeeYEYw.png" /></figure><p>İlk olarak <strong>se37</strong> işlem kodundan <strong>fonksiyon modül</strong> oluşturmalıyız.</p><p>Oluşturduğumuz fonkisyon modülde <strong>attributes penceresine</strong> geliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*4NggtzPmk1NKOcb6PljXEg.png" /></figure><p>Bu pencerede <strong>proccessing type</strong> alanında fonksiyon modülü dışarıya açmak için <strong>remote-enabled module</strong> tikini tikliyoruz. Bu işlemi yapmadığımız durumda dışarıdan erişim sağlayamıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*jRq0ejYCQRn-U3vbtX--Og.png" /><figcaption>Fonksiyon Modül Import Sekmesi</figcaption></figure><p><strong>Import</strong> penceresinde ihtiyacımız olan parametreleri ekliyoruz ve bir tane de <strong>iv_connector</strong> alanını ekliyoruz. Bu alanı bağlama için kullanacağız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*JVjgt214_1zGXKMC4P7ecQ.png" /></figure><p>Bu kısımda da ihtiyacımız olan <strong>export</strong> parametrelerini ekliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*SJA2oZQEezUHCrMVLL23jA.png" /><figcaption>Source Code</figcaption></figure><p>Son olarak <strong>source code</strong> alanında işlemi çok basit tutarak herhangi bir şart koymadan basit bir kod yazdık.</p><p><strong>Se37</strong> işlem kodunda yapmamız gerekenleri tamamladık artık <strong>segw</strong> işlem koduna geçiş yapabiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*WYT1TheabHwG4_lU_grlKQ.png" /></figure><p><strong>Segw</strong> işlem kodunda yeni bir proje oluşturuyoruz. ( Adının <strong>Z</strong>`li başlamasına dikkat edin. )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*YQiQaIpFGL4PGdYI2jT1Hg.png" /></figure><p>İlk olarak data model oluşturarak başlayabiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*bUWB1mEVdrdx8YWBhHW2gw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*T_5mDwyglQbEdhJcp-u6fw.png" /><figcaption>ADIM 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6g8g3t2GX8ZEJm4fhFD3xg.png" /><figcaption>ADIM 2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zigc7edIoNiC2uR7XhmPRw.png" /><figcaption>ADIM 3</figcaption></figure><p>3 Adımı da tamamlayarak <strong>ana entity</strong> oluşturmayı tamamladık, bundan sonra <strong>import</strong> ve <strong>export</strong> için data model oluşturacağız ve en son hepsini bu <strong>ana entity`e</strong> bağlayacağız.</p><p>Tekrardan <strong>Data Model</strong> oluşturuyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R17g550lOI65XAt3j2IlFA.png" /><figcaption>Adım 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8OPCpbhxw3wkxAHliZY-mQ.png" /><figcaption>Adım 2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RPWSND5ihjgbvcvuTShxOg.png" /><figcaption>Adım 3</figcaption></figure><p>Toplamda 3 adet import alanımız var <strong>scarr</strong> için entity set oluşturduk, sırada <strong>sflight</strong> ve <strong>staff</strong> var</p><p>Sizden isteğim <strong>scarr</strong> mantığında;</p><p><strong>ImpSflightVeriKaydet, ImpStaffKaydet </strong>oluşturmanız. <strong>Assign</strong> tikini ve <strong>key alanı</strong> <strong>char</strong> seçmeyi unutmayın.</p><p>Tüm importları tamamlamış olduk, şimdi son olarak <strong>export</strong> ekleyelim sonrasında tüm entityleri ana entity`e bağlayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vjct93Vo6XW_PvZAjzg6fw.png" /><figcaption>Adım 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VB9t2lP3HWd3vtdrB6VnBw.png" /><figcaption>Adım 2</figcaption></figure><p>Adım 3`te <strong>message code</strong> alanını <strong>key</strong> seçerek işlemi tamamlıyoruz.</p><p>Tüm importlar ve exportlar tamamlandı.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*kOGhgFEI-WUajLNwd24Q7w.png" /><figcaption>Import ve Export</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*3VJBQDBnKm3Jloq77Yfg3Q.png" /><figcaption>GENERATE</figcaption></figure><p>Projeyi <strong>generate</strong> ediyoruz ve sonraki adımlara geçiyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*37K28RuH3gY8aw4tx0-YNA.png" /></figure><p><strong>Associations -&gt; </strong>Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IWGofa8OXCbw3Y2aCGaPrw.png" /><figcaption>Adım 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjWBt6_LNPqvLRhweXESmw.png" /><figcaption>Adım 2</figcaption></figure><p>2 Adımda ilk importumuz için associations oluşturduk burada akıllı isimlendirme yaptık. <strong>Navigation Property</strong> nav ile başladı import adı ile tamamlandı. <strong>Associations name </strong>ise <strong>Ass</strong> ile başladı ve import adı ile tamamlandı.</p><p><strong>Associations -&gt; </strong>Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SlpYMWBeMVyj9TEetuhd5A.png" /><figcaption>Adım 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GnjJJnAK8O6UdhIYWmiQCA.png" /><figcaption>Adım 2</figcaption></figure><p><strong>Associations -&gt; </strong>Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nD3YzeCSWGG3U258oQABKQ.png" /><figcaption>Adım 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pZNdBx0u1_nfO5GyAlIsOQ.png" /><figcaption>Adım 2</figcaption></figure><p><strong>Associations -&gt; </strong>Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CTI0NMsps8m1GXsKzQ5fxg.png" /><figcaption>Adım 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qLsEO5KsBsopWg4HNaTPww.png" /><figcaption>Adım 2</figcaption></figure><p>Tüm <strong>export</strong> ve <strong>import</strong> alanları için <strong>Associations </strong>oluşturduk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*TjKcsNFiHYR-lVZJNJB21g.png" /><figcaption>Son hali</figcaption></figure><p>Projeyi tekrardan <strong>generate</strong> ediyoruz ve artık <strong>dpc ext </strong>ve <strong>mpc ext</strong> tarafına geçiyoruz.</p><p><strong>Mpc_ext`e</strong> çift tıklıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*GXES5-xJJxDdyZo7byzwXA.png" /><figcaption>Redefine işlemi</figcaption></figure><p><strong>Define</strong> methodunu bulup, <strong>redefine</strong> ediyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VpznVCQTZrRh-1wXtYDdSQ.png" /><figcaption>DEFINE SOURCE CODE</figcaption></figure><p>Kodu yazdıktan sonra kaydedip aktif ediyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*UgDCi-9GgqY7vmKSmko1aA.png" /></figure><p><strong>Methods</strong> kısmından sonra <strong>types </strong>paneline geçiyoruz ve orda 1 tane type oluşturacağız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*rkZ1T3OW4P97bX0gWdOYzQ.png" /></figure><p><strong>Type</strong> adını girdikten sonra <strong>source code</strong> kısmına geçmek için kırmızı dairedeki butona tıklıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*BSYxQ1gAk9iF21QLdQILSA.png" /></figure><p>Burada da tanımlamaları yaptıktan sonra aktif ediyoruz veri dönerek projeyi <strong>generate</strong> ediyoruz.</p><p><strong>Dpx ext</strong> alanına geldik ve <strong>create deep entity</strong> methodunu redefine ediyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T--do-t003Y-Vh0GMBFZ_w.png" /></figure><p><strong>Redefine</strong> ettikten sonra <strong>methoda</strong> çift tıklıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*GYb5WVEmzoyEOKyTkrY1ig.png" /></figure><p>Burada birçok kısım standart her projede bunları yazıyoruz. Case yapısı kullanarak oluşturduğumuz entity`e istek gelme durumunu yakaladık ve istek geldiği zaman se37 işlem kodunda oluşturduğumuz fonksiyon modülü navigationlardan gelen parametrelerle besledik ve tetikledik. Son olarak kaydedip <strong>aktif</strong> ettikten sonra projemizi <strong>generate</strong> ediyoruz.</p><ul><li>Mpc ext`te yaptığınız değişikliğin Dpc ext`te görülmesi için projeyi generate etmeyi unutmayın.</li><li>Gönderdiğiniz entitylerin içinde tarih alanı (datetime) varsa <strong>properties</strong> kısmından <strong>nullable</strong> seçmeyi unutmayın.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqpw4nuhnxh_pA4KAifvdg.png" /><figcaption>Nullable tiki</figcaption></figure><p>Bu projede sflight entity`sinde <strong>datetime</strong> alanı vardı ve o alanı nullable seçtikten sonra projeyi son defa <strong>generate</strong> ediyoruz.</p><p>Şimdi fiori makinesine geçiş yapıyoruz ve orada bu servis test etmek için hizmet oluşturacağız.</p><p><strong>/n/IWFND/MAINT_SERVICE </strong>işlem koduna gidiyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*c5yAbgL51a4EqQAIZn8HOA.png" /></figure><p>Buradan hizmet ekle butonuna tıklıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YBfhPeIVR0pqXUoySOWFsA.png" /></figure><p>Burada sistem takma adını seçip, harici hizmet adına servis projemiz + _srv yazıp sorguluyoruz. Sonrasında gelen hizmetde kırmızı ile gösterdiğim linke tıklıyoruz burada ister local nesne olarak ister pakete ekledikten sonra kaydediyorsunuz ve hizmet ekleme işlemi tamamlanmış oluyor.</p><p>Hizmeti test etmek için bir önceki sayfaya dönüyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*G_Lq-vUfAtujF_RwHLgX8A.png" /></figure><p>Burada kendi oluşturduğumuz hizmeti bulup tıklıyoruz sonrasında kırmızı daire içindeki butona tıklayarak test etme sayfasına geçiş yapıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_GhYTijyxM9UHrHp1Bjsg.png" /></figure><ul><li>Http method türünü post seçiyoruz.</li><li>Sağ üstten entity sets butonundan ( VeriKaydetSet ) seçiyoruz çünkü oluşturduğumuz ana entity <strong>VeriKaydetSet</strong>.</li></ul><pre>`{<br>  &quot;navImpSflightVeriKaydet&quot; : {<br><br>  },<br>  &quot;navImpStaffVeriKaydet&quot; : {<br><br>  },<br>  &quot;navimpscarrverikaydet&quot; : {<br><br>  },<br>  &quot;navExpReturnVeriKaydet&quot; : {<br><br>  }<br>}</pre><p>Sol tarafta yer alan request kısmına json formatında data girişi yapmamız gerekiyor. Buradaki navigation isimleri ile segw işlem kodundakiler 1–1 e bir aynı olmalıdır.</p><p>Bunu da yaptıktan sonra sol üstten <strong>execute</strong> butonuna tıklıyoruz ve <strong>response </strong>alıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*JQtLniDCJykbtaEF2NCcMA.png" /><figcaption>Response</figcaption></figure><p>Olası alınabilecek hata nedenleri.</p><ul><li>Datetime fieldları nullable seçilmediği için hata alabilirsiniz.</li><li>Navigationlarınızın isimleri segw ile uyuşmuyor olabilir.</li><li>Mpc`ext veya dpc`ext methodlarınız aktif olmamış veya generate edilmemiş olabilir.</li></ul><p>Bu kısımda blog sonra eriyor buraya kadar okuduğunuz ve uyguladığınız için teşekkür ederim.</p><p>Bilginin paylaştıkça çoğaldığını unutmayalım. Yeni konularda ve yazılarda görüşmek üzere.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89996c386b42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sap Abap`da Servis Oluşturma Ve Postman Üzerinden Test Etme]]></title>
            <link>https://medium.com/@tosun.umutt/sap-abap-da-servis-olu%C5%9Fturma-ve-postman-%C3%BCzerinden-test-etme-7acdf468d9c?source=rss-4f1c99cffb02------2</link>
            <guid isPermaLink="false">https://medium.com/p/7acdf468d9c</guid>
            <category><![CDATA[sap-abap]]></category>
            <dc:creator><![CDATA[UMUT TOSUN]]></dc:creator>
            <pubDate>Fri, 26 May 2023 19:01:33 GMT</pubDate>
            <atom:updated>2023-05-26T19:01:33.463Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhabalar Sap Abap öğrenmeye ve öğrendiklerimi sizlere aktarmaya devam ediyorum . Bu içeriğimde abap tarafında <strong>servis oluşturmayı</strong> ve oluşturduğumuz bu servisi <strong>postman</strong> üzerinden nasıl tetikleyeceğimizden bahsetmek istiyorum.</p><figure><img alt="SAP &amp; POSTMAN" src="https://cdn-images-1.medium.com/max/1024/1*KN49c9Z29Ay4K0F_qYSRMQ.png" /><figcaption><strong>Sap Abap &amp; Postman</strong></figcaption></figure><p>Sap sistemine giriş yapıyoruz sonrasında <strong>se80 işlem kodundan function group </strong>oluşturuyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*rE6oc9e9lQyOfDQ8GiDfrQ.jpeg" /><figcaption><strong>Se80 işlem kodundan function group oluşturuyoruz ve aktif ediyoruz.</strong></figcaption></figure><p><strong>Local object</strong> olarak <strong>function group</strong> oluşturduktan sonra artık<strong> function module</strong> oluşturabiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*hl4fZbFqVc2JyPsivORVlg.png" /><figcaption><strong>Se80 işlem kodundan function module oluşturuyoruz ve aktif ediyoruz.</strong></figcaption></figure><p><strong>Function module </strong>oluştururken<strong> function group değerine</strong> önceden oluşturduğumuz <strong>ZUT_WS_FG2 </strong>değerini veriyoruz.</p><p><strong>Function Module</strong> ve <strong>Function Group</strong> oluşturduktan sonra servisimizin ekleme yapması gereken <strong>tabloyu</strong> da oluşturmamız gerekiyor. <strong>Tablomuzun</strong> <strong>data elementleri</strong> için <strong>se11 </strong>işlem kodundan <strong>StudentId ve StudentName</strong> adında 2 tane <strong>data element</strong> oluşturuyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*OFh1lNcoMometg0xmJdoCQ.png" /><figcaption><strong>Se11 İşlem Kodundan Data Element Oluşturuyoruz.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*dKo9wPBQ1Mv4m5F5fmSs7w.png" /><figcaption><strong>Oluşturduğumuz data element için domain veriyoruz.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*6hnDpHGfX4C8h4bNtN3FNQ.png" /><figcaption><strong>Oluşturduğumuz data element için label değerlerini veriyoruz.</strong></figcaption></figure><p><strong>Student name</strong> için bir <strong>data element</strong> oluşturduk için aynı işlemleri <strong>Student Id</strong> için yapmamız gerekiyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*RrR2ci7OrUo-dPt1FQWM1A.png" /><figcaption><strong>Se11 İşlem Kodundan Data Element Oluşturuyoruz.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*nHxY6YAimgV2IdJgm2zrFw.png" /><figcaption><strong>Oluşturduğumuz data element için domain veriyoruz.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*QGXJy79sRHfx-DuKCootPg.png" /><figcaption><strong>Oluşturduğumuz data element için label değerlerini veriyoruz.</strong></figcaption></figure><p>Data elementleri oluşturduktan sonra artık <strong>Student tablomuzu</strong> oluşturabiliriz yine <strong>s11 işlem kodundan</strong> <strong>database table</strong> oluşturuyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*dCSdN0VPePyvN8u1FWijVw.png" /><figcaption><strong>Oluşturduğumuz tablo için field değerlerini veriyoruz.</strong></figcaption></figure><p>Tablomuza <strong>MANDT,STU,ID,STU,NAME,UNAME,DATUM,UZEIT </strong>adında 5 <strong>sütun</strong> ekliyoruz.</p><p><strong>MANDT </strong>→ Client (Üst Birim İçin) — Zorunlu alandır.</p><p><strong>STU_ID </strong>→ Öğrenci Id — Öğrenci ID değerini alır.</p><p><strong>STU_NAME</strong> → Öğrenci Adı — Öğrenci Adı değerini alır.</p><p><strong>UNAME</strong> → Kullanıcı Adı — Sap UserName.</p><p><strong>DATUM</strong> → Tarih Bilgisi — Sistemden tarihi çeker.</p><p><strong>UZEIT</strong> → Saat Bilgisi — Sistemden saati çeker.</p><p>Data elementleri ve tabloyu oluşturduk artık <strong>function module</strong> için <strong>import</strong> , <strong>export</strong> değerlerini verebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*H_2v5NoJqHJp-_WIRQbc7A.png" /><figcaption><strong>Function Module Import Alanı</strong></figcaption></figure><p><strong>Pass By Value </strong>değerini tikliyoruz<strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*bet1wbAnpypfyjazRO3FTA.png" /><figcaption><strong>Function Module Export Alanı</strong></figcaption></figure><p>Aynı şekilde <strong>export</strong> alanında da <strong>Pass By Value </strong>değerini tikliyoruz<strong>.</strong></p><p><strong>Import</strong> ve <strong>export</strong> değerlerini verdik artık bu servis tetiklendiğinde gerçekleşmesi gereken işlem için kod yazmalıyız bu yüzden <strong>source code</strong> panelini açıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*SESLEMDoLqJ-1Eab_GXTYA.png" /></figure><p>Oluşturduğumuz tablo türünde <strong>structure</strong> tanımladık ve içini doldurduk. Eğer eklenmeye çalışan <strong>öğrenci id`</strong>si tabloda yok ise <strong>ekleme yapılıyor</strong> var ise <strong>işlem iptal</strong> ediliyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*a_xTi62bE-pQkInzkyPjzA.png" /></figure><p>Kod tarafında işlemlerimiz tamamlandı artık <strong>fonksiyon modülümüzü</strong> dışarıya açmak için <strong>Processing Type</strong> olarak<strong> Remote-Enabled Module</strong> Seçiyoruz.</p><p>Kaydedip aktif ettikten sonra sol yukardan sol yukarıdan aşağıdaki adımları takip etmemiz gerekiyor.</p><p><strong>utilities → more utilities → from the function module .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*5C-jtjIGJmedfy7Jr6VxCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*SV_sP-7BS_YYuGNzaVseKQ.png" /></figure><p><strong>Function group</strong> adını <strong>service definition</strong> alanına verdim fakat zorunlu değil farklı isim verilebilir bundan sonraki 4 adımı <strong>next next</strong> yapabilirsiniz, son olarak <strong>local object </strong>olarak kaydetmeyi unutmayın.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pGxqtpzukmdPb3nYIvILYg.png" /></figure><p>Karşımıza gelen sayfadan <strong>Configuration</strong> panelinden<strong> authentication profile</strong> kısmını <strong>low</strong> olarak işaretliyoruz. Tüm bu işlemleri yaptıktan sonra tekrardan<strong> aktif </strong>etmemiz gerekiyor.</p><p>Yeni işlem kodumuz <strong>soamanager, </strong>bu işlem kodundan servisimizin bazı ayarlarını yapmamız gerekiyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*weBonY5t_d2cEmsXiP7hRA.png" /></figure><p><strong>Soamanger</strong> işlem kodundan <strong>web service configuration </strong>sayfasına gidiyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*8MrFNP2ES_zqbjFUo7o5lg.png" /></figure><p>Bu sayfada <strong>servisimizin adını</strong> girip<strong> internal name</strong> alanına tıklıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*3apM6YtwL2BV_Vac3sVYcw.png" /></figure><p>Bu alandan <strong>Create Service</strong> butonuna tıklayıp ilerliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*hW72Sz93n77MjT1kY4U8-Q.png" /></figure><p><strong>Servis adını</strong> verdikten sonra <strong>next</strong> butonuna tıklayıp sonraki adıma geçiyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*MiOSUaI-_AJsxqAge-pJ9Q.png" /></figure><p>Bu sayfada <strong>USER ID/Password</strong> seçeneğini işaretliyoruz. Servisimiz kullanılmak istendiğinde <strong>kullanıcı adı</strong> ve <strong>şifre</strong> gerekecektir.</p><p>Son olarak <strong>next </strong>ve<strong> finish</strong> yaparak işlemleri tamamlıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-pSPVXO13KAXhGobUlfCJA.png" /></figure><p><strong>Servisimizi tetiklerken </strong>gerekli olan adresi görüntülemek için <strong>kırmızı</strong> ile seçili butona tıklıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MekR3DSlVQsydMVICYURmw.png" /></figure><p>Açılan sayfada bizim için gerekli olan <strong>WSDL URL</strong>`yi kopyalamamız gerekiyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYy_uCp1U1T7iG4-K1q_rQ.png" /></figure><p><strong>Postman’</strong>de yeni bir çalışma alanı açıyoruz.</p><p><strong>1-)</strong> İşlem türünü <strong>post </strong>olarak belirliyoruz.</p><p><strong>2-)</strong> <strong>Authorization</strong> panelinde <strong>basic auth</strong> seçiyoruz ve <strong>sap user</strong> bilgilerimizi giriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*Hfg8dKZBXp2PsFtUo9CuTQ.png" /></figure><p><strong>3-)</strong> <strong>Headers </strong>için yeni bir parametre ekliyoruz. <strong>Content-type</strong> anahtarına <strong>text/xml</strong> değeri veriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yi95QuPb-ItqgV4d1FQJXQ.png" /></figure><p><strong>4-) Body</strong> panelinden <strong>raw</strong> seçeneğini işaretliyoruz, sağ tarafında formatı xml olarak ayarlıyoruz. Bu işlemlerden sonra <strong>soap servis</strong> için gerekli parametreleri uygun formatta giriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jvz9EmZs0CrFAuiNK9QIcw.png" /></figure><p><strong>5-)</strong>Son olarak <strong>send</strong> butonuna tıklayarak servisimizi tetikliyoruz ve “<strong>Kayıt Ekleme Başarılı Sonucunu Alıyoruz </strong>” <strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*Caa7GGh_pCtG7t6Zr5mQOw.png" /></figure><p><strong>SE16N</strong> üzerinden verilerimizi listelediğimizde eklemenin <strong>başarılı </strong>olduğunu tekrardan görüyoruz.</p><p>Peki aynı <strong>ID</strong> ile tekrardan ekleme yapmaya çalışırsak durum ne olur <strong>?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C4X4Jou-W6c3n4KTsknjOw.png" /></figure><p>Bu sefer <strong>başarısız hatası alır</strong> ve işlemi gerçekleştiremeyiz.</p><p><strong>Postman</strong> tarafında yaptığımız testlerle tüm işlemleri tamamlamış olduk. Basit bir <strong>servis</strong> oluşturduk ve oluşturduğumuz bu servisi <strong>postman</strong> üzerinden tetikledik.</p><p>Umarım sizler için faydalı bir yazı olmuştur, yeni içeriklerde görüşmek üzere.</p><blockquote>Engeller olacak. Şüphe edenler olacak. Hatalar olacak. Ama çok çalışırsan, limitler ortadan kalkacak.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7acdf468d9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP ABAP’da Excel tablosunu bir iç tabloya aktarmak]]></title>
            <link>https://medium.com/@tosun.umutt/sap-abapda-excel-tablosunu-bir-i%C3%A7-tabloya-aktarmak-b4176512aa4d?source=rss-4f1c99cffb02------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4176512aa4d</guid>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[convert]]></category>
            <category><![CDATA[sap-abap]]></category>
            <dc:creator><![CDATA[UMUT TOSUN]]></dc:creator>
            <pubDate>Sat, 20 May 2023 17:19:10 GMT</pubDate>
            <atom:updated>2023-05-23T07:15:53.697Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhaba sizlere bu yazımda yaklaşık 1 aydır içinde olduğum sap abap dünyasında excel işlemlerinden bahsetmek istiyorum.Hepinize şimdiden iyi keyifler dilerim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*T86j77zKZEx6uubYx0EAEA.jpeg" /></figure><p>Öncelikle sap sistemine giriş yapıyoruz sonrasında uygulamamız için <strong>se38</strong> işlem kodundan <strong>yürütülebilir program</strong> oluşturuyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*L0wXxiceIi6SuZfBKU-9hA.jpeg" /></figure><p>İlk işlemimiz herhangi bir excel dosyasını abap tarafında bir tabloya aktarmak.Bunun için herhangi bir lokasyonda excel dosyası oluşturabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*Rz8x6JqtsBqy79BsKl5GBA.png" /></figure><p>Masa üstünde oluşturduğum excel dosyasına 5 sütun 8 satır ekledim.Excel dosyası hazır olduğuna göre artık abap tarafına geçebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*W9HtWiUp7gno2_SPIfWsfQ.png" /></figure><p>Öncelikle excel dosyasının içindeki veriler için bir tablo türü oluşturuyoruz .<strong>Sütun isimlerinin aynı olma zorunluluğu bulunmamaktadır.</strong>Ben anlaşılır olması için 2 tarafta da aynı isim değerlerini verdim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*ms-cSflsnLVU9_YxZDEv0g.png" /></figure><p>Oluşturduğumuz <strong>gty_itab</strong> için tablo türünde bir değer oluşturuyoruz.</p><p>Sonrasında kullanacağımız fonksiyon için <strong>gt_raw_data</strong> tanımladık .</p><p>Burada bizim için önemli olan kullanıcıya dosya seçtirebilmek bunun için p_file tanımlıyoruz ve bunun bir dosya değeri alıcağını belirtiyoruz.</p><p><strong>“AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file” </strong>ifadesi kullanıcı <strong>dosya seçme işlemini başlattığında</strong> çalışacak olan bir olay bloğu tanımlar. Bu blok, kullanıcıya dosya seçme işlemini gerçekleştirmek için bir seçim penceresi sunar.<strong>Kullanıcının seçtiği dosya değerini p_file değişkenine aktarır.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*OevTUkrPA-hOPu0G2dgPVw.png" /></figure><p>Yukarıda çağırdığımız <strong>F4_FILENAME</strong> fonksiyonunu veya başka bir fonksiyonunu çağırmak istiyorsanız üst menüden <strong>örnek butonuna</strong> tıklayın ve açılan pencerede <strong>call function değerine aradığınız fonksiyon adını</strong> girin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*GLzBxligugP2Ml3FOITmLw.png" /></figure><p>Eğer fonksiyon adını ezbere bilmiyorsanız içinde geçen kelimeleri * ile yazarak <strong>f4 tuşu</strong> ile arayabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*HBWwOLpNIwBy2AVHMzGYoA.png" /></figure><p>Kullanıcı excel dosyası seçtiği zaman yapılacak işlemleri<strong> start-of-selection</strong> eventinin altına yazıyoruz.Kullanıcının seçtiği excel dosyasını önceden hazırladığımız internal table`a atamak için <strong>TEXT_CONVERT_XLS_TO_SAP</strong> fonksiyonunu çağırıyoruz.Bu fonksiyonu yukardaki gibi örnek panelinden çağırabilirsiniz.Birçok parametresi olsada ben sadece temel ve gerekli olanlarI kullandım.</p><p><strong>I_LINE_HEADER </strong>parametresi ile excel dosyasının ilk satırının<strong> başlık satırı</strong> olup olmadığını belirtebiliriz.Bizim excel dosyamızın ilk satırı başlık olduğu için ben <strong>‘x’ </strong>değerini verdim.</p><p><strong>i_tab_raw_data = gt_raw_data</strong> ifadesi, Excel dosyasının içeriğini temsil eden <strong>gt_raw_data</strong> tablosunu dışarı aktarır. Bu tablo, <strong>truxs_t_text_data</strong> tipinde bir iç tablodur.</p><p><strong>i_filename</strong> parametresi ise kullanıcının seçtiği dosyayı belirtmemizi ister burada önceden tanımladığımız p_file değişkenini yazdık.</p><p>Son olarak convert işlemi sonrasında hangi tabloya aktaracağımızı <strong>i_tab_converted_data = gt_itab</strong> ifadesi ile belirledik.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*lDa4JV6MCTOIFe9kM3OxfA.png" /></figure><p>Kodumuzu tamamladık fakat ekrana herhangi bir şey yazdırmadığımız için işlemlerin doğru çalışıp çalışmadığını <strong>debug ekranında </strong>test edebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2j9cbpTR3nXmHEic8PpaMA.png" /></figure><p>Kodumuzun en altına <strong>break-point </strong>ekledim ve gt_itab tablosunun içine baktığımız zaman excel verilerimin gelmiş olduğunu gördüm.</p><p>Bundan sonraki yazılarımda burada yaptığımız işlemin tam tersinden bahsetmek istiyorum . Görüşmek üzere</p><blockquote>“Bir mermer parçası için heykel traş ne ise ruh için de eğitim odur.”<br>- Thomas Edison</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4176512aa4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java`da referans ve primitif tipler]]></title>
            <link>https://medium.com/@tosun.umutt/java-da-referans-ve-primitif-tipler-dbad8af978f4?source=rss-4f1c99cffb02------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbad8af978f4</guid>
            <category><![CDATA[primitive-data-types]]></category>
            <category><![CDATA[reference]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[UMUT TOSUN]]></dc:creator>
            <pubDate>Mon, 17 Oct 2022 08:47:28 GMT</pubDate>
            <atom:updated>2022-10-17T08:47:28.744Z</atom:updated>
            <content:encoded><![CDATA[<p>Bu yazımda sizlere java`da referans ve primitif tip nedir ve neden bilmeliyiz bunlardan bahsedeceğim. Ayrıca bu yazı benim ilk medium olacak o yüzden acemiliğim elbet olacaktır :)</p><h3>Java Primitif tipler;</h3><ul><li>Byte</li><li>Short</li><li>Int</li><li>Long</li><li>Float</li><li>Double</li><li>Char</li><li>Boolean</li></ul><h3><strong>Java Referans tipler;</strong></h3><ul><li>String</li><li>Array</li><li>Interface</li><li>Class</li><li>…</li></ul><p>Arkadaşlar şimdi sizlere bir sorum var aşağıdaki kodun çıktısı nedir ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uF8m20ffnEj7u1S9RImvnQ.png" /></figure><p>Kiminiz 20 kiminiz 30 bazılarınız ise 90 dedi . Bu soruda doğru cevap 30 . Burada önemli olan <strong>number=number2 </strong>ifadesinde tam olarak ne gerçekleştiğini anlamaktır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vuqOarjda6O7JTjkvvPNZg.png" /></figure><p>Yukarda gördüğünüz gibi primitif tiplerde yapılan eşitlemelerde referans adres verilmez sadece değer ataması yapılır tek seferlik bir işlemdir ve bundan sonra <strong>number2`nin</strong> değeri değişsse dahi <strong>number</strong> etkilenmez .</p><p><strong>Primitif </strong>tiplerde sorun yoksa referans tiplere geçebiliriz .</p><p>Şimdi size ikinci sorum aşağıdaki kodun çıktı nedir ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7wX3wrpVx9r-NESa3LjmEw.png" /></figure><p>Büyük ihtimal 1903 dediniz fakat malesef cevabımız 1903 değil burada işler biraz değişiyor <strong>çünkü diziler primitif degil referans tiplerdir . </strong>Gelin buradaki bölge içinde stack ve heap tablolarımızı çizelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QolsAS0J2W9qTeJwd7xJbA.png" /></figure><p>Bu sefer eşitleme yapıldıktan sonra farkettiğiniz gibi oklar tek adreste birleşti . Eğer güncel bir editör üzerinden kodlarınızı yazıyorsanız ilk tanımlanan <strong>numbers ifadesini pasif renge sokar. </strong>Aşağıya görsel bırakıyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*kBV1oM95GhtVJDrZFJtdjA.png" /></figure><p>artık<strong> numbers2`de </strong>değişen değerler<strong> numbers dizisinide</strong> etkiler çünkü heapta aynı adrese bağlılar.</p><blockquote>Genel olarak referans ve primitif tipler bu şekildedir.Referans tipleri güzel anlarsak oop(<a href="https://en.wikipedia.org/wiki/Object-oriented_programming">Object-oriented programming</a>) tarafında rahat ederiz.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbad8af978f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>