RE: jump from alv report to FB03 screen when u click BELNR field

      Hi experts,

      I developed one alv report in that one field is there (BELNR .When u click on BELNR field it will directly go to FB03 screen.

      I wrote in this way.

      FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD

      .

      CASE SELFIELD-FIELDNAME.

      WHEN ‘BELNR’.

      READ TABLE T_FINAL INDEX SELFIELD-TABINDEX.

      SET PARAMETER ID ‘BLN’ FIELD T_FINAL-BELNR.

      CALL TRANSACTION ‘FB03’ AND SKIP FIRST SCREEN.

      ENDCASE.

      ENDFORM.

      But it is going to initial screen then u enter year it is going to next screen but i don’t want this.

      I want to go to directly fb03 screen without entering year in the initial screen.Is it possible? pls help me in this.

      Incorporate logic to also contain the fields company code (BKPF-BUKRS) and fiscal year (BKPF-GJHAR) in your final table.   Then your code should be:   FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD. CASE SELFIELD-FIELDNAME. WHEN 'BELNR'. READ TABLE T_FINAL INDEX SELFIELD-TABINDEX. SET PARAMETER ID 'BLN' FIELD T_FINAL-BELNR. SET PARAMETER ID 'BUK' FIELD T_FINAL-BUKRS. SET PARAMETER ID 'GJR' FIELD T_FINAL-GJHAR. CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN. ENDCASE. ENDFORM.   Rgds, Birendra

      User Rating: Be the first one !
      Suever Reviewer Asked on November 2, 2016 in user interface-development.
      Add Comment
      1 Answers

        Incorporate logic to also contain the fields company code (BKPF-BUKRS) and fiscal year (BKPF-GJHAR) in your final table.

         

        Then your code should be:

         

        FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.

        CASE SELFIELD-FIELDNAME.

        WHEN ‘BELNR’.

        READ TABLE T_FINAL INDEX SELFIELD-TABINDEX.

        SET PARAMETER ID ‘BLN’ FIELD T_FINAL-BELNR.

        SET PARAMETER ID ‘BUK’ FIELD T_FINAL-BUKRS.

        SET PARAMETER ID ‘GJR’ FIELD T_FINAL-GJHAR.

        CALL TRANSACTION ‘FB03’ AND SKIP FIRST SCREEN.

        ENDCASE.

        ENDFORM.

         

        Rgds,

        Birendra

        Add Comment

        Your Answer

        By posting your answer, you agree to the privacy policy and terms of service.