‎2009 Oct 23 9:41 AM
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
‎2009 Oct 23 9:45 AM
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
‎2009 Oct 23 9:53 AM
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
‎2009 Oct 23 9:57 AM
Hi
There's limit of lines can be formatted by : you're exceeding it
Max
‎2009 Oct 23 10:08 AM
****************************************************************
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_BBSEGModerator message - Please use code tags around your code
Edited by: Rob Burbank on Oct 23, 2009 9:36 AM
‎2009 Oct 23 10:38 AM
Hi
Try to check theposting key, it seems y're posting an asset item
Max
‎2009 Oct 23 10:20 AM
‎2009 Oct 23 2:38 PM
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).
‎2009 Oct 26 4:57 AM
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?
‎2009 Oct 26 7:38 AM
Did you fill the clearing data in BSELP and BSELK ? If necessary search in this forum with keywords "FB05", "BSELP" and "BSELK".
‎2009 Oct 26 9:24 AM
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
‎2009 Oct 26 9:47 AM
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).
‎2010 Oct 04 11:27 AM
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?