RADIO-BUTTONS IN BASIC REPORT


*&---------------------------------------------------------------------*
*& Report  ZSAPRADIO
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT  ZSAPRADIO.


TYPES: BEGIN OF TY_VBAK,
        VBELN TYPE VBAK-VBELN,
        ERDAT TYPE VBAK-ERDAT,
        VKORG TYPE VBAK-VKORG,
      END OF TY_VBAK.


TYPES: BEGIN OF TY_VBAP,
        VBELN TYPE VBAP-VBELN,
        POSNR TYPE VBAP-POSNR,
        MATNR TYPE VBAP-MATNR,
        MATKL TYPE VBAP-MATKL,
      END OF TY_VBAP.

DATA:IT_VBAK TYPE TABLE OF TY_VBAK,
      WA_VBAK TYPE TY_VBAK,
        IT_VBAP TYPE TABLE OF TY_VBAP,
      WA_VBAP TYPE TY_VBAP.


SELECTION-SCREEN BEGIN OF SCREEN 100.

SELECT-OPTIONS : S_VBELN FOR WA_VBAK-VBELN.

SELECTION-SCREEN END OF SCREEN 100.


SELECTION-SCREEN BEGIN OF SCREEN 200.

SELECT-OPTIONS : S_VBELN1 FOR WA_VBAP-VBELN.

SELECTION-SCREEN END OF SCREEN 200.


PARAMETERS HEADER RADIOBUTTON GROUP ONE,
             ITEM RADIOBUTTON GROUP ONE.


START-OF-SELECTION .



  IF HEADER 'X'.
    CALL SELECTION-SCREEN  100 STARTING AT 10 10 ENDING AT 100 10 .

    PERFORM FETCH_DATA.
    PERFORM DISPLAY_DATA.

  ELSEIF ITEM = 'X'.

    CALL SELECTION-SCREEN 200 STARTING AT 10 10 ENDING AT 100 10 .
    PERFORM FETCH_DATA1.
    PERFORM DISPLAY_DATA1.

    ENDIF.
*&---------------------------------------------------------------------*
*&      Form  FETCH_DATA
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
FORM FETCH_DATA .

  SELECT  VBELN
        ERDAT
        VKORG FROM VBAK
       INTO TABLE IT_VBAK
    WHERE VBELN IN S_VBELN.

ENDFORM.                    " FETCH_DATA
*&---------------------------------------------------------------------*
*&      Form  DISPLAY_DATA
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
FORM DISPLAY_DATA .

  LOOP AT  IT_VBAK INTO WA_VBAK.


    WRITE:/ WA_VBAK-VBELN,
            WA_VBAK-ERDAT,
             WA_VBAK-VKORG.

  ENDLOOP.




ENDFORM.                    " DISPLAY_DATA
*&---------------------------------------------------------------------*
*&      Form  FETCH_DATA1
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
FORM FETCH_DATA1 .

  SELECT VBELN
        POSNR
        MATNR
        MATKL FROM VBAP
        INTO TABLE IT_VBAP
       WHERE VBELN IN S_VBELN1.

ENDFORM.                    " FETCH_DATA1
*&---------------------------------------------------------------------*
*&      Form  DISPLAY_DATA1
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
FORM DISPLAY_DATA1 .

  LOOP AT  IT_VBAP INTO WA_VBAP.

    WRITE :/ WA_VBAP-VBELN,
             WA_VBAP-POSNR,
             WA_VBAP-MATNR,
              WA_VBAP-MATKL.






  ENDLOOP.




ENDFORM.                    " DISPLAY_DATA1



EXECUTE:- IN HEADER DATA.
CLICK = EXECUTE 




SHOW THE HEADER OUTPUT



NEXT MOVE TO ITEM DATA.
CLICK RB IN ITEM AND DO SAME STEPS IN ABOVE CONCEPT .






Comments

  1. we provide a best modules in sap and (selenium) softwaare testing with real time scenarios.
    Our consultants are working professionals they will share our experience
    Who can learn in this module?
    Opportunities in this Module?
    Why Prefer Training with US?
    Training by Leading Architects
    Topic based Training
    Long-Term Technical Support
    Placement Assistance
    End to End – Project Support
    SAP HR Training in Chennai
    SAP Success Factors Training in Chennai
    SAP FICO Training in Chennai
    SAP MM Training in Chennai
    Sap Fiori Training in Chennai
    SAP HANA Training in Chennai
    software Testing modules
    Selenium Training in Chennaiss
    for more informations call 8122241286

    ReplyDelete

  2. For more software developer, sap course in Kochi can seem like an overwhelming topic to address. One of the most searched certification courses is SAP.
    Thank You!!

    ReplyDelete
  3. We have the best SAP module consultants, and Denpro Technologies has a proven track record in SAP. If you are searching for a company that can help boost your business, Denpro Technologies is the most best SAP Consultant services in Noida.

    ReplyDelete
    Replies
    1. SAP integration services streamline your business processes by seamlessly connecting SAP systems with other applications and data sources. With expertise in integrating diverse systems, our SAP Integration Services ensure smooth data flow and enable real-time visibility across your organization.




      Delete
  4. A broad range of employment choices like accountant jobs in kochi is now available in accounting.
    Thank You!!

    ReplyDelete

Post a Comment

Popular posts from this blog

FOR ALL ENTRIES (FAE) -4 TABLES USING ALV_GRID_DISPLAY

MODULE POOL -TABLE CONTROL_1: