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

SAP-SCRIPT

Former Member
0 Likes
807

hi friends,

reg: customer statement (sap script)

error during testing: i copied standard customer print program into my zprogram and developed as per my requirement , i placed my total code in one form and i am calling that form between open from and close form

but i am getting error <b>WRITE FORM INVALID AND OPEN FROM MISSING</b>

PLZ GUIDE ME HOW TO RESOLVE IT

REGARDS,

DIVYA

7 REPLIES 7
Read only

Former Member
0 Likes
778

Chekc if

sap script is activated

in page setting for page1 you have mentioned the next page .

Main window is created as page window

Read only

Former Member
0 Likes
778

Which program did you copy? RFKORD10? RFKORD11?

Try to use your custom layout set with one of the standard programs listed above.

Some of the print programs have the program name hardcoded (like SAVE_REPID = 'RFKORD11'). Did you change this to your Z program name?

With that error, it sounds like the FORM_OPEN routine is not being called before any WRITE_FORM function calls.

Read only

Former Member
0 Likes
778

Hi Divya,

Do the steps as mentioned below

1). Place a brak point at OPEN_FORM and check the form name which is passed to this FM.

2). Check if the output configuration is completed with ur custom form name in NACE tcode.

3). Some scripts needs to be maintained in few specific tables, if it is not maintained it will throw a error. Check the discription of the error.

Hope this helps

Cheers

VJ

IF this helps dont forget to mark points.

Read only

Former Member
0 Likes
778

seems you haven't activated ur script after last change or haven't given next page for page1 of main window

Read only

Former Member
0 Likes
778

hi

good

check out the parameters that you r passing through the WRITE FORM AND OPEN FORM.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

APPLICATION = 'TX'

  • ARCHIVE_INDEX = ' '

  • ARCHIVE_PARAMS = ' '

DEVICE = 'PRINTER'

DIALOG = ' '

FORM = 'Z_TESTSCRIPT'

LANGUAGE = SY-LANGU

OPTIONS = ZOPTION

IMPORTING

LANGUAGE = SY-LANGU

EXCEPTIONS

OTHERS = 1.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'HEADER'

  • FUNCTION = 'SET'

  • TYPE = 'BODY'

WINDOW = 'HEADER'

EXCEPTIONS

ELEMENT = 1.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'MAIN'

  • FUNCTION = 'SET'

  • TYPE = 'BODY'

WINDOW = 'MAIN'

EXCEPTIONS

ELEMENT = 1.

check with the parameters with your write_form and open_form function module and while you r calling check wheather you need one write_form or more than one write_form to display the data.

thanks

mrutyun

Read only

Former Member
0 Likes
778

There could be a chance of ovelapping in your Windows design.. Check it out.

-Mohan.

Give points if valid

Read only

Former Member
0 Likes
778

Hi divya,

How did you dolve this problem.Can you tell I am working on same (customer statements).Please help me

Thanks