Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error found in Looping Screen in

former_member823006
Participant
0 Likes
1,724

When I open Tcode - VA02 and enter any order number, 1 screen open is <SALES> tab and when I want to go to another tab, then it is showing an error:

"Entry   ZRESAL does not exist in T683 (check entry)".

I checked in table T683, there is ZRESAL going.

Please suggest experts.

I made my code in program - SAPMV45A as "Module output" in each PBO screen of each tab.

ZSALES: Table Name

Column :       UNAME                 REST

                    SAPABAP              

                    SM_ABCD 

                    TEST1                      X

DATA: IT_ZSALES TYPE TABLE OF ZSALES,
      WA_ZSALES
TYPE ZSALES.

SELECT * FROM ZSALES INTO TABLE IT_ZSALES WHERE UNAME = SY-UNAME.

IF SY-TCODE = 'VA02'.
LOOP AT IT_ZSALES INTO WA_ZSALES WHERE UNAME = SY-UNAME.
IF WA_ZSALES-UNAME = SY-UNAME AND WA_ZSALES-REST = 'X'.                       "LEGAL
            
LOOP AT SCREEN.
             
IF SCREEN-NAME = 'VBAK-ZZEXEDATE'
                 
OR SCREEN-NAME = 'VBAK-ZZTPADATE'
                 
OR SCREEN-NAME = 'VBAK-ZZLETTERNO'
                 
OR SCREEN-NAME = 'VBAK-ZZLETTERDATE'
                 
OR SCREEN-NAME = 'VBAK-ZZISSUEDATE'
                 
OR SCREEN-NAME = 'VBAK-BANK'
                 
OR SCREEN-NAME = 'VBAK-ZZNOC'
                 
OR SCREEN-NAME = 'VBAK-ZZNODUE'
                 
OR SCREEN-NAME = 'VBAK-ZZOFFERDATE'
                 
OR SCREEN-NAME = 'VBAK-ZZCERTIFICATE'
                 
OR SCREEN-NAME = 'VBAK-ZZCERTIDATE'
                 
OR SCREEN-NAME = 'VBAK-ZZRECEIVEDATE'
                 
OR SCREEN-NAME = 'VBAK-ZZTREMARKS'
                 
OR SCREEN-NAME = 'VBAK-ZZPLOAN'
                 
OR SCREEN-NAME = 'VBAK-ZZHDATE'.
             
SCREEN-INPUT = 1.     “DISPLAY
             
MODIFY SCREEN.
             
ELSE.
               
SCREEN-INPUT = 0.   “NOT DISPLAY     
               
MODIFY SCREEN.
             
ENDIF.
           
ENDLOOP.

ENDIF.

ENDLOOP.


LOOP AT IT_ZSALES INTO WA_ZSALES WHERE UNAME = SY-UNAME.

      IF WA_ZSALES-UNAME = SY-UNAME AND WA_ZSALES-REST NE 'X'.                      "COMMERCIAL
             
LOOP AT SCREEN.

             
IF SCREEN-NAME NE 'VBAK-ZZEXEDATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZTPADATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZLETTERNO'
                 
OR SCREEN-NAME NE 'VBAK-ZZLETTERDATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZISSUEDATE'
                 
OR SCREEN-NAME NE 'VBAK-BANK'
                 
OR SCREEN-NAME NE 'VBAK-ZZNOC'
                 
OR SCREEN-NAME NE 'VBAK-ZZNODUE'
                 
OR SCREEN-NAME NE 'VBAK-ZZOFFERDATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZCERTIFICATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZCERTIDATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZRECEIVEDATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZTREMARKS'
                 
OR SCREEN-NAME NE 'VBAK-ZZPLOAN'
                 
OR SCREEN-NAME NE 'VBAK-ZZHDATE'.
             
SCREEN-INPUT = 1.             "DISPLAY
             
MODIFY SCREEN.
             
ELSE.
               
SCREEN-INPUT = 0.           "NOT DISPLAY
               
MODIFY SCREEN.
             
ENDIF.
           
ENDLOOP.

ENDIF.

ENDLOOP.


LOOP AT IT_ZSALES INTO WA_ZSALES WHERE UNAME = SY-UNAME.

IF WA_ZSALES-UNAME NE SY-UNAME.                "ALL
     
LOOP AT SCREEN.
       
SCREEN-INPUT = 1.
       
MODIFY SCREEN.
     
ENDLOOP.

ENDIF.

ENDLOOP.

ENDIF.

1 ACCEPTED SOLUTION
Read only

former_member213851
Active Contributor
0 Likes
1,674

Hi Deepanshu,

Table T683 is check table for your ZRESAL .So unless entry is found in check table the control won't take any other value  ( other than check table entries )as Valid value and will not allow you to go to next tab.

To overcome this, maintain same entry which you are entering in VA01 tab and then  then proceed .

When I open Tcode - VA02 and enter any order number, 1 screen open is <SALES> tab and when I want to go to another tab, then it is showing an error:

"Entry   ZRESAL does not exist in T683 (check entry)".

I checked in table T683, there is ZRESAL going.

Please suggest experts.

I made my code in program - SAPMV45A as "Module output" in each PBO screen of each tab.

ZSALES: Table Name

Column :       UNAME                 REST

                    SAPABAP              

                    SM_ABCD 

                    TEST1                      X

