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

code correction for select option .

Its a driver programme for a smart form . I cant select any any option form the selection box infact the small square box which generally apear after the selection box dosent appear in this case . Any suggestions ? 😊

REPORT ZSAT_FORMS1.

TABLES: MKPF.

DATA: FM_NAME TYPE RS38L_FNAM.

*

*TYPES : BEGIN OF I_tab,

* MBLNR type mkpf-MBLNR ,

* MJAHR type mkpf-MJAHR ,

* AEDAT type mkpf-AEDAT ,

* END OF I_tab .

*

* data : INT_MKPF TYPE TABLE OF I_TAB .

DATA: BEGIN OF INT_MKPF OCCURS 0.

INCLUDE STRUCTURE MKPF.

DATA: END OF INT_MKPF.

SELECT-OPTIONS : S_MBLNR FOR MKPF-MBLNR . "MEMORY ID 001.

*SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.

*MOVE-CORRESPONDING MKPF TO INT_MKPF.

*APPEND INT_MKPF.

*

*ENDSELECT.

select * from mkpf into CORRESPONDING FIELDS OF TABLE INT_MKPF UP TO 10 ROWS where mblnr in s_mblnr .

*At the end of your program.

*Passing data to SMARTFORMS

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = 'ZSAT_FORMS1'(001)

VARIANT = ' '

DIRECT_CALL = ' '

IMPORTING

FM_NAME = FM_NAME

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3.

if sy-subrc <> 0.

WRITE: / 'ERROR 1'.

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

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

endif.

call function FM_NAME

*EXPORTING

*ARCHIVE_INDEX =

*ARCHIVE_INDEX_TAB =

*ARCHIVE_PARAMETERS =

*CONTROL_PARAMETERS =

*MAIL_APPL_OBJ =

*MAIL_RECIPIENT =

*MAIL_SENDER =

*OUTPUT_OPTIONS =

*USER_SETTINGS = 'X'

*IMPORTING

*DOCUMENT_OUTPUT_INFO =

*JOB_OUTPUT_INFO =

*JOB_OUTPUT_OPTIONS =

TABLES

INT_MKPF = INT_MKPF

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

if sy-subrc <> 0.

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

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

endif .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2014 at 02:26 PM

    Hi Satyanaryan,

    MKPF-MBLNR doesn't have his own search help. That is the reason you don't have the F4 option available.

    If you want that you have write a logic to have all the material documents and then use the F4 function module - 'F4IF_INT_TABLE_VALUE_REQUEST' to and pass the internal table having the material documents.

    Regards,

    Abhi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 18, 2014 at 02:53 PM

    Its because MKPF-MBLNR does not have a Searh Help.

    You can create your own search help and add it in program in AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field> event.

    You can get ample of sample codes in SCN on this.

    -SS


    cap1.jpg (74.5 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 18, 2014 at 02:22 PM

    Which box do you mean?

    I have created a sample report with that select option and I get this result:

    How is your screen?


    Capture.PNG (2.1 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2014 at 05:31 PM

    Thank you all for your answers , my doubt is clear now 😊 😊

    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.