Skip to Content
author's profile photo Former Member
Former Member

RFBIBL00 - missing data to FB05 clearing

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2009 at 02:53 AM

    Hi All,

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

    tnx.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 11, 2009 at 05:41 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.