Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP-Module Pool

0 Likes
1,063

Can anyone help me with the logic ...I am a fresher ..

Material Document No- MSEG-MBLNR

Date - MKPF-BUDAT

I have to combine this two table and MBLNR is the key field

3 REPLIES 3
Read only

TammyPowlas
SAP Mentor
SAP Mentor
0 Likes
996

I recommend getting familiar with transaction SE11, and views and where used

View V_MKPF already joins tables MSEG and MKPF and has the fields BUDAT and MBLNR

Read only

Sandra_Rossi
Active Contributor
996

Please choose a meaningful title (like how to read the tables MSEG and MKPF in a single shot).

Read only

former_member1716
Active Contributor
0 Likes
996

subhajitsaha,

I don't understand the need to Join MKPF and MSEG tables as both your required fields are present in MKPF itself. As suggested by tammy.powlas3 V_MKPF already has both your required fields as shown below:

Even the Join Conditions is as required as shown below:

You can write a select query directly up on V_MKPF using the below Code:

SELECT mblnr,
       budat
FROM v_mkpf
INTO TABLE @DATA(gt_vmkpf).
IF sy-subrc EQ 0.
  SORT gt_vmkpf BY mblnr.
ENDIF.

Regards!