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

Re: Accessing all the line items of Purchase requisition(ME51N)

$
0
0

Hi Jitendra,

I found that you are not able to find the item internal table name inside Exit. Get the Internal table and Program name for Item. Using Field symbol concept, access the value inside Exit as shown below.

"Data Declarations
   
FIELD-SYMBOLS: <tblgart>        TYPE ANY TABLE,
                   <wa_tblgart>    
TYPE ANY,
                   <fs_value_lgart>
TYPE ANY,
                   <fs_value_betrg>
TYPE ANY.

   
DATA: obj_tblTYPE REF TO data.

"Assign Program and Internal Table as shown below

   
ASSIGN ('(MP000800)TBLGART[]') TO <tblgart>.
   
CREATE DATA obj_tblLIKE LINE OF <tblgart>.
   
ASSIGN obj_tbl->* TO <wa_tblgart>.

   
"Check Table have initialized
   
IF <tblgart> IS ASSIGNED.
     
LOOP AT <tblgart> ASSIGNING <wa_tblgart>.
       
ASSIGN COMPONENT 'LGART' OF STRUCTURE <wa_tblgart> TO <fs_value_lgart>.

       
"Check Wage type is initialized
       
IF <fs_value_lgart> IS ASSIGNED.

         
"Check Transport/Conveyance Allowance
         
IF <fs_value_lgart> = '1002'.

          "Write the Logic Here    

          ENDIF.
         
ENDIF.
       
ENDIF.
     
ENDLOOP.

   
ENDIF.

Regards

Rajkumar Narasimman


Viewing all articles
Browse latest Browse all 9076

Trending Articles



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