Skip to Content
avatar image
Former Member

Cant show data bte 0001650 in fbl5n

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 15, 2015 at 03: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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

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

  • Oct 22, 2015 at 09: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

    Add comment
    10|10000 characters needed characters exceeded