text F4:VARIANTE ED F4帮助

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text F4:VARIANTE ED F4帮助相关的知识,希望对你有一定的参考价值。

SELECTION-SCREEN: BEGIN OF BLOCK 004 WITH FRAME TITLE text-004.
PARAMETERS: p_vari      TYPE disvariant-variant DEFAULT '/DEFAULT'.
SELECTION-SCREEN: END OF BLOCK 004.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
  PERFORM f4_variant.

FORM f4_variant .

* F4 sul campo VARIANTE
  DATA: alv_variant TYPE disvariant,
        alv_repid   TYPE sy-repid.
  alv_repid = sy-repid.
  alv_variant-report = alv_repid.
  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
    EXPORTING
      is_variant = alv_variant
      i_save     = 'A'
    IMPORTING
      es_variant = alv_variant
    EXCEPTIONS
      not_found  = 2.
  IF sy-subrc = 2.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
    p_vari = alv_variant-variant.
  ENDIF.

ENDFORM.                    " F4_VARIANT

********ESEMPIO 2*******

FORM f4_variant .

* F4 sul campo VARIANTE
  DATA: alv_variant TYPE disvariant,
        alv_repid   TYPE sy-repid.
  alv_repid = sy-repid.
  alv_variant-report = alv_repid.
  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
    EXPORTING
      is_variant = alv_variant
      i_save     = 'A'
    IMPORTING
      es_variant = alv_variant
    EXCEPTIONS
      not_found  = 2.
  IF sy-subrc = 2.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
    p_vari = alv_variant-variant.
  ENDIF.

ENDFORM.                    " F4_VARIANT

以上是关于text F4:VARIANTE ED F4帮助的主要内容,如果未能解决你的问题,请参考以下文章

javascript 保存自https://classroom.udacity.com/nanodegrees/nd001/parts/4942f4d7-a48d-4794-9eb0-404b3ed3

javascript 保存自https://classroom.udacity.com/nanodegrees/nd001/parts/4942f4d7-a48d-4794-9eb0-404b3ed3

javascript 保存自https://classroom.udacity.com/nanodegrees/nd001/parts/4942f4d7-a48d-4794-9eb0-404b3ed3

javascript 保存自https://classroom.udacity.com/nanodegrees/nd001/parts/4942f4d7-a48d-4794-9eb0-404b3ed3

javascript 保存自https://classroom.udacity.com/nanodegrees/nd001/parts/4942f4d7-a48d-4794-9eb0-404b3ed3

javascript 保存自https://classroom.udacity.com/nanodegrees/nd001/parts/4942f4d7-a48d-4794-9eb0-404b3ed3