Студопедия
Случайная страница | ТОМ-1 | ТОМ-2 | ТОМ-3
АрхитектураБиологияГеографияДругоеИностранные языки
ИнформатикаИсторияКультураЛитератураМатематика
МедицинаМеханикаОбразованиеОхрана трудаПедагогика
ПолитикаПравоПрограммированиеПсихологияРелигия
СоциологияСпортСтроительствоФизикаФилософия
ФинансыХимияЭкологияЭкономикаЭлектроника

Call screen 100.

Pa_int1 TYPE i, pa_op(1) TYPE c, pa_int2 TYPE i. | DATA result TYPE p DECIMALS 2. | ENDLOOP. ENDIF. | Wa_flight-seatsocc / wa_flight-seatsmax. | INSERT wa_flight INTO TABLE it_flight. | ID ’ACTVT’ FIELD ’02’. | WRITE: / ’Authority-Check Error’(001). ENDCASE. | Wa-percentage, ’%’. | Wa_sbook-loccurkey. | SELECT-OPTIONSname FORdata_object. |


Читайте также:
  1. CALL SCREEN 100.
  2. RENEWING YOUR LICENSE WITH A TOUCHSCREEN
  3. Screen Printing
  4. Screen Printing
  5. Screen Translation as a Combined Type of Interpreting
  6. Screening and Early Detection

 


 

 

281 Exercise 15: Screens: Data Transport

 

Exercise Duration: 30 Minutes

 

 

Exercise Objectives

 

After completing this exercise, you will be able to:

• Fill the screen fields with data from the program

 

 

Business Example

 

The screen of your program ZBC400_##_DYNPRO is to display the detailed data for the selected booking. Data changes by the user are to be available in the program after leaving the screen.

 

System Data

 

System: Will be assigned Client: Will be assigned User ID: Will be assigned Password: Will be assigned

Set up instructions: No special instructions when using a standard training system

 

Task 1:

 

Preparations

 

1. Extend your program ZBC400_##_DYNPRO_1 or copy the template SAPBC400UDS_DYNPRO_1 to the new name ZBC400_##_DYNPRO_2 for further processing.

 

2. In your program, use the TABLES statement to create a work area. This work area will serve as the screen interface. This work area must have the same name as the structure used on the screen.

 

3. Make sure that the key fields of the selected booking are available when the user selects a basic list row (HIDE).

 

Task 2:

 

Authorization check and data retrieval before the screen is called

 

1. Later, you should change your program appropriately so that the data in the database can be changed. Ensure that the screen can only be processed if the user has change authorization for the airline selected. If the user does not have the authorization, return to the basic list with message 047 of message class BC400. Message type 'S' is suitable.

 

Continued on next page


 

If the user has the authorization, read the selected posting (all fields) from database table SBOOK in your work area wa_sbook. This single access also retrieves the missing data of the booking and also ensures that current data is available for display.

 

2. Immediately before calling the screen, copy the relevant data from wa_sbook into the TABLES work area to have it transported to the screen automatically.


 

Solution 15: Screens: Data Transport

 

Task 1:

 

Preparations

 

1. Extend your program ZBC400_##_DYNPRO_1 or copy the template SAPBC400UDS_DYNPRO_1 to the new name ZBC400_##_DYNPRO_2 for further processing.

 

a) Carry out this step as usual.

 

2. In your program, use the TABLES statement to create a work area. This work area will serve as the screen interface. This work area must have the same name as the structure used on the screen.

 

a) Carry out this step as usual.

 

3. Make sure that the key fields of the selected booking are available when the user selects a basic list row (HIDE).

 

a) See source code excerpt in the model solution.

 

Task 2:

 

Authorization check and data retrieval before the screen is called

 

1. Later, you should change your program appropriately so that the data in the database can be changed. Ensure that the screen can only be processed if the user has change authorization for the airline selected. If the user does not have the authorization, return to the basic list with message 047 of message class BC400. Message type 'S' is suitable.

 

If the user has the authorization, read the selected posting (all fields) from database table SBOOK in your work area wa_sbook. This single access also retrieves the missing data of the booking and also ensures that current data is available for display.

 

a) See source code excerpt in the model solution.

 

2. Immediately before calling the screen, copy the relevant data from wa_sbook into the TABLES work area to have it transported to the screen automatically.

 

a) See the source code excerpt in the model solution.

 

Result

 

Source code excerpt: SAPBC400UDS_DYNPRO_2

 

 

REPORT sapbc400uds_dynpro_2.

 

Continued on next page


 

CONSTANTS: actvt_display TYPE activ_auth VALUE ’03’, actvt_change TYPE activ_auth VALUE ’02’.

 

PARAMETERS pa_anum TYPE sbook-agencynum.

 

 

* workarea for SELECT

DATA wa_sbook TYPE sbook.

 

 

* workarea for data communication with screen


Дата добавления: 2015-11-16; просмотров: 105 | Нарушение авторских прав


<== предыдущая страница | следующая страница ==>
MESSAGE e045(bc400) WITH pa_car. ENDIF.| CLEAR wa_sbook.

mybiblioteka.su - 2015-2024 год. (0.01 сек.)