cancel
Showing results for 
Search instead for 
Did you mean: 

contact person in medruck

Former Member
0 Kudos

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....

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

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

thanks,

anupama.

Former Member
0 Kudos

Look into VBAK

Former Member
0 Kudos

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.