Application Development and Automation 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: 
Read only

RFBIBL00 - Error during session execution

Former Member
0 Likes
2,515

Hi,

My requirement is to do the clearing of documents through execution of RFBIBL00.

I am doing this by passing transaction FB05 and corresponding field mapping to this standard Program.

The session gets created successfully.

However, when I execute the session (in back ground), I am getting the following error message.

"Field BSEG-DMBTR. does not exist in the screen SAPMF05A 0304"

When I am executing the session in Foreground, I am getting the following error message.

"No batch input data for screen SAPDF05X 3100"

Please help.

Swastik

12 REPLIES 12
Read only

Former Member
0 Likes
1,765

Hi

something is wrong in the logic you're using to fill the item structure BBSEG, probably some data is wrong or missing: u should post your code

Max

Read only

0 Likes
1,765

Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code

Edited by: Rob Burbank on Oct 23, 2009 9:36 AM

Read only

0 Likes
1,765

Hi

There's limit of lines can be formatted by : you're exceeding it

Max

Read only

0 Likes
1,765
****************************************************************
FORM f_fill_bbkpf .
  PERFORM init_bbkpf IN PROGRAM rfbibli0  USING      bbkpf           IF FOUND.
  MOVE: c_tcode             TO bbkpf-tcode,
        'UMBUCHNG'          TO bbkpf-auglv.
  WRITE:<fs_header>-bldat   TO bbkpf-bldat,
        p_budat             TO bbkpf-budat.
  MOVE: p_blart             TO bbkpf-blart,
        <fs_header>-waers   TO bbkpf-waers,
        <fs_header>-xblnr   TO bbkpf-xblnr,
        <fs_header>-bktxt   TO bbkpf-bktxt,
        <fs_header>-bukrs   TO bbkpf-bukrs.
  TRANSFER bbkpf TO c_filename.
  MOVE bbkpf-waers TO g_waers_d.
ENDFORM.                    " F_FILL_BBKPF
****************************************************************
FORM f_fill_bbseg .
  PERFORM init_bbseg IN PROGRAM rfbibli0      USING      bbseg    IF FOUND.
  IF  <fs_item>-bschl GE 1
  AND <fs_item>-bschl LE 8.
    MOVE '11' TO bbseg-newbs.
  ELSEIF <fs_item>-bschl EQ 9.
    MOVE '19' TO bbseg-newbs.
  ENDIF.
  MOVE p_kunnd  TO bbseg-newko.
  IF p_option EQ c_opt_a.
    MOVE <fs_item>-umskz TO bbseg-newum.
  ELSE.
    MOVE p_umskz TO bbseg-newum.
  ENDIF.
  WRITE:<fs_item>-dmbtr TO bbseg-dmbtr CURRENCY g_waers_l,
        <fs_item>-wrbtr TO bbseg-wrbtr CURRENCY g_waers_d.
  MOVE: <fs_item>-prctr TO bbseg-prctr,
        <fs_item>-zterm TO bbseg-zterm.
  WRITE <fs_item>-zfbdt TO bbseg-zfbdt.
  MOVE: <fs_item>-valut TO bbseg-valut,
        <fs_item>-zlsch TO bbseg-zlsch,
        <fs_item>-fdtag TO bbseg-fdtag,
        <fs_item>-fdlev TO bbseg-fdlev,
        <fs_item>-zuonr TO bbseg-zuonr,
        <fs_item>-sgtxt TO bbseg-sgtxt.
  TRANSFER bbseg TO c_filename.
ENDFORM.                    " F_FILL_BBSEG

Moderator message - Please use code tags around your code

Edited by: Rob Burbank on Oct 23, 2009 9:36 AM

Read only

0 Likes
1,765

Hi

Try to check theposting key, it seems y're posting an asset item

Max

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,765
  • removed *

Read only

former_member194797
Active Contributor
0 Likes
1,765

If the document currency (BBKPF-WAERS) is the same as the company currency (T001-WAERS), you have only one amount and you must fill the field BBSEG-WRBTR. The field BBSEG-DMBTR is not available.

If you are working in foreign currency (BBKPF-WAERS different from T001-WAERS), you may fill the foreign currency amount (BBSEG-WRBTR) and/or the local currency amount (BBSEG-DMBTR).

Read only

0 Likes
1,765

I have commented out the filling of DMBTR field and , the error in the session got removed.

However, I am getting a new error message.

It says, "The difference is too large for clearing". (Module SAPMF05A, Screen 0700.)

During manual Posting, we need to double click on the line item to activate it, else we get similar error message in foreground.

How do we handle this in RFBIBL00?

Read only

former_member194797
Active Contributor
0 Likes
1,765

Did you fill the clearing data in BSELP and BSELK ? If necessary search in this forum with keywords "FB05", "BSELP" and "BSELK".

Read only

0 Likes
1,765

Hi Henri,

I have passed the following data to BSELK and BSELP.

I am wondering if I need to pass two line items in BBSEG structure ?


FORM f_fill_bselk .

  PERFORM init_bselk IN PROGRAM rfbibli0  USING      bselk   IF FOUND.
    MOVE: <fs_item>-kunnr     TO bselk-agkon,
          c_acc_d             TO bselk-agkoa.
    MOVE: <fs_item>-bukrs TO bselk-agbuk,
        <fs_item>-umskz TO bselk-agums.
  TRANSFER bselk TO c_filename.
ENDFORM.                    " F_FILL_BSELK
***********************************************
FORM f_fill_bselp .

*"Initialize BSELP structure
  PERFORM init_bselp IN PROGRAM rfbibli0  USING  bselp  IF FOUND.
  MOVE: c_belnr_fld         TO bselp-feldn_1,
        <fs_item>-belnr     TO bselp-slvon_1,
        <fs_item>-belnr     TO bselp-slbis_1,
        c_buzei_fld         TO bselp-feldn_2,
        <fs_item>-buzei     TO bselp-slvon_2,
        <fs_item>-buzei     TO bselp-slbis_2,
        c_gjahr_fl          TO bselp-feldn_3,
        <fs_item>-gjahr     TO bselp-slvon_3,
        <fs_item>-gjahr     TO bselp-slbis_3.

  TRANSFER bselp TO c_filename.

ENDFORM.                    " F_FILL_BSELP

Read only

former_member194797
Active Contributor
0 Likes
1,765

The clearing will generate an additional BSEG row, so you have not to provide this record in BBSEG.

Check what happens online, and see if the contents of BSELK and BSELP are interpreted as expected (I don't see anything wrong).

Read only

Former Member
0 Likes
1,765

Hi,

I am also doing the credit memo Posting using FB05 and I am getting the same error as No batch input data for screen SAPDF05X 3100 . Could you please help me how did you solve the issue?