cancel
Showing results for 
Search instead for 
Did you mean: 

CLOSE_FORM is invalid, OPEN_FORM is missing

Former Member
0 Kudos

Hi All,

There is a custom output type for a delivery which when triggered should print a form (SAP SCRIPT).

But when it is processed via a job (i.e. in background with dispatch time 1) it is not printing the form but still holding a green processed icon. Please note - this is not happening in case of all deliveries. Its giving an error "CLOSE_FORM is invalid, OPEN_FORM is missing".

But when those failed delivieries are processed manually in foregraound (with dispatch time as 4) the form is printed correctly.

Can anyone please guide me where exactly I should check for it as I debugged and could nto find anything wrong. Could nto get this error at all.

Thanks & Regards,

Namrata

Edited by: Rob Burbank on Feb 16, 2012 9:41 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I think that the form does not exist. Actually the forms must physically exist in the client.

You can achieve this by using Transaction code -> SE71 (copy the forms from client 000 to the current client)

Goto transaction code se71->Utilities - >Copy by client.

Then to if your problem isnt resolved ,then u should check which exception is triggered .for this u set a breakpoint

for function module OPEN_FORM).

____R else u use the form debugger___

Goto Transaction SE71->Utilities -> Activate debugger

Former Member
0 Kudos

It's telling you what the problem is. It's not executing the FM OPEN_FORM before it hits CLOSE_FORM.

Rob

Former Member
0 Kudos

Hi,

I do understand the problem, that OPEN_FORM is not being hit before hitting CLOSE_FORM. But what I do nto understand is that how to debug / check as this prob is not coming while being precoeesed in foreground (i.e. manually). This error is encountered only when it is processed via a job in background.

Please provide your inputs.

Thanks & Regards,

Namrata