SAP for Automotive Discussions
Connect with fellow SAP users in discussions to troubleshoot challenges, share best practices, and fuel each other's success. Join a conversation or start your own.
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Document on Certain level in Document Flow

Former Member
0 Kudos
510

Hello all,

I am trying to integrate additional FI posting during billing process.

I put additional line in /DBM/OE_DOCFLOW for my action

BKPF 003 /DBM/SPLHDR_COM DOCNUM DOCYEAR FB03 Reposted Cost during Billing. And I successfully added the document on Split Header level with corresponding customizing and

The following code

  MOVE-CORRESPONDING <fs_curr_split_hdr> TO ls_head_detail.
ls_head_detail-docnum = mv_obj_key(10).
    ls_head_detail-docyear = mv_obj_key+14(4).
    APPEND ls_head_detail TO io_order->mt_splhdr_detail.
    io_order->splhdr_change( ).
*    io_order->split_change( ).
    io_order->mo_docflow->create(
      EXPORTING
        iv_borobj = 'BKPF'
        iv_seqno  = '003'
        io_order  = io_order
      IMPORTING
        et_return = lt_return ).

So my question is:

Is there a way to put the document under Billing Document like a next level?

I try to do it on split item level like Billing Document is put but the link is not shown at All.

I probably miss something so any help is appreciated!

Edited by: Ognian Kalaydjiev on Sep 25, 2010 4:07 PM

Edited by: Ognian Kalaydjiev on Sep 25, 2010 4:14 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos
272

Hi Ognian,

if you want to "resort" the way documents are displayed you can do so via the BAdI /DBM/BADI_DOCFLOW.

The parameter ct_list contains all document flow items.

Via hierarchy level (field hlevel) you should be able to add new node under the billing document.

In general you action would set create the document flow automatically without using the explicit method.

You just have to fill the field maintained in table /dbm/oe_docflow and set the documentflow attribute in

the action customizing.

Kind regards

Robert

View solution in original post

1 REPLY 1

Former Member
0 Kudos
273

Hi Ognian,

if you want to "resort" the way documents are displayed you can do so via the BAdI /DBM/BADI_DOCFLOW.

The parameter ct_list contains all document flow items.

Via hierarchy level (field hlevel) you should be able to add new node under the billing document.

In general you action would set create the document flow automatically without using the explicit method.

You just have to fill the field maintained in table /dbm/oe_docflow and set the documentflow attribute in

the action customizing.

Kind regards

Robert