cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SCRIPT- Error

Former Member
0 Kudos

while running my form for Transfer order via LT31, It is showing error message like

'Element KOPF window KOPF is not defined for form ZLVSTAEINZEL'

my KOPF window has code:

/E KOPF

L1 ,,<H>&T333B-TRATX&</>,,&RLDRU-WIEDR&

/: IF &LTAK-BETYP& EQ 'L'

L2 TO NUMBER,,&LTAK-TANUM&,,&LTAP-TAPOS&,,&'Delivery,,'LTAK-BETYP(0)&,,

= &LTAK-BETYP&,,&LTAK-BENUM&,,&'Date,,'LTAK-BDATU&

L3 ,,<BC>&RLDRU-TAPLG&</> SHIPMENT,,&GV_SHIPNO&

/: ELSE &LTAK-BETYP& NE 'L'

L2 TO NUMBER,,&LTAK-TANUM&,,&LTAP-TAPOS&,,&'Rqmnt,,'LTAK-BETYP(0)&,,

= &LTAK-BETYP&,,&LTAK-BENUM&,,&'Date,,'LTAK-BDATU&

/: ENDIF

I deleted everything at one time but it showing same error.

Help me out. Where is problem?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

How many pages do you have in your script and just check whether you have specified the next page in the script layout.

if multiple then specify the next page

Eg : Page1 -> Page1

If single page then

Eg : Page1 -> Page1.

Hope this helps you.

Regards,

Ranjith Nambiar

former_member182371
Active Contributor
0 Kudos

Hi,

your driver program is doing this:


    CALL FUNCTION 'WRITE_FORM'
         EXPORTING ELEMENT = 'KOPF'
                   WINDOW = 'KOPF'.

Is your driver program a standard or a Z?.

1.- If it is a standard:

You need to have window KOPF and element KOPF even if it is empty.

2.- If it is a Z:

comment fm calls for window KOPF and element KOPF.

Best regards.

Edited by: Pablo Casamayor on Jan 5, 2010 12:45 PM

Former Member
0 Kudos

it is a standard driver program:SAPLLTOP.

I maintained with or without code but same problem

former_member182371
Active Contributor
0 Kudos

Hi,

1.- go to program SAPLLTOP.

2.- search for "EXPORTING ELEMENT = 'KOPF"

and you will see that


CALL FUNCTION 'WRITE_FORM'
     EXPORTING ELEMENT = 'KOPF'
               WINDOW = 'KOPF'.

appears in three places.

3.- Put a break-point in those three calls and check what is going on

in window KOPF do this:


/E	 	KOPF
/*	 	,,<H>&T333B-TRATX&</>,,&RLDRU-WIEDR&
/*	 	                                                                        
/*	 	TO number,,&LTAK-TANUM&,,&LTAP-TAPOS&,,&'Rqmnt'LTAK-BETYP(0)&,,
/*	 	&LTAK-BETYP&,,&''LTAK-BENUM&,,&'Date ,,'LTAK-BDATU&
/*	 	                                                                        
/*	 	,,<BC>&RLDRU-TAPLG&</>
/*	 	   

That is , in the tag column use only

/* Comment Line

Best regards.

Edited by: Pablo Casamayor on Jan 5, 2010 12:59 PM

Former Member
0 Kudos

thank you. i got it now

Former Member
0 Kudos

In your driver program

check the function modules Open_form and Write_form

you will have these funtion modules so check where exactly it is calling the element which you have deleted..

so Please check the driver program of the script which you deleted the element in the script editor.

Regards

Satish Boguda

Former Member
0 Kudos

Hi,

Here window element /E KOPF is deleted by you. So from the driver program it is checking for that window element. As it is not available, its giving error message.

Regards,

Dhanunjaya Reddy.

Former Member
0 Kudos

Hi Dhanunjay,

I put /E KOPF but no use, showing same error

Former Member
0 Kudos

Try to save the script and activate it...

What error your getting... Can you please share

while working with script it is better to have the script downloaded into ur presentation server..it is best practise..!!!

Regards

Satish Boguda