Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
1 messages 7_am
1. *&---------------------------------------------------------------------*
*& Report ZMESSGAES *
*& *
*&---------------------------------------------------------------------*
REPORT ZMESSGAES .
*Here the Ctry Key from KNA1 i,e Entered here is Verified with the Check Table
Automatically
*If the F.K Relation Ship Exist But the Message it Displays is User friendly i.e
it says
* Ctry 'XYZ' Doesnt Exist in Check Table T005' So that We Validate it Explictly
*Any Input is a Valid Input Only When there is atleast One record Exist in the
respective Check Table
*Ex : KNA1 -> Check Table For Customers
* LFA1 -> For Vendors
* MARA -> For Materials
* T001 -> For Companies
* T005 -> For Countries
* T006 -> For Unit Of Measurements
* TCURC-> For All Currency Keys
*PARAMETER : P_LAND1 TYPE KNA1-LAND1 VALUE CHECK.
PARAMETER : P_LAND1 TYPE LAND1_GP ,
P_KUNNR TYPE KUNNR,
P_BUKRS TYPE BUKRS.
DATA V_LAND1 TYPE LAND1_GP.
*MESSAGE S002(ZALL_7AM) WITH P_KUNNR P_BUKRS.
AT SELECTION-SCREEN ON P_LAND1.
SELECT SINGLE LAND1 INTO V_LAND1 FROM T005 WHERE LAND1 = P_LAND1.
IF SY-SUBRC <> 0. "Entry Not Found
MESSAGE E003(ZALL_7AM) WITH P_LAND1.
ENDIF.