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

F4 Help for Document Number

Hi Experts,

I am using document number( BSIK-BELNR ) in my report's selection screen. I couldn't get any F4 Help for that field. Could someone help it out..

Regards,

Swetha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Posted on Jul 31, 2012 at 07:04 AM

    If you brows BSIK table, then there is no F4 available for BELNR field.

    that's why F4 is not reflected on your selection screen.

    Regards,

    KP

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Mr.Keyur Pawar,

      And i even observed that there is no F4 help for this field in FB03 transaction also. So, how could i get an F4 Help for this field in my report. Is there any function module ?

      For eg. we have "FI_F4_ZTERM" for getting F4 help for the Payment Terms..

      Regards,

      Swetha


  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2012 at 07:09 AM

    Hi Swetha,

    You need to write code for this :-(.

    Use FM F4IF_INT_TABLE_VALUE_REQUEST to create a customized F4 help.

    Thanks,

    Alok

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2012 at 07:42 AM

    Hi,

    If you want to get list of BSIK documents, then please go with FM F4IF_INT_TABLE_VALUE_REQUEST...

    Advantage is: You can fetch documents from BSIK table as per your requirement/Conditions....

    Regards,

    Rajesh Sadula.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member RĂ¼diger Plantiko

      Hi Rudiger,

      I completely agree with you, the above BOLD words are absolutely correct....

      We have to use FM F4IF_INT_TABLE_VALUE_REQUEST only when we have custom conditions i.e no standard/existing search help available for our requirement.

      Regards,

      Rajesh Sadula.

  • Posted on Jul 31, 2012 at 08:02 AM

    Try this code,......

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

    REPORT ZBELNR.

    tables : BSIK.
    types: begin of s_itab,
    belnr type BELNR_D,
    end of s_itab.

    data : itab type table of s_itab.

    selection-screen begin of block b1.
    parameters : belnr type BSIK-BELNR.
    selection-screen end of block b1.


    at selection-screen on value-request for belnr.
    select belnr from BSIK into table ITAB.

    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
    retfield = 'BELNR'
    dynpprog = sy-repid
    dynpnr = '1000'
    dynprofield = 'BSIK-BELNR' "'T_SERIAL-INFO'
    * stepl = lv_stepl
    value_org = 'S'
    tables
    value_tab = itab
    exceptions
    parameter_error = 1
    no_values_found = 2
    others = 3.
    if sy-subrc ne 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

  • Posted on Jul 31, 2012 at 08:24 AM

    Types : begin of zbelnr,

    belnr type bsik-belnr,

    end of zbelnr.

    DATA : p_retfield TYPE dfies-fieldname
    pt_shelp TYPE STANDARD TABLE Zbelnr_ds

    return_values TYPE STANDARD TABLE Zbelnr_ds

    p_subrc TYPE sy-subrc .

    DATA : lt_return_values TYPE STANDARD TABLE OF ddshretval,
    ls_return_values LIKE LINE OF lt_return_values,
    lv_belnr TYPE bsik-belnr,
    lv_subrc TYPE sy-subrc.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_belnr-low.
    PERFORM get_belnr_f4_help.

    *&---------------------------------------------------------------------*
    *& Form GET_BELNR_F4_HELP
    *&---------------------------------------------------------------------*
    FORM get_belnr_f4_help.

    SELECT BELNR from BSIK INTO TABLE lt_belnr_f4_help.
    IF sy-subrc = 0.
    SORT lt_belnr_f4_help BY belnr ASCENDING.
    DELETE ADJACENT DUPLICATES FROM pt_belnr_f4_help COMPARING ALL FIELDS.
    ENDIF.

    IF lt_belnr_f4_help[] IS NOT INITIAL.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = p_retfield
    value_org = 'S'
    multiple_choice = 'X'
    TABLES
    value_tab = pt_shelp[]
    return_tab = return_values
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    p_subrc = sy-subrc.
    ENDIF.

    IF lv_subrc = 0.
    LOOP AT lt_return_values INTO ls_return_values.
    IF sy-subrc = 0.
    lv_belnr = ls_return_values-fieldval.
    CLEAR s_belnr.
    * REFRESH s_belnr.
    s_belnr-sign = 'I'.
    s_belnr-option = 'EQ'.
    s_belnr-low = lv_belnr.
    APPEND s_belnr.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDIF.

    ENDFORM. " GET_BELNR_F4_HELP

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2012 at 09:41 AM

    hi Sweta,

    There is a function module to get F4 help on selection screen for those fields which does not have search help of value help or check table attached to it.

    REPORT ZTEST_RAJ.

    TABLES: bsik.

    TYPES: BEGIN OF ty_value_tab,
    belnr TYPE bsik-belnr,
    END OF ty_value_tab.

    DATA: lt_value_tab TYPE STANDARD TABLE OF ty_value_tab,
    lt_return TYPE STANDARD TABLE OF ddshretval.

    PARAMETERS p_belnr TYPE bsik-belnr.



    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_belnr.
    SELECT belnr
    FROM bsik
    INTO TABLE lt_value_tab.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'BELNR'
    DYNPPROG = sy-cprog
    DYNPNR = sy-dynnr
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = lt_value_tab[]
    RETURN_TAB = lt_return
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    .
    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

  • Posted on Aug 01, 2012 at 09:41 AM

    Use Function Module for F4IF_INT_TABLE_VALUE_REQUEST or create a Search Help through SE11 and add it

    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.