Skip to Content
avatar image
Former Member

Add BSTNK to FBL5N

Hi,

I would like to include field BSTNK in FBL5N.


My BTE works for FM 1650 as I am able to see the field. However no data shows. I have tried tables VBKD and VBAK and no values poulate.

But when I use another table (VBRP) and another text field (ARKTX) it works as expected.


Here is the code that works:

E_POSTAB = I_POSTAB.

if sy-tcode = 'FBL5N'.

tables vbrp.

select single arktx

   from vbrp

   into e_postab-zzbstnk

   where vbeln = i_postab-vbeln.

   endif.

Here is the one that does not work:

E_POSTAB = I_POSTAB.

if sy-tcode = 'FBL5N'.

tables vbak.

select single bstnk

   from vbak

   into e_postab-zzbstnk

   where vbeln = i_postab-vbeln.

   endif.

The only difference between these 2 is the tables/fields used.

I appreciate any assistance.


If I am in the wrong forum space, please let me know....

Thanks,

Sonia.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 18, 2014 at 01:58 PM

    Hi,

    Try giving condition: where vbeln = i_postab-vbel2.

    Regards,


    Eli

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 18, 2014 at 01:32 PM

    Hi Sonia,

    vbak-vbeln is the sales document number and i_postab-vbeln is the invoice number. Whereas vbrp-vbeln is the invoice number.

    Add comment
    10|10000 characters needed characters exceeded