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

Re: Need to fetch data of PRCD_COND table from corresponding transparent table

$
0
0

To select from PRCD_COND for a document.

 

assuming we have the document in iv_document_id.

 

data: lv_header_guid type raw.

data: lv_pricset_guid type raw.

data: lt_prc_cond type PRCD_COND.

FIELD-SYMBOLS: <fs_prc_cond> like line of PRCD_COND.

 

select GUID into lv_header_guid from crmd_orderadm_h where OBJECT_ID = iv_document_id.

 

* retrieve prc condtion set with header guid. the type 18 means prc condition. type of set is stored in table crmc_objects

select GUID_SET into lv_pricset_guid from crmd_link where GUID_HI = lv_header_guid and objtype_set = "18" and objtype_hi = "05".

 

select * into  lt_prc_cond from prcd_cond where KNUMV = lv_pricset_guid

 

loop at lt_prc_cond into <fs_prc_cond>.

 

* your logic.

 

endloop.

 

 

Spencer


Viewing all articles
Browse latest Browse all 2151

Trending Articles



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