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: 

RFBIBL00 - missing data to FB05 clearing

Former Member
0 Kudos

Hi guys,

the acctg document i created via RFBIBL00 only populates the Purch. Doc. field of the 1st line item.

the requirement is that the PUrch Doc should be populated on all line items.

how to do that?

below is my code:


    x_bbseg-stype = 2.
    x_bbseg-tbnam = c_lbbseg.
    IF <fs_acctdocs>-shkzg = c_lnegtv.
      x_bbseg-newbs = c_lfifty.      "Posting key
    ELSE.
      x_bbseg-newbs = c_lforty.      "Posting key
    ENDIF.
    x_bbseg-newko = p_nhkont.               "GL account for clearing
    PERFORM f_amount_format.
    IF <fs_acctdocs>-gsber IS NOT INITIAL.
      x_bbseg-gsber = <fs_acctdocs>-gsber.  "Bus. area
    ENDIF.
    x_bbseg-zuonr = <fs_acctdocs>-belnr.
*** check if the account expects a COPA object particularly cost center
    CLEAR v_lgvtyp.
    SELECT SINGLE gvtyp
      INTO v_lgvtyp
      FROM ska1                 "G/L Account Master (Chart of Accounts)
      WHERE saknr EQ p_nhkont   "clearing account
        AND gvtyp NE space.     "P&L statmt acct type
    IF sy-subrc EQ 0.
      IF <fs_acctdocs>-kostl IS NOT INITIAL.
        x_bbseg-kostl = <fs_acctdocs>-kostl.
      ENDIF.
    ENDIF.
    IF <fs_acctdocs>-ebeln IS NOT INITIAL.
      x_bbseg-ebeln = <fs_acctdocs>-ebeln.  "Purch doc
      x_bbseg-ebelp = <fs_acctdocs>-ebelp.  "Purch doc item
    ENDIF.

    TRANSFER x_bbseg TO v_pathextern.

your help is much appreciated.

2 REPLIES 2

Former Member
0 Kudos

Hi All,

could it be possible that the purchasing document will be populated in the 2nd line item during the clearing via FB05?

tnx.

Former Member
0 Kudos

It is not possible to specify the purchasing document on the 2nd line item during clearing. Specifying the purchasing document can only be possible on the 1st line item.