0% found this document useful (0 votes)
35 views15 pages

Futaba Pop Up Requirement

The document provides a sample SAP ABAP program that utilizes the POPUP_GET_VALUES_USER_CHECKED function to take user input and validate it against a custom Z table. It explains the necessary steps for defining the Z table, creating a popup for user input, and validating the input before outputting a message indicating whether the input is valid or not. Additionally, it outlines the urgent need for development changes related to a billing document issue and provides detailed steps for creating and assigning a search help to a table in SAP.

Uploaded by

amir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views15 pages

Futaba Pop Up Requirement

The document provides a sample SAP ABAP program that utilizes the POPUP_GET_VALUES_USER_CHECKED function to take user input and validate it against a custom Z table. It explains the necessary steps for defining the Z table, creating a popup for user input, and validating the input before outputting a message indicating whether the input is valid or not. Additionally, it outlines the urgent need for development changes related to a billing document issue and provides detailed steps for creating and assigning a search help to a table in SAP.

Uploaded by

amir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Sure!

Below is a sample SAP ABAP program that demonstrates how to take user input using
POPUP_GET_VALUES_USER_CHECKED and validate the input against entries in a custom Z table:

Sample ABAP Program

abap REPORT z_user_input_validation.

AI Sure! Below is a sample SAP ABAP program that demonstrates how to take user input using
POPUP_GET_VALUES_USER_CHECKED and validate the input against entries in a custom Z
table:Sample ABAP Programabap

REPORT z_user_input_validation.TABLES: z_my_table. " Replace with your actual table nameDATA:
lv_input TYPE z_my_table-field_name, " Replace with your actual field name

lt_fields TYPE TABLE OF rszl,

lv_message TYPE string." Define the fields for the popup

DATA: ls_field TYPE rszl." Clear field values

CLEAR lt_fields." Define the field for input

ls_field-name = 'CUSTOM_FIELD'. " Define the field name that you want to take input for

ls_field-type = 'CHAR'.

ls_field-length = 20. " Define the length of the input field

APPEND ls_field TO lt_fields." Show popup for user input

CALL FUNCTION 'POPUP_GET_VALUES_USER_CHECKED'

EXPORTING

title = 'Input Required'

text = 'Please enter the value:'

TABLES

fields = lt_fields

EXCEPTIONS

others = 1." Check if user pressed OK or Cancel

IF sy-subrc = 0." Save input to lv_input

READ TABLE lt_fields INTO ls_field WITH KEY name = 'CUSTOM_FIELD'.

IF sy-subrc = 0.

lv_input = ls_field-value." Validate input against Z table


SELECT SINGLE * FROM z_my_table INTO @DATA(ls_table_entry)

WHERE field_name = @lv_input. " Replace with actual field nameIF sy-subrc = 0.

lv_message = 'Input is valid. Entry exists in Z table.'.

ELSE.

lv_message = 'Input is invalid. No entry found in Z table.'.

ENDIF.ENDIF.ELSE.

lv_message = 'Input was cancelled by user.'.

ENDIF." Output the result

MESSAGE lv_message TYPE 'I'.Explanation:Z Table Definition: Define your Z table in the TABLES
statement. Replace z_my_table and field_name with your actual table and field names.Popup Fields:
The program creates a popup with a single input field using
POPUP_GET_VALUES_USER_CHECKED.Input Validation: After retrieving the input, the program
checks if the input value exists in the Z table.Output Message: The output reflects whether the input
is valid or invalid.Notes:Adapt the field names and types according to your actual Z table
structure.Make sure you have permission to access the table and perform select
operations.Depending on your system configuration, you may need to ensure that proper
authorizations are in place to allow for data manipulation.This program can help validate user inputs
effectively within your SAP ABAP applications! Let me know if you need further adjustments or
explanations. Sure! Below is a sample SAP ABAP program that demonstrates how to take user input
using POPUP_GET_VALUES_USER_CHECKED and validate the input against entries in a custom Z
table:Sample ABAP Programabap

REPORT z_user_input_validation.TABLES: z_my_table. " Replace with your actual table nameDATA:
lv_input TYPE z_my_table-field_name, " Replace with your actual field name

lt_fields TYPE TABLE OF rszl,

lv_message TYPE string." Define the fields for the popup

DATA: ls_field TYPE rszl." Clear field values

CLEAR lt_fields." Define the field for input

ls_field-name = 'CUSTOM_FIELD'. " Define the field name that you want to take input for

ls_field-type = 'CHAR'.

ls_field-length = 20. " Define the length of the input field

APPEND ls_field TO lt_fields." Show popup for user input

CALL FUNCTION 'POPUP_GET_VALUES_USER_CHECKED'

EXPORTING
title = 'Input Required'

text = 'Please enter the value:'

TABLES

fields = lt_fields

EXCEPTIONS

others = 1." Check if user pressed OK or Cancel

IF sy-subrc = 0." Save input to lv_input

READ TABLE lt_fields INTO ls_field WITH KEY name = 'CUSTOM_FIELD'.

IF sy-subrc = 0.

lv_input = ls_field-value." Validate input against Z table

SELECT SINGLE * FROM z_my_table INTO @DATA(ls_table_entry)

WHERE field_name = @lv_input. " Replace with actual field nameIF sy-subrc = 0.

lv_message = 'Input is valid. Entry exists in Z table.'.

ELSE.

