Application Development 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: 

Element window ADDRESS is not defined for form

0 Kudos

Hello,

I just encountered a problem; I designed a new form, it worked when I copied my OT (SCC1) I can generate an invoice with my information.

But when I use a customer which has Master data set up, with address, the system says: Element window ADDRESS is not defined for form ZFT_INVOICE_TEST.

I add the element address (var) but the system doesn't want to take into account. The MAIN element also has address mapping information (I though it was enough)

Of course I made a new copy to overwrite the first customization in the test system. I'm using the print program : RFKORD50

Thank in advance for your help

5 REPLIES 5

Former Member
0 Kudos

you are missing the WINDOW ADDRESS, not the text element.

0 Kudos

I created address only in WINDOW but not on PAGE WINDOW with the standard script :

ADDRESS PARAGRAPH AS 
- customer info
- customer info
- customer info
- customer info
- customer info
- customer info
- customer info
- customer info
ENDADDRESS

But at least it doesn't work, could you be more precise ?

Thank for you fast answer !

0 Kudos

ok you need a window called ADDRESS.

Then you need that window in your PAGE as well, so goto your page and add it.

I dont have the coding of your driver program in mind, but have a look at it, maybe there is even some special textelement to be called.

You could as well go through your driver program, search all code for lines where it states "Call function 'WRITE_FORM'".

Then examine all those write forms and see if all neccessary windows and textelements are there in your form.

That is if you dont like to do it step by step like you are at it right now.

0 Kudos

No, even with ADDRESS created in WINDOW and PAGE WINDOW, it doesn't work.

But it is strange it works with some customers and sometime it doesn't. Maybe I should first check a little bit more this question.

I'll come back if I find something.

Former Member
0 Kudos

If this is SAPScript (and apparently it is, since SmartForms are client-independent), to handle your address, did you use :

/: Address paragraph <2-char paragraph name>

/: addressnumber &sometable-adrnr(k)&

/: from country &t001-land1&

/: endaddress...

and add any additional appropriate parameters (like priority)??

In your custom Z-version form, did you remove windows or existing Elements inside windows? If you're using standard driver, you can't do do....in your custom form, typically you would add to what already existed and used a subroutine program with /: perform statements to obtain additional data, etc.