Hi all,
please let me know how can I link these 2 tables VBAP AND vbfa so that I should get field value RFMNG and MEINS right now I am doing like this
select rfmng meins from vbfa into table i_vbfa
where vbelv = i_vbap-vbeln and
posnv = i_vbap-posnr and
vbtyp_n = 'J"
Even then I have data in i_vbeln I am not getting data from vbfa what could be the problem? is there any thing wrong with posnv = i_vbap-posnr? Please clarify this?
Thanks&Regards
Mahesh
Hi Mahesh,
The field vbfa-vbelv has the subsequent docuemnt number...
Replace you code like below
If you want the RFMNG & MEINS of Delivary Document
select rfmng meins from vbfa into table i_vbfa
where vbeln = i_vbap-vbeln and
posnv = i_vbap-posnr and
vbtyp_n = 'J" (Here the J represents Delivary Document)
Regards,
Satya
Hi Mahesh,
Change the VBTYP_N from J to C to get the required results.
J - Delivery
C - Order
select rfmng meins from vbfa into table i_vbfa
where vbelv = i_vbap-vbeln and
posnv = i_vbap-posnr and
<b>vbtyp_n = 'C'.</b>
Note: Plz mark all helpful answers.
Thanks,
Vinay
Add a comment