Skip to Content
author's profile photo Former Member
Former Member

How to maintain RSPLF_FDIR..

Hi All,

I am calling a new function module ZTest123 from a parameter group of a planning function. But when i click to "Save Model" it is giving following error:

"Enter function module ZTest123 in table RSPLF_FDIR"

And i am not able to maintain above table from sm30.

Please help how to proceed.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 23, 2008 at 03:06 PM

    Hi Samruddhi,

    You can use a program to upload a excel with the needed function names in it.Use the below mentioned code to upload the table.

    FYI - convert the file format, change it to .csv

    TABLES:RSPLF_FDIR.

    DATA : W_CNT TYPE i.

    DATA : BEGIN OF LS_ZFUNNAME,

    FUNCNAME(30),

    END OF LS_ZFUNNAME.

    DATA : IT_ZFUNNAME LIKE LS_ZFUNNAME OCCURS 0 WITH HEADER LINE.

    ************************************************************************

    • S E L E C T O P T I O N S

    ************************************************************************

    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.

    PARAMETERS :P_FILE LIKE RLGRAP-FILENAME.

    SELECTION-SCREEN END OF BLOCK B1.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

    PERFORM check_pc_file using p_file.

    ************************************************************************

    • Start-of-selection

    ************************************************************************

    START-OF-SELECTION.

    PERFORM READ_FILE. "TO READ THE TABLE DATA EXCEL FILE

    PERFORM UPLOAD_TABLE. "ADD OR CHANGE TABLE RECORDS

    &----


    *& Form check_pc_file

    &----


    • text

    ----


    • -->P_P_FILE text

    ----


    *The following function is used to provide a possible value help for

    *pc file input field

    ----


    FORM check_pc_file using file.

    CALL FUNCTION 'WS_FILENAME_GET'

    EXPORTING

    mask = ',.,..'

    mode = 'O'

    title = text-001

    def_filename = file

    IMPORTING

    filename = file

    EXCEPTIONS

    inv_winsys = 1

    no_batch = 2

    selection_cancel = 3

    selection_error = 4

    OTHERS = 5.

    IF sy-subrc ne 0.

    MESSAGE e001(ZZGENERAL) WITH text-004.

    ENDIF.

    ENDFORM. " check_pc_file

    &----


    *& Form READ_FILE

    &----


    • text

    ----


    • --> p1 text

    • <-- p2 text

    ----


    FORM READ_FILE .

    CALL FUNCTION 'WS_UPLOAD'

    EXPORTING

    FILENAME = P_FILE

    FILETYPE = 'DAT'

    TABLES

    DATA_TAB = IT_ZFUNNAME

    EXCEPTIONS

    CONVERSION_ERROR = 1

    FILE_OPEN_ERROR = 2

    FILE_READ_ERROR = 3

    INVALID_TYPE = 4

    NO_BATCH = 5

    UNKNOWN_ERROR = 6

    INVALID_TABLE_WIDTH = 7

    GUI_REFUSE_FILETRANSFER = 8

    CUSTOMER_ERROR = 9

    OTHERS = 10.

    IF SY-SUBRC <> 0.

    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    ENDFORM. " READ_FILE

    &----


    *& Form UPLOAD_TABLE

    &----


    • text

    ----


    • --> p1 text

    • <-- p2 text

    ----


    data: lv_funname(30),

    lines type i.

    &----


    *& Form UPLOAD_TABLE

    &----


    • text

    ----


    FORM UPLOAD_TABLE.

    LOOP AT IT_ZFUNNAME into LS_ZFUNNAME.

    lines = lines + 1.

    INSERT INTO RSPLF_FDIR VALUES LS_ZFUNNAME-FUNCNAME.

    ENDLOOP.

    WRITE : / TEXT-002 , lines.

    ENDFORM. " UPLOAD_TABLE

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 23, 2008 at 02:36 PM

    It is possible to maintain the table RSPLF_FDIR with the transaction SM30.

    What error message do you get?

    Best regards

    Hans-Juergen Schwab

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 09:37 AM

    The issue is resolved as i got one Z program to maintain this table.

    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.