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: 

Different number of parameters in FORM and PERFORM (list of lists ?)

Former Member
0 Kudos

Hello !

I'd like some help to implement a function that has the following header :


FORM CLASSIF_USING_CAT
     USING VALUE(c) LIKE klah-klart
           VALUE(k) LIKE klah-class
           lc LIKE l_classif OCCURS 0.

Then in my code I declare


 DATA:
      classif TYPE BAPI1003_ALLOC_VALUES_CHAR OCCURS 0
             WITH HEADER LINE,
      l_classif LIKE classif OCCURS 0 WITH HEADER LINE.


    PERFORM CLASSIF_USING_CAT USING '001' 'P_SODIQUES'  l_classif.

What could the problem be ?

Thanks for any help !

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

Do this way ... Remove occurs 0 statement in the form ..

FORM CLASSIF_USING_CAT

USING VALUE(c) LIKE klah-klart

VALUE(k) LIKE klah-class

lc LIKE l_classif .

5 REPLIES 5

Former Member
0 Kudos

hi,

Do this way ... Remove occurs 0 statement in the form ..

FORM CLASSIF_USING_CAT

USING VALUE(c) LIKE klah-klart

VALUE(k) LIKE klah-class

lc LIKE l_classif .

Former Member
0 Kudos

hi use this syntex

PERFORM CLASSIF_USING_CAT tables l_classif USING '001' 'P_SODIQUES'

.

FORM CLASSIF_USING_CAT

tables lc

USING VALUE(c) LIKE klah-klart

VALUE(k) LIKE klah-class

.

endform.

reward if useful

Former Member
0 Kudos

look at the below ex :

DATA sflight_tab TYPE STANDARD TABLE OF sflight.

...

PERFORM select_sflight TABLES sflight_tab

USING p_carr p_conn.

...

FORM select_sflight TABLES flight_tab LIKE sflight_tab

USING f_carr TYPE sflight-carrid

f_conn TYPE sflight-connid.

SELECT *

FROM sflight

INTO TABLE flight_tab

WHERE carrid = f_carr AND

connid = f_conn.

ENDFORM.

Former Member
0 Kudos

Thanks for your help experts !

Former Member
0 Kudos

(sorry wrong thread)

Edited by: Robert Derochette on Nov 26, 2008 1:16 PM