Skip to Content
avatar image
Former Member

contact person in medruck

hi ppl,

I need to display the contact person in PO(medruck) .do we have any related table name or field name.The table name which i found is knvk.but this table is not used in medruck.Pls help me in this regard....

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 02, 2009 at 07:18 AM

    hi,

    it will be in VBAP table. based on your vbeln you can search from this table.

    thanks,

    anupama.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      no SD is not implemented here..anyways i got the result using subroutin..but here-

      PERFORM GET_PERSON IN PROGRAM Z_CONTACTPERSON

      USING &EKKO-LIFNR&

      CHANGING &LF-NAMEV&

      ENDPERFORM

      Kind attention: &LF-namev&----> this value is not getting displayed in script

      EPORT Z_CONTACTPERSON.

      form GET_PERSON tables lt_lifnr structure itcsy

      lt_NAMEV structure itcsy.

      data: lf_lifnr type lifnr,

      lf_person like knvk-NAMEV.

      read table lt_lifnr index 1.

      move lt_lifnr-value to lf_lifnr.

      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

      EXPORTING

      input = lf_lifnr

      IMPORTING

      OUTPUT = lf_lifnr.

      .

      select single NAMEV from knvk into lf_person where lifnr = lf_lifnr.

      • endselect.

      if sy-subrc = 0.

      move 'lf_person' to lt_NAMEV-name.

      move lf_person to lt_NAMEV-value.

      modify lt_NAMEV index 1. ---> The customer name is updating here but not coming in PO o/p.

      endif.

      endform.