Hi,
The short answer is - you do not pass the form parameters to EFG_PRINT... The Print-Workbench Application Form, which wraps the PDF/SMARTFORM form, takes care/should take care of supplying the form interface with the values.
Go to EFRM and via menu Utilities->Create Link to Other Client create a link to standard Application Form FI_CA_DUNNING_SAMPLE_PDF from client 000. Then display Application Form Attributes and double click on the interface:
There you see that this Application Form has an "extra" parameter TOTAL_AMOUNT (extra as in: not supplied by Application Form Class via PWB_DATA). Navigate back to attributes and double-click on User Top Include:
This is where one has to define the global data to hold the values of "extra" parameters. The variable name must be the same as the name of parameter in form interface.
Now display the hierarchy of the Application Form and double click on OPEN_ITEM node:
then double click on Exit before loop:
The Application Form exits is where you assign the values to global data that will be passed to form.
Lastly, generate the Application Form, navigate to generated function module, update navigation index and do a global search for TOTAL_AMOUNT and navigate to where the pdf form FM call is coded:
Notice how the Application Form generated code tries to pass all global data defined in TOP include... If you need further global data in your Application Form logic, define them in another include, which you include in the TOP... That way they will be hidden from the Application Form generator.
cheers
Jānis
P.s. This is how FI_CA_DUNNING_SAMPLE_PDF Application Form looks on Basis 702, FI-CA 605 SP 08 System...