cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe forms : USAGE ERROR

rashmi_purohit2
Explorer
0 Kudos

Hi all,

I have a requirement of triggring adobe form from a Z function module.

The data is getting fetched properly but then when the FM CALL FUNCTION <generated function module> ' is called

the exception of USAGE_ERROR is raised where the sy-subrc is 1.

I am new to to ADOBE and so need to know are there any settings missing.

Also when it comes out it says "Job Alredy started".

It will be helpful if i get an input on this.

Thanks in advance,

Rashmi.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

I too faced the same problem.

I am getting the Output form in the Developement client, but while in the Quality Usage Error results while trying to print priew.

The reason behind the Usage error, we might have forgot to move Text Modules if any used in your form.

Do the execution form SE37 for your Form Layout, you might get an message.

Thanks & Regards,

Srinu Rayala

OttoGold
Active Contributor
0 Kudos

Hello,

there is a simple explanation/ solution for this.

Explanation: you cannot (don´t ask me why, I guess that is written in the mentioned note) call this printing program through SE37 test. You will always get the mentioned error.

Solution: if you call that from a transaction or (try this!) from a report (create a report where your Z-module call is the only code), it works fine.

Regards, Otto

rashmi_purohit2
Explorer
0 Kudos

Thanks otto,that hepls..

Sandra_Rossi
Active Contributor
0 Kudos

solved or not? how? what is your actual problem now?

Former Member
0 Kudos

Hi,

If when you try your FM separatly you get the preview of the form, the issue doesn't comes from the ADS configuration.

Now are you sure you populate correctly the paramters for calling the FM in your program ?

As it was already said, if you got this error that means that the spool is not closed....

Regards

Sandra_Rossi
Active Contributor
0 Kudos

you must call FP_JOB_OPEN and FP_JOB_CLOSE as explained in the documentation. Using SE37, you may get this error. See also Note 858325 (Message "Job already started" when you display PDF forms)

rashmi_purohit2
Explorer
0 Kudos

Thaks for your reply.

I have called both the FM as you have mentioned in the order :FP_FUNCTION_MODULE_NAME , FP_JOB_OPEN , CALL FUNCTION <FM module name> and then the last FP_JOB_CLOSE.

The function module name that we get using the FM "FP_FUNCTION_MODULE_NAME" when called seperately using se37 gives me the print preview...but when same is called in my 'Z' function module gives me sy-subrc = 1.(Usage error). So wanted toknow the reason for this.

Thanks.