Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9069

Re: How do I access start routine internal table from Field Routine ?

$
0
0

This is in my start routine and this does not give me Syntax errors

 

*$*$ begin of global - insert your declaration only below this line  *-*

... "insert your code here

DATA: it_zdso_1 TYPE STANDARD TABLE OF  /BIC/AZDSO_1.

DATA: wa_zdso_1 TYPE /BIC/AZDSO_1.

*$*$ end of global - insert your declaration only before this line   *-*


SELECT  DOC_NUMBER S_ORD_ITEM GI_DATE MATERIAL SCHED_LINE NETPR_VKM

       INTO CORRESPONDING FIELDS OF TABLE it_zdso_1

       FROM /BIC/AZDSO_1

       FOR ALL ENTRIES IN SOURCE_PACKAGE

       WHERE doc_number  = SOURCE_PACKAGE-VBELN

       AND   s_ord_item  = SOURCE_PACKAGE-POSNR

       AND   gi_date     = SOURCE_PACKAGE-WADAT

       AND   material    = SOURCE_PACKAGE-MATNR

       AND   sched_line  = SOURCE_PACKAGE-ETENR.


This is in my start routine



*$*$ begin of routine - insert your code only below this line        *-*

... "insert your code here


read table it_zdso_1 into wa_zdso_1

      with table key doc_number  = SOURCE_FIELDS-VBELN

                     s_ord_item  = SOURCE_FIELDS-POSNR

                     gi_date     = SOURCE_FIELDS-WADAT

                     material    = SOURCE_FIELDS-MATNR

                     sched_line  = SOURCE_FIELDS-ETENR.

if sy-subrc = 0.

   result = wa_zdso_1-NETPR_VKM.

endif.


*--  fill table "MONITOR" with values of structure "MONITOR_REC"

*-   to make monitor entries

... "to cancel the update process

*    raise exception type CX_RSROUT_ABORT.

... "to skip a record"

*    raise exception type CX_RSROUT_SKIP_RECORD.

... "to clear target fields

*    raise exception type CX_RSROUT_SKIP_VAL.

 

 

 

*$*$ end of routine - insert your code only before this line         *-*

   ENDMETHOD.                    "compute_0NETPR_VKM


Viewing all articles
Browse latest Browse all 9069

Trending Articles



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