04-15-2014 10:46 AM
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.
04-15-2014 4:11 PM
Ok, It was is_nast who was missing... It could be closed, many thanks for your help!
04-15-2014 11:02 AM
hi Jimmy,
what is p_plnum holds ?
usually there we pass the internal table name .
regards
Shambuling
04-15-2014 11:07 AM
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.
04-15-2014 11:38 AM
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.
04-15-2014 11:46 AM
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.
04-15-2014 12:49 PM
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
04-15-2014 1:04 PM
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?
04-15-2014 1:53 PM
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
04-15-2014 2:48 PM
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.
04-15-2014 4:11 PM
Ok, It was is_nast who was missing... It could be closed, many thanks for your help!