DATA: IT_ZSALES TYPE TABLE OF ZSALES,
      WA_ZSALES
TYPE ZSALES.

SELECT * FROM ZSALES INTO TABLE IT_ZSALES WHERE UNAME = SY-UNAME.

IF SY-TCODE = 'VA02'.
LOOP AT IT_ZSALES INTO WA_ZSALES WHERE UNAME = SY-UNAME.
IF WA_ZSALES-UNAME = SY-UNAME AND WA_ZSALES-REST = 'X'.                       "LEGAL
            
LOOP AT SCREEN.
             
IF SCREEN-NAME = 'VBAK-ZZEXEDATE'
                 
OR SCREEN-NAME = 'VBAK-ZZTPADATE'
                 
OR SCREEN-NAME = 'VBAK-ZZLETTERNO'
                 
OR SCREEN-NAME = 'VBAK-ZZLETTERDATE'
                 
OR SCREEN-NAME = 'VBAK-ZZISSUEDATE'
                 
OR SCREEN-NAME = 'VBAK-BANK'
                 
OR SCREEN-NAME = 'VBAK-ZZNOC'
                 
OR SCREEN-NAME = 'VBAK-ZZNODUE'
                 
OR SCREEN-NAME = 'VBAK-ZZOFFERDATE'
                 
OR SCREEN-NAME = 'VBAK-ZZCERTIFICATE'
                 
OR SCREEN-NAME = 'VBAK-ZZCERTIDATE'
                 
OR SCREEN-NAME = 'VBAK-ZZRECEIVEDATE'
                 
OR SCREEN-NAME = 'VBAK-ZZTREMARKS'
                 
OR SCREEN-NAME = 'VBAK-ZZPLOAN'
                 
OR SCREEN-NAME = 'VBAK-ZZHDATE'.
             
SCREEN-INPUT = 1.     “DISPLAY
             
MODIFY SCREEN.
             
ELSE.
               
SCREEN-INPUT = 0.   “NOT DISPLAY     
               
MODIFY SCREEN.
             
ENDIF.
           
ENDLOOP.

ENDIF.

ENDLOOP.


LOOP AT IT_ZSALES INTO WA_ZSALES WHERE UNAME = SY-UNAME.

      IF WA_ZSALES-UNAME = SY-UNAME AND WA_ZSALES-REST NE 'X'.                      "COMMERCIAL
             
LOOP AT SCREEN.

             
IF SCREEN-NAME NE 'VBAK-ZZEXEDATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZTPADATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZLETTERNO'
                 
OR SCREEN-NAME NE 'VBAK-ZZLETTERDATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZISSUEDATE'
                 
OR SCREEN-NAME NE 'VBAK-BANK'
                 
OR SCREEN-NAME NE 'VBAK-ZZNOC'
                 
OR SCREEN-NAME NE 'VBAK-ZZNODUE'
                 
OR SCREEN-NAME NE 'VBAK-ZZOFFERDATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZCERTIFICATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZCERTIDATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZRECEIVEDATE'
                 
OR SCREEN-NAME NE 'VBAK-ZZTREMARKS'
                 
OR SCREEN-NAME NE 'VBAK-ZZPLOAN'
                 
OR SCREEN-NAME NE 'VBAK-ZZHDATE'.
             
SCREEN-INPUT = 1.             "DISPLAY
             
MODIFY SCREEN.
             
ELSE.
               
SCREEN-INPUT = 0.           "NOT DISPLAY
               
MODIFY SCREEN.
             
ENDIF.
           
ENDLOOP.

ENDIF.

ENDLOOP.


LOOP AT IT_ZSALES INTO WA_ZSALES WHERE UNAME = SY-UNAME.

IF WA_ZSALES-UNAME NE SY-UNAME.                "ALL
     
LOOP AT SCREEN.
       
SCREEN-INPUT = 1.
       
MODIFY SCREEN.
     
ENDLOOP.

ENDIF.

ENDLOOP.

ENDIF.

9 REPLIES 9
Read only

former_member213851
Active Contributor
0 Likes
1,675

Hi Deepanshu,

Table T683 is check table for your ZRESAL .So unless entry is found in check table the control won't take any other value  ( other than check table entries )as Valid value and will not allow you to go to next tab.

To overcome this, maintain same entry which you are entering in VA01 tab and then  then proceed .

Read only

0 Likes
1,674

I dont understand sachin. What exactly I have to do..

Read only

0 Likes
1,674

Hi Deepanshu,

Please maintain entry ZRESAL in your check table T683.

Read only

0 Likes
1,674
500AVZRESAL



Real Estate Sales

It is already going there in table T683

Read only

0 Likes
1,674

Hi Deepanshu,

If entry with 6 Characters is already maintained in T683 , then please take help from Functional consultant as one of the field may have erroneous field.

Some times Manuel deletion of entries in table lead to such issues.

Please check below thread:

http://scn.sap.com/thread/1717577

http://scn.sap.com/thread/1436071

Read only

0 Likes
1,674

Thanks Sachin, Its done now.

Read only

0 Likes
1,674

Hi Deepanshu,

Please close the thread.

Read only

0 Likes
1,674

how to close this thread?

Read only

0 Likes
1,674

By marking correct / Helpful anwer.

you can also add your Solution for issue so that it can be referred by others..