Application Development 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: 

Cant show data bte 0001650 in fbl5n

0 Kudos

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

3 REPLIES 3

henk_verdaasdonk4
Active Participant
0 Kudos

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.

0 Kudos

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..

raymond_giuseppi
Active Contributor
0 Kudos

"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