F How to access one program data to another without EXPORT IMPORT and GET SET in SAP ABAP | CodeTheta

How to access one program data to another without EXPORT IMPORT and GET SET in SAP ABAP

February 25, 2024

ZVP_A and ZVP_B there are two programs. ZVP_A program data will be transfer to ZVP_B program using PERFORM display subroutine.

ZVP_A Program Code - 
REPORT zvp_a.

TYPESBEGIN OF ty_mara,
         matnr TYPE mara-matnr,
         mtart TYPE mara-mtart,
         matkl TYPE mara-matkl,
       END OF ty_mara.

DATAit TYPE STANDARD TABLE OF ty_mara.

SELECT matnr
       mtart
       matkl
  FROM mara INTO TABLE it
  UP TO 10 ROWS.

PERFORM display IN PROGRAM zvp_b IF FOUND.

ZVP_B Program Code - 
REPORT zvp_b.

TYPESBEGIN OF ty_mara,
         matnr TYPE mara-matnr,
         mtart TYPE mara-mtart,
         matkl TYPE mara-matkl,
       END OF ty_mara.

DATAwa TYPE ty_mara.

PERFORM display.

FORM display.
  DATAlv_tname TYPE LENGTH 30.
  FIELD-SYMBOLS <lt> TYPE ANY TABLE.
  MOVE '(ZVP_A)IT' TO lv_tname.
  ASSIGN (lv_tnameTO <lt>.

  LOOP AT <lt> INTO wa.
    write:/ wa-matnr,
            wa-mtart,
            wa-matkl.
  ENDLOOP.

ENDFORM.

IDE Used To Test This Code : SAP ABAP Editor.

Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us. We will reply you as soon as possible.

Post a Comment

PRODUCTS

LISTS OF PRODUCTS

SERVICES

SKILLS
SOFTWARE DEVELOPMENT
WEBSITE DEVELOPMENT
WEB HOSTING
BULK SMS SERVICE
SEO SERVICE
ANDROID APPS
QR CODE / BARCODE
HARDWARE SERVICE
OUR WORK AREA