Skip to Content
avatar image
Former Member

Workflow fetching amount of only first line item of accounting document

Hi,

I have created a custom workflow for accounting document posting through F-02. I have used custom BO of BKPF. Now the problem is whenever user posts a document workflow picks amount of only first line item. How can I fetch total amount of document?

Any suggestions..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Feb 03, 2017 at 07:07 PM

    Hello,

    What do you mean by workflow only picking up the first line item? Maybe the triggering event is wrong - what object or class is being used?

    Perhaps you chose lineitem level instead of header level.

    regards

    Rick

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rick,

      I am using header level only and i am using BKPF boject and workflow is triggered when document is created.

      Thanks,

      PS

  • Feb 07, 2017 at 06:21 AM

    Hi,

    What code you wrote in custom BO, please share screenshot with details.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I am done with all these things. While I was inspecting BO BKPF, checked attributes of this object which had one of the attributes SUB_ACCOUNTING_DOC.BSEG which picks just one first line item of the document. Please have a look at following screenshot.

      Now amount returned is just that of first line item. Is there any way or FM to pick total ammount of document?

      Regards,

      PS

      wf.png (24.3 kB)
  • Feb 07, 2017 at 04:29 PM

    Hi,

    Instantiate the Business Object in SWO1 and see where things go wrong.

    Also check how you bind things in your workflow definition, especially multi-line elements.

    Kind regards, Rob Dielemans

    Add comment
    10|10000 characters needed characters exceeded