Professional Documents
Culture Documents
Enhancement in VF05n To Get The Customer Name
Enhancement in VF05n To Get The Customer Name
Step 1 :
Report layout is displayed with the number of fields containing in the structure
- ERPSLS_BILLDOC.
So in this case, we have to add Customer name and Milestone description column in the
mentioned structure
Step 2 : To populate values in the newly added field in the structure, We have used implicit
enhancement as per the below.
Post processing of call function - ERPSLS_BILLDOC_VIEW, Write the below code which
is used to populate customer name
Select KUNNR, name1 from kna1 into table @DATA (LRT_DOC_TEMP) FOR ALL
ENTRIES IN @lrt_doc where kunnr = @lrt_doc-KUNRG.
WA_LRT_DOC-CUSTOMERNAME = WA_LRT_DOC_TEMP-NAME1.
ENDIF.
ENDLOOP.