lv_message = 'Input is invalid. No entry found in Z table.'.

ENDIF.ENDIF.ELSE.

lv_message = 'Input was cancelled by user.'.

ENDIF." Output the result

MESSAGE lv_message TYPE 'I'.Explanation:Z Table Definition: Define your Z table in the TABLES
statement. Replace z_my_table and field_name with your actual table and field names.Popup Fields:
The program creates a popup with a single input field using
POPUP_GET_VALUES_USER_CHECKED.Input Validation: After retrieving the input, the program
checks if the input value exists in the Z table.Output Message: The output reflects whether the input
is valid or invalid.Notes:Adapt the field names and types according to your actual Z table
structure.Make sure you have permission to access the table and perform select
operations.Depending on your system configuration, you may need to ensure that proper
authorizations are in place to allow for data manipulation.This program can help validate user inputs
effectively within your SAP ABAP applications! Let me know if you need further adjustments or
explanations.

TABLES: z_my_table. " Replace with your actual table name

DATA: lv_input TYPE z_my_table-field_name, " Replace with your actual field name lt_fields TYPE
TABLE OF rszl, lv_message TYPE string.
" Define the fields for the popup DATA: ls_field TYPE rszl.

" Clear field values CLEAR lt_fields.

" Define the field for input ls_field-name = 'CUSTOM_FIELD'. " Define the field name that you want
to take input for ls_field-type = 'CHAR'. ls_field-length = 20. " Define the length of the input field
APPEND ls_field TO lt_fields.

" Show popup for user input CALL FUNCTION 'POPUP_GET_VALUES_USER_CHECKED' EXPORTING
title = 'Input Required' text = 'Please enter the value:' TABLES fields = lt_fields EXCEPTIONS others =
1.

" Check if user pressed OK or Cancel IF sy-subrc = 0.

" Save input to lv_input READ TABLE lt_fields INTO ls_field WITH KEY name = 'CUSTOM_FIELD'. IF sy-
subrc = 0. lv_input = ls_field-value.

" Validate input against Z table SELECT SINGLE * FROM z_my_table INTO @DATA(ls_table_entry)
WHERE field_name = @lv_input. " Replace with actual field name

IF sy-subrc = 0. lv_message = 'Input is valid. Entry exists in Z table.'. ELSE. lv_message = 'Input is
invalid. No entry found in Z table.'. ENDIF.

ENDIF.

ELSE. lv_message = 'Input was cancelled by user.'. ENDIF.

" Output the result MESSAGE lv_message TYPE 'I'.

Explanation:

1. Z Table Definition: Define your Z table in the TABLES statement. Replace z_my_table and
field_name with your actual table and field names.

2. Popup Fields: The program creates a popup with a single input field using
POPUP_GET_VALUES_USER_CHECKED.

3. Input Validation: After retrieving the input, the program checks if the input value exists in
the Z table.

4. Output Message: The output reflects whether the input is valid or invalid.

Notes:

 Adapt the field names and types according to your actual Z table structure.

 Make sure you have permission to access the table and perform select operations.

 Depending on your system configuration, you may need to ensure that proper
authorizations are in place to allow for data manipulation.
This program can help validate user inputs effectively within your SAP ABAP applications! Let me
know if you need further adjustments or explanations.

Dear Prerna San,

Urgent!

As per yesterday's discussion, all development changes were to be completed by yesterday but as
observed, during Printing of Billing Document with T-code VF03 in SAP QAS, no pop-up dialog
box/screen is coming for selecting the authorized signatory as shown below.

As communicated earlier, Delivery is already delayed, and Delivery timeline has already been
breached. This can cause customer escalation.

Kindly share date/time by which delivery can be done. In case of any concern, kindly share the
same.

Requirement discussed with customer during Requirement Gathering Meeting: Instead of


Employee ID, Name will be selected as per discussion with customer.
Current Design in SAP QAS:
Creating Search Help and Assigning to a Table

Creating a search help and Assigning it to the table

Step 1. Go to TCODE- SE11, Select the Search Help Radio button and Provide the Name and click on
Create Button.
Step 2 Select the Elementary Search Help and Click on the Tick button.
Step 3 Provide the short text. In the selection method provide the table name from where the set
of values we will get. In this case the table is 'ZEMP_DEP' is used. ( see the table creation of table
in the previous post). In the Search help parameter, press F4 button and it will show all the fields
of table ZEP_DEPT . Select the DEPT_ID field of the table. Select the IMP and EXP and maintain 1, 1
in the LPos and RPos. Activate the search help and click on the EXECUTE/F8 Button to test the
search help.

Step 4. Press the F4 button.


Step 5. Now it shows all the DEPT_ID of the table ZEP_DEPT.
Step 6. Let's assign the created search help to the Table. Go to TCODE- SE11, provide the table
name 'ZEMP_DEPT' and click on the change button.

Step 7. Select the Field 'DEPT_ID' and click on the Scrh Help Button.
Step 8. Provide the Search help name created above and click on the tick button.

Step 9. See the mapping of the Search help parameter of the Search help to the field of the table.
Click on the COPY Button.
Step 10. See the below status message and activate the table.
Step 11. Click on the Entry Help/Check tab, Now the search help is assigned to the field.

Step 12. Now Click on the Contents button .


Step 13. Now click on the F4 button of the DEPT_ID field and the search help gives the set of
values.

You might also like