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

Re: direct material button

$
0
0

Hi Elham,

 

To enable this button, it will call the following method:
class /SAPSRM/CL_PDO_DYN_MDA_IT_PO
method ORDER_AS_DIRECT_MAT

 

And in this method, it called FM BBP_DP_PRODUCT_CHECK to check if this
product in the PO can be ordered as direct material.
======
* As long as we order a material and the exec system of the PO is not
* our own system it can be ordered as direct material
IF lv_product_type EQ c_ptype_material AND
      ls_product-logsys NE lv_own_logsys.
       MOVE c_on TO ev_dp_possible.
ENDIF.
======
For the coding above, it will check two conditions to enable this
button.
For your PO, you have to check the product in it with table comm_product. If the logsys for the product is local system, then the indicator will be disabled.

 

Best regards,

Ivy


Viewing all articles
Browse latest Browse all 8507

Trending Articles