Application Development 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: 

CALL_FUNCTION_PARM_MISSING With w_fmname

Former Member
0 Kudos

Hi,


I'm new in SAP, and I hope that the community could help me!


I just did a little ABAP development for call a smartforms from a new transaction.


But when I execute my program, it says to me that an error was occured, CALL_FUNCTION_PARM_MISSING on the "red line".


*&---------------------------------------------------------------------*

*& Report  ZSUIVIPROD

*&

*&---------------------------------------------------------------------*

*&

*&

*&---------------------------------------------------------------------*

REPORT ZSUIVIPROD MESSAGE-ID zsuivi.

DATA :l_plaf TYPE plaf.

break jidel.

*------------------------------------

* SELECTION SCREEN

*------------------------------------

SELECTION-SCREEN BEGIN OF BLOCK part1 WITH FRAME TITLE text-001.

*-Ordre planifié

PARAMETERS p_plnum TYPE plaf-plnum.

SELECTION-SCREEN END OF BLOCK part1.

DATA :

   w_fmname TYPE rs38l_fnam,

   it_plaf TYPE TABLE OF plaf,

   l_output_options TYPE ssfcompop.

PARAMETERS p_formu TYPE tdsfname DEFAULT 'ZWM_SUIVPROD' OBLIGATORY.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

     EXPORTING

       formname           = p_formu

     IMPORTING

       fm_name            = w_fmname

     EXCEPTIONS

       no_form            = 1

       no_function_module = 2

       OTHERS             = 3.

CALL FUNCTION w_fmname

   EXPORTING

    l_plnum = p_plnum

   EXCEPTIONS

     formatting_error = 1

     internal_error   = 2

     send_error       = 3

     user_canceled    = 4

     OTHERS           = 5.


Many thanks in advance,


Jimmy.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Ok, It was is_nast who was missing... It could be closed, many thanks for your help!

9 REPLIES 9

Former Member
0 Kudos

hi Jimmy,

what is p_plnum holds ?

usually there we pass the internal table name .

regards

Shambuling

Former Member
0 Kudos

CALL FUNCTION w_fmname

   EXPORTING

    l_plnum = p_plnum.....-) * here we will pass the internal table name *  what p_plnum holds?

   EXCEPTIONS

     formatting_error = 1

     internal_error   = 2

     send_error       = 3

     user_canceled    = 4

     OTHERS           = 5.

Former Member
0 Kudos

Hi Shambuling,

p_plnum it's my var that contains the operation number. It's the operator who write it in PARAMETERS p_plnum TYPE plaf-plnum.

Former Member
0 Kudos

Can you check form interface node of your smartform. Check import and tables tabs there. You might have missed to pass value into some obligatory parameter.

Former Member
0 Kudos

hi jimmy,

As sonal said please check in the form interface node.

i think in the table tab of form interface you can declare p_plnum

Former Member
0 Kudos

Thank you for your answer,

In Importation:

IS_NAST TYPE NAST

L_PLNUM TYPE PLNUM

In Tables nothing.

Wich type  for L_plnum in TABLES?

0 Kudos

Plnum is the domain for rollname and domname in the structure DD04D.

in the form interface node in tables tab give l_plnum like DD04D and try i am also not sure on this but lets try.

regards

Shambuling

0 Kudos

It's not working, so I did some modification:

But in the smartforms I have : IT_XPLAF TYPE PLAF and it's not working, saying "Only tables types may be used as the reference type for a table parameter

REPORT ZSUIVIPROD MESSAGE-ID zsuivi.

DATA :l_plaf TYPE plaf.

DATA : xplaf TYPE TABLE OF plaf WITH HEADER LINE.

break jidel.

*------------------------------------

* SELECTION SCREEN

*------------------------------------

SELECTION-SCREEN BEGIN OF BLOCK part1 WITH FRAME TITLE text-001.

*-Ordre planifié

PARAMETERS p_plnum TYPE plaf-plnum.

SELECTION-SCREEN END OF BLOCK part1.

DATA :

   w_fmname TYPE rs38l_fnam,

   l_output_options TYPE ssfcompop.

PARAMETERS p_formu TYPE tdsfname      DEFAULT 'ZWM_SUIVPROD' OBLIGATORY.

  SELECT SINGLE plnum FROM plaf INTO xplaf-plnum

     WHERE plnum = p_plnum.

   APPEND xplaf.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

     EXPORTING

       formname           = p_formu

     IMPORTING

       fm_name            = w_fmname

     EXCEPTIONS

       no_form            = 1

       no_function_module = 2

       OTHERS             = 3.

CALL FUNCTION w_fmname

   TABLES

     it_xplaf        = xplaf

   EXCEPTIONS

     formatting_error = 1

     internal_error   = 2

     send_error       = 3

     user_canceled    = 4

     OTHERS           = 5.

Former Member
0 Kudos

Ok, It was is_nast who was missing... It could be closed, many thanks for your help!