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

joining mkpf & rbkp

Former Member
0 Likes
621

hi

can any one tell me how can i join mkpf & rbkp table . is i have to use some other table for joining .

its urgent

Regards

Rakesh singh

hi

can any one tell me how can i join mkpf & rbkp table . is i have to use some other table for joining .

its urgent

Regards

Rakesh singh

2 REPLIES 2
Read only

vinod_vemuru2
Active Contributor
0 Likes
503

Hi Rahul,

Check below link.

Thanks,

Vinod.

Read only

valter_oliveira
Active Contributor
0 Likes
503

Hello,

To achieve that you'll need an intermediary step.

1 - with your mblnr, use VBFA table (mblnr is vbfa-vbelv field) with vbtyp_n EQ 'J' (delivery) to get the related delivery number. Something like:


SELECT vbeln posnn 
  FROM vbfa
  INTO (w_vbeln, w_posnn)
 WHERE vbelv = <mblnr>
   AND vbtyp_n = 'J'.
ENDSELECT.

2 - with the delivery number (vbfa-vbeln) and item (vbfa-posnn), use table RSEG, selecting by ebeln (vbfa-vbeln) and ebelp (vbfa-posnn) to get your belnr (RBKP-belnr). Something like:


SELECT belnr  
  FROM rseg
  INTO (w_belnr)
 WHERE ebeln = w_vbeln
   AND ebelp = w_posnn
ENDSELECT.

Regards.

Valter Oliveira