Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8894

Appending to memory id in userexit

$
0
0

Hi All,

 

I need to export a table of service orders belonging to a contract from BADI DIP_AD010003_DC to an enhancement point in function module VPKG_SHOW_FOLLOW_UP for DP90 transaction. I am exporting an internal table but the table is getting refreshed and so internal table is holding only 1 value at a time. Is there any way to append to memory id each time?

 

 

This is the code in  BADI DIP_AD010003_DC:

 

 

 

  DATA:  L_AUFNR   TYPE AUFNR.     "Local variable for orderid


    TYPES : BEGIN OF TY_AUFNR,

      AUFNR TYPE AUFNR,

      END OF TY_AUFNR.

    DATA : LT_AUFNR TYPE TABLE OF TY_AUFNR,

          LWA_AUFNR TYPE TY_AUFNR.

 

 

      CLEAR LWA_AUFNR.

    LWA_AUFNR = L_AUFNR .

    APPEND LWA_AUFNR TO LT_AUFNR[].

    CLEAR L_AUFNR.

    export lt_aufnr from lt_aufnr[] to memory id 'XYZ'.              " holding only 1 value at a time

 

 

Code in VPKG_SHOW_FOLLOW_UP:

 

 

 

types : begin of ty_aufnr,

      aufnr type aufnr,
                                               
      end of ty_aufnr.


   data : lt_aufnr type table of ty_aufnr,

          lwa_aufnr type ty_aufnr.



  import lt_aufnr to lt_aufnr[] from memory id 'XYZ'.    " IMPORTING ONLY 1 VALUE

 

 

 


Can anyone help me to export multiple values by appending to the memory id?

 

Regards,

Siju


Viewing all articles
Browse latest Browse all 8894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>