CL MM PUR TEXT FACTORY

Aus SAP Wiki ツ

Beispiel zur Nutzung in CL_MM_PUR_PR_PROFNL_DPC_EXT

Mapping Verständnis

  • ArchObjectNumber = text_objectid
  • DocumentText = text_id
  • TechnicalObjectType = text_object
  • language = spras

BANF

  • C_PurchaseReqnHeaderText
  • C_PurchaseReqnItemText
DATA lo_pr_notes TYPE REF TO if_mm_pur_longtext.
lo_pr_notes = cl_mm_pur_text_factory=>get_instance( iv_source_object = lv_text_object ).
CALL METHOD lo_pr_notes->get_text
      EXPORTING
        iv_text_id          = lv_text_id
        iv_language         = lv_text_language
        iv_text_object      = lv_text_object
        iv_text_name        = lv_text_objectkey
        iv_is_draft         = lv_is_draft
      IMPORTING
        ev_text             = lv_text
        ev_fixed_indicator  = DATA(lv_fixie)
        ev_text_displaymode = DATA(lv_text_displaymode)
        ev_adopted_from_ref = DATA(lv_adopted_from_ref).