cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Output Problem

Former Member
0 Kudos

I have developed a smartform with my own zprogram for transportation. Its giving me CALL_FUNCTION_PARM_MISSING problem and does not tell where i am missing the parameter. Can anyone help me on this ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You have to be sure that in your print program that you are passing all the parameters that are defined in the Interface of your Smartform.

Former Member
0 Kudos

Thanks for replying me

My Smartform has these parameters and i am passing the same in my print program, but still its giving me an error.

ARCHIVE_INDEX = TOA_DARA

ARCHIVE_PARAMETERS = ARC_PARAMS

CONTROL_PARAMETERS = LS_CONTROL_PARAM

MAIL_RECIPIENT = LS_RECIPIENT

MAIL_SENDER = LS_SENDER

OUTPUT_OPTIONS = LS_COMPOSER_PARAM

USER_SETTINGS = ' '

VTTK = VTTK

KNVK = KNVK

VBAK = VBAK

Former Member
0 Kudos

Hi,

Are you passing following as a exporting/exporting parmeters or you are passing as tables:

VTTK = VTTK

KNVK = KNVK

VBAK = VBAK

If you are passing as tables then you need to add like this:ARCHIVE_INDEX =

EXPORTING

ARCHIVE_INDEX = TOA_DARA

ARCHIVE_PARAMETERS = ARC_PARAMS

CONTROL_PARAMETERS = LS_CONTROL_PARAM

MAIL_RECIPIENT = LS_RECIPIENT

MAIL_SENDER = LS_SENDER

OUTPUT_OPTIONS = LS_COMPOSER_PARAM

USER_SETTINGS = ' '

TABLES

VTTK = VTTK

KNVK = KNVK

VBAK = VBAK .

Ashvender

Former Member
0 Kudos

Are VTTK, KNVK, and VBAK defined as tables in the Form Interface?

If so then you need to do this:

CALL FUNCTION V_FM_NAME
       EXPORTING
           ARCHIVE_INDEX = TOA_DARA
           ARCHIVE_PARAMETERS = ARC_PARAMS
           CONTROL_PARAMETERS = LS_CONTROL_PARAM
           MAIL_RECIPIENT = LS_RECIPIENT
           MAIL_SENDER = LS_SENDER
           OUTPUT_OPTIONS = LS_COMPOSER_PARAM
           USER_SETTINGS = ' '
       TABLES
           VTTK = VTTK
           KNVK = KNVK
           VBAK = VBAK .

Former Member
0 Kudos

Hi,

Are you passing following as a exporting/exporting parmeters or you are passing as tables:

VTTK = VTTK

KNVK = KNVK

VBAK = VBAK

If you are passing as tables then you need to add like this:

EXPORTING

ARCHIVE_INDEX = TOA_DARA

ARCHIVE_PARAMETERS = ARC_PARAMS

CONTROL_PARAMETERS = LS_CONTROL_PARAM

MAIL_RECIPIENT = LS_RECIPIENT

MAIL_SENDER = LS_SENDER

OUTPUT_OPTIONS = LS_COMPOSER_PARAM

USER_SETTINGS = ' '

TABLES

VTTK = VTTK

KNVK = KNVK

VBAK = VBAK .

Ashvender

Former Member
0 Kudos

actually this is how i am passing

EXPORTING

ARCHIVE_INDEX = TOA_DARA

ARCHIVE_PARAMETERS = ARC_PARAMS

CONTROL_PARAMETERS = LS_CONTROL_PARAM

MAIL_RECIPIENT = LS_RECIPIENT

MAIL_SENDER = LS_SENDER

OUTPUT_OPTIONS = LS_COMPOSER_PARAM

USER_SETTINGS = ' '

VTTK = VTTK

KNVK = KNVK

VBAK = VBAK

TABLES

G_LIPS = G_LIPS

G_LIKP = G_LIKP

G_ADRC = G_ADRC

G_VBAK = G_VBAK

G_VEKP = G_VEKP

G_T001W = G_T001W.

Former Member
0 Kudos

Usually that error means that you have a parameter defined in the Form Interface but you are not including that parameter in the CALL to the form.

Your print program compiles correctly, but when you try to issue the output you get this error, right?

Former Member
0 Kudos

To be sure that you are calling the Smart Form correctly you can do this:

1) go to your Smart Form. Go to Environment->Function Module name

2) Copy this FM name

3) Go to your print program and hit the Pattern button and insert the FM name

4) Compare this FM call to the way you are currently calling the form

Former Member
0 Kudos

i am still getting the same error, both function names are correct

Message was edited by:

Prabhakar Vemula

Former Member
0 Kudos

I have no doubt that the function names are correct.

Do you compare the parameters from the above steps to the parameters that you are currently using?

Are you calling other FM's in your print program?

I would put a breakpoint on the Call to the Smartform and debug. If it makes it to your breakpoint successfully but then bombs out during the call to the form, then you know that you are missing a parameter in the call to the form.

Former Member
0 Kudos

i got other call functions in my program, i am checking them too taking your proceduer, but i still find my parameters passing as correct

Former Member
0 Kudos

Right, so it may not be the Call to the Smart form at all.

Try to use breakpoints and debug and see which FM call is causing the problem.

Former Member
0 Kudos

Thanks Matt for helping me

I am getting new error, i fixed the former one

My new error is SSFCOMPOSER 010: Please maintain an output device in your user master data.

can you help me out with this one?

Former Member
0 Kudos

Go to System->User Profile->Own Data

Click on the Defaults tab.

Under Output Controller it is probably blank. You need to maintain this. You can try using LOCL as the device.

Former Member
0 Kudos

I fixed this one too.

now when i print my form, my print does not contain any data, instead it has fields in betweeen & getting printed, is there way to fix it?

Former Member
0 Kudos

When you create a Text Node and want to insert values, don't just type in &fieldname&. You need to hit the Insert Field button and type the &fieldname& in the popup screen.

Answers (2)

Answers (2)

Former Member
0 Kudos

I am trying to print values in my smartform and they are not printing can some one help me on this

Former Member
0 Kudos

Please explain how you are trying to print these values.

Are these values from a table?

Are you trying to print in a Table node or a Text node or...?

What value are you putting in the Field?

Former Member
0 Kudos

i am getting the values, now as i was writing my select statements wrong.

But some of the values are not populating

like field values of lips-charg,

my select statement looks like

SELECT SINGLE ARKTX

/CWM/PIKMG

/CWM/PIKME

CHARG

FROM LIPS

INTO (LIPS-ARKTX, LIPS-/CWM/PIKMG, LIPS-/CWM/PIKME, LIPS-CHARG).

is there something wrong in it.

also how to count no of rows in a table?

Former Member
0 Kudos

Lips-Charg may not always have a value. It only has a value if the delivery item line has batch split.

To get the number of lines in an internal table do this:

DESCRIBE TABLE itab LINES v_lines.

Former Member
0 Kudos

I NEED TO COUNT NO OF ROWS IN VEKP

So i am doing this

LOOP AT slk INTO Gwa_slk.

G_VPOBJKEY = LIPS-VBELN.

SELECT * FROM VEKP

WHERE VPOBJKEY = G_VPOBJKEY.

G_NO_OF_PALLETS = G_NO_OF_PALLETS + 1.

ENDSELECT.

ENDLOOP.

but its giving me zero value

Former Member
0 Kudos

Hi

This error comes up usually if your output is unable to fit into the window / page you have defined. Make sure your output is with in the limits.

check each node separately and check whether you had given line types in Output options of text element correctly.

whether your table(both table) is having data.

write break-point before the code and observe whether the internal table have data.

Otherwise increase the up to rows (say up to 60 rows ) like that in the code(program lines).

Regards

Naresh

Former Member
0 Kudos

Now when i am printing the form, my values do not appear, i see blank where i want to display my values can someone help me on this?