Skip to Content

Problem with adding field to fieldcatlalog

Hi experts,

Actually i am adding a field to field catalog by using

PERFORM FILL_FIELD_CAT USING '9' TEXT-CU1 TEXT-AM2 ' ' TEXT-CU2 '' '' '' '' '' ''. "land1( Text-CU1 = Land1 and Text-cu2 = Customer Country code)

Form is

FORM FILL_FIELD_CAT USING P_COLPOS TYPE SYCUCOL

P_FLDNAM TYPE FIELDNAME

P_TABNAM TYPE TABNAME

P_JUSTIF TYPE CHAR1

P_SELTEXT TYPE DD03P-SCRTEXT_L

P_OUT TYPE CHAR1

P_TECH TYPE CHAR1

P_QFIELD TYPE SLIS_FIELDNAME

P_QTAB TYPE SLIS_TABNAME

P_HOTSPOT TYPE CHAR1

P_DOSUM TYPE CHAR1.

GS_FIELDCAT-COL_POS = P_COLPOS. "Column

GS_FIELDCAT-FIELDNAME = P_FLDNAM. "Field Name

APPEND GS_FIELDCAT TO GT_FIELDCAT.

Problem is i am getting DUMP while executing the program

" The reason for the exception is:*

Call to FORM "FILL_FIELD_CAT" is incorrect:

The actual parameter no. 2 has a different data type in the

PERFORM than requested for the FORM "FILL_FIELD_CAT" in program

"ZFIGL_REP_IGRECONCILIATION".

Can anybody plz help me what i have to do.

Thanks & Regards,

Praveena.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 28, 2010 at 08:31 AM

    Hi,

    PERFORM FILL_FIELD_CAT USING '9'

    TEXT-CU1

    TEXT-AM2

    ' '

    TEXT-CU2

    '' '' '' '' '' ''.

    Just try it this way

    FORM FILL_FIELD_CAT USING P_COLPOS 
    P_FLDNAM 
    P_TABNAM 
    P_JUSTIF 
    P_SELTEXT 
    P_OUT 
    P_TECH 
    P_QFIELD 
    P_QTAB 
    P_HOTSPOT 
    P_DOSUM .

    There is the type difference

    Regards,

    Madhukar Shetty

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 28, 2010 at 08:36 AM

    hello praveena,

    actual parameters and formal parameters you entered are not matching.

    system is considering TEXT-CU1 as 2nd actual paramter and TYPE as 2nd formal paramter. both are not matching and hence the error is. u should enter equal num of formal and actual parameters.

    Thanks,

    Indra sena chowdary

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.