10-15-2015 3:57 PM
Hi Masters,
I need to add vbkd-bstkd in fbl5n..
(Im beggining in ABAP).
1.- I configure FIBF and add append field in se11.
2.- Copy bte 00001650 and i coding this:
tables: vbrp,vbkd.
data: d_bstkd LIKE vbkd-bstkd.
data: d_aubel LIKE vbrp-aubel.
clear: d_bstkd,d_aubel.
e_postab = i_postab.
select single aubel
into d_aubel
from vbrp.
select single bstkd
into d_bstkd
from vbkd
where vbeln eq d_aubel.
e_postab-ZZPEDIDOCLIE = d_bstkd.
i_postab = e_postab.
But.. the fields in the report fbl5n dont show nothing..
please help..
Regards
10-15-2015 4:24 PM
Hi Edward,
In your first select you should use a WHERE clause too. And everything should be on item level.
select aubel, aupos into ( @lv_aubel @lv_aupos )
from vbrp
where vbeln = @i_postab-vbeln
posnr = @i_postab-posn2
You could always use the debugger to check if the select statement do what they should do.
It would be better of course to use 1 select statement and a join to retrieve the data.
Cheers,
Henk.
10-15-2015 5:15 PM
Hi.. thanks for reply
This changes dont works.. i dont tnow what i do wrong.. i retry to add in other function the field "matnr", but is the same, dont show nothing.
E_POSTAB = I_POSTAB.
TABLES: VBRP.
data: n_matnr,d_arktx.
"number
select single matnr
into n_matnr
from vbrp
where vbeln eq i_postab-vbeln.
"name
select single arktx
into d_arktx
from vbrp
where matnr eq n_matnr.
E_POSTAB-zznmaterial = n_matnr.
E_POSTAB-zzdmaterial = d_arktx.
...i retry to do a debug..
10-22-2015 10:42 AM
"add append field in se11." Are your fields appended in RFPOSX and RFPOSXEXT, if only in first structure use report RFPOSXEXT to regenarate the structure.
Hints:
Regards,
Raymond