WhatsApp Button




top of page

Become Better With MODULE POOL PROGRAMMING In 10 Minutes



SAP-ABAP supports two types of programs – Report Program and Dialog Program.

If your ABAP program demands user input , Dialog programming is used.


A user dialog is any form of interaction between the user and the program and could be any of the following

  • Entering data

  • Choosing a menu item

  • Clicking a button

  • Clicking or double clicking an entry

Dialog program is also used when we need to navigate back and forth between screens


Dialog programs are created with type as 'M' – Module Pool. They cannot be executed independently and must be attached to at least one transaction code in which you specify an initial screen.


Events in Module Pool Programming —

  • Process Before Output (PBO) event: which is processed before the screen is displayed

  • Process After Input (PAI) event: which is processed after a user action on the screen

  • Process on help request (POH): which is processed when F1 is pressed

  • Process on value request (POV):which is processed when F4 is pressed


Steps to start with Module Pool Programming

  • On Object Navigator Screen (tcode - “SE80”) select program from drop down menu and then fill the name for the program. Click on enter and save the program.




  • After saving Program name will appear in the below grid, right click on program name and select create and screen.



Steps to create layout for the screen —


Step 1 - Click on layout button.




Sep 2 - Apply functions as per requirement




To add table contents in layout click on the circled button and then write the name of the table and click on “get from dictionary.” After clicking select the field and click on tick icon.


Coding Screen —

Main coding for the program —



Screen 1000 coding — Customer verification screen




Screen 1000 layout — Customer verification screen




Screen 2000 coding — New Customer Registration screen



Screen 2000 layout — New Customer Registration screen



GUI elements —




Output when Entered Customer No. is present —



Output when Entered Customer No. is not present —




Database table —




Tab Strip Control —

A tabstrip control is a screen object consisting of two or more pages. Each tab page consists of a tab title and a page area. If the area occupied by the tabstrip control is too narrow to display all of the tab titles, a scrollbar appears, allowing you to reach the titles that are not displayed. There is also a pushbutton that allows you to display a list of all tab titles.


Tabstrip controls allow you to place a series of screens belonging to an application on a single screen, and to navigate between them easily.


Steps to create a Tab Strip Control menu —

Step 1 - On the painter window click on the circled button (Tabstrip Control).



Step 2 - Double click on the tab name and rename as per requirement.



Step 3 - Repeat step 2 for second tab.



Step 4 - Click on the circled button (subscreen area) and drag inside the tabstrip box.



Sample program for checking if the record is present in the table and if not adding it into the data base table.


Main coding screen —



Screen 1000 coding — Customer verification screen



Screen 1000 layout — Customer verification screen



Screen 2000 coding — Tabstrip menu



Screen 2000 layout — Tabstrip menu



Screen 3000 coding — New Customer Registration screen



Screen 3000 layout — New Customer Registration screen



Screen 4000 coding —



Screen 4000 layout —



GUI elements —



Output when Entered Customer No. is present —



Output when Entered Customer No. is not present —




Database tables —

KNA1



KNKK



Steps to make transaction code —


Step 1 - Right click on program name for which you are creating transaction code and select create and transaction.



Step 2 - Fill the required fields and click on enter.



Step 3 - After clicking on enter check this statement. If it appears it means the transaction code is generated successfully.



Checking for the transaction










ISHNOOR SINGH SETHI LINKEDIN- https://www.linkedin.com/in/ishnoorsingh/













 
 
 

33 Comments


JD88 mình thấy bạn bè nhắc hoài nên cũng bấm vào coi thử cho biết chứ không có định ngồi khám phá kỹ. Vừa vào là thấy giao diện khá sáng sủa, nhìn không bị ngợp chữ hay rối mắt. Mình thích cái cách họ chia nội dung thành từng khối riêng, lướt xuống là nhận ra ngay mỗi phần đang nói gì, không phải căng mắt dò từng dòng. Thanh menu để chỗ dễ thấy nên chuyển qua lại cũng nhanh, kiểu bấm cái là tới luôn chứ không phải mò mẫm. Mấy đoạn thông tin trình bày theo dạng cột nhìn gọn, canh lề ổn nên đọc lướt cũng nắm được ý, nhất là các box nội dung…

Like

Fresh Casino eu acabei entrando mais pra dar uma olhada na estrutura do site do que pra ficar jogando de verdade. De cara achei a navegação bem tranquila, tipo tudo com cara de “cada coisa no seu lugar”, sem aquele monte de botão jogado que te faz perder tempo. Outra coisa que notei é que eles falam bastante de segurança e privacidade, com conexão segura e verificação de identidade, então passa uma sensação mais séria do que várias plataformas por aí. Não fiquei horas fuçando, mas deu pra ir e voltar entre as partes sem travar ou me confundir. O que mais ficou pra mim foi como os textos e as áreas são organizados, com títulos bem claros e blocos…

Like

LV88 mình mới lướt thử vì thấy bạn bè nhắc hoài, kiểu vào xem giao diện với cách họ trình bày thông tin ra sao thôi. Cảm giác đầu tiên là trang chủ nhìn khá thoáng, chữ không bị dồn dập nên đọc đỡ mệt, kéo xuống một chút là thấy các khối nội dung tách bạch. Mình cũng để ý họ có chỗ nói khá rõ về bảo mật, có nhắc mã hóa SSL 256-bit với tường lửa nhiều lớp nên ít nhất đọc qua cũng thấy yên tâm hơn. Không phải kiểu trang cố nhồi quá nhiều thứ lên một màn hình, nên lướt nhanh vẫn nắm được ý chính. Nói chung phần heading và các hộp thông…

Like

789 club dạo này thấy nhiều người nhắc quá nên mình cũng bấm vào nghía thử cho biết thôi. Mình không kiểu ngồi đọc kỹ hay làm gì sâu đâu, chủ yếu xem giao diện có dễ nhìn không. Vừa vào là thấy trang họ làm khá thoáng, chữ với các khối nội dung tách bạch nên mắt đỡ bị rối. Mình thích nhất là cách họ để thông tin theo dạng bảng cột nhìn gọn, lướt một vòng là nắm được ý chính chứ không phải kéo qua kéo lại mệt. Mấy nút menu cũng nằm chỗ dễ thấy nên chuyển mục nhanh, không phải mò mẫm. Nói chung cảm giác “vào là biết bấm gì” kiểu vậy, nhất…

Like

GO88 mình thấy bạn bè nhắc hoài nên cũng ghé thử cho biết, chủ yếu coi giao diện chứ không đào sâu gì. Vào cái là thấy trang làm kiểu đơn giản, nhìn thoáng mắt, các phần được chia khối rõ nên lướt xuống không bị rối. Mình để ý cái menu đặt khá dễ nhìn, bấm qua lại giữa mấy mục cũng mượt, không phải tìm vòng vòng. Mấy ô thông tin trên trang trình bày gọn gàng theo cột, nhìn lướt là hiểu đại khái đang có gì. Nói chung mình chỉ cần vậy để nắm cách họ sắp xếp nội dung, và mình thích nhất là cách họ gom từng khối nội dung với menu điều hướng…

Like
bottom